Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 1557244 [details] VM Control Policy Details Description of problem: Creating a policy that contains the event "VM Retire Request" and/or "VM Retired", with the action "Prevent current event from proceeding" does not prevent VM retirement. Version-Release number of selected component (if applicable): 5.10.3.3 How reproducible: 100% Steps to Reproduce: 1. Add infra provider (I noticed this with VMWare 6.5) 2. Provision a vm on that provider 3. Create a Vm Control policy with settings detailed in the attached image 4. Assign the policy to a profile 5. Assign the profile to the infra provider 6. Retire the VM via the UI Actual results: The VM is retired Expected results: The policy should prevent the VM from being retired Additional info: This is blocking an automated test.
Is there a reprodcer ?
I was able to reproduce the problem on 5.10.0.33 and 5.10.3.3. It does work correctly in 5.9.9.1
Hi Lucy, Can we discuss when you have time? Thanks, Tina
https://github.com/ManageIQ/manageiq/pull/19064
https://github.com/ManageIQ/manageiq-content/pull/552
This BZ is also affecting 5.11 streams
New commit detected on ManageIQ/manageiq-content/master: https://github.com/ManageIQ/manageiq-content/commit/b910330a3a550b5a791e536783829a03c6e702bf commit b910330a3a550b5a791e536783829a03c6e702bf Author: Lucy Fu <lufu> AuthorDate: Thu Jul 25 17:29:31 2019 -0400 Commit: Lucy Fu <lufu> CommitDate: Thu Jul 25 17:29:31 2019 -0400 Vm retirement is processed by VmRetireRequest state machine. https://bugzilla.redhat.com/show_bug.cgi?id=1702018 content/automate/ManageIQ/System/Event/MiqEvent/POLICY.class/request_vm_retire.yaml | 6 - 1 file changed, 6 deletions(-)
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/710fecf2a6835376f19101873319ed324860a7b1 commit 710fecf2a6835376f19101873319ed324860a7b1 Author: Lucy Fu <lufu> AuthorDate: Tue Aug 13 10:07:38 2019 -0400 Commit: Lucy Fu <lufu> CommitDate: Tue Aug 13 10:07:38 2019 -0400 Add policy check to Vm retirement. https://bugzilla.redhat.com/show_bug.cgi?id=1702018 app/models/vm_or_template.rb | 19 + spec/models/vm/retirement_management_spec.rb | 67 +- 2 files changed, 76 insertions(+), 10 deletions(-)