Bug 1584687 - refresh_target_for_ems is not running in one of our environments
Summary: refresh_target_for_ems is not running in one of our environments
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.9.3
Assignee: Boriso
QA Contact: Ilanit Stein
URL:
Whiteboard:
Depends On: 1580521
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-31 12:50 UTC by Satoe Imaishi
Modified: 2022-07-09 09:53 UTC (History)
12 users (show)

Fixed In Version: 5.9.3.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1580521
Environment:
Last Closed: 2018-07-12 13:15:53 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ManageIQ manageiq pull 17499 0 None None None 2018-05-31 12:50:48 UTC
Red Hat Product Errata RHSA-2018:2184 0 None None None 2018-07-12 13:16:43 UTC

Comment 2 CFME Bot 2018-05-31 12:59:21 UTC
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(-)

Comment 3 Ilanit Stein 2018-06-04 16:04:40 UTC
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

Comment 4 Ilanit Stein 2018-06-07 12:06:36 UTC
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

Comment 6 errata-xmlrpc 2018-07-12 13:15:53 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/RHSA-2018:2184


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