Bug 1389446

Summary: [beta1] Openstack attach volume should only list available volumes in the drop down
Product: Red Hat CloudForms Management Engine Reporter: Kevin Morey <kmorey>
Component: ProvidersAssignee: Sam Lucidi <slucidi>
Status: CLOSED CURRENTRELEASE QA Contact: Omri Hochman <ohochman>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: cpelland, dajohnso, dclarizi, jfrey, jhajyahy, jhardy, kmorey, nstephan, obarenbo, rrasouli, slucidi, tzumainn
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0   
Hardware: All   
OS: All   
Whiteboard: openstack:volume
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1413695 (view as bug list) Environment:
Last Closed: 2017-06-12 16:36:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1413695    
Attachments:
Description Flags
screenshot none

Description Kevin Morey 2016-10-27 15:20:13 UTC
Created attachment 1214655 [details]
screenshot

Description of problem:
When trying to attach an Openstack volume using CF. The drop down list of available volumes should automatically exclude unavailable volumes. This will help customers avoid the pitfalls of accidentally selecting a volume that cannot be mounted.


Version-Release number of selected component (if applicable):
5.7.0.7-beta1.20161025153249_9376fbd 

How reproducible:
100%


Steps to Reproduce:
1. navigate to an openstack vm
2. click on attach volume


Actual results:
you are presented with a list of volumes (some of them are available and some of them are not)

Expected results:
The drop down should automatically exclude volumes that it cannot mount

Additional info:

Unable to attach Cloud Volume "docker-vg" to gluster2: Invalid volume: status must be 'available'

Comment 2 Sam Lucidi 2016-12-12 21:01:37 UTC
I've written a patch to address this by hiding unavailable volumes on the form and disabling the button to enter the form no volumes are available at all. See here: https://github.com/ManageIQ/manageiq/pull/13126

Comment 3 Dave Johnson 2017-01-10 20:51:57 UTC
Ronnie can you please retest this and see if this is still an issue.

Comment 6 Ronnie Rasouli 2017-03-19 11:44:38 UTC
verified on 5.8.0.6