VM with encrypted volume goes to error state when hard reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Lee Yarwood |
Bug Description
In current master branch with LVM as backend:
Steps to reproduce
==================
1. cinder type-create LUKS
2. cinder encryption-
3. cinder create --volume-type LUKS 1
4. nova boot --flavor 1 --image 3feb30f7-
5. nova volume-attach c2ee07df-
6. nova reboot --hard c2ee07df-
Actual result
=============
The VM goes into error state.
2016-06-29 16:05:11.925 TRACE oslo_messaging.
2016-06-29 16:05:11.925 TRACE oslo_messaging.
....
2016-06-29 16:05:11.925 TRACE oslo_messaging.
2016-06-29 16:05:11.925 TRACE oslo_messaging.
2016-06-29 16:05:11.925 TRACE oslo_messaging.
2016-06-29 16:05:11.925 TRACE oslo_messaging.
2016-06-29 16:05:11.925 TRACE oslo_messaging.
2016-06-29 16:05:11.925 TRACE oslo_messaging.
2016-06-29 16:05:11.925 TRACE oslo_messaging.
Analysis:
When attaching the encrypted volume to the VM, it finally makes the symlink path point to the dm device.
When reboot, there is no unattach dm device. May problem is here. Need to investigate more.
-HP-Compaq-
lrwxrwxrwx 1 root root 7 Jun 29 16:05 /dev/mapper/
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Lisa Li (lisali) → Manish (deolalkar-manish) |
Changed in nova: | |
assignee: | Lisa Li (lisali) → Paul Carlton (paul-carlton2) |
Changed in nova: | |
assignee: | Lee Yarwood (lyarwood) → Paul Carlton (paul-carlton2) |
Changed in nova: | |
assignee: | Paul Carlton (paul-carlton2) → Lee Yarwood (lyarwood) |
Changed in nova: | |
assignee: | Lee Yarwood (lyarwood) → Guang Yee (guang-yee) |
Changed in nova: | |
assignee: | Guang Yee (guang-yee) → Lee Yarwood (lyarwood) |
Nova needs to detach dmcrypt devices when powering off/stoping, and re-attach dmcrypt device when starting.