Multiple attempts to swap volumes using volume-update fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Lee Yarwood | ||
Newton |
Fix Committed
|
Medium
|
Lee Yarwood | ||
Ocata |
Fix Committed
|
Medium
|
Lee Yarwood |
Bug Description
Description
===========
The second and any future attempts to swap volumes using volume-update fail due to a BDM lookup failure using the original volume id (see Logs & Configs for an example).
A previous attempt to fix this was made in bug#1490236 and reverted by bug#1625660.
Steps to reproduce
==================
- Boot an instance
- Create multiple volumes
- Attach a single volume
- Swap the attached volume with one that is unattached via nova volume-update.
- Swap the attached volume with one that is unattached via nova volume-update.
Expected result
===============
The second attempt succeeds and the new volume is now attached to the instance.
Actual result
=============
The second attempt fails looking up a BDM with the ID of the original volume.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
$ pwd
/opt/stack/nova
$ git rev-parse HEAD
dae6b760b9c4
2. Which hypervisor did you use?
(For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
What's the version of that?
Libvirt + KVM
2. Which storage type did you use?
(For example: Ceph, LVM, GPFS, ...)
What's the version of that?
LVM/iSCSI
3. Which networking type did you use?
(For example: nova-network, Neutron with OpenVSwitch, ...)
n/a
Logs & Configs
==============
$ nova boot --image cirros-
$ cinder create 1 ; cinder create 1
$ nova volume-attach ef426f1e-
$ nova volume-update ef426f1e-
$ nova volume-update ef426f1e-
n-cpu.log :
4448 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4449 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4450 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4451 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4452 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4453 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4454 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4455 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4456 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4457 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4458 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4459 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4460 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4461 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4462 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4463 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4464 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4465 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4466 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4467 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4468 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4469 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4470 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4471 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4472 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4473 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4474 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4475 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4476 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4477 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4478 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4479 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4480 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4481 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4482 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4483 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4484 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4485 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4486 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4487 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4488 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4489 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4490 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4491 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4492 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4493 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4494 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4495 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4496 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4497 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4498 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4499 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4500 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4501 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4502 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4503 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4504 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4505 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4506 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4507 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4508 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4509 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4510 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4511 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4512 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4513 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4514 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4515 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4516 2017-02-01 07:35:04.931 TRACE oslo_messaging.
4517 2017-02-01 07:35:04.931 TRACE oslo_messaging.
Changed in nova: | |
assignee: | nobody → Lee Yarwood (lyarwood) |
status: | New → In Progress |
Changed in nova: | |
assignee: | Lee Yarwood (lyarwood) → Matthew Booth (mbooth-9) |
Changed in nova: | |
assignee: | Matthew Booth (mbooth-9) → Lee Yarwood (lyarwood) |
tags: | added: libvirt swap-volume volumes |
Changed in nova: | |
importance: | Undecided → Medium |
https:/ /review. openstack. org/#/c/ 427364/