Bug 1383263

Summary: Azure orchestration stacks displayed when clicked on rhos under cloud orchestration stacks
Product: Red Hat CloudForms Management Engine Reporter: Aziza Karol <akarol>
Component: UI - OPSAssignee: Scott Seago <sseago>
Status: CLOSED CURRENTRELEASE QA Contact: Satyajit Bulage <sbulage>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: akarol, cpelland, hkataria, jhardy, mpovolny, obarenbo, sbulage, tzumainn
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:stack
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1394842 (view as bug list) Environment:
Last Closed: 2017-06-12 17:06:54 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:
Bug Depends On:    
Bug Blocks: 1394842    
Attachments:
Description Flags
snapshot none

Description Aziza Karol 2016-10-10 10:10:45 UTC
Created attachment 1208789 [details]
snapshot

Description of problem:


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

How reproducible:
100%

Steps to Reproduce:
1.Add cloud azure provider
2.Add Rhos undercloud infra provider
3.Navigate to rhos undercloud summary page and click on orchestration stacks in relationship section
4. From the list click on any stack

Actual results:
When click on any stack,selected Orchestration Stack no longer exists is displayed and also azure stacks get listed. see attached screenshot.

Expected results:
summary of rhos under cloud orchestration stack should be displayed

Additional info:

Comment 2 Harpreet Kataria 2016-10-10 20:55:31 UTC
Milan,

Can you see if you can recreate this one. It looks like from the screenshot that incorrect orchestration stacks are being displayed when clicking link to list of Orchestration Stacks, maybe back-end is not returning back correct records, let me know what you find.

Thanks,
~Harpreet

Comment 3 Milan Zázrivec 2016-10-11 12:08:59 UTC
Is there perhaps an appliance showing this problem? I'm not able to reproduce
this problem locally.

Thanks.

Comment 4 Milan Zázrivec 2016-10-11 12:08:59 UTC
Is there perhaps an appliance showing this problem? I'm not able to reproduce
this problem locally.

Thanks.

Comment 6 Milan Zázrivec 2016-10-12 14:02:26 UTC
This essentially boils down to the fact that the orchestration stack controller
no longer displays infra stacks, just clouds. So the same functionality that
is present under cloud stacks needs to be put under the infra menu.

Comment 7 Tzu-Mainn Chen 2016-10-12 14:06:42 UTC
Milan, can you be more specific?  The OpenStack/ManageIQ team hasn't touched the cloud orchestration stack controller, so I'm not sure that we're the right ones to be making this change.

Comment 8 Milan Zázrivec 2016-10-17 09:12:46 UTC
Right now, OpenStack is the only infra provider, which supports orchestration stacks,
so I assumed the OpenStack/ManageIQ team would be the right one. Was I wrong?

Comment 9 Tzu-Mainn Chen 2016-10-17 12:14:28 UTC
Orchestration stacks also exist under the cloud provider.  I think this BZ specifically refers to the Azure cloud provider orchestration stacks.

Comment 10 Milan Zázrivec 2016-10-17 12:27:31 UTC
The 'azure' in the initial comment is a bit misleading here. You can reproduce the problem
even without having any azure provider in manageiq. All you need is one OpenStack infra
provider with stacks. From the provider summary screen, click on orch. stacks link, from
the list of rendered stacks, click on any stack -> error.

The cloud stacks would render just fine. It's the infra stacks that don't work correctly
(all seemingly because of some recent changes).

If you're not the right team to do this, feel free to assign the bz back to me.

Thanks.

Comment 12 CFME Bot 2016-11-12 00:06:38 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/664acf1bb269e3b4afaaa8fbab79f87aec96dfce

commit 664acf1bb269e3b4afaaa8fbab79f87aec96dfce
Author:     Scott Seago <sseago>
AuthorDate: Thu Nov 10 20:50:52 2016 -0500
Commit:     Scott Seago <sseago>
CommitDate: Fri Nov 11 16:08:17 2016 -0500

    Fix Orchestration Stack UI for infra stacks
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1383263
    
    Prior development work ended up breaking infra stack UI when separating
    Configuration  jobs from Cloud Orchestration Stacks. This is a
    short-term fix which removes the explicit Infra model class limitation
    and filters Configuration jobs out of the show_list operation.
    
    Longer-term, we need to refactor this into separate controllers
    for infra and cloud stacks.

 app/controllers/orchestration_stack_controller.rb  |  8 ++---
 .../orchestration_stack_controller_spec.rb         | 36 ++++++++++++++++++++++
 2 files changed, 39 insertions(+), 5 deletions(-)

Comment 14 Satyajit Bulage 2017-04-19 09:33:13 UTC
Able to see the summary of RHOS under cloud orchestration stack after following mentioned steps. Also not able to see Azure stacks in RHOS under cloud stacks

Verified Version: 5.8.0.10-beta1.20170411212748_e47d319