← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1858639] Re: functional test test_migrate_within_cell takes 160 seconds to run

 

Reviewed:  https://review.opendev.org/701364
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=7845c0cdd310b5b25275aff239debfd72f7dceb8
Submitter: Zuul
Branch:    master

commit 7845c0cdd310b5b25275aff239debfd72f7dceb8
Author: Balazs Gibizer <balazs.gibizer@xxxxxxxx>
Date:   Tue Jan 7 14:46:24 2020 +0100

    Fix excessive runtime of test test_migrate_within_cell
    
    The test test_migrate_within_cell functional test takes 160 seconds to
    run.
    
    Seems like the cleanup after the test function takes the extra time.
    By looking at the test case it starts a migration then if that call
    returns 202 the test finishes. So the cleanup and the migration happen
    in parallel. By adding a wait for the server to finish migration
    removes the excessive run time.
    
    Change-Id: Ib4e1712d9724147ec8bdf90a1294041e62dfb136
    Closes-Bug: #1858639


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1858639

Title:
  functional test test_migrate_within_cell takes 160 seconds to run

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  The functional test
  nova.tests.functional.test_scheduler.MultiCellSchedulerTestCase.test_migrate_within_cell
  passes but it takes 160 seconds to run.

  Example run: 
  https://zuul.opendev.org/t/openstack/build/7fd0e6434c53422f9508466b7ead9b1e/log/job-output.txt#15531

  Output from local reproduction:
  http://paste.openstack.org/show/788119/

  Seems like the cleanup after the test function takes the extra time.
  By looking at the test case it starts a migration then if that call
  returns 202 the test finishes. So the cleanup and the migration happen
  in parallel. By adding a wait for the server to finish migration
  removes the excessive run time.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1858639/+subscriptions


References