[RFE] preventing from deleting a port used by an instance (locked instance can be rendered broken by deleting port)
Bug #1930866 reported by
George Shuklin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Wishlist
|
Miguel Lavalle |
Bug Description
'server lock' is indented to protect instance from simple mistakes (like removing the wrong instance, or shut-downing it). It does prevent shutdown, destruction and port detachment.
But if port is removed via `openstack port delete` it silently get removed from locked instance, effectively, breaking it.
Steps to reproduce:
```
openstack server create foo
openstack server lock foo
openstack port delete {id of the port of the instance}
```
Expected behavior: error message, rejecting to delete port, used by locked instance.
Actual behavior: port is removed, leaving locked instance without network.
I was able to reproduce it on nova 17.0.12, but newer versions may be affected too.
description: | updated |
Changed in neutron: | |
assignee: | nobody → Miguel Lavalle (minsel) |
To post a comment you must log in.
It's a valid bug, but as ports are Neutron's responsibility, I'm not sure what can be done in this case. Neutron is free to delete a port without checking anything about the instance it's attached to. Perhaps this can be changed to the Neutron component, to see if folks there have an idea?