Bug 1262461

Summary: Orchestration stack summary page show 0 number of instances, security groups, and networks
Product: Red Hat CloudForms Management Engine Reporter: Bill Wei <bilwei>
Component: ProvidersAssignee: Bill Wei <bilwei>
Status: CLOSED ERRATA QA Contact: Pavol Kotvan <pakotvan>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: bilwei, cpelland, jfrey, jhardy, mfeifer, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1264114 (view as bug list) Environment:
Last Closed: 2015-12-08 13:30:08 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: 1264114    
Attachments:
Description Flags
Screenshot - stack summary page
none
Heat template used for stack provisioning
none
Heat template which creates new instance, sg and private network
none
Screenshot - stack summary page - OK none

Description Bill Wei 2015-09-11 19:14:15 UTC
Description of problem:
On the orchestration stack summary page for a stack the number of instances, security groups, or cloud networks is always 0.

This happens to OpenStack only. Amazon provider is OK.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Bill Wei 2015-09-11 19:30:14 UTC
PR https://github.com/ManageIQ/manageiq/pull/4329

Comment 5 CFME Bot 2015-09-17 17:53:39 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/ee6e9ec13eee5eeb273376496aa0d8f80779bcac

commit ee6e9ec13eee5eeb273376496aa0d8f80779bcac
Author:     Bill Wei <bilwei>
AuthorDate: Fri Sep 11 15:23:25 2015 -0400
Commit:     Bill Wei <bilwei>
CommitDate: Fri Sep 11 15:23:37 2015 -0400

    Populate resource_to_stack hash when collecting stack resources
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1262461
    
    The fix is to restore one line that was accidentally deleted by commit d12268585c1097b

 .../providers/openstack/refresh_parser_common/orchestration_stacks.rb    | 1 +
 1 file changed, 1 insertion(+)

Comment 8 Pavol Kotvan 2015-11-19 13:49:42 UTC
Hi Bill,
I have tested this against CFME 5.5.0.11 and RHOS7-GA. I can see only number of instances for stack updated. Tried to deploy stack with security group other than default, but in stack summary page there is still 0. I do not know what Cloud networks field means. I have provisioned stack with private network. You can find heat template which I used in attachment. Also screenshot from stack summary page is attached. Can you please have a look on this? Thank you.

Comment 9 Pavol Kotvan 2015-11-19 13:50:10 UTC
Created attachment 1096678 [details]
Screenshot - stack summary page

Comment 10 Pavol Kotvan 2015-11-19 13:51:31 UTC
Created attachment 1096681 [details]
Heat template used for stack provisioning

Comment 11 Bill Wei 2015-11-19 14:18:11 UTC
Pavol,
In the resource section of your template there is only the instance. The network and security group are passed in parameters. The summary page shows the counts of resources created by the template.
Your test is correct based on the template.

If you want to test other counts, try to find a template that in the resource section at least one instance, one network, and one security group are included.

Comment 12 Pavol Kotvan 2015-11-20 11:45:24 UTC
Thanks Bill. I understand it now. I created another Heat template which is creating new subnet, new security group and 1 VM instance. Once stack was created, I was able see number of Instances, Security groups and Networks in stack summary page.

Verified against 5.5.0.11.

Pavol

Comment 13 Pavol Kotvan 2015-11-20 11:47:37 UTC
Created attachment 1097136 [details]
Heat template which creates new instance, sg and private network

Comment 14 Pavol Kotvan 2015-11-20 11:48:24 UTC
Created attachment 1097137 [details]
Screenshot - stack summary page - OK

Comment 16 errata-xmlrpc 2015-12-08 13:30:08 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-2015:2551