Bug 1298262

Summary: [RFE] Openstack provider shows resource groups as heat template stacks
Product: Red Hat CloudForms Management Engine Reporter: Marco Berube <mberube>
Component: UI - OPSAssignee: John Hardy <jhardy>
Status: CLOSED WONTFIX QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5.0CC: bilwei, cbolz, dclarizi, hkataria, jfrey, jhardy, kmorey, lavenel, mberube, mkanoor, mpovolny, nstephan, obarenbo, tfitzger
Target Milestone: GAKeywords: FutureFeature
Target Release: cfme-futureFlags: bilwei: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack:stack
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1302810 (view as bug list) Environment:
Last Closed: 2017-08-28 15:02:58 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:
Bug Depends On:    
Bug Blocks: 1302810    
Attachments:
Description Flags
Cloudforms UI screenshot showing all duplicated stacks none

Description Marco Berube 2016-01-13 15:59:18 UTC
Created attachment 1114441 [details]
Cloudforms UI screenshot showing all duplicated stacks

Description of problem:

I imported a HEAT template under "/services/catalogs/orchestration templates/heat template" and created some catalog items out of it.  My problem is that every time I provision this template, a new template is getting created for each resource group in my template and shows up in the list of templates available.

As an example, I imported a template named "lampstack", after provisioning this template, I see all the following heat templates:

-lamp01
-lamp-db-dj6ndfds2sa
-lamp01-web-2ndfdsjdh3
-lamp01-monitor-lkdjfslfsfs
-lampstack
etc...

* See attached file for more details.   

I see the same thing in "/clouds/stacks/".... all ressource groups provisioned in the past are showing up.


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


How reproducible:

Easy to reproduce.

Steps to Reproduce:
1.  Import a heat template with resource groups
2.  Create a catalog item out of this template
3.  Provision this catalog item.

Actual results:

All resource groups are showing up as new stack heat templates in Cloudforms UI.  Where in openstack, I still only see one stack.


Expected results:

Heat stacks should not get duplicated every time I provision at stack with resource groups.


Additional info:

Comment 3 Greg Blomquist 2016-01-14 15:22:16 UTC
Bill,

can you take a peek at this?  Not sure if this is just how OpenStack works...or if this is really something we should be handling differently.

Comment 6 Bill Wei 2016-01-18 21:00:05 UTC
From OpenStack API, resource groups are listed as resources with type Resource Group under the parent stack. But the actual resource group object is returned as a nested stack of the parent. Our existing code correctly reflects these relationships.

MangeIQ's support for Azure provider already has the concept of resource group. In Azure each stack belongs to a resource group. It is a pity the concept is opposite with OpenStack, where resource groups belong to a stack. So we currently cannot unify two types of resource group in ManageIQ. We will continue to treat resource groups in OpenStack as nested stacks.

However ManageIQ should improve the presentation of stacks. Currently all stacks, root or nested, from all providers are shown in one flat table. A proper presentation should utilize the tree structure, starting from providers, then stacks at root level, and then nested stacks. Existing backend already supports the drill down operations.

Suggest to reassign to UI team for such enhancement.

Comment 7 Marco Berube 2016-01-25 12:33:21 UTC
Not sure I understand what information is needed from me.   I still consider this a bug making Heat templates impossible to use with resource groups.

Comment 11 Loic Avenel 2016-02-22 12:15:25 UTC
Issue discussed With Bill, a solution has been found and is under dev

Comment 14 Chris Pelland 2017-08-28 15:02:58 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.