succeed to delete port and create port when node is active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
When the ironic node is active,we can not update the port, but we can delete and create the port. Should we limit delete and create action?
Below is the failed update and the successful delete and create.
Steps to reproduce:
1. create a BM instance and the ironic node become active:
# openstack baremetal node list
+------
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+------
| fa3b601c-
+------
2. show ironic port:
# openstack baremetal port show a77050ff-
+------
| Field | Value |
+------
| address | 52:54:00:16:36:d5 |
| created_at | 2017-12-
| extra | {} |
| internal_info | {u'tenant_
| local_link_
| node_uuid | fa3b601c-
| physical_network | None |
| portgroup_uuid | None |
| pxe_enabled | True |
| updated_at | 2017-12-
| uuid | a77050ff-
+------
3. update ironic port, failed:
# openstack baremetal port set --address 52:54:00:16:36:d0 a77050ff-
Error contacting Ironic server: Cannot update hardware address for port a77050ff-
Cannot update hardware address for port a77050ff-
4. delete ironic port, successful:
# openstack baremetal port delete a77050ff-
Deleted port a77050ff-
5. create ironic port, successful:
# openstack baremetal port create --node fa3b601c-
+------
| Field | Value |
+------
| address | 52:54:00:16:36:d5 |
| created_at | 2017-12-
| extra | {} |
| internal_info | {} |
| local_link_
| node_uuid | fa3b601c-
| physical_network | None |
| portgroup_uuid | None |
| pxe_enabled | True |
| updated_at | None |
| uuid | 36369f3f-
+------
Changed in ironic: | |
status: | New → Confirmed |
status: | Confirmed → Triaged |
assignee: | nobody → wangzhengwei (wangsansui) |
Changed in ironic: | |
importance: | Undecided → High |
Changed in ironic: | |
status: | Triaged → New |
Changed in ironic: | |
importance: | High → Wishlist |
assignee: | wangzhengwei (wangsansui) → nobody |
status: | In Progress → Triaged |
Update port action, only when the ironic node is active and maintenance is True, we can update the port.
But delete and create port action, we can do it at will.
Should we limit delete and create port action?
Limit delete and create port action, only when the node is active and maintenance is True, we can do it.