且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-09-12 11:38:04

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-idenv[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