Description of problem: The event VMDestroy_Task does not exists under event list of control policies. Version-Release number of selected component (if applicable): 5.8.1.5.20170725160636_e433fc0 and 5.8.2.3.20171016155816_aaec796 How reproducible: Always Steps to Reproduce: 1. Add Vmware as Infrastructure provider Navigate to Compute -> Clouds -> Infrastructure -> Configuration -> Add new Infrastructure provider 2. Try to delete a VM from vmware side and check from evm.logs which VM got triggered. You will find "VMDestroy_Task" and that event does not exists . Actual results: The event does not exists under event list of control policies. Expected results: It should be present under event list.
Lucy, is there a generalized policy event for this already?
https://github.com/ManageIQ/manageiq/pull/16557
https://github.com/ManageIQ/manageiq-content/pull/223
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/7a5f44743a22c7b63fb66c32406f35240fc87429 commit 7a5f44743a22c7b63fb66c32406f35240fc87429 Author: Lucy Fu <lufu> AuthorDate: Wed Nov 29 14:08:12 2017 -0500 Commit: Lucy Fu <lufu> CommitDate: Wed Nov 29 14:16:13 2017 -0500 Add vm_destroy event to MiqEventDefinition. https://bugzilla.redhat.com/show_bug.cgi?id=1506520 db/fixtures/miq_event_definitions.csv | 1 + 1 file changed, 1 insertion(+)
New commit detected on ManageIQ/manageiq-content/master: https://github.com/ManageIQ/manageiq-content/commit/2c56415eb48b1fe92f5cd4a2375be20fb69b453d commit 2c56415eb48b1fe92f5cd4a2375be20fb69b453d Author: Lucy Fu <lufu> AuthorDate: Wed Nov 29 14:07:12 2017 -0500 Commit: Lucy Fu <lufu> CommitDate: Tue Jan 2 13:49:07 2018 -0500 Add policy resolution call to vm_destroy for providers. https://bugzilla.redhat.com/show_bug.cgi?id=1506520 .../System/Event/EmsEvent/Amazon.class/aws_ec2_instance_delete.yaml | 2 ++ .../Event/EmsEvent/Azure.class/virtualmachines_delete_endrequest.yaml | 2 ++ .../System/Event/EmsEvent/EVM.class/destroyvm_task_complete.yaml | 2 ++ .../Google.class/gceoperationdone_compute.instances.delete.yaml | 2 ++ .../Event/EmsEvent/OpenStack.class/compute.instance.delete.end.yaml | 2 ++ .../ManageIQ/System/Event/EmsEvent/VMWARE-VCLOUD.class/vm-delete.yaml | 2 ++ 6 files changed, 12 insertions(+)
New commit detected on ManageIQ/manageiq-content/master: https://github.com/ManageIQ/manageiq-content/commit/a0b9857f4810fa30db80112d6100396f233cda28 commit a0b9857f4810fa30db80112d6100396f233cda28 Author: Lucy Fu <lufu> AuthorDate: Tue Jan 2 13:48:36 2018 -0500 Commit: Lucy Fu <lufu> CommitDate: Tue Jan 2 13:49:23 2018 -0500 Add policy resolution call to vm_destroy for RHEV. Removing a virtual machine in RHEV is final and cannot be reversed. https://bugzilla.redhat.com/show_bug.cgi?id=1506520 .../ManageIQ/System/Event/EmsEvent/RHEVM.class/user_remove_vm.yaml | 4 ++-- .../System/Event/EmsEvent/RHEVM.class/user_remove_vm_finished.yaml | 2 +- .../Event/EmsEvent/RHEVM.class/user_remove_vm_template_finished.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)