Ask Your Question
1

nova block migration fail - ImageNotFound

asked 2013-07-29 08:57:59 -0500

davwalker gravatar image

updated 2013-07-29 17:03:59 -0500

smaffulli gravatar image

Hi,

I am trying to migrate 1 vm from one compute node to another using block migration. I have followed all the setup instructions for this however when i come to start the migration i get the following error in the nova-compute log:

nova live-migration --block_migrate fa67c9d4-1092-472e-9f88-873c06ed43a6 server01

Error:

2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp ImageNotFound: Image dbc3a434-5acf-4a4a-b0a7-4e7ecedfe2dc could not be found.

The id above is available to glance and i can create new vm's without any problems using this image

glance image-list
+--------------------------------------+----------------------+-------------+------------------+------------+--------+
| ID                                   | Name                 | Disk Format | Container Format | Size       | Status |
+--------------------------------------+----------------------+-------------+------------------+------------+--------+
| 8905c7b0-7550-4f38-b16e-d3a70f49651e | kernel               | aki         | aki              | 4119328    | active |
| dbc3a434-5acf-4a4a-b0a7-4e7ecedfe2dc | Ubuntu 12.04.2 amd64 | qcow2       | bare             | 252051456  | active |

Im running Grizzly from the ubuntu cloud repo.

Any help with this would be great.

Full trace back below:

2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 3129, in pre_live_migration
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp     self.driver.pre_block_migration(context, instance, disk)
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3223, in pre_block_migration
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp     self._create_images_and_backing(ctxt, instance, disk_info_json)
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3261, in _create_images_and_backing
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp     size=info['virt_disk_size'])
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 158, in cache
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp     *args, **kwargs)
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 258, in create_image
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp     prepare_template(target=base, *args, **kwargs)
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 228, in inner
2013-07-29 14:32:49.096 11506 TRACE nova.openstack.common.rpc.amqp     retval = f ...
(more)
edit retag flag offensive close merge delete

Comments

Same issue here

WcMinor gravatar imageWcMinor ( 2013-07-31 10:19:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-02 08:16:50 -0500

davwalker gravatar image

Update,

Looking at the following bug report this seems to fall into the situation i am in:

https://lists.launchpad.net/yahoo-eng-team/msg03800.html

https://bugs.launchpad.net/nova/+bug/1185588

However after applying the diff from the link below: i now get a new error:

https://github.com/openstack/nova/commit/cf3cf3c8e5137e775eec9939e88aa1df339ba1bf

AttributeError: 'module' object has no attribute 'synchronized'

Full Trace:

2013-07-31 17:13:20.830 ERROR nova.compute.manager [req-97ce5f07-65f5-476e-ab30-e549c31edd01 743f937c6e2c484ca4713a593220934c b3367689728341f987c7883b410cc098] [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6] Pre live migration failed at  ops-hypervisor1.ldc1
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6] Traceback (most recent call last):
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 3149, in live_migration
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]     block_migration, disk, dest, migrate_data)
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]   File "/usr/lib/python2.7/dist-packages/nova/compute/rpcapi.py", line 408, in pre_live_migration
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]     version='2.21')
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/proxy.py", line 80, in call
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]     return rpc.call(context, self._get_topic(topic), msg, timeout)
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py", line 140, in call
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]     return _get_impl().call(CONF, context, topic, msg, timeout)
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/impl_kombu.py", line 798, in call
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]     rpc_amqp.get_connection_pool(conf, Connection))
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 612, in call
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]     rv = list(rv)
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 561, in __iter__
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]     raise result
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6] AttributeError: 'module' object has no attribute 'synchronized'
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6] Traceback (most recent call last):
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6] 
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data
2013-07-31 17:13:20.830 15304 TRACE nova.compute.manager [instance: fa67c9d4-1092-472e-9f88-873c06ed43a6]     rval = self.proxy ...
(more)
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: 2013-07-29 08:57:59 -0500

Seen: 576 times

Last updated: Aug 02 '13