Can't block migration for the first time only

asked 2018-06-07 23:34:59 -0500

anonymous user

Anonymous

Hello.

I am running OpenStack Ocata on a 2 node, 1 controller/network/compute node and 1 compute node. I am able to create VMs and use them but the first time of block migration (non-shared storage) always fails. After failing, 「.part」 and 「.converted」 files are created in /var/lib/nova/instances/_base/ of the migration destination.

After the error, the second attempt will succeed. (.part file and .departed file disappear)

The migration of Guest CentOS will fail, but the transition of cirros will succeed the first time.

How do I succeed the first time? I'm a student and let me apologize for my poor English.

[root@Controller ~(keystone_admin)]# ls /var/lib/nova/instances/_base/
52cddf19ae473d573a167265bc2f2f2de7db7a33.converted
52cddf19ae473d573a167265bc2f2f2de7db7a33.part

[root@Compute1 images]# cat /var/log/nova/nova-compute.log|grep ERROR
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [req-846635f8-2181-4f87-aab3-5e884af2a351 a765110a0c7a4dbb8a8beba76461c0a6 09573553ea22442093d2ad9ec201dc09 - - -] [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a] Pre live migration failed at Controller
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a] Traceback (most recent call last):
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5409, in _do_live_migration
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]     block_migration, disk, dest, migrate_data)
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]   File "/usr/lib/python2.7/site-packages/nova/compute/rpcapi.py", line 723, in pre_live_migration
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]     disk=disk, migrate_data=migrate_data)
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]     retry=self.retry)
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]   File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]     timeout=timeout, retry=retry)
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 566, in send
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]     retry=retry)
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 555, in _send
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]     result = self._waiter.wait(msg_id, timeout)
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 447, in wait
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]     message = self.waiters.get(msg_id, timeout=timeout)
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager [instance: 2d336132-d45a-4360-b88d-7053d1e3f56a]   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 335, in get
2018-05-21 12:02:23.154 23069 ERROR nova.compute.manager ...
(more)
edit retag flag offensive close merge delete