TRACEnova.openstack.common.threadgroup Stderr: 'iptables-restore v1.4.7: Bad IPaddress

29 network 启动报错

 2014-05-2715:57:12.666 15136 TRACE nova.openstack.common.threadgroup     linux_net.init_host(cidr)

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup   File"/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line672, in init_host

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup    add_snat_rule(ip_range)

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup   File"/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line664, in add_snat_rule

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup    iptables_manager.apply()

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup   File"/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line421, in apply

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup    self._apply()

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup   File"/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py",line 246, in inner

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup    return f(*args, **kwargs)

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup   File"/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line450, in _apply

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup    attempts=5)

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup   File"/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line1191, in _execute

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup    return utils.execute(*cmd, **kwargs)

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup   File"/usr/lib/python2.6/site-packages/nova/utils.py", line 177, inexecute

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup    return processutils.execute(*cmd, **kwargs)

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup   File"/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py",line 178, in execute

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup    cmd=' '.join(cmd))

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup ProcessExecutionError: Unexpected error whilerunning command.

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup Command: sudo nova-rootwrap/etc/nova/rootwrap.conf iptables-restore -c

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup Exit code: 2

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup Stdout: ''

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup Stderr: 'iptables-restore v1.4.7: Bad IPaddress "10.9.1.52Dlocalhost.localdomain"\n\nError occurred at line:24\nTry `iptables-restore -h\' or \'iptables-restore --help\' for moreinformation.\n'

2014-05-27 15:57:12.666 15136 TRACEnova.openstack.common.threadgroup

 

解决办法:

         vim/usr/lib/python2.6/site-packages/nova/network/linux_net.py

448             # Add william, iptables-restore -c is stop ,so pass

 449             try:

 450                 self.execute('%s-restore' %(cmd,), '-c', run_as_root=True,

 451                          process_input='\n'.join(all_lines),

 452                          attempts=5)

 453             except:

 454                 pass


你可能感兴趣的:(bad,ipaddress,Stderr:,v1.4.7:,"10.9.1.52)