New commit detected on ManageIQ/manageiq-providers-ovirt/gaprindashvili: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/af00b74ecc08173da6dbc9bb914a158eddc61cb1 commit af00b74ecc08173da6dbc9bb914a158eddc61cb1 Author: Adam Grare <agrare> AuthorDate: Thu May 31 08:22:29 2018 -0400 Commit: Adam Grare <agrare> CommitDate: Thu May 31 08:22:29 2018 -0400 Merge pull request #255 from borod108/bugs/1580521logging_even_master Fix logging oVirt event in debug level (cherry picked from commit d0c12af900aba0c1cd5b8561cf7940f803bfd6aa) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1584687 app/models/manageiq/providers/redhat/infra_manager/event_parsing/parser.rb | 4 +- 1 file changed, 2 insertions(+), 2 deletions(-)
This bug is reproducible on CFME-5.9.3.0.20180522175053_3940873/RHV-4.2.3.5-0.1.el7, under these conditions: 1. log mode "debug" 2. settings.yml use_RHV api version 3 (ovirt_engine_sdk - > false) Running operation: VM provision from template. Implementing Boris's bug fix: https://github.com/ManageIQ/manageiq/pull/17499/files , fixes the issue: * VM provision from template ends up successfully, and the VM is displayed on CFME side. * evm.log do not contain error messages that follow the add VM event: [----] I, [2018-06-04T11:38:55.573999 #5640:12c9114] INFO -- : MIQ(MiqAeEngine.deliver) Delivering {:event_id=>47156, :event_stream_id=>47156, :event_type=>"USER_ADD_VM_FINISHED_SUCCESS"} for object [EmsEvent.47156] with state [] to Automate More details on the steps: 1. How to move to RHV api version V3: >> vmdb >> bundle show manageiq-providers-ovirt Copy the path it returns and go to that folder. [vmdb]# bundle show manageiq-providers-ovirt /opt/rh/cfme-gemset/bundler/gems/cfme-providers-ovirt-549dfa05bc6e [vmdb]# cd /opt/rh/cfme-gemset/bundler/gems/cfme-providers-ovirt-549dfa05bc6e [cfme-providers-ovirt-549dfa05bc6e]# vim config/settings.yml There change the appropriate settings: use_ovirt_engine_sdk: false then restart: >> vmdb >> rake evm:restart 2. Implementing Boris's fix: Change was added in event_parsing/parser.rb, in these 2 locations: # find / -name infra_manager | grep ovirt /opt/rh/cfme-gemset/bundler/gems/cfme-providers-ovirt-e795f891c691/app/models/manageiq/providers/redhat/infra_manager /opt/rh/cfme-gemset/bundler/gems/manageiq-providers-ovirt-e795f891c691/app/models/manageiq/providers/redhat/infra_manager then restart: >> vmdb >> rake evm:restart
Verified on CFME-5.9.3.1/RHV-4.2.3 Steps: 1. settings.yml use_RHV api version 3 (ovirt_engine_sdk - > false) 2. VM provision from template. 3. log mode "debug" Results: * VM provision from template ends up successfully, and the VM is displayed on CFME side. * evm.log do not contain error messages that follow the USER_ADD_VM_FINISHED_SUCCESS event: [----] I, [2018-06-07T07:57:55.311568 #47643:94d108] INFO -- : MIQ(MiqAeEngine.deliver) Delivering {:event_id=>350, :event_stream_id=>350, :event_type=>"USER_ADD_VM_FINISHED_SUCCESS"} for object [EmsEvent.350] with state [] to Automate
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/RHSA-2018:2184