Reason for Volume creation failures is not displayed

Bug #1244831 reported by Lin Hua Cheng
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
sandeep mane
OpenStack Dashboard (Horizon)
Invalid
Undecided
Cindy Lu

Bug Description

When creating a Volume from Volume Snaphot, a Volume Size larger than the snaphot was specified.

Error displays "unable to create volume." , it would be helpful if the exception message is included in the message. This way, the user can adjust the volume sizeto match the snapshot and fix the error.

Revision history for this message
chenhaiq (chenhaiq) wrote :

It is because cinder api does not provide error message

Changed in horizon:
status: New → Confirmed
Cindy Lu (clu-m)
Changed in horizon:
assignee: nobody → Cindy Lu (clu-m)
Revision history for this message
Julie Pichon (jpichon) wrote :

As chenhaiq noted, the cinder creation API call is asynchronous and we don't get an error message back if something goes wrong. There's a blueprint about it on the Cinder side but it's a bit vague and doesn't seem to have generated much interest so far.

https://blueprints.launchpad.net/cinder/+spec/return-error-messages-to-horizon

Revision history for this message
Cindy Lu (clu-m) wrote :

Hi Julie,

We can do a front-end check between the volume size and the snapshot size and show an error message. That was what I was thinking.

And there were also a blueprint on the Horizon side for showing more useful error messages - I don't think it's made much progress either.

Revision history for this message
sandeep mane (sandeep-mane) wrote :

hi,

I have executed cinder CLI commands to verify this error [using master branch code]
I found, we can create volume with bigger size from volume snapshot, here volume size larger than the snapshot was specified.
it never show any error message on console, its shows available status

can you please provide us more detail on this?

Regards,
Sandeep.

Changed in cinder:
status: New → Incomplete
assignee: nobody → sandeep mane (sandeep-mane)
Revision history for this message
John Griffith (john-griffith) wrote :

Cinder introduced extend capability a while back, so you can in fact create from source or snapshot a volume that's "larger" than the original. You just can't go the other way.

Extend is easy because you don't have to worry about eating somebody's file system etc. So in the case you describe, we do the create, copy the data and then do an extend.

Revision history for this message
sandeep mane (sandeep-mane) wrote :

Hi,

Any updates here

--sandeep

Changed in cinder:
status: Incomplete → Invalid
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

This error is not reproducible, which matches John Griffith's explanation that cinder now supports creating a volume whose size is greater than the snapshot. The broader issue of enabling the display of cinder messages should be dealt with in a blueprint.

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.