Skip to content

Commit b2891f8

Browse files
authored
Merge pull request #1089 from rackerlabs/workflow-bm-port-create-update-delete
feat(workflows): add generic event handler and add ironic port create/update/delete handler
2 parents 23ad8f6 + 44f72c9 commit b2891f8

File tree

14 files changed

+1377
-1
lines changed

14 files changed

+1377
-1
lines changed

python/understack-workflows/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ enroll-server = "understack_workflows.main.enroll_server:main"
3737
bmc-password = "understack_workflows.main.print_bmc_password:main"
3838
bmc-kube-password = "understack_workflows.main.bmc_display_password:main"
3939
sync-network-segment-range = "understack_workflows.main.sync_ucvni_group_range:main"
40+
openstack-oslo-event = "understack_workflows.main.openstack_oslo_event:main"
4041

4142
[dependency-groups]
4243
test = [
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"oslo.version": "2.0", "oslo.message": "{\"message_id\": \"60510ffc-2827-47e8-bcb3-fcbd8b575718\", \"publisher_id\": \"ironic-api.ironic-api-df96c5d6f-c5qc9\", \"event_type\": \"baremetal.port.create.end\", \"priority\": \"INFO\", \"payload\": {\"ironic_object.name\": \"PortCRUDPayload\", \"ironic_object.namespace\": \"ironic\", \"ironic_object.version\": \"1.4\", \"ironic_object.data\": {\"address\": \"00:11:0a:69:a9:99\", \"extra\": {}, \"local_link_connection\": {\"port_id\": \"Ethernet1/1\", \"switch_info\": \"f20-1-2.iad3.rackspace.net\", \"switch_id\": \"c4:7e:e0:e4:2e:2f\"}, \"pxe_enabled\": true, \"node_uuid\": \"7ca98881-bca5-4c82-9369-66eb36292a95\", \"portgroup_uuid\": null, \"physical_network\": \"f20-1-network\", \"created_at\": \"2025-05-06T15:08:15Z\", \"updated_at\": null, \"uuid\": \"63a3c79c-dd84-4569-a398-cc795287300f\", \"is_smartnic\": false, \"name\": \"1327172-hp1:NIC2-1\"}}, \"timestamp\": \"2025-05-06 15:08:15.941967\", \"_unique_id\": \"7c019495da1c44c08f173f01a2818bcd\", \"_context_user\": \"c3fd23244abd42631651813496e0ee22bd2377690c1d9b0e7851804e0497775f\", \"_context_project_id\": \"32e02632f4f04415bab5895d1e7247b7\", \"_context_system_scope\": null, \"_context_project\": \"32e02632f4f04415bab5895d1e7247b7\", \"_context_domain\": null, \"_context_user_domain\": \"1f75c3b20fcb41ec924a71be83a5ee94\", \"_context_project_domain\": \"7f46f53fcb3c4625a343eaa35b5e0d04\", \"_context_is_admin\": false, \"_context_read_only\": false, \"_context_show_deleted\": false, \"_context_auth_token\": null, \"_context_request_id\": \"req-a7bf1545-9d58-49e4-a89c-147e509d28b8\", \"_context_global_request_id\": null, \"_context_resource_uuid\": null, \"_context_roles\": [\"manager\", \"reader\", \"member\", \"admin\"], \"_context_user_identity\": \"c3fd23244abd42631651813496e0ee22bd2377690c1d9b0e7851804e0497775f 32e02632f4f04415bab5895d1e7247b7 - 1f75c3b20fcb41ec924a71be83a5ee94 7f46f53fcb3c4625a343eaa35b5e0d04\", \"_context_is_admin_project\": true, \"_context_auth_token_info\": null}"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"oslo.version": "2.0", "oslo.message": "{\"message_id\": \"c631b385-a2b1-494a-a6a1-c59814142e14\", \"publisher_id\": \"ironic-api.ironic-api-77db784b6b-c9tgt\", \"event_type\": \"baremetal.port.delete.end\", \"priority\": \"INFO\", \"payload\": {\"ironic_object.name\": \"PortCRUDPayload\", \"ironic_object.namespace\": \"ironic\", \"ironic_object.version\": \"1.4\", \"ironic_object.data\": {\"address\": \"d4:04:e6:4f:64:5d\", \"extra\": {}, \"local_link_connection\": {\"switch_id\": \"f4:ee:31:c0:8c:b3\", \"port_id\": \"Ethernet1/14\", \"switch_info\": \"f20-5-1f.iad3.rackspace.net\"}, \"pxe_enabled\": false, \"node_uuid\": \"74feccaf-3aae-401c-bc1f-eeeb26b9f542\", \"portgroup_uuid\": null, \"physical_network\": \"f20-5-storage\", \"created_at\": \"2025-07-15T15:07:45Z\", \"updated_at\": null, \"uuid\": \"f8888f0b-1451-432e-9ae7-4b77303dd9ef\", \"is_smartnic\": false, \"name\": \"f8888f0b-1451-432e-9ae7-4b77303dd9ef:NIC.Integrated.1-2\"}}, \"timestamp\": \"2025-07-16 14:52:26.956274\", \"_unique_id\": \"4177c70d96704894b9a313d56769ce31\", \"_context_user\": \"775c8bb575bcb0b369d2d721ba5d187445590430617371f336f80f1d2a185284\", \"_context_project_id\": \"4d85c8112b3348eb9c8125399c96518d\", \"_context_system_scope\": null, \"_context_project\": \"4d85c8112b3348eb9c8125399c96518d\", \"_context_domain\": null, \"_context_user_domain\": \"74e1cbc0f8174766962df3bf08133f80\", \"_context_project_domain\": \"c4efd7a6df70434e8ebd67cdd0e55d22\", \"_context_is_admin\": false, \"_context_read_only\": false, \"_context_show_deleted\": false, \"_context_auth_token\": null, \"_context_request_id\": \"req-a5c0d4cb-253f-4172-812e-bcfe1a2f1980\", \"_context_global_request_id\": null, \"_context_resource_uuid\": null, \"_context_roles\": [\"admin\", \"member\", \"reader\", \"manager\", \"ucadmin-role\"], \"_context_user_identity\": \"775c8bb575bcb0b369d2d721ba5d187445590430617371f336f80f1d2a185284 4d85c8112b3348eb9c8125399c96518d - 74e1cbc0f8174766962df3bf08133f80 c4efd7a6df70434e8ebd67cdd0e55d22\", \"_context_is_admin_project\": true, \"_context_auth_token_info\": null}"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"oslo.version": "2.0", "oslo.message": "{\"message_id\": \"b7b8f913-caef-4004-bf8a-c5bfe92582c7\", \"publisher_id\": \"ironic-api.ironic-api-df96c5d6f-c5qc9\", \"event_type\": \"baremetal.port.update.end\", \"priority\": \"INFO\", \"payload\": {\"ironic_object.name\": \"PortCRUDPayload\", \"ironic_object.namespace\": \"ironic\", \"ironic_object.version\": \"1.4\", \"ironic_object.data\": {\"address\": \"00:11:0a:6a:c7:05\", \"extra\": {}, \"local_link_connection\": {\"port_id\": \"Ethernet1/1\", \"switch_info\": \"f20-1-1.iad3.rackspace.net\", \"switch_id\": \"c4:7e:e0:e3:ec:2b\"}, \"pxe_enabled\": true, \"node_uuid\": \"7ca98881-bca5-4c82-9369-66eb36292a95\", \"portgroup_uuid\": \"629b8821-6c0a-4a6f-9312-109fe8a0931f\", \"physical_network\": \"f20-1-network\", \"created_at\": \"2025-05-06T15:21:02Z\", \"updated_at\": \"2025-05-06T15:25:44Z\", \"uuid\": \"438711ba-1bcd-4f19-8b34-53cdc6d61bc4\", \"is_smartnic\": false, \"name\": \"1327172-hp1:NIC1-1\"}}, \"timestamp\": \"2025-05-06 15:25:45.276144\", \"_unique_id\": \"5897a8fff04a458b86b2f8d19fd4a5fa\", \"_context_user\": \"c3fd23244abd42631651813496e0ee22bd2377690c1d9b0e7851804e0497775f\", \"_context_project_id\": \"32e02632f4f04415bab5895d1e7247b7\", \"_context_system_scope\": null, \"_context_project\": \"32e02632f4f04415bab5895d1e7247b7\", \"_context_domain\": null, \"_context_user_domain\": \"1f75c3b20fcb41ec924a71be83a5ee94\", \"_context_project_domain\": \"7f46f53fcb3c4625a343eaa35b5e0d04\", \"_context_is_admin\": false, \"_context_read_only\": false, \"_context_show_deleted\": false, \"_context_auth_token\": null, \"_context_request_id\": \"req-fc0ebe40-d308-47c0-bcdb-4f603e60570d\", \"_context_global_request_id\": null, \"_context_resource_uuid\": null, \"_context_roles\": [\"manager\", \"reader\", \"member\", \"admin\"], \"_context_user_identity\": \"c3fd23244abd42631651813496e0ee22bd2377690c1d9b0e7851804e0497775f 32e02632f4f04415bab5895d1e7247b7 - 1f75c3b20fcb41ec924a71be83a5ee94 7f46f53fcb3c4625a343eaa35b5e0d04\", \"_context_is_admin_project\": true, \"_context_auth_token_info\": null}"}

0 commit comments

Comments
 (0)