yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #89028
[Bug 1976545] [NEW] Nova deletes port when detaching auto-created interface
Public bug reported:
Description
===========
When detaching an interface that was auto-created (for example, with
networks='auto' at server boot time), Nova deletes the port.
Steps to reproduce
==================
1. Boot a server with an auto-created Neutron port.
2. Detach the port using the Nova API.
Expected result
===============
Port is detached, but still present in Neutron. While it makes sense to delete auto-created ports when deleting the server to avoid leaking ports, IMO when an auto-created port is detached its ownership now belongs to the user, as they've explicitly requested an operation on it, and are now responsible for its future life cycle.
Actual result
=============
The port is completely deleted from Neutron.
Environment
===========
Reproduced on master with a func test, reported in stable/train.
** Affects: nova
Importance: Undecided
Status: New
--
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/1976545
Title:
Nova deletes port when detaching auto-created interface
Status in OpenStack Compute (nova):
New
Bug description:
Description
===========
When detaching an interface that was auto-created (for example, with
networks='auto' at server boot time), Nova deletes the port.
Steps to reproduce
==================
1. Boot a server with an auto-created Neutron port.
2. Detach the port using the Nova API.
Expected result
===============
Port is detached, but still present in Neutron. While it makes sense to delete auto-created ports when deleting the server to avoid leaking ports, IMO when an auto-created port is detached its ownership now belongs to the user, as they've explicitly requested an operation on it, and are now responsible for its future life cycle.
Actual result
=============
The port is completely deleted from Neutron.
Environment
===========
Reproduced on master with a func test, reported in stable/train.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1976545/+subscriptions