Bug 1312316

Summary: CFME not able to recognize vm power off event when instance is shut off from Horizon.
Product: Red Hat CloudForms Management Engine Reporter: Nikhil Gupta <ngupta>
Component: DocumentationAssignee: Red Hat CloudForms Documentation <cloudforms-docs>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Severity: high Docs Contact:
Priority: high    
Version: 5.5.0CC: gblomqui, gmccullo, jfrey, jhardy, jocarter, lbopf, lufu, mfeifer, mkanoor, nachandr, ngupta, obarenbo, pmukhedk, tfitzger
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: control:event:openstack
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-30 05:29:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
policy profile none

Description Nikhil Gupta 2016-02-26 12:06:36 UTC
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.

Comment 2 Nikhil Gupta 2016-02-26 12:07:42 UTC
Created attachment 1130826 [details]
policy profile

Comment 4 Greg McCullough 2016-02-29 14:11:37 UTC
*** Bug 1312315 has been marked as a duplicate of this bug. ***

Comment 5 Greg McCullough 2016-02-29 14:27:40 UTC
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.

Comment 7 Greg McCullough 2016-03-01 20:58:27 UTC
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.

Comment 15 Greg McCullough 2016-05-10 17:31:18 UTC
See comment #14 about missing configuration on OpenStack.

Comment 16 Lucy Bopf 2016-05-26 02:45:04 UTC
Moving to NEW to be reviewed as the schedule allows.

Comment 17 Lucy Bopf 2016-05-30 05:29:26 UTC
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.