Bug 1164386 - Unable to inherit resource pool's parent tags with control policy.
Summary: Unable to inherit resource pool's parent tags with control policy.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Control
Version: 5.3.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: GA
: 5.4.0
Assignee: Bill Wei
QA Contact: Ramesh A
URL:
Whiteboard:
Depends On:
Blocks: 1167365
TreeView+ depends on / blocked
 
Reported: 2014-11-14 21:17 UTC by Josh Carter
Modified: 2019-05-20 11:21 UTC (History)
6 users (show)

Fixed In Version: 5.4.0.0.11
Doc Type: Bug Fix
Doc Text:
In the previous version of CloudForms Management Engine, there was inability to inherit resource pool's parent tags using a control policy due to reference to an invalid method name. This bug has been fixed by making a reference to a valid method name parent_resource_pool, and tags are now inherited.
Clone Of:
: 1167365 (view as bug list)
Environment:
Last Closed: 2015-06-16 12:44:47 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Josh Carter 2014-11-14 21:17:03 UTC
Description of problem:

Created a control policy for a vm to inherit its resource pool's parents tag when either a vm create event or vm analysis event occurs. 

Error shown in policy log. 

[----] I, [2014-11-14T20:40:29.488253 #5840:59e804]  INFO -- : MIQ(policy-enforce_policy): Event: [assigned_company_tag], To: [debug-policy]
[----] I, [2014-11-14T20:40:29.561233 #5840:59e804]  INFO -- : MIQ(action-invoke) Invoking action [Tag: Inherit Resource Pool Tags] for successful policy [Tag: VM Inherit Resource Pools Tag - on Resource ], event: [VM Create Complete], entity name: [debug-policy], entity type: [VmVmware], sequence: [1], synchronous? [true]
[----] W, [2014-11-14T20:40:29.561819 #5840:59e804]  WARN -- : MIQ(action_inherit_parent_tags): [(VmVmware) debug-policy] does not have a parent of type [resource_pool], no action will be taken

After the virtual machine is provisioned a valid resource pool is displayed.  

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


How reproducible:
very

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Greg McCullough 2014-11-17 16:29:43 UTC
I think the issue here is that Vm instances do not expose their relation to a resource_pool through a method named "resource_pool" which the logging show it is looking for.  Instead, VMs expose this relationship through the "parent_resource_pool" method.

Comment 4 Bill Wei 2014-11-20 22:13:45 UTC
node 10.10.179.228 is down.

Comment 6 CFME Bot 2014-11-24 16:16:43 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=be0cea98d2f9e89865a25f4ac2da4264021be718

commit be0cea98d2f9e89865a25f4ac2da4264021be718
Author:     Bill Wei <bilwei>
AuthorDate: Fri Nov 21 14:58:50 2014 -0500
Commit:     Bill Wei <bilwei>
CommitDate: Mon Nov 24 09:39:43 2014 -0500

    Fix inheriting tags from resource pool
    
    Reference to a valid method name
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1164386

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

Comment 7 CFME Bot 2014-11-24 16:17:42 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/582f4b3cddead6b8cf90a1298143f219c7929231

commit 582f4b3cddead6b8cf90a1298143f219c7929231
Author:     Bill Wei <bilwei>
AuthorDate: Fri Nov 21 14:58:50 2014 -0500
Commit:     Bill Wei <bilwei>
CommitDate: Fri Nov 21 14:58:50 2014 -0500

    Fix inheriting tags from resource pool
    
    Reference to a valid method name
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1164386

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

Comment 9 Josh Carter 2015-01-19 13:41:50 UTC
Dajo, You might know the answer to this? ^

Comment 10 John Prause 2015-01-19 15:14:22 UTC
Josh: Yes this fix made it into the 5.3.2 release,..see BZ 1167365

I'll be following this comment with an e-mail since there's more more detail needed to explain what happened.

Comment 13 Ramesh A 2015-04-07 12:43:53 UTC
Verification blocked due to BZ#1205496

Comment 14 Ramesh A 2015-04-27 09:22:27 UTC
Good to go.  Verified and working fine in 5.4.0.0.23.20150423131011_69b48fd

Comment 16 errata-xmlrpc 2015-06-16 12:44:47 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://rhn.redhat.com/errata/RHBA-2015-1100.html


Note You need to log in before you can comment on or make changes to this bug.