首页 文章 精选 留言 我的

精选列表

搜索[文档处理],共10000篇文章
优秀的个人博客,低调大师

RDO CentoS 7.1部署 kilo 问题及处理办法

OpenStack kilo debug 汇总 1, openstack kilo 部署 nova-network 问题 1 2 3 4 5 6 7 8 9 10 ERROR:ErrorappearedduringPuppetrun:192.168.102.26_nova.pp Error:Executionof '/usr/bin/novanetwork-createnovanetwork--fixed-range-v4192.168.88.0/28' returned1:ERROR(CommandError):Youmustprovideausernameoruser id via--os-username,--os-user- id , env [OS_USERNAME]or env [OS_USER_ID] Youwill find fulltrace in log /var/tmp/packstack/20150916-095300-hKJi_X/manifests/192 .168.102.26_nova.pp.log Pleasechecklog file /var/tmp/packstack/20150916-095300-hKJi_X/openstack-setup .log for more information Additionalinformation: *Timesynchronizationinstallationwasskipped.Pleasenotethatunsynchronized time onserverinstancesmightbeproblem for someOpenStackcomponents. *File /root/keystonerc_admin hasbeencreatedonOpenStackclienthost192.168.102.26.Tousethe command linetoolsyouneedto source the file . *ToaccesstheOpenStackDashboardbrowsetohttp: //192 .168.102.26 /dashboard . Please, find yourlogincredentialsstored in thekeystonerc_admin in yourhomedirectory. [root@openstack1~] #/usr/bin/novanetwork-createnovanetwork--fixed-range-v4192.168.88.0/28 1 2 3 4 5 6 7 解决办法: 查看错误日志,分析错误原因 vim /usr/lib/python2 .7 /site-packages/packstack/modules/puppet .py 104 #message=('ErrorappearedduringPuppetrun:%s\n%s\n' 105 #'Youwillfindfulltraceinlog%s'% 106 #(manifestfile,error,logpath)) 107 #raisePuppetError(message) 2, openstack kilo 中http 部署启动异常 1 2 3 4 5 6 7 --LogsbeginatTue2015-09-1517:18:58CST,endatWed2015-09-1610:08:03CST.-- Sep1610:07:59openstack1httpd[13483]:AH00526:Syntaxerroronline47of /etc/httpd/conf .d /nss .conf: Sep1610:07:59openstack1httpd[13483]:Invalid command 'NSSPassPhraseHelper' ,perhapsmisspelledordefinedbyamodulenotincluded Sep1610:07:59openstack1systemd[1]:httpd.service:mainprocessexited,code=exited,status=1 /FAILURE Sep1610:07:59openstack1 kill [13485]: kill :cannot find process "" Sep1610:07:59openstack1systemd[1]:httpd.service:controlprocessexited,code=exitedstatus=1 Sep1610:07:59openstack1systemd[1]:FailedtostartTheApacheHTTPServer. 1 2 3 4 5 解决办法: 移除httpdnss.conf模块参数 cd /etc/httpd/conf .d/ mv nss.confnss.conf.back servicehttpdrestart 3, openstack bridge 错误,导致云主机创建失败: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 [root@openstack1conf.d] #tail-f/var/log/nova/nova-compute.log 2015-09-1610:10:31.70628885TRACEnova.compute.managerFile "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py" ,line445, in inner 2015-09-1610:10:31.70628885TRACEnova.compute.manager return f(*args,**kwargs) 2015-09-1610:10:31.70628885TRACEnova.compute.manager 2015-09-1610:10:31.70628885TRACEnova.compute.managerFile "/usr/lib/python2.7/site-packages/nova/network/linux_net.py" ,line1620, in ensure_bridge 2015-09-1610:10:31.70628885TRACEnova.compute.managerraiseexception.NovaException(msg) 2015-09-1610:10:31.70628885TRACEnova.compute.manager 2015-09-1610:10:31.70628885TRACEnova.compute.managerNovaException:Failedtoaddinterface:can'taddlotobridgebr100:Invalidargument 2015-09-1610:10:31.70628885TRACEnova.compute.manager 2015-09-1610:10:31.70628885TRACEnova.compute.manager 2015-09-1610:10:31.70628885TRACEnova.compute.manager 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherself.driver.update_dhcp(elevated,dev,network) 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherFile "/usr/lib/python2.7/site-packages/nova/network/linux_net.py" ,line1050, in update_dhcp 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherrestart_dhcp(context,dev,network_ref,fixedips) 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherFile "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py" ,line445, in inner 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcher return f(*args,**kwargs) 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherFile "/usr/lib/python2.7/site-packages/nova/network/linux_net.py" ,line1159, in restart_dhcp 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcher_execute(*cmd,run_as_root=True) 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherFile "/usr/lib/python2.7/site-packages/nova/network/linux_net.py" ,line1266, in _execute 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcher return utils.execute(*cmd,**kwargs) 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherFile "/usr/lib/python2.7/site-packages/nova/utils.py" ,line207, in execute 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcher return processutils.execute(*cmd,**kwargs) 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherFile "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py" ,line233, in execute 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatchercmd=sanitized_cmd) 2015-09-1610:11:48.01321271TRACEoslo_messaging.rpc.dispatcherProcessExecutionError:Unexpectederror while running command . 1 2 3 4 5 6 7 8 9 10 11 12 13 解决办法: 修改vim /usr/lib/python2 .7 /site-packages/nova/network/linux_net .py程序 1612 if interface: 1613LOG.debug( 'Addinginterface%(interface)stobridge%(bridge)s' , 1614{ 'interface' :interface, 'bridge' :bridge}) 1615out,err=_execute( 'brctl' , 'addif' ,bridge,interface, 1616check_exit_code=False,run_as_root=True) 1617 if (erranderr!= "device%sisalreadyamemberofabridge;" 1618 "can'tenslaveittobridge%s.\n" %(interface,bridge)): 1619msg=_( 'Failedtoaddinterface:%s' )%err 1620 #raiseexception.NovaException(msg) 1621 else : 1622pass 本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1695234

优秀的个人博客,低调大师

ios7适配--navgationbar遮住下面view的处理

3 down vote favorite Have you guys stumbled up on this issue ? Basically in iOS 7 Navigation Controller is rendered over the sub-view I navigated to. In iOS 6 view I navigate to is enclosed between navigation bar and footer. In iOS 7 it looks like sub-view is rendered full-screen, under navigation bar and footer. As result user don't see it. Here is how I navigate to subview BRSMyListSubViewController*tagsInfoVC =[[BRSMyListSubViewController alloc] initWithCheckinsList:self.checkinsList selectedTag:[self tagByIndexPath:indexPath]];[self.navigationController pushViewController:tagsInfoVC animated:YES]; Here is how I initialize it inviewDidLoad self.navigationItem.leftBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"Settings" style:UIBarButtonItemStyleBordered target:self action:@selector(settings:)]; self.navigationItem.rightBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"Logout" style:UIBarButtonItemStyleBordered target:self action:@selector(logout:)]; For what it's worth I should also mention that sub-view is defined in XIB using Autolayout. Here is source of my XIB:http://pastebin.com/6RR0zYu4 And finally here is how it looks in iOS 6 And in iOS 7 Any thoughts ? ios cocoa-touch ios6 uinavigationcontroller ios7 share | edit | flag editedAug 29 at 18:47 asked Aug 29 at 4:09 ruslan 3,422 1 15 55 add comment 1 Answer active oldest votes up vote 5 down vote accepted Well, I figured it out. In your sub-view (BRSMyListSubViewControllerin my case), inviewDidLoad, you need to set one of these two self.edgesForExtendedLayout =UIRectEdgeNone; self.automaticallyAdjustsScrollViewInsets = NO; OR self.edgesForExtendedLayout =UIRectEdgeNone; self.extendedLayoutIncludesOpaqueBars = YES; Interestingly enough in root view controller these value are set to defaultUIRectEdgeAll,NOandYESrespectively but itstableViewis NOT under navbar and footer. I don't know why it's so illogical. It's also strange thatedgesForExtendedLayouthas to be mixed with one of two other properties even though it's clearly responsible for the behavior. share | edit | flag editedAug 29 at 6:11 answered Aug 29 at 5:29 ruslan 3,422 1 15 55 upvote flag Thank you for putting the answer, it really helped me.–titicacaSep 12 at 6:11 欢迎加群互相学习,共同进步。QQ群:iOS: 58099570 | Android: 572064792 | Nodejs:329118122 做人要厚道,转载请注明出处! 本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/sunshine-anycall/p/3338688.html ,如需转载请自行联系原作者

资源下载

更多资源
Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册