Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-13122

nova-compute restart breaks queued live migration objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • None
    • openstack-nova
    • False
    • Hide

      None

      Show
      None
    • False
    • rhos-workloads-compute
    • None
    • Low

      Description of problem:
      Customer faced a problem while working with RHOSP 16.2, but it looks like same behavior is going to affect newer releases as well. He restarted nova-compute service while some live migrations were in queued state. As a result, VM's state was changed from "Migrating" to "Active", while live migration still stayed in queued state. When customer tried to drop queued live migration using "nova live-migration-abort" command, his request failed:

      ERROR (Conflict): Instance XXXX is in an invalid state for 'abort live migration' (HTTP 409) (Request-ID: req-YYYY)

      It looks like the problem is coming from _reset_live_migration() method https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L1040-L1057 : it is only looking for "running" live migrations, while queued migrations are skipped. As a result,
      "nova.exception.MigrationNotFoundByStatus: Migration not found for instance XXX with status running." error is returned and nova-compute proceeds with VM's state reset and causes this situation.

      Version-Release number of selected component (if applicable):
      RHOSP 16.2, but it looks like this problem wasn't addressed in Nova so far

      How reproducible: please take a look at description

      Actual results: VM's task_state is reset, while queued live migration is not dropped

      Expected results: VM's task state is reset, queued live migration is dropped as well

              rribaud@redhat.com Rene Ribaud
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              rhos-workloads-compute
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: