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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值