Comment 5 for bug 1665555

Revision history for this message
jiamin (shljia) wrote :

Hi all,

let me add Scenario 3, when I add a volume which has been in the group again, the error message is not so obvious to me.

$ cinder group-update --add-volumes 35bbdd05-d72c-43c8-89ad-3fed608fc333 13f31c7f-ed5b-42c8- ac2c-6275cea46b5b
ERROR: Invalid Group: Cannot update group 13f31c7f-ed5b-42c8-ac2c-6275cea46b5b because no valid name, description, add_volumes, or remove_volumes were provided. (HTTP 400) (Request-ID: req-9560b4d1-e444-4714-b11e-6becc13af1f1)

is it better to show something like this, or just do nothing and return success?

$ cinder group-update --add-volumes 35bbdd05-d72c-43c8-89ad-3fed608fc333 13f31c7f-ed5b-42c8-ac2c-6275cea46b5b
ERROR: Invalid Group: Cannot add volume 35bbdd05-d72c-43c8-89ad-3fed608fc333 to group 13f31c7f-ed5b-42c8-ac2c-6275cea46b5b because it is already in group 13f31c7f-ed5b-42c8-ac2c-6275cea46b5b. (HTTP 400) (Request-ID: req-9560b4d1-e444-4714-b11e-6becc13af1f1)