yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #88928
[Bug 1974173] Re: Remaining ports are not unbound if one port is missing
Reviewed: https://review.opendev.org/c/openstack/nova/+/842528
Committed: https://opendev.org/openstack/nova/commit/9e0dcb52ab308a63c6a18e47d1850cc3ade4d807
Submitter: "Zuul (22348)"
Branch: master
commit 9e0dcb52ab308a63c6a18e47d1850cc3ade4d807
Author: Stephen Finucane <sfinucan@xxxxxxxxxx>
Date: Thu May 19 12:04:08 2022 +0100
neutron: Unbind remaining ports after PortNotFound
Just because we encountered a PortNotFound error when unbinding a port
doesn't mean we should stop unbinding the remaining ports. If this error
is encountered, simply continue with the other ports.
While we're here, we clean up some other tests related to '_unbind_port'
since they're clearly duplicates.
Change-Id: Id04e0df12829df4d8929e03a8b76b5cbe0549059
Signed-off-by: Stephen Finucane <sfinucan@xxxxxxxxxx>
Closes-Bug: #1974173
** 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/1974173
Title:
Remaining ports are not unbound if one port is missing
Status in OpenStack Compute (nova):
Fix Released
Bug description:
As part of the instance deletion process, we must unbind ports
associated with said instance. To do this, we loop over all ports
currently attached to an instance. However, if neutron returns HTTP
404 (Not Found) for any of these ports, we will return early and fail
to unbind the remaining ports. We've seen the problem in the context
of Kubernetes on OpenStack. Our deinstaller is brute-force, so it
deletes ports and servers at the same time, so a race means the port
can get deleted early. This normally wouldn't be an issue as we'd just
"untrunk" it and proceed to delete it. But that won't work for SR-IOV
ports as in that case you cannot "untrunk" bound ports.
The solution here is obvious: if we fail to find a port, we should
simply skip that and continue unbinding everything else.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1974173/+subscriptions
References