Port cannot be detached from a instance when the instance has multiple interfaces with same mac address
Issue
-
Detaching a port from an instance failed.
$ openstack server remove port instance0 port0 $ openstack server event list instance0 --long +------------+-----------+------------------+----------------------------+---------+---- | Request ID | Server ID | Action | Start Time | Message | ... +------------+-----------+------------------+----------------------------+---------+---- | req-...... | ......... | detach_interface | 2023-01-01T02:47:39.000000 | Error | ... | req-...... | ......... | create | 2023-01-01T02:46:48.000000 | None | ... +------------+-----------+------------------+----------------------------+---------+----
-
The instance has multiple ports with the same MAC address.
$ openstack port list --server instance0 +------+-------+-------------------+-----------------------------------------+--------+ | ID | Name | MAC Address | Fixed IP Addresses | Status | +------+-------+-------------------+-----------------------------------------+--------+ | .... | port0 | 00:00:00:00:00:aa | ip_address='10.0.0.4', subnet_id='...' | ACTIVE | | .... | port1 | 00:00:00:00:00:aa | ip_address='10.0.0.5, subnet_id='...' | ACTIVE | +------+-------+-------------------+-----------------------------------------+--------+
Environment
- Red Hat OpenStack Platform 16.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.