Created attachment 1189064 [details] cloud volumes Description of problem: Different exceptions thrown when deleting the cloud volume of different status. Version-Release number of selected component (if applicable): 5.6.1.0.20160726144018_810a94f How reproducible: 100% Steps to Reproduce: 1.Deleting the cloud volume with status as available and with snapshot see attached screenshot. Error: Expected(202) <=> Actual(400 Bad Request) excon.error.response :body => "{\"badRequest\": {\"message\": \"Invalid volume: Volume still has 1 dependent snapshots\", \"code\": 400}}" :cookies => [ ] :headers => { "Content-Length" => "98" "Content-Type" => "application/json; charset=UTF-8" "Date" => "Tue, 09 Aug 2016 06:38:12 GMT" "X-Compute-Request-Id" => "req-40096995-9cee-44c5-a0b2-b7b866e576e5" "X-Openstack-Request-Id" => "req-40096995-9cee-44c5-a0b2-b7b866e576e5" } :host => "10.8.58.50" :local_address => "192.168.100.113" :local_port => 57322 :path => "/v2/c76c3882788f4d88ba959904a3f9d243/volumes/c419514c-c3c5-4226-827b-93ce31d6fa3d" :port => 8776 :reason_phrase => "" :remote_ip => "10.8.58.50" :status => 400 :status_line => "HTTP/1.1 400 \r\n" [cloud_volume/button] 2.Deleting a cloud volume when the status is creating. see attached screenshot Error: undefined method `status' for nil:NilClass [cloud_volume/button] 3. Deleting a cloud volume with status error_deleting. see attached screenshot Error: Expected(202) <=> Actual(400 Bad Request) excon.error.response :body => "{\"badRequest\": {\"message\": \"Invalid volume: Volume status must be available or error, but current status is: error_deleting\", \"code\": 400}}" :cookies => [ ] :headers => { "Content-Length" => "139" "Content-Type" => "application/json; charset=UTF-8" "Date" => "Tue, 09 Aug 2016 06:45:15 GMT" "X-Compute-Request-Id" => "req-77626c8b-2c0a-4877-9dfa-9ac3b1e9aba5" "X-Openstack-Request-Id" => "req-77626c8b-2c0a-4877-9dfa-9ac3b1e9aba5" } :host => "10.8.58.50" :local_address => "192.168.100.113" :local_port => 57450 :path => "/v2/c76c3882788f4d88ba959904a3f9d243/volumes/e8b5a563-b6ba-4613-b53d-dbd882330a01" :port => 8776 :reason_phrase => "" :remote_ip => "10.8.58.50" :status => 400 :status_line => "HTTP/1.1 400 \r\n" [cloud_volume/button] Actual results: Expected results: This all errors need to be handled Additional info:
Created attachment 1189068 [details] volume with snapshot
Created attachment 1189071 [details] volume with creating status
Created attachment 1189072 [details] volume with error deleting status
This bug has been open for more than a year and is assigned to an older release of CloudForms. If you would like to keep this Bugzilla open and if the issue is still present in the latest version of the product, please file a new Bugzilla which will be added and assigned to the latest release of CloudForms.