← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1983471] Re: Shelved (offloaded) instance still have port bound to host

 

Reviewed:  https://review.opendev.org/c/openstack/nova/+/853682
Committed: https://opendev.org/openstack/nova/commit/4eef0fe6354304b4639a3b635e4955457188e4ce
Submitter: "Zuul (22348)"
Branch:    master

commit 4eef0fe6354304b4639a3b635e4955457188e4ce
Author: Arnaud Morin <arnaud.morin@xxxxxxxxxxxx>
Date:   Thu Aug 18 17:52:58 2022 +0200

    Unbind port when offloading a shelved instance
    
    When offloading a shelved instance, the compute needs to remove the
    binding so the port will appear as "unbound" in neutron.
    
    Closes-Bug: 1983471
    
    Change-Id: Ia49271b126870c7936c84527a4c39ab96b6c5ea7
    Signed-off-by: Arnaud Morin <arnaud.morin@xxxxxxxxxxxx>


** 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/1983471

Title:
  Shelved (offloaded) instance still have port bound to host

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  
  Description
  ===========

  When shelving an instance, the instance is removed from the compute and the image is uploaded to glance.
  But, after completion, the port binding on neutron side is staying.

  This is not a big issue in most of the case, but some operators (like
  OVHcloud) rely on strong consistency between nova and neutron and
  expect the binding to be updated to avoid orphans.

  As stated on IRC with sean-k-mooney, this behavior was already spotted
  while working on another subject (see [1]).

  
  Steps to reproduce
  ==================

  
  # Boot an instance
  openstack server create ...

  # Wait for it to be fully booted, then shelve:
  openstack server shelve 57b3cbf6-9aa4-4da2-90ab-20cf518ea38e

  # Wait for shelve to be completed (offloaded)
  openstack server show 57b3cbf6-9aa4-4da2-90ab-20cf518ea38e
  ...
  | OS-EXT-STS:vm_state         | shelved_offloaded
  ...

  # List ports associated to the instance:
  openstack port list --server 57b3cbf6-9aa4-4da2-90ab-20cf518ea38e

  # Show the port:
  openstack port show f9144ff9-4261-476f-98f9-de0750f3db1a
  ...
  | binding_host_id         | compute-5
  | binding_vif_type        | ovs
  ...

  Expected result
  ===============
  ...
  | binding_host_id         | 
  | binding_vif_type        | unbound
  ...

  
  Environment
  ===========
  OpenStack victoria, but master is also affected

  
  [1] https://review.opendev.org/c/openstack/nova/+/832330/7/nova/tests/functional/libvirt/test_pci_sriov_servers.py#1286

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



References