首页 文章 精选 留言 我的

精选列表

搜索[文档处理],共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 ,如需转载请自行联系原作者

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

Android 使用WebView加载含有Canvas的页面截屏处理

无法截屏主要原因是webview渲染方式所导致;只需要AndroidManifest.xml中设置属性Android:hardwareAccelerated=”false”。 标签: webview, Canvas, 截屏 好文要顶 关注我 收藏该文 netcorner 关注 - 2 粉丝 - 29 +加关注 0 0 «上一篇: android中webView加载H5,JS不能调用问题的解决 posted @ 2018-02-27 15:55 netcorner阅读( 21) 评论( 0) 编辑 收藏 刷新评论 刷新页面 返回顶部 注册用户登录后才能发表评论,请 登录或 注册, 访问网站首页。 【推荐】超50万VC++源码: 大型组态工控、电力仿真CAD与GIS源码库! 【缅怀】传奇谢幕,回顾霍金76载传奇人生 【推荐】业界最快速.NET数据可视化图表组件 【腾讯云】买域名送解析+SSL证书+建站 【活动】2050 科技公益大会 - 年青人因科技而团聚 最新IT新闻: · 刚开始学编程?这几款小工具能让你事半功倍 · 人民日报谈大数据杀熟:看人下菜碟 已构成价格欺诈 · 外媒:Switch的成功意味着任天堂的改变 · 曝猎豹旗下豹便利全面停止铺货 变卖资产折现 · 三星电子分离社长与CEO角色 新增3名独立董事 » 更多新闻... 最新知识库文章: · 写给自学者的入门指南 · 和程序员谈恋爱 · 学会学习 · 优秀技术人的管理陷阱 · 作为一个程序员,数学对你到底有多重要 » 更多知识库文章... 历史上的今天: 2016-02-27 activity 生命周期 2008-02-27 City of Angels 本文转自 netcorner 博客园博客,原文链接:http://www.cnblogs.com/netcorner/p/8479336.html ,如需转载请自行联系原作者 http://www.cnblogs.com/netcorner/p/8479336.html

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Nacos

Nacos

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

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

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

用户登录
用户注册