Bug 1383372
| Summary: | Cannot cancel clone via policy with cancel vcenter task | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> |
| Component: | Control | Assignee: | Lucy Fu <lufu> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dmitry Misharov <dmisharo> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.6.0 | CC: | cpelland, jhardy, lufu, obarenbo |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream |
| Target Release: | 5.7.0 | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.7.0.5 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1381255 | Environment: | |
| Last Closed: | 2017-01-11 20:28:52 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | VMware | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1381255 | ||
| Bug Blocks: | |||
Verified in 5.7.0.6-alpha3.20161019140041_ea8e259. VM cloning was canceled using the attached policy. 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] Verified on 5.7.0.11-rc1.20161115160629_46cf4f1. |
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)