Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1322101 - vm reconfigure event passing invalid data to Automate.
vm reconfigure event passing invalid data to Automate.
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
5.6.0
Unspecified Unspecified
high Severity high
: GA
: 5.6.0
Assigned To: William Fitzgerald
Milan Falešník
automate:reconfigure
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-29 15:49 EDT by Tina Fitzgerald
Modified: 2017-03-17 05:46 EDT (History)
5 users (show)

See Also:
Fixed In Version: 5.6.0.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 11:45:51 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Tina Fitzgerald 2016-03-29 15:49:14 EDT
Description of problem:
Invalid data passed from the vm_reconfigure event prevents the expected $evm.root object vm attribute from containing the vm object. 

The Instantiate line below contains details of the issue:
1. The "VmOrTemplate%3A%3Avm=2225" reference is correct and would result in the $evm.root object vm attribute containing the vm object.
2. The "manageiq%3A%3Aproviders%3A%3Avmware%3A%3Ainframanager%3A%3Avm=2225" is invalid for automate and overrides the object in #1. The result is a $evm.root attribute, vm having the value of the id, 2225 instead of the vm object with id 2225.

Instantiating [/System/Process/Event?EventStream%3A%3Aevent_stream=673608&
MiqEvent%3A%3Amiq_event=673608&
MiqServer%3A%3Amiq_server=1&
User%3A%3Auser=1&
VmOrTemplate%3A%3Avm=2225&
ems_event=673535&
event_stream_id=673608&
event_type=vm_reconfigure
&ext_management_systems=7&
manageiq%3A%3Aproviders%3A%3Avmware%3A%3Ainframanager%3A%3Avm=2225&
miq_event_id=673608&
object_name=Event&
vmdb_object_type=vm]


Steps to Reproduce:
1. Reconfigure VM.
2. Look in the automation.log for the instantiate line as shown above.

Actual results:
Automation.log Instantiate line shows as above containing the "manageiq%3A%3Aproviders%3A%3Avmware%3A%3Ainframanager%3A%3Avm= string.
Inspecting the $evm.root object vm attribute contains the vm id.

Expected results:
Automation.log Instantiate line shows as above and does not contain the "manageiq%3A%3Aproviders%3A%3Avmware%3A%3Ainframanager%3A%3Avm= string.
Inspecting the $evm.root object vm attribute contains the vm object.
Comment 3 CFME Bot 2016-04-11 10:00:52 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/a3803a66aef8ddac5fa3408692dac0d809a77845

commit a3803a66aef8ddac5fa3408692dac0d809a77845
Author:     william fitzgerald <wfitzger@redhat.com>
AuthorDate: Sat Apr 9 09:38:45 2016 -0400
Commit:     william fitzgerald <wfitzger@redhat.com>
CommitDate: Sat Apr 9 09:39:59 2016 -0400

    Automate - Vm reconfigure event passing invalid data.
    
    One line removed from Automate method.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1322101

 app/models/ems_event/automate.rb | 1 -
 1 file changed, 1 deletion(-)
Comment 4 Milan Falešník 2016-04-18 10:31:57 EDT
Verified in 5.6.0.2-beta2

Instantiating [/System/Process/Event?EventStream%3A%3Aevent_stream=6543&MiqEvent%3A%3Amiq_event=6543&MiqServer%3A%3Amiq_server=1&User%3A%3Auser=1&VmOrTemplate%3A%3Avm=450&ems_event=6534&event_stream_id=6543&event_type=vm_reconfigure&ext_management_systems=1&miq_event_id=6543&object_name=Event&vmdb_object_type=vm]

# cat log/automation.log | egrep inframanager
#
Comment 6 errata-xmlrpc 2016-06-29 11:45:51 EDT
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.