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



本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1417735
相关文章
|
8月前
|
jenkins Devops Shell
【DevOps】jenkins出现stderr: fatal: cannot exec ‘/tmp/pass2225150599970077606.sh‘: Text file busy
【DevOps】jenkins出现stderr: fatal: cannot exec ‘/tmp/pass2225150599970077606.sh‘: Text file busy
106 0
|
Docker 容器
docker: Error response from daemon: driver failed programming external connectivity on endpoint mysq
docker: Error response from daemon: driver failed programming external connectivity on endpoint mysq
|
网络安全
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
1610 0
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
|
运维 网络安全 Docker
docker报错ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule
docker报错ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule
534 0
|
Docker 容器
docker报错ERROR: for hass “host” network_mode is incompatible with port_bindings
docker报错ERROR: for hass “host” network_mode is incompatible with port_bindings
2942 0
|
Docker 容器
docker启动jupyter报错:OSError: [Errno 99] Cannot assign requested address
docker启动jupyter报错:OSError: [Errno 99] Cannot assign requested address
500 0
|
Ubuntu Linux 应用服务中间件
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "ip": executable file not found in $PATH: unknown (Docker容器没有ip addr命令:exec ip addr 报错)
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "ip": executable file not found in $PATH: unknown (Docker容器没有ip addr命令:exec ip addr 报错)
3787 0
sudo unable to resolve host错误
sudo unable to resolve host错误
164 0
|
网络协议 MySQL 关系型数据库