Bug 1334275

Summary: UI: Instance Attach/Detach/Reconfigure broken in cloud providers
Product: Red Hat CloudForms Management Engine Reporter: Niyaz Akhtar Ansari <nansari>
Component: UI - OPSAssignee: Sam Lucidi <slucidi>
Status: CLOSED ERRATA QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, dajohnso, hkataria, jfrey, jhardy, mpovolny, obarenbo, rananda, rrasouli, simaishi, tzumainn
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: vm:ui:configuration
Fixed In Version: 5.6.0.11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 16:00:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1334238    
Attachments:
Description Flags
screenshot none

Description Niyaz Akhtar Ansari 2016-05-09 10:31:11 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Version 5.6.0.5-beta2.4.20160503153816_1fb554f


How reproducible:
100%

Steps to Reproduce:
1.Compute->Cloud->Providers->Click on any provider
2.Click on instances in summary view page
3.choose any instance
4.Navigate to Configuration Tab-->click on Attach/Detach/Reconfigure Selected Instances 

Actual results:
Spinner just rotates and no form is displayed.

Expected results:
Attach/Detach/Reconfigure Form should display for selected instance. 

Additional info:

Comment 1 Ramesh A 2016-05-09 11:46:24 UTC
More info:
==========
1. Spinner rotates and stops, but UI does not navigate to the next page. Neither production.log file nor evm.log file throws any error as such.
2. Same thing happens even with Lifecycle ==> Migrate selected Instance

Comment 2 Ramesh A 2016-05-09 12:07:27 UTC
This was tested by adding RHOS provider.  If these features are not supported on RHOS provider, then the links to these features needs to be disabled.  

PS:
==
Did not see the Attach/Detach option in the Instance summary screen, while Reconfigure option exists.

Comment 3 Harpreet Kataria 2016-05-09 16:28:24 UTC
Sam,

Can you take a look at this one, i am not able to recreate an issue when i press Attach button, Reconfigure button is unavailable for the instances in my database, however i do see some JS errors in firebug when i press Detach button. Seems to be introduced by commit 36968857d9a8150bf8ce2da632543854eeb794ad. Let me know if you have questions.

Thanks,
~Harpreet

Comment 4 Sam Lucidi 2016-05-09 19:27:30 UTC
Checking it out.

Comment 7 Sam Lucidi 2016-05-23 13:10:17 UTC
Fixed by the following two pull requests which were merged into master.
Attach/detach: https://github.com/ManageIQ/manageiq/pull/8670
Reconfigure: https://github.com/ManageIQ/manageiq/pull/8671

Comment 8 Niyaz Akhtar Ansari 2016-05-26 07:17:35 UTC
Created attachment 1161759 [details]
screenshot

Instance Attach/Detach/Reconfigure issues has been fixed in latest build 
but bug is still reproducible when you click on Migrate selected Instance/Evacuate selected Instance.

Version: 5.6.0.8-rc1.20160524155303_f2a5a50

Steps to Reproduce:
1.Compute->Cloud->Providers->Click on any provider
2.Click on instances in summary view page
3.choose any instance
4.Navigate to  Lifecycle Tab-->click on Migrate selected Instance/Evacuate selected Instance.

Comment 9 Jason Frey 2016-06-03 18:38:08 UTC
https://github.com/ManageIQ/manageiq/pull/9115  Sam, are you expecting this PR to fix this bug for good?  The PR itself says it's a "partial fix", which is why I'm asking.

Comment 10 Sam Lucidi 2016-06-03 18:47:59 UTC
Hey Jason, no, that PR is not a full fix for the issue, but it is a fix for one instance of the larger problem. Once I get feedback on my approach, I'll be applying it widely to fix this problem and the related problem in https://bugzilla.redhat.com/show_bug.cgi?id=1339198 permanently.

Comment 11 Tzu-Mainn Chen 2016-06-14 00:39:00 UTC
fixed by slucidi in https://github.com/ManageIQ/manageiq/pull/9161

Comment 12 Niyaz Akhtar Ansari 2016-06-16 05:36:09 UTC
Attach/Detach options are disabled in the Instance summary screen.
The issues has been fixed.

Verified in 5.6.0.11-rc2.2.20160614152915_f315c68

Comment 13 Tzu-Mainn Chen 2016-06-16 14:52:47 UTC
*** Bug 1343819 has been marked as a duplicate of this bug. ***

Comment 15 errata-xmlrpc 2016-06-29 16:00:34 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/RHBA-2016:1348