博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RDO CentoS 7.1部署 kilo 问题及处理办法
阅读量:7236 次
发布时间:2019-06-29

本文共 5862 字,大约阅读时间需要 19 分钟。

OpenStack kilo debug  汇总 

1, openstack kilo 部署 nova-network 问题

1
2
3
4
5
6
7
8
9
10
ERROR : Error appeared during Puppet run: 192.168.102.26_nova.pp
Error: Execution of 
'/usr/bin/nova network-create novanetwork --fixed-range-v4 192.168.88.0/28' 
returned 1: ERROR (CommandError): You must provide a username or user 
id 
via --os-username, --os-user-
id
env
[OS_USERNAME] or 
env
[OS_USER_ID]
You will 
find 
full trace 
in 
log 
/var/tmp/packstack/20150916-095300-hKJi_X/manifests/192
.168.102.26_nova.pp.log
Please check log 
file 
/var/tmp/packstack/20150916-095300-hKJi_X/openstack-setup
.log 
for 
more 
information
Additional information:
* Time synchronization installation was skipped. Please note that unsynchronized 
time 
on server instances might be problem 
for 
some OpenStack components.
* File 
/root/keystonerc_admin 
has been created on OpenStack client host 192.168.102.26. To use the 
command 
line tools you need to 
source 
the 
file
.
* To access the OpenStack Dashboard browse to http:
//192
.168.102.26
/dashboard 
.
Please, 
find 
your login credentials stored 
in 
the keystonerc_admin 
in 
your home directory.
[root@openstack1 ~]
# /usr/bin/nova network-create novanetwork --fixed-range-v4 192.168.88.0/28
1
2
3
4
5
6
7
 
解决办法:
查看错误日志,分析错误原因
vim 
/usr/lib/python2
.7
/site-packages/packstack/modules/puppet
.py
104 
#message = ('Error appeared during Puppet run: %s\n%s\n'
105 
# 'You will find full trace in log %s' %
106 
# (manifestfile, error, logpath))
107 
#raise PuppetError(message)

2, openstack  kilo 中http 部署启动异常

1
2
3
4
5
6
7
-- Logs begin at Tue 2015-09-15 17:18:58 CST, end at Wed 2015-09-16 10:08:03 CST. --
Sep 16 10:07:59 openstack1 httpd[13483]: AH00526: Syntax error on line 47 of 
/etc/httpd/conf
.d
/nss
.conf:
Sep 16 10:07:59 openstack1 httpd[13483]: Invalid 
command 
'NSSPassPhraseHelper'
, perhaps misspelled or defined by a module not included
Sep 16 10:07:59 openstack1 systemd[1]: httpd.service: main process exited, code=exited, status=1
/FAILURE
Sep 16 10:07:59 openstack1 
kill
[13485]: 
kill
: cannot 
find 
process 
""
Sep 16 10:07:59 openstack1 systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 16 10:07:59 openstack1 systemd[1]: Failed to start The Apache HTTP Server.
1
2
3
4
5
    
解决办法:
          
移除httpd nss.conf  模块参数
          
cd 
/etc/httpd/conf
.d/
          
mv 
nss.conf nss.conf.back 
          
service httpd restart

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@openstack1 conf.d]
# tail -f /var/log/nova/nova-compute.log
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager File 
"/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py"
, line 445, 
in 
inner
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager 
return 
f(*args, **kwargs)
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager File 
"/usr/lib/python2.7/site-packages/nova/network/linux_net.py"
, line 1620, 
in 
ensure_bridge
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager raise exception.NovaException(msg)
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager NovaException: Failed to add interface: can't add lo to bridge br100: Invalid argument
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager
2015-09-16 10:10:31.706 28885 TRACE nova.compute.manager
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher self.driver.update_dhcp(elevated, dev, network)
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher File 
"/usr/lib/python2.7/site-packages/nova/network/linux_net.py"
, line 1050, 
in 
update_dhcp
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher restart_dhcp(context, dev, network_ref, fixedips)
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher File 
"/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py"
, line 445, 
in 
inner
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher 
return 
f(*args, **kwargs)
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher File 
"/usr/lib/python2.7/site-packages/nova/network/linux_net.py"
, line 1159, 
in 
restart_dhcp
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher _execute(*cmd, run_as_root=True)
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher File 
"/usr/lib/python2.7/site-packages/nova/network/linux_net.py"
, line 1266, 
in 
_execute
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher 
return 
utils.execute(*cmd, **kwargs)
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher File 
"/usr/lib/python2.7/site-packages/nova/utils.py"
, line 207, 
in 
execute
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher 
return 
processutils.execute(*cmd, **kwargs)
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher File 
"/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py"
, line 233, 
in 
execute
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher cmd=sanitized_cmd)
2015-09-16 10:11:48.013 21271 TRACE oslo_messaging.rpc.dispatcher ProcessExecutionError: Unexpected error 
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:
1613 LOG.debug(
'Adding interface %(interface)s to bridge %(bridge)s'
,
1614 {
'interface'
: interface, 
'bridge'
: bridge})
1615 out, err = _execute(
'brctl'
'addif'
, bridge, interface,
1616 check_exit_code=False, run_as_root=True)
1617 
if 
(err and err != 
"device %s is already a member of a bridge; "
1618 
"can't enslave it to bridge %s.\n" 
% (interface, bridge)):
1619 msg = _(
'Failed to add interface: %s'
) % err
1620 
#raise exception.NovaException(msg)
1621 
else
:
1622 pass
本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1695234

转载地址:http://fwwbm.baihongyu.com/

你可能感兴趣的文章
支付宝支付开发——当面付条码支付和扫码支付
查看>>
[架构设计] 组件和模块的区别
查看>>
tomcat 8.5.9.0 解决catalina.out过大的问题
查看>>
mysql备份
查看>>
普元王轩:做好大数据治理,加速航空业数字化转型
查看>>
避繁就简为数据中心减负
查看>>
我的Android进阶之旅------>Android字符串资源中的单引号问题error: Apostrophe not preceded by 的解决办法...
查看>>
2015 年度 Android 开发者必备的 5 个开源库
查看>>
GLUT Trackball Demo
查看>>
SQL集合操作符样例(UNION,INTERSECT,EXCEPT)
查看>>
Spark-SparkSQL深入学习系列十一(转自OopsOutOfMemory)
查看>>
JAVA Eclipse使用Maven构建web项目详解(SSM框架)
查看>>
高校银行协同 信息校园一卡通行
查看>>
论MongoDB索引选择的重要性
查看>>
建设互联网医疗的思考
查看>>
澄清云计算概念 解析云计算现状
查看>>
应对5G网络需求,G.metro技术逐步走向成熟和应用
查看>>
【LeetCode从零单排】No104 Maximum Depth of Binary Tree
查看>>
使用使用Zopfli优化PNG图片
查看>>
德扑 AI 之父托马斯·桑德霍姆:扑克 AI 如何完虐人类,和 AlphaGo 大不同
查看>>