Booting encrypted volume with whole image fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Dane Fichter |
Bug Description
When booting from an encrypted volume created from a whole image (i.e. not a three-part image), Nova reports that the instance has booted successfully. However, simply examining the console or attempting to ssh into the instance reveals that it failed to boot.
Expected Behavior:
1. We should be able to boot from an encrypted volume containing a whole part image.
2. If booting from this volume fails, Nova should throw an error and alert the end user.
Actual Behavior:
1. Instance does not successfully boot from volume.
2. Nova provides no indication that booting has failed.
How to Reproduce behavior:
1. Download a whole image (I'm using cirros-
2. Add the image to Glance using the CLI:
glance image-create --name='cirros' --container-
3. Log into Horizon as an admin and create an encrypted volume type through the UI. The encrypted volume type I've been using has the following attributes:
Provider = nova.volume.
Control Location = front-end
Cipher = aes-xts-plain64
Key Size: = 512
4. Log into Horizon as demo and use the UI to create a volume of the encrypted type from the whole image. Ensure that the volume is larger than the image.
5. Use the Horizon UI to boot an instance from the encrypted volume. Be sure to select a flavor with greater disk space than the size of the image (I use m1.tiny).
You should observe that, although there are no errors presented to the end user, the instance clearly does not boot. Additionally, be way of a control, you can repeat these steps without creating an encrypted volume type and observe that the instance boots successfully.
description: | updated |
tags: | added: crypto volumes |
Changed in nova: | |
assignee: | nobody → Dane Fichter (dane-fichter) |
@Dane Fichter (dane-fichter):
Since you are set as assignee, I switch the status to "In Progress".