Bug 1506520 - Cloudforms: Event VMDestroy_Task does not exists under event list
Summary: Cloudforms: Event VMDestroy_Task does not exists under event list
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Control
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: GA
: 5.10.0
Assignee: Lucy Fu
QA Contact: Ievgen Zapolskyi
URL:
Whiteboard:
Depends On:
Blocks: 1533279 1534584
TreeView+ depends on / blocked
 
Reported: 2017-10-26 09:33 UTC by Imaan
Modified: 2021-06-10 13:21 UTC (History)
6 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1533279 1534584 (view as bug list)
Environment:
Last Closed: 2018-06-21 21:15:06 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Imaan 2017-10-26 09:33:09 UTC
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.

Comment 3 Greg McCullough 2017-10-26 14:11:57 UTC
Lucy, is there a generalized policy event for this already?

Comment 6 CFME Bot 2017-12-21 14:16:39 UTC
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(+)

Comment 7 CFME Bot 2018-01-10 19:48:19 UTC
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(+)

Comment 8 CFME Bot 2018-01-10 19:48:24 UTC
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(-)


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