Bug 1726394

Summary: [v2v] Add more throttling logging, to identify why specific conversion host is picked
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: V2VAssignee: Fabien Dupont <fdupont>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: unspecifiedCC: bthurber, ytale
Target Milestone: GAKeywords: ZStream
Target Release: 5.10.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: v2v
Fixed In Version: 5.10.7.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1726186 Environment:
Last Closed: 2019-07-24 13:38:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:
Bug Depends On: 1726186    
Bug Blocks:    

Comment 2 CFME Bot 2019-07-02 20:26:22 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/99bbf47929122fdebc7fc77d53e52206fac11a54
commit 99bbf47929122fdebc7fc77d53e52206fac11a54
Author:     Adam Grare <agrare>
AuthorDate: Tue Jul  2 12:46:57 2019 -0400
Commit:     Adam Grare <agrare>
CommitDate: Tue Jul  2 12:46:57 2019 -0400

    Merge pull request #18929 from fdupont-redhat/v2v_enhance_throttler_logging

    [V2V] Enhance throttler logging

    (cherry picked from commit fd7042726763fa37450efd587a83dbad575d68ec)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1726394

 app/models/conversion_host.rb | 2 +-
 lib/infra_conversion_throttler.rb | 35 +-
 2 files changed, 29 insertions(+), 8 deletions(-)

Comment 3 Fabien Dupont 2019-07-11 16:30:59 UTC
To test this BZ:

 1. Set the log level of the appliance to debug
 2. Create and run a migration plan
 3. In evm.log, you will see debug log messages containing 'InfraConversionThrottler.start_conversions'

Comment 4 Ilanit Stein 2019-07-17 09:30:45 UTC
Verified on
cfme-5.10.6.1
RHV-4.3.4.3-0.1.el7

DEBUG messages, for example:

[----] D, [2019-07-17T01:50:09.919495 #64720:106af58] DEBUG -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) - Looking for a conversion host for task for v2v_migration_vm_big_4
[----] D, [2019-07-17T01:50:11.129864 #64720:106af58] DEBUG -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) -- Eligible conversion hosts:
[----] D, [2019-07-17T01:50:11.131623 #64720:106af58] DEBUG -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) --- host_mixed_2 [0/5]
[----] D, [2019-07-17T01:50:11.133341 #64720:106af58] DEBUG -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) --- host_mixed_1 [1/5]
[----] D, [2019-07-17T01:50:11.133451 #64720:106af58] DEBUG -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) -- Associating  host_mixed_2 to the task for 'v2v_migration_vm_big_4'.
[----] D, [2019-07-17T01:50:11.148951 #64720:106af58] DEBUG -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) -- Queuing :start signal for the job for 'v2v_migration_vm_big_4': cur
rent state is 'waiting_to_start'.



[----] D, [2019-07-17T01:50:20.781880 #64720:106af58] DEBUG -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) - Looking for a conversion host for task for v2v_migration_vm_big_8
[----] D, [2019-07-17T01:50:21.976488 #64720:106af58] DEBUG -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.start_conversions) -- No eligible conversion host for task for 'v2v_migration_vm_big_8'

Comment 6 errata-xmlrpc 2019-07-24 13:38:52 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-2019:1833