Cinderclient should be more informative when trying to create volume of different type out of a snapshot

Bug #1405422 reported by Rushi Agrawal
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned
python-cinderclient
Fix Released
Undecided
Unassigned

Bug Description

When one tries to create a volume of type type2, out of a snapshot which is a snapshot of a volume of type type1, the CLI output is just "ERROR: Bad Request (HTTP 400) (Request-ID: req-<UUID>)". We should be more verbose about the error. In fact, we're more descriptive in the API call. The API response message says:

Invalid input recieved: Invalid volume_type provided (request type must match source snapshot, or be omitted). You should omit the argument.

The simple fix will be to just output this message while using the CLI

Mike Perez (thingee)
Changed in python-cinderclient:
status: New → Confirmed
Revision history for this message
John Griffith (john-griffith) wrote :

Better fix would be to just go back to the way we used to do this and allow specifying a different type IMHO :)

Revision history for this message
Duncan Thomas (duncan-thomas) wrote :

By 'allow' you mean 'behave randomly depending on which backend(s) you've configured'? I don't think that would be an improvement...

Vincent Hou (houshengbo)
Changed in cinder:
assignee: nobody → Vincent Hou (houshengbo)
Changed in python-cinderclient:
assignee: nobody → Vincent Hou (houshengbo)
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Automatically unassigning due to inactivity.

Changed in cinder:
assignee: Vincent Hou (houshengbo) → nobody
Revision history for this message
Mitsuhiro Tanino (mitsuhiro-tanino) wrote :

This was already fixed via:

https://review.openstack.org/#/c/166351/

Changed in python-cinderclient:
assignee: Vincent Hou (houshengbo) → nobody
Changed in cinder:
status: New → Invalid
Changed in python-cinderclient:
status: Confirmed → Fix Released
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.