Creating a volume from an instance snapshot should validate the volume size / min_disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Julie Pichon | ||
Icehouse |
Fix Released
|
Low
|
Julie Pichon |
Bug Description
This is sort of a follow-up to bug 1241253. When an image is created based on an instance snapshot, even though the same min_disk restrictions apply, they're not reflected properly in the validation and tool tips, resulting in misleading information being shown to the user.
Steps to reproduce:
-------
1. Create an image with a minimum disk size of e.g. 2GB
2. Boot an instance from the image
3. Create a snapshot of the instance (from dashboard or using nova create-image)
4. Back on the images panels, click the "Create volume" button for the new image
5. The prefilled size and size tooltip do not indicate the correct minimum disk size
This seems to be happening because in that case the min_disk attribute is set as a property rather than a direct attribute, looking at Glance:
$ glance image-show <id_of_image>
+------
| Property | Value |
+------
...
| min_disk | 2 |
...
$ glance image-show <id_of_
+------
| Property | Value |
+------
...
| Property 'min_disk' | 2 |
...
| min_disk | 0 |
...
I'm not sure why... Maybe someone from Glance could shed some light on this and whether that's the expected behaviour?
In the meantime it shouldn't be too hard for Horizon to handle the case where min_disk is set as a property.
Changed in horizon: | |
milestone: | none → juno-rc1 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-rc1 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/121023
Review: https:/