Bug 1365387

Summary: Multiple Errors when deleting cloud volumes
Product: Red Hat CloudForms Management Engine Reporter: Aziza Karol <akarol>
Component: UI - OPSAssignee: Tzu-Mainn Chen <tzumainn>
Status: CLOSED WONTFIX QA Contact: Ola Pavlenko <opavlenk>
Severity: medium Docs Contact:
Priority: high    
Version: 5.6.0CC: hkataria, jhardy, mpovolny, obarenbo
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provider:cloud:volume:openstack
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-21 13:02:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Attachments:
Description Flags
cloud volumes
none
volume with snapshot
none
volume with creating status
none
volume with error deleting status none

Description Aziza Karol 2016-08-09 07:01:27 UTC
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:

Comment 2 Aziza Karol 2016-08-09 07:15:35 UTC
Created attachment 1189068 [details]
volume with snapshot

Comment 3 Aziza Karol 2016-08-09 07:16:23 UTC
Created attachment 1189071 [details]
volume with creating status

Comment 4 Aziza Karol 2016-08-09 07:17:59 UTC
Created attachment 1189072 [details]
volume with error deleting status

Comment 7 Chris Pelland 2017-08-21 13:02:13 UTC
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.