Hide Forgot
Description of problem: CFME not able to recognize vm power off event when instance is shut off from Horizon. Made a cloudform policy, this policy only start a server when this server gets an event of vm power off. This policy works when stop the server using cloudforms, but when I use Horizon to power off the server, the policy doesn't work. Version-Release number of selected component (if applicable): cfme-5.5.0.13.20151201120956_653c0d4 Red Hat OpenStack 7 How reproducible: Always Steps to Reproduce: 1. Import Profiles_20160226_112922.yaml 2. Shut off instance running on OpenStack provider from Horizon Actual results: Instance will not power on as per the control policy. Expected results: Instance should power on as per the control policy.
Created attachment 1130826 [details] policy profile
*** Bug 1312315 has been marked as a duplicate of this bug. ***
Need to review the policy profile but I think the first thing to validate is that the appliance is seeing the events coming from Openstack. Nikhil - Have you verified that the event is issues from Horizon? You might want to confirm that powering off a VM in Horizon will emit the event from the message bus. Maybe setup a little test scenario where he can watch amqp and power off a VM.
Reassigning to the Provider group to take a look at event collection. I looked at the CFME environment and it shows that we are not collecting any events from the OpenStack provider. irb(main):017:0> ExtManagementSystem.all.collect {|e| [e.class.name, e.name, e.ems_events.count]} => [ ["ManageIQ::Providers::Redhat::InfraManager", "RHEV_Nijin", 5828], ["ManageIQ::Providers::Vmware::InfraManager", "VMware sat6", 844], ["ManageIQ::Providers::Openstack::CloudManager", "kilo1", 0], ["ManageIQ::Providers::Amazon::CloudManager", "gss-lab", 0] ] We need to get events collected from the provider before the policy will work.
See comment #14 about missing configuration on OpenStack.
Moving to NEW to be reviewed as the schedule allows.
The following procedure for configuring the notification driver for OpenStack services (to allow Red Hat CloudForms to receive event information) is now documented and published here: https://access.redhat.com/documentation/en/red-hat-cloudforms/version-4.0/managing-providers/#configuring_red_hat_cloudforms_to_receive_events_2 Moving this bug to CLOSED. Please reopen if any additional documentation is required.