volume creation should provide some validation before 'Error' status

Bug #1341038 reported by Cindy Lu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Medium
Santiago Baldassin

Bug Description

Since Cinder doesn't return any error messages for Create Volume, Horizon just shows the blue "info" message (Info: Creating volume <volume name>). The volume may fall into Error state.

Scenario:
1. Go to 'Create Volume' form
2. For 'Volume Source', select an image
3. You will notice 'Size' field is automatically populated
4. Change 'Size' field to something smaller
5. Press 'Create'
6. It will show blue tooltip, then fail without any explanation

To understand the issue, you need check into volume.log to get something like: ' ImageUnacceptable: CN-2B1EAC4 Image 725d646b-c030-4c1c-a843-66565a01d571 is unacceptable: CN-07AA282 Size is 20GB and doesn't fit in a volume of size 7GB.'

If Horizon could provide some preliminary checks that would be better (e.g like what we do elsewhere)

Changed in horizon:
assignee: nobody → Santiago Baldassin (santiago-b-baldassin)
Revision history for this message
Justin Pomeroy (jpomero) wrote :

Hi Santiago. Any update on this?

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Currently, the size field is automatically populated with the value '1', which will nearly always be too small to contain the chosen image.

Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Kamil Rykowski (kamil-rykowski) wrote :

Image data:
Size: 1.9GB
Minimum disk size: 0

When we try to create new volume which size is lower than image size it shows error as shown in the attachment image. Described issue seems out-dated.

Revision history for this message
Kamil Rykowski (kamil-rykowski) wrote :

Image data:
Size: 1.9GB
Minimum disk size: 300 GB

When we try to create new volume which size is lower than minimum disk size it shows error as shown in the attachment image. Described issue seems out-dated.

Changed in horizon:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.