Ask Your Question
1

Openstack O版本 集群 添加计算节点报错 但是compute1可以正常使用 我吧compute1 关闭了 然后剩下compute2r报错 所有服务全部起来

asked 2017-08-03 22:51:56 -0500

liys gravatar image

updated 2017-11-22 13:05:14 -0500

rbowen gravatar image

*日志:

2017-08-03 23:36:36.655 13554 ERROR nova.image.glance [req-082aac9b-8459-4d16-982b-1ea6111505ba ecb2cf2892584129a6ba71124697d7b7 55f1e02d910f41c0b5ac35c272c188d8 - - -] Error writing to /var/lib/nova/instances/_base/71551aaa668942247422acde9efeb8f0cca9255b.part: 'NoneType' object is not iterable
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [req-082aac9b-8459-4d16-982b-1ea6111505ba ecb2cf2892584129a6ba71124697d7b7 55f1e02d910f41c0b5ac35c272c188d8 - - -] [instance: fad644a2-baf3-4652-a1a0-18b186032b6b] Instance failed to spawn
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b] Traceback (most recent call last):
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2124, in _build_resources
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     yield resources
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1930, in _build_and_run_instance
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     block_device_info=block_device_info)
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2702, in spawn
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     block_device_info=block_device_info)
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3109, in _create_image
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3109, in _create_image
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     fallback_from_host)
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3225, in _create_and_inject_local_root
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     instance, size, fallback_from_host)
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6787, in _try_fetch_image_cache
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     size=size)
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 227, in cache
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     *args, **kwargs)
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 569, in create_image
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     prepare_template(target=base, *args, **kwargs)
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]     return f(*args, **kwargs)
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance: fad644a2-baf3-4652-a1a0-18b186032b6b]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 223, in fetch_func_sync
2017-08-03 23:36:36.656 13554 ERROR nova.compute.manager [instance ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2017-11-22 09:30:06 -0500

Gonzo gravatar image

I have the same problem in OpenStack Pike. Everytime I try to create one instance I get the same error:

.... ERROR nova.image.glance [req-17ea432a-e3d7-4951-887a-26caf94dca87 be97e12b9ac343478a217a2557ed8932 13d14265860a45b6beb53f5439c1fd4e - default default] Error writing to /var/lib/nova/instances/_base/8ec2db2ad5cde6229cb4590aa66b9bdc9dfd2b38.part: 'NoneType' object is not iterable .... ERROR nova.compute.manager [req-17ea432a-e3d7-4951-887a-26caf94dca87 be97e12b9ac343478a217a2557ed8932 13d14265860a45b6beb53f5439c1fd4e - default default] [instance: da9cb8f7-77e1-42f7-ad52-f8463f7dc077] Instance failed to spawn: TypeError: 'NoneType' object is not iterable ...

and /var/lib/nova/instances/_base dir on node1 have the correct permissions:

pwd; ls -l

/var/lib/nova/instances

...

drwxr-xr-x. 2 nova nova 232 Nov 22 16:12 _base

pwd; ls -l

/var/lib/nova/instances/_base

total 44585288

-rw-r--r--. 1 qemu qemu 8589934592 Nov 22 16:04 7a1ec8920cd3b1a7a0ec548228ca6f29e650f3f0

What is going on?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-08-03 22:51:56 -0500

Seen: 116 times

Last updated: Nov 22 '17