Cinderclient should be more informative when trying to create volume of different type out of a snapshot
Bug #1405422 reported by
Rushi Agrawal
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
Changed in python-cinderclient: | |
status: | New → Confirmed |
Changed in cinder: | |
assignee: | nobody → Vincent Hou (houshengbo) |
Changed in python-cinderclient: | |
assignee: | nobody → Vincent Hou (houshengbo) |
To post a comment you must log in.
Better fix would be to just go back to the way we used to do this and allow specifying a different type IMHO :)