rackspace/rack

snapshot create failing

alexfd opened this issue · 1 comments

rack block-storage snapshot create --volume-id 50f01100-18f8-4d73-b329-5969566731a7
error   Invalid request due to incorrect syntax or missing required parameters.

rack block-storage snapshot create --volume-id 50f01100-18f8-4d73-b329-5969566731a7 --name "fs"
error   Invalid request due to incorrect syntax or missing required parameters.

Also, manpage incorrectly references the subcommand as "snapshots" instead of "snapshot".

After reviewing this error with RS support, the following has been determined:

rack block-storage snapshot create --volume-id 50f01100-18f8-4d73-b329-5969566731a7 --name fs --description fs --log debug
Response Body: {
  "badRequest": {
    "code": 400,
    "message": "Invalid volume: Volume 50f01100-18f8-4d73-b329-5969566731a7 status must be available, but current status is: in-use."
  }
}

--force is needed to run a snapshot while disk is in use, however it is not recognized as a valid parameter.

VERSION:
   rack version 1.2
   commit: 09c14b061f4a115c8f1ff07ae6be96d9b11e08df