Bug 1721118 - [Regression][V2V] "Maximum concurrent migrations per conversion host" in UI not working
Summary: [Regression][V2V] "Maximum concurrent migrations per conversion host" in UI n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.10.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.10.7
Assignee: Daniel Berger
QA Contact: Yadnyawalk Tale
Red Hat CloudForms Documentation
URL:
Whiteboard: v2v
Depends On: 1698761
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-17 11:50 UTC by Satoe Imaishi
Modified: 2022-07-09 10:44 UTC (History)
8 users (show)

Fixed In Version: 5.10.7.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1698761
Environment:
Last Closed: 2019-07-24 13:38:52 UTC
Category: ---
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Maximum concurrent migrations per conversion host (68.38 KB, image/png)
2019-06-26 21:51 UTC, Shveta
no flags Details
seven migrations running at a time (135.48 KB, image/png)
2019-06-26 21:53 UTC, Shveta
no flags Details
four migrations using same conversion host (187.96 KB, image/jpeg)
2019-06-26 21:54 UTC, Shveta
no flags Details
evm log (9.43 MB, text/plain)
2019-07-10 21:01 UTC, Shveta
no flags Details
6 migration plans - only 3 running (195.46 KB, image/png)
2019-07-11 12:08 UTC, Fabien Dupont
no flags Details
4 migration plan - only 3 runnng (200.44 KB, image/png)
2019-07-11 12:09 UTC, Fabien Dupont
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:1833 0 None None None 2019-07-24 13:39:03 UTC

Comment 3 CFME Bot 2019-06-17 11:55:45 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/59e5de4f03c21eaaa584ef5a2ab933bd4ab4a8c5
commit 59e5de4f03c21eaaa584ef5a2ab933bd4ab4a8c5
Author:     Keenan Brock <keenan>
AuthorDate: Fri Jun 14 18:03:37 2019 -0400
Commit:     Keenan Brock <keenan>
CommitDate: Fri Jun 14 18:03:37 2019 -0400

    Merge pull request #18860 from djberg96/conversion_host_throttling

    [V2V] Modify active_tasks so that it always reloads

    (cherry picked from commit 660387c242a7581405ad85280370cd77317aac36)

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

 app/models/conversion_host.rb | 5 +-
 lib/infra_conversion_throttler.rb | 13 +-
 2 files changed, 15 insertions(+), 3 deletions(-)

Comment 7 Shveta 2019-06-26 21:51:58 UTC
Created attachment 1584982 [details]
Maximum concurrent migrations per conversion host

As in attached SS , Maximum concurrent migrations per conversion host
	
is set to 3

Comment 8 Shveta 2019-06-26 21:53:24 UTC
Created attachment 1584983 [details]
seven migrations running at a time

I started 8 migrations at the same time out of which 7 started.

Comment 9 Shveta 2019-06-26 21:54:58 UTC
Created attachment 1584984 [details]
four migrations using same conversion host

As in attached screenshot .
More than three (Maximum concurrent migrations per conversion host was set to three) migrations use same conversion host .

Comment 10 Shveta 2019-06-26 21:57:14 UTC
Started 8 migrations and set Maximum concurrent migrations per conversion host to 3.
Two conversion hosts were set .

SO each should allow three migrations at a time , where as 4 migrations were allowed .
@Ilanit , please check appliance https://10.16.5.95/ and check if this is the test case you tested .

Comment 11 Fabien Dupont 2019-06-27 08:31:56 UTC
@Ilanit, can you please run a migration plan with logs in debug mode ? This should print extra logs, that will help understand why the hosts are selected.

Comment 14 Fabien Dupont 2019-07-02 10:39:05 UTC
Ilanit and I have been running some migrations today and we could see that the throttling was working fine.
However, we had done some changes on Ilanit's appliance, applying the PR mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1726186 and https://bugzilla.redhat.com/show_bug.cgi?id=1719689. So, this may have an effect.
Both PRs should be merged soon and part of CMFE 5.10.7, so I move this BZ to ON_QA to revalidate once 5.10.7 is available to QE.

Here is the scenario we tested with 2 conversion hosts:
  - Create a migration plan with 20 VM
  - Set the number of concurrent conversions per host to 5 using the 'Migration Settings' page
  - Start the migration plan
  - Check that each conversion host has 5 migrations and that 10 migrations are in PreMigration state
  - Set the max_concurrent_tasks attribute of the first conversion host to 7
  - Check that conversion host 1 has 7 migrations, that conversion host 2 has 5 migrations and that 8 migrations are in PreMigration state
  - Set the max_concurrent_tasks attribute of the second conversion host to 7
  - Check that conversion host 1 has 7 migrations, that conversion host 2 has 7 migrations and that 6 migrations are in PreMigration state
  - Set the number of concurrent conversions per host to 5 using the 'Migration Settings' page
  - Set the max_concurrent_tasks attribute of both conversion hosts to nil
  - Check that each conversion host has 10 migrations and that all migrations are started

Comment 16 Fabien Dupont 2019-07-10 15:05:07 UTC
@Ytale, can you enable debug mode on your appliance, run the migration again and attach $evm.log ?

Comment 17 Shveta 2019-07-10 21:01:18 UTC
Created attachment 1589235 [details]
evm log

evm log in debug mode.

Comment 18 Fabien Dupont 2019-07-11 00:39:30 UTC
@Shveta, from the logs, I can see that the conversion host has 4 migrations and 2 are pending. Isn't that the expected behavior ?

Comment 19 Yadnyawalk Tale 2019-07-11 07:09:16 UTC
I am not sure how come logs showing that but in reality if you see in UI this is not the case. Let me prepare some sample plans for you, give me 30min.

Comment 20 Yadnyawalk Tale 2019-07-11 08:09:39 UTC
@Fabien, plans are ready. Created 'fabien-th1..th6' plans, limit is set to 3 in UI and log level also debug, you can check it by migrating on same appliance.

Comment 21 Fabien Dupont 2019-07-11 12:08:16 UTC
Created attachment 1589407 [details]
6 migration plans - only 3 running

Comment 22 Fabien Dupont 2019-07-11 12:09:01 UTC
Created attachment 1589409 [details]
4 migration plan - only 3 runnng

Comment 23 Fabien Dupont 2019-07-11 12:26:39 UTC
When I connected to the appliance, there was a migration plan in progress. However, the migration task was finished. So, that probably explains what you experienced in the UI.

You didn't follow the scenario that Ilanit and I proposed. Any reason for that ?
We proposed using 1 migration plan with X VMs, rather than X migration plans with 1 VM. This is because the throttling is done at the task level, not the migration plan level. So, this allows you to see all the migration tasks in the migration plan details.
I've attached screenshots of the appliance after removing the 'ghost' migration plan. You can see that only 3 migration plans are running at the same time. So, for me, it validates the fix.

All migration plans are now finished, so you can test it by yourself again. Moving back to ON_QA.

Comment 24 Shveta 2019-07-11 15:51:47 UTC
Created one plan with 8 VM's and throttling limit set to 3. 
At a time only three vm's started migration .
Working as expected.

Verified in 5.10.7.0.20190709151852_68f0bf9

Comment 26 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


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