Bug 1517712

Summary: Storage Volume Attach give Unexpected Error
Product: Red Hat CloudForms Management Engine Reporter: Nikhil Dhandre <ndhandre>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED ERRATA QA Contact: Nikhil Dhandre <ndhandre>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: akarol, dclarizi, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.7.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.7.4.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-18 20:31:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Unexpected error none

Description Nikhil Dhandre 2017-11-27 09:51:18 UTC
Created attachment 1359402 [details]
Unexpected error

Description of problem:
----------------------
while attaching volume with an instance UI gives an unexpected error. 

Version-Release number of selected component (if applicable):
------------------------------------------------------------
Version 5.7.4.1.20171114202358_de8178a


How reproducible:
-----------------
always


Steps to Reproduce:
1. Create one volume
2. Refresh Storage Provider
3. Now try to attached volume to any available instance

Actual results:
---------------
undefined method `available_vms' for #<ManageIQ::Providers::Openstack::CloudManager::CloudVolume:0x0000001816b530> Did you mean? availability_zone= [cloud_volume/attach]

Expected results:
-----------------
It should attach

Additional info:
---------------
tested against rhos7-ga

1. Production log: http://pastebin.test.redhat.com/535233
2. Find snapshot in Attachment

Comment 4 Harpreet Kataria 2017-11-28 19:03:59 UTC
https://github.com/ManageIQ/manageiq/pull/16540

Comment 5 CFME Bot 2017-11-29 19:35:54 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/6d8e6d5bb8bf82f428fcb5d47e0d838f602d3349

commit 6d8e6d5bb8bf82f428fcb5d47e0d838f602d3349
Author:     Harpreet Kataria <hkataria>
AuthorDate: Tue Nov 28 13:58:23 2017 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Tue Nov 28 13:58:23 2017 -0500

    Reverted a change that was accidentally backported
    
    this line was accidentally backported to EUWE in https://github.com/ManageIQ/manageiq/pull/15310 commit e066db4c6a9c89ee9270691d6e93aafae422b687
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1517712

 app/controllers/cloud_volume_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 9 errata-xmlrpc 2017-12-18 20:31:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:3484