Multiple migration requests for same vm might fail

Bug #1785568 reported by Yurii Prokulevych
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned
tripleo
Won't Fix
High
Unassigned

Bug Description

If there are multiple migration requests for the same instance,
the placement inventory might not be cleaned up in time,
leading to further migration requests to this compute to fail:

Allocation for VCPU on resource provider b6d1973f-bc39-4ea0-8d28-15f988f762e1 violates min_unit, max_unit, or step_size. Requested: 5, min_unit: 1, max_unit: 4, step_size: 1 Placement API returning an error response: Unable to allocate inventory: Unable to create allocation for 'VCPU' on resource provider The requested amount would violate inventory constraints

Changed in tripleo:
milestone: none → rocky-rc1
status: New → Triaged
importance: Undecided → High
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

I believe this should be fixed in Nova Placement. Not sure this belongs to tripleo.

Changed in nova:
status: New → Incomplete
Changed in tripleo:
status: Triaged → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-upgrade (stable/pike)

Reviewed: https://review.openstack.org/588479
Committed: https://git.openstack.org/cgit/openstack/tripleo-upgrade/commit/?id=fe8ede8f4ad8992b3f9ce05cef2db55d02a4a14e
Submitter: Zuul
Branch: stable/pike

commit fe8ede8f4ad8992b3f9ce05cef2db55d02a4a14e
Author: Yurii Prokulevych <email address hidden>
Date: Fri Aug 3 10:59:29 2018 +0200

    Don't invoke multiple migration requests for single vm.

    This is Pike only fix. If there are multiple migration requests
    for the same instance, the placement inventory might
    not be cleaned up in time, leading to further migration requests
    to this compute to fail:
      <snip>
      Allocation for VCPU on resource provider
      b6d1973f-bc39-4ea0-8d28-15f988f762e1 violates min_unit, max_unit,
        or step_size. Requested: 5, min_unit: 1, max_unit: 4, step_size: 1
      Placement API returning an error response:
       Unable to allocate inventory:
        Unable to create allocation for 'VCPU' on resource provider
         The requested amount would violate inventory constraints

    Change migration timeout to 180 seconds.
    Both nova-compute and neutron-openvswitch-agent have to be up to
    have live-migration working. Added check for neutron's part.

    Closes-Bug: 1785568
    Change-Id: If46c43aee9a409b59f2dcb139d739106bc9a562f

tags: added: in-stable-pike
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.