Ask Your Question
0

Migration attached volume between cinder pools

asked 2016-08-31 15:12:06 -0600

Panasonic1 gravatar image

Hello!

Migration unattached volumes between cinder pools works well. Trying to migrate attached volume between cinder pools and getting this problem:

2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager [req-7be4cfc3-2cc0-4f5d-870b-fba5e2e9f123 baf75e27adb5440c835e48947cf67920 e736edfea898467ca4b1066bdd422349 - - -] Failed to copy volume 38603c8c-4f23-4332-bb8a-30b2ad5e4245 to ae4bcc42-1b9d-4b55-9ae9-ba65b61adb35
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager Traceback (most recent call last):
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1783, in _migrate_volume_generic
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager     new_volume.id)
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/compute/nova.py", line 169, in update_server_volume
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager     novaclient(context).volumes.update_server_volume(server_id,
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/compute/nova.py", line 133, in novaclient
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager     **region_filter)
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py", line 84, in url_for
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager     raise novaclient.exceptions.EndpointNotFound()
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager EndpointNotFound
2016-08-31 15:51:50.974 12435 ERROR cinder.volume.manager
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher [req-7be4cfc3-2cc0-4f5d-870b-fba5e2e9f123 baf75e27adb5440c835e48947cf67920 e736edfea898467ca4b1066bdd422349 - - -] Exception during message handling:
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher     incoming.message))
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _dispatch
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1982, in migrate_volume
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher     volume.save()
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher     self.force_reraise()
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2016-08-31 15:51:51.063 12435 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder ...
(more)
edit retag flag offensive close merge delete

Comments

Have you checked if "attached" volume migration in cinder is still supported yet?

sunnyarora gravatar imagesunnyarora ( 2016-09-01 07:17:03 -0600 )edit

No-one has answered this, I am having the same problem. Within the year since asking, have you solved the problem?

woltjert gravatar imagewoltjert ( 2017-12-06 16:05:00 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2016-09-22 02:54:56 -0600

Ajaycs gravatar image

Few things needs to set:

1) file -> /etc/nova/nova.conf (controller & compute1, compute2) live_migration_flag=VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE

2) file -> /etc/sysconfig/libvirtd on compute1, compute2 LIBVIRTD_ARGS=”–listen”

3) file -> /etc/libvirt/libvirtd.conf listen_tls = 0 listen_tcp = 1 listen_addr = "0.0.0.0"

4) netstat -lntp | grep libvirtd

[root@controller ~]# . demo-openrc [root@controller ~]# nova live-migration 12 compute2 ERROR (Forbidden): Policy doesn't allow os_compute_api:os-migrate-server:migrate _live to be performed. (HTTP 403) (Request-ID: req-e7e57b87-cad1-4e4c-9eb3-d76e8 5651b67)

[root@controller ~]# openstack server list +--------------------------------------+----------------------------+---------+---------------------------------+ | ID | Name | Status | Networks | +--------------------------------------+----------------------------+---------+---------------------------------+ | 7decbd6a-b23f-4e04-a96e-20fdca2d62c6 | 12 | ACTIVE | selfservice=10.0.0.53 | | 2f93159c-48db-4506-8318-b4989741dde6 | Share | SHUTOFF | selfservice=10.0.0.9, 10.0.2.32 | | 85e292e7-6d68-4daa-87d2-81a3a711c2cd | stack2-server-eudnfu7jiekf | SHUTOFF | selfservice=10.0.0.8 | +--------------------------------------+----------------------------+---------+---------------------------------+ [root@controller ~]# . admin-openrc [root@controller ~]# nova live-migration 7decbd6a-b23f-4e04-a96e-20fdca2d62c6 compute2 [root@controller ~]# nova live-migration 7decbd6a-b23f-4e04-a96e-20fdca2d62c6 compute1

Note - source admin-openrc before migration.

edit flag offensive delete link more

Comments

He is doing a cinder migration, not a nova live migration. 2 different things.

walter-boring gravatar imagewalter-boring ( 2017-11-28 16:04:15 -0600 )edit

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

2 followers

Stats

Asked: 2016-08-31 15:12:06 -0600

Seen: 505 times

Last updated: Aug 31 '16