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:
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.
node 10.10.179.228 is down.
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(-)
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(-)
Dajo, You might know the answer to this? ^
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.
Verification blocked due to BZ#1205496
Good to go. Verified and working fine in 5.4.0.0.23.20150423131011_69b48fd
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