detach multiattach volume disconnects innocent bystander
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
John Griffith | ||
Queens |
Fix Committed
|
High
|
Matt Riedemann |
Bug Description
Detaching a multi-attached lvm volume from one server, causes the other server to lose connectivity to the volume. I found this while developing a new tempest test to test this scenario.
- create 2 instances on the same host, both simple instances with ephemeral disks
- create a multi-attach lvm volume, attach to both instances
- check that you can re-read the partition table from inside each instance (via ssh):
$ sudo blockdev --rereadpt /dev/vdb
This succeeds on both instances (no output or err message is returned).
- detach the volume from one of the instances
- recheck connectivity. The expected result is that the command will now fail in the instance where
the volume was detached. But it also fails on the instance where the volume is still supposedly
attached:
$ sudo blockdev --rereadpt /dev/vdb
BLKRRPART: Input/output error
cinder & nova still think that the volume is attached correctly:
$ cinder show 2cf26a15-
| attachment_ids | ['f5876aff-
$ nova show vm1 | grep attached
| os-extended-
cinder version:
:/opt/stack/cinder$ git show
commit 015b1053990f00d
Merge: 856e636 481535e
Author: Zuul <email address hidden>
Date: Thu Feb 22 14:00:17 2018 +0000
Changed in cinder: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → John Griffith (john-griffith) |
Changed in nova: | |
importance: | Undecided → High |
tags: | added: multiattach volumes |
Changed in nova: | |
assignee: | John Griffith (john-griffith) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → John Griffith (john-griffith) |
Changed in nova: | |
assignee: | John Griffith (john-griffith) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → John Griffith (john-griffith) |
This is the tempest test wip - https:/ /review. openstack. org/#/c/ 548356