← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1904051] [NEW] Intermittent failures in cross-cell functional tests

 

Public bug reported:

Some functional tests are failing due to the following error:

    Captured traceback:
    ~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/functional/test_cross_cell_migrate.py", line 1076, in test_resize_revert_from_stopped
    self.api.post_server_action(server['id'], {'migrate': None})

      File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/functional/api/client.py", line 268, in post_server_action
    return self.api_post(

      File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/functional/api/client.py", line 210, in api_post
    return APIResponse(self.api_request(relative_uri, **kwargs))

      File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/functional/api/client.py", line 186, in api_request
    raise OpenStackApiException(

    nova.tests.functional.api.client.OpenStackApiException: Unexpected
status code: {"conflictingRequest": {"code": 409, "message": "Cannot
'migrate' instance 8841d71c-c29d-4dc8-9736-98dbc6ee221f while it is in
task_state resize_reverting"}}

This appears to be because we're not waiting for the resize-revert
operation to fully complete before attempting other operations. We need
to wait for the versioned notification emitted on the source compute,
which occurs after the instance's task state has been updated, as
opposed to simply waiting for the migration record to change status,
which occurs before (and on the destination node).

** Affects: nova
     Importance: Medium
     Assignee: Stephen Finucane (stephenfinucane)
         Status: In Progress


** Tags: gate-failure

** Changed in: nova
       Status: New => Confirmed

-- 
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/1904051

Title:
  Intermittent failures in cross-cell functional tests

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Some functional tests are failing due to the following error:

      Captured traceback:
      ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):

        File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/functional/test_cross_cell_migrate.py", line 1076, in test_resize_revert_from_stopped
      self.api.post_server_action(server['id'], {'migrate': None})

        File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/functional/api/client.py", line 268, in post_server_action
      return self.api_post(

        File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/functional/api/client.py", line 210, in api_post
      return APIResponse(self.api_request(relative_uri, **kwargs))

        File "/home/zuul/src/opendev.org/openstack/nova/nova/tests/functional/api/client.py", line 186, in api_request
      raise OpenStackApiException(

      nova.tests.functional.api.client.OpenStackApiException: Unexpected
  status code: {"conflictingRequest": {"code": 409, "message": "Cannot
  'migrate' instance 8841d71c-c29d-4dc8-9736-98dbc6ee221f while it is in
  task_state resize_reverting"}}

  This appears to be because we're not waiting for the resize-revert
  operation to fully complete before attempting other operations. We
  need to wait for the versioned notification emitted on the source
  compute, which occurs after the instance's task state has been
  updated, as opposed to simply waiting for the migration record to
  change status, which occurs before (and on the destination node).

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


Follow ups