Bug 1383372 - Cannot cancel clone via policy with cancel vcenter task
Summary: Cannot cancel clone via policy with cancel vcenter task
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Control
Version: 5.6.0
Hardware: x86_64
OS: Unspecified
high
medium
Target Milestone: GA
: 5.7.0
Assignee: Lucy Fu
QA Contact: Dmitry Misharov
URL:
Whiteboard:
Depends On: 1381255
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-10 13:22 UTC by Satoe Imaishi
Modified: 2017-01-12 04:56 UTC (History)
4 users (show)

Fixed In Version: 5.7.0.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1381255
Environment:
Last Closed: 2017-01-11 20:28:52 UTC
Category: ---
Cloudforms Team: VMware
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Oleg Barenboim 2016-10-13 18:38:21 UTC
Euwe Backport details:

commit 2f9ed397e5f9d9c05e3bad003bb245ccfd8609c1
Author: Greg McCullough <gmccullo>
Date:   Wed Oct 5 12:59:00 2016 -0400

    Merge pull request #11663 from lfu/cancel_vcenter_task_1381255
    
    Need to keep and pass along the EmsEvent that triggers vm_clone_start
    (cherry picked from commit 17c692fb8eed854f005ac5e27d5a1831a6bc5f53)

Comment 2 Dmitry Misharov 2016-10-25 07:21:08 UTC
Verified in 5.7.0.6-alpha3.20161019140041_ea8e259. VM cloning was canceled using the attached policy.

Comment 3 Dmitry Misharov 2016-11-16 11:09:04 UTC
Broken again in 5.7.0.11-rc1.20161115160629_46cf4f1. Cloning is not canceled with the policies. Excerpt from policy.log:
INFO -- : MIQ(policy-enforce_policy): Event: [vm_clone_start], To: [dmisharo]
INFO -- : MIQ(policy-enforce_policy): Resolving policy [Prevent VM Cloning Based on Tag]...
INFO -- : MIQ(condition-eval): Name: tagged as do not clone, Expression evaluation result: [true]
INFO -- : MIQ(action-invoke) Invoking action [Cancel vCenter Task] for successful policy [Prevent VM Cloning Based on Tag], event: [VM Clone Start], entity name: [dmisharo], entity type: [Virtual Machine (VMware)], sequence: [1], synchronous? [true]
INFO -- : MIQ(action_cancel_task): Now executing Cancel of task [CloneVM_Task] on VM [dmisharo]
INFO -- : MIQ(policy-enforce_policy): Event: [vm_clone], To: [dmisharo]
INFO -- : MIQ(policy-enforce_policy): Event: [vm_create], To: [dmisharo2]
INFO -- : MIQ(policy-enforce_policy): Event: [request_vm_start], To: [dmisharo2]
INFO -- : MIQ(policy-enforce_policy): Event: [vm_provisioned], To: [dmisharo2]
INFO -- : MIQ(policy-enforce_policy): Event: [vm_start], To: [dmisharo2]

Comment 10 Dmitry Misharov 2016-11-23 15:40:21 UTC
Verified on 5.7.0.11-rc1.20161115160629_46cf4f1.


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