openstack running 3

euca-describe-instances

failed to spawn mykey .....................

在nova-compute.log中出错:

ERROR nova.computer.

manager [407CUNXANB5C-QPPS4ZI shw shwPRO] instance 3:failed to spawn
TRACE: Traceback (most recent call last):
TRACE: File "/usr/lib/pymodules/python2.6/nova/computer/manager.py",line 213,in run_instance
TRACE: sile.driver.spawn(instance_ref)
TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py",line 122,in _wrap
TRACE: raise Error(str(e))
TRACE: Error:f(ile) should be int,str,unicode or file ,not <open GreenPipe '<fd:15>',mode 'wb' at 0x94808e4>
TRACE:

继续中。。。



FAQ:

https://answers.launchpad.net/nova/+faq/1485

i use the no.2 route
2. Apply the patch included in the link. You can do something like:
pushd /usr/lib64/python2.6/site-packages/eventlet
curl https://bitbucket-assetroot.s3.amazonaws.com/which_linden/eventlet/20110214/77/greenpipe-wrap.patch | patch
popd

还是有问题:
Error nova.compute.manage instance 1: Failed to spawn
Command: sudo iptables-save -t filter
Exit code: 1
Stdout: ' '
Stderr: 'sudo: no tty present and no askpass program specified\n'

像连接中的做了一下 https://bugs.launchpad.net/glance/+bug/702722

换了一个error,日。。。
Error nova.exception [-] Uncaught exception
Command: sudo iptables-save -t filter
Exit code: 1
Stdout: ' '
Stderr : 'sudo: sorry, you must have a tty tu run sudo\n'

啥意思哟。。。

原文地址:https://www.cnblogs.com/sikoui/p/1978406.html