Ask Your Question
0

cinder migrate fails when migrating attached volumes

asked 2016-09-17 10:56:28 -0500

daubler gravatar image

updated 2016-09-18 12:28:11 -0500

Hi,

to use a new storage-system I built up a new cinder host. cinder migrate works fine for volumes, that are not attached. Migrate fails for all attached volumes with the following errors in /var/log/cinder/volume.log

on the from-host:

2016-09-17 17:08:54.186 3883 ERROR cinder.volume.manager [req-fcfe9e0b-d700-4b7b-9621-90f61e146121 bddd3d7a04a04901a68f5a48fd4101e3 8833d0fbf1ca41b6b49b05d2b2800aa6 - - -] Failed to copy volume c7ebbf82-5a17-4d3b-86fe-b7448aacaf5e to f624b164-7098-4389-832b-c7b8ce539315
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher [req-fcfe9e0b-d700-4b7b-9621-90f61e146121 bddd3d7a04a04901a68f5a48fd4101e3 8833d0fbf1ca41b6b49b05d2b2800aa6 - - -] Exception during message handling: 
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     executor_callback))
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     executor_callback)
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1836, in migrate_volumeenter code here
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     new_type_id)
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1656, in _migrate_volume_generic
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     new_volume['id'])
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1650, in _migrate_volume_generic
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     new_volume['id'])
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/compute/nova.py", line 173, in update_server_volume
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     novaclient(context).volumes.update_server_volume(server_id,
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/compute/nova.py", line 137, in novaclient
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     **region_filter)
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py", line 84, in url_for
2016-09-17 17:08:54.367 3883 ERROR oslo_messaging.rpc.dispatcher     raise novaclient.exceptions.EndpointNotFound ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-09-24 04:00:52 -0500

daubler gravatar image

I found out, that I have to provide nova_endpoint_template and nova_endpoint_admin_template in cinder.conf on the cinder-hosts.

After implementing this, I found out, that the qemu-kvm-inary shipped with CentOS7 is not able to handle live-migration. I added the CentOS Special Interest Virtualization Repository and was able to upgrade qemu-kvm to qemu-kvm-ev.

No success, now I ran into this: https://bugs.launchpad.net/nova/+bug/...

I would be very happy, if somebody, with deeper knowledge, could confirm that my conclusion

cinder migrate on attached volumes simply doesn't work on CentOS7/liberty

is right.

atb rb

edit flag offensive delete link more
0

answered 2016-09-24 04:22:53 -0500

Ajaycs gravatar image

please check link text

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: 2016-09-17 10:56:28 -0500

Seen: 553 times

Last updated: Sep 24 '16