Attach/Detach encrypted volume problems with real paths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Gorka Eguileor | ||
OpenStack Compute (nova) |
Incomplete
|
Undecided
|
Unassigned | ||
os-brick |
Fix Released
|
High
|
Unassigned |
Bug Description
OS-Brick on 1.14 and 1.15 returns real paths instead of returning symbolic links, which results in the encryption attach_volume call replacing the real device with a link to the crypt dm.
The issue comes from the Nova flow when attaching an encrypted volume:
1- Attach volume
2- Generate libvirt configuration with path from step 1
3- Encrypt attach volume
Since step 2 has already generated the config with the path from step 1 then step 3 must preserve this path.
When step 1 returns a symbolic link we just forcefully replace it with a link to the crypt dm and everything is OK, but when we return a real path it does the same thing, which means we'll be replacing for example /dev/sda with a symlink, which will then break the detach process, and all future attachments.
If flow order was changed to be 1, 3, 2 then the encrypt attach volume could give a different path to be used for the libvirt config generation.
description: | updated |
Changed in os-brick: | |
importance: | Undecided → High |
Changed in os-brick: | |
status: | New → Fix Released |
Changed in cinder: | |
assignee: | nobody → Gorka Eguileor (gorka) |
Related fix proposed to branch: master /review. openstack. org/483068
Review: https:/