Ask Your Question
0

Error writing to /var/lib/nova/instances/_base/ - how to avoid local file transaction?

asked 2016-04-19 15:55:40 -0600

Kevin gravatar image

Hi,

I am using Ceph for RBD storage and we are hosting hypervisors with 16GB of flash memory.

When I import an image which is saved in an isolated pool on the same cluster, my hypervisor node tries to download it before re-importing (see trace below). How can I modify this behavior?

2016-04-19 22:46:05.041 2747 ERROR nova.image.glance [req-7f1512f5-4cc7-44fe-bb90-a1527e3a341b 051f7eb0c4df40dda84a69d40ee86a48 3c297aff8cb44e618fb88356a2dd836b - - -] Error writing to /var/lib/nova/instances/_base/1cb800df157f685e900195a14c05d2d4decc2bc4.part: [Errno 28] No space left on device
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [req-7f1512f5-4cc7-44fe-bb90-a1527e3a341b 051f7eb0c4df40dda84a69d40ee86a48 3c297aff8cb44e618fb88356a2dd836b - - -] [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7] Instance failed to spawn
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7] Traceback (most recent call last):
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     yield resources
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     block_device_info=block_device_info)
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2761, in spawn
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     admin_pass=admin_password)
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3179, in _create_image
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     instance, size, fallback_from_host)
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6739, in _try_fetch_image_cache
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     size=size)
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 251, in cache
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     *args, **kwargs)
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 874, in create_image
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     prepare_template(target=base, max_size=size, *args, **kwargs)
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     return f(*args, **kwargs)
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 241, in fetch_func_sync
2016-04-19 22:46:05.730 2747 ERROR nova.compute.manager [instance: 65bf98e0-a199-4493-82bb-3fee877d6ce7]     fetch_func(target=target, *args, **kwargs)
2016-04-19 22:46:05.730 2747 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-19 17:25:43 -0600

Kevin gravatar image

Seems like setting show_image_direct_url to True is the only way to solve this. As I am only using ceph as my storage backend, this seems to be safe regarding image-urls.

https://bugzilla.redhat.com/show_bug....

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

Stats

Asked: 2016-04-19 15:55:40 -0600

Seen: 720 times

Last updated: Apr 19 '16