Bug 1180695 - List of RHOS events not captured in the control policy.log but captured in evm.log
Summary: List of RHOS events not captured in the control policy.log but captured in ev...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Control
Version: 5.3.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: GA
: 5.6.0
Assignee: Lucy Fu
QA Contact: Ola Pavlenko
URL:
Whiteboard: cloud:rhos:control:event
Depends On:
Blocks: 1297911
TreeView+ depends on / blocked
 
Reported: 2015-01-09 17:38 UTC by Ramesh A
Modified: 2017-08-30 03:42 UTC (History)
8 users (show)

Fixed In Version: 5.6.0.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1297911 (view as bug list)
Environment:
Last Closed: 2016-06-29 14:51:42 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Ramesh A 2015-01-09 17:38:13 UTC
Description of problem:
=======================
Following events are not captured in the control policy.log. These are the operations performed from the external rhos provider and not from CFME 

Note:
=====
These events are captured in the evm.log file but not in the policy.log file.  Also these events needs to trigger the respective events attached to them in the policy profile


Event --> captured event in the evm.log file
=============================================
1. soft reboot --> compute.instance.reboot.start and compute.instance.reboot.end
2. hard reboot --> compute.instance.reboot.start and compute.instance.reboot.start. (AFAIK this should trigger the reset request event, Please correct me if I am wrong)
3. pause --> no events captured in evm.log
4. resume --> no events captured in evm.log
5. suspend --> compute.instance.suspend
6. editing instance --> no events captured in evm.log
7. edit security group --> no event captured in evm.log
8. create snapshot --> compute.instance.snapshot.start and compute.instance.snapshot.end.  Also it calls vm_template in policy.log but not sure which event to associate in the policy profile("VM Template Create  Complete" does not work here)

Version-Release number of selected component (if applicable):
5.3.2.6.20150108100920_387a856

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Greg McCullough 2015-12-02 20:07:25 UTC
Ramesh - In the description you have the same event name for soft/hard reboot.  Is this correct?  (Also, hard reboot had ".start" for both events so I changed the second one to ".end" below.)

1. soft reboot --> compute.instance.reboot.start and compute.instance.reboot.end
2. hard reboot --> compute.instance.reboot.start and compute.instance.reboot.end

Also, are you aware of a listing of Openstack events anywhere?  A link would be nice.


Lucy - Please work with Ramesh to identify what additional openstack events we can link to existing policy events so we can create the required automate instances to support policy.

Comment 3 Ramesh A 2015-12-14 06:13:55 UTC
Hi Greg / Lucy,

I was not able to find exact listing of the Openstack events, but was able find the action listing close to that descriptions.  Its in the Section 3.1.3 "Update an Instance (Action menu)" in the following link - https://access.redhat.com/documentation/en/red-hat-enterprise-linux-openstack-platform/version-7/red-hat-enterprise-linux-openstack-platform-7-instances-and-images-guide/chapter-3-virtual-machine-instances .

Also,
hard reboot ==> should call vm reset event if I believe as per the previous discussion I had in some issue/email which I am not to find it at the moment(correct me if I am wrong here). Calling the same reboot event for both hard reboot and soft reboot makes no difference here I guess.

Thanks,
Ramesh

Comment 5 CFME Bot 2016-01-04 17:05:56 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/68a367085bd99b2f05e019f6da200873b2639e1b

commit 68a367085bd99b2f05e019f6da200873b2639e1b
Author:     Lucy Fu <lufu>
AuthorDate: Wed Dec 23 12:40:13 2015 -0500
Commit:     Lucy Fu <lufu>
CommitDate: Wed Dec 23 14:07:02 2015 -0500

    Add policy actions for Openstack events.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1180695

 .../OPENSTACK.class/compute_instance_reboot_end.yaml       | 14 ++++++++++++++
 .../OPENSTACK.class/compute_instance_reset_end.yaml        | 14 ++++++++++++++
 .../OPENSTACK.class/compute_instance_snapshot_end.yaml     |  2 +-
 .../OPENSTACK.class/compute_instance_snapshot_start.yaml   | 14 ++++++++++++++
 .../EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml |  2 ++
 5 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_reboot_end.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_reset_end.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_snapshot_start.yaml

Comment 8 CFME Bot 2016-01-12 18:11:43 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3311d711d174a7aef34ca3bec4de9f664727f056

commit 3311d711d174a7aef34ca3bec4de9f664727f056
Author:     Lucy Fu <lufu>
AuthorDate: Wed Jan 6 12:35:41 2016 -0500
Commit:     Lucy Fu <lufu>
CommitDate: Thu Jan 7 19:38:44 2016 -0500

    Connect Openstack events with our Policy events.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1180695

 .../OPENSTACK.class/compute_instance_pause_end.yaml        |  2 ++
 .../EmsEvent/OPENSTACK.class/compute_instance_resume.yaml  | 12 ------------
 .../OPENSTACK.class/compute_instance_resume_end.yaml       | 14 ++++++++++++++
 .../EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml | 14 --------------
 .../OPENSTACK.class/compute_instance_suspend_end.yaml      | 14 ++++++++++++++
 .../OPENSTACK.class/compute_instance_unpause_end.yaml      |  2 ++
 db/fixtures/miq_event_definitions.csv                      |  2 +-
 7 files changed, 33 insertions(+), 27 deletions(-)
 delete mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_resume.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_resume_end.yaml
 delete mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_suspend_end.yaml

Comment 9 CFME Bot 2016-02-10 19:53:24 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=4f4888688c07159950ede6b83faab04b72d5eadd

commit 4f4888688c07159950ede6b83faab04b72d5eadd
Author:     Lucy Fu <lufu>
AuthorDate: Wed Dec 23 12:40:13 2015 -0500
Commit:     Lucy Fu <lufu>
CommitDate: Tue Jan 12 13:34:18 2016 -0500

    Add policy actions for Openstack events.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1180695

 .../OPENSTACK.class/compute_instance_reboot_end.yaml       | 14 ++++++++++++++
 .../OPENSTACK.class/compute_instance_reset_end.yaml        | 14 ++++++++++++++
 .../OPENSTACK.class/compute_instance_snapshot_end.yaml     |  2 +-
 .../OPENSTACK.class/compute_instance_snapshot_start.yaml   | 14 ++++++++++++++
 .../EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml |  2 ++
 5 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_reboot_end.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_reset_end.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_snapshot_start.yaml

Comment 10 CFME Bot 2016-02-10 19:53:30 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=c1a8aa7fb94585c952a2eb8e92be42dea8efcab2

commit c1a8aa7fb94585c952a2eb8e92be42dea8efcab2
Author:     Lucy Fu <lufu>
AuthorDate: Wed Jan 6 12:35:41 2016 -0500
Commit:     Lucy Fu <lufu>
CommitDate: Tue Jan 12 13:34:47 2016 -0500

    Connect Openstack events with our Policy events.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1180695

 .../OPENSTACK.class/compute_instance_pause_end.yaml        |  2 ++
 .../EmsEvent/OPENSTACK.class/compute_instance_resume.yaml  | 12 ------------
 .../OPENSTACK.class/compute_instance_resume_end.yaml       | 14 ++++++++++++++
 .../EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml | 14 --------------
 .../OPENSTACK.class/compute_instance_suspend_end.yaml      | 14 ++++++++++++++
 .../OPENSTACK.class/compute_instance_unpause_end.yaml      |  2 ++
 db/fixtures/miq_event_definitions.csv                      |  2 +-
 7 files changed, 33 insertions(+), 27 deletions(-)
 delete mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_resume.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_resume_end.yaml
 delete mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_suspend_end.yaml

Comment 12 CFME Bot 2016-04-01 19:50:53 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/cbb2d197c2dacc5bb6ff70f0669f80f8e14cb702

commit cbb2d197c2dacc5bb6ff70f0669f80f8e14cb702
Author:     Lucy Fu <lufu>
AuthorDate: Fri Apr 1 10:22:42 2016 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Fri Apr 1 11:21:10 2016 -0400

    compute.instance.suspend is the name for Openstack suspend event.
    
    Not compute.instance.suspend.start and compute.instance.suspend.end.
    https://bugzilla.redhat.com/show_bug.cgi?id=1180695

 .../EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml | 14 ++++++++++++++
 .../OPENSTACK.class/compute_instance_suspend_end.yaml      | 14 --------------
 2 files changed, 14 insertions(+), 14 deletions(-)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml
 delete mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_suspend_end.yaml

Comment 13 CFME Bot 2016-04-01 19:50:57 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/8ee8ad5a0e153a9e69f7f4ec4d2fb1c1e57fb886

commit 8ee8ad5a0e153a9e69f7f4ec4d2fb1c1e57fb886
Author:     Lucy Fu <lufu>
AuthorDate: Fri Apr 1 10:24:18 2016 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Fri Apr 1 11:21:10 2016 -0400

    Fix a typo for the refresh action for Soft/Hard reboot and reset.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1180695

 .../Event/EmsEvent/OPENSTACK.class/compute_instance_reboot_end.yaml     | 2 +-
 .../Event/EmsEvent/OPENSTACK.class/compute_instance_reset_end.yaml      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comment 14 CFME Bot 2016-04-01 20:42:47 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=cb4000a2af7193f68b9cc97cab8c713e8533536c

commit cb4000a2af7193f68b9cc97cab8c713e8533536c
Author:     Lucy Fu <lufu>
AuthorDate: Fri Apr 1 10:22:42 2016 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Fri Apr 1 15:21:59 2016 -0400

    compute.instance.suspend is the name for Openstack suspend event.
    
    Not compute.instance.suspend.start and compute.instance.suspend.end.
    https://bugzilla.redhat.com/show_bug.cgi?id=1180695

 .../EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml | 14 ++++++++++++++
 .../OPENSTACK.class/compute_instance_suspend_end.yaml      | 14 --------------
 2 files changed, 14 insertions(+), 14 deletions(-)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_suspend.yaml
 delete mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Event/EmsEvent/OPENSTACK.class/compute_instance_suspend_end.yaml

Comment 15 CFME Bot 2016-04-01 20:42:51 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=6b3c299746e7e061879e0e6647871c07e845548c

commit 6b3c299746e7e061879e0e6647871c07e845548c
Author:     Lucy Fu <lufu>
AuthorDate: Fri Apr 1 10:24:18 2016 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Fri Apr 1 15:22:08 2016 -0400

    Fix a typo for the refresh action for Soft/Hard reboot and reset.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1180695

 .../Event/EmsEvent/OPENSTACK.class/compute_instance_reboot_end.yaml     | 2 +-
 .../Event/EmsEvent/OPENSTACK.class/compute_instance_reset_end.yaml      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comment 18 Ronnie Rasouli 2016-06-08 08:06:55 UTC
verifed on 5.6.0.9 RC2

instance 312 got pause and poweroff requests

nt: [request_vm_pause], To: [312]
[----] I, [2016-06-08T04:05:50.569369 #3006:7a5990]  INFO -- : MIQ(policy-enforce_policy): Event: [vm_pause], To: [312]
[----] I, [2016-06-08T04:05:53.629778 #3018:7a5990]  INFO -- : MIQ(policy-enforce_policy): Event: [request_vm_poweroff], To: [312]

Comment 20 errata-xmlrpc 2016-06-29 14:51:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348


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