Bug 1458713

Summary: [RFE][RHV] Host refresh enhancement
Product: Red Hat CloudForms Management Engine Reporter: Piotr Kliczewski <pkliczew>
Component: ProvidersAssignee: Piotr Kliczewski <pkliczew>
Status: CLOSED ERRATA QA Contact: Angelina Vasileva <anikifor>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dajohnso, gblomqui, jfrey, jhardy, jzmeskal, obarenbo, pkliczew, simaishi
Target Milestone: MVPKeywords: FutureFeature, RFE
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:12:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:

Description Piotr Kliczewski 2017-06-05 09:52:23 UTC
During host refresh we run full refresh for specific events:

- HOST_DETECTED
- HOST_INSTALL
- USER_ADD_HOST
- USER_REMOVE_HOST
- USER_UPDATE_HOST

We need to make sure to run targeted refresh instead.

Comment 2 Jan Zmeskal 2017-11-09 09:40:47 UTC
Could you please provide basic reproduction steps? Is there something specific in emv.log that tells which kind of refresh was executed?

Comment 3 Piotr Kliczewski 2017-11-09 10:44:45 UTC
In order to reproduce it you need to add, update or remove a host. In the emv log you need to check which refresh type was triggered for events specified in comment #1.

Comment 4 Ilanit Stein 2017-12-10 13:34:20 UTC
Piotr,

As it seems there are more hosts related events 
(host status status changes, like move host to maintenance maybe),
that may trigger host target refresh,
Would you please list all those additional events 
(in addition to those mentioned in this RFE description), 
so we will be able to cover them in the feature test plan?

Thanks.

Comment 5 Piotr Kliczewski 2017-12-11 08:53:17 UTC
Ilanit,

All 5 events mentioned in comment #1 were not targeted. All the other based on the code are but I will list them for you:

HOST_ACTIVATE, HOST_ACTIVATE_FAILED, HOST_DETECTED, HOST_FAILURE, HOST_INITIATED_RUN_VM, HOST_INSTALL, HOST_MAINTENANCE, HOST_MAINTENANCE_FAILED, HOST_RECOVER, HOST_RECOVER_FAILED, HOST_REGISTER_SUCCEEDED, SYSTEM_HOST_RESTART, USER_ADD_HOST, USER_HOST_MAINTENANCE, USER_HOST_RESTART, USER_HOST_SHUTDOWN, USER_HOST_START, USER_HOST_STOP, USER_INITIATED_RUN_VM_FAILED, USER_INITIATED_SHUTDOWN_VM

Comment 6 Ilanit Stein 2017-12-18 10:15:44 UTC
Verified on CFME-5.9.0.12/RHV-4.1.8.

Those host events were tested:
- HOST_DETECTED
- HOST_INSTALL
- USER_ADD_HOST
- USER_REMOVE_HOST
- USER_UPDATE_HOST

Test plan run: 
RHEVM3/testrun?id=4_1_targeted_refresh_for_host_events_cfme_5_9_0_12_rhv_4_1_8

Comment 9 errata-xmlrpc 2018-03-01 13:12:59 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:0380