Skip to content

Commit d9ca040

Browse files
committed
drop! testing pr-2578 in dev
1 parent 1af3a30 commit d9ca040

4 files changed

Lines changed: 7 additions & 18 deletions

File tree

‎components/images-openstack.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ images:
4343
neutron_metadata: "ghcr.io/rackerlabs/understack/neutron:2026.1"
4444
neutron_ovn_metadata: "ghcr.io/rackerlabs/understack/neutron:2026.1"
4545
neutron_openvswitch_agent: "ghcr.io/rackerlabs/understack/neutron:2026.1"
46-
neutron_server: "ghcr.io/rackerlabs/understack/neutron:2026.1"
46+
neutron_server: "ghcr.io/rackerlabs/understack/neutron:pr-2578"
4747
neutron_rpc_server: "ghcr.io/rackerlabs/understack/neutron:2026.1"
4848
neutron_ovn_maintenance_worker: "ghcr.io/rackerlabs/understack/neutron:2026.1"
4949
neutron_ironic_agent: "ghcr.io/rackerlabs/understack/neutron:2026.1"

‎components/ironic/cm-trait-based-networking.yaml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ data:
3131
filter: port.category == 'network'
3232
max_count: 1
3333
34-
# Attaches each side of a netdev (paloalto) router to its own NIC.
35-
# Each parent port's VIF attach sends its side in vif_info['tags'],
36-
# so a VIF lands only on the NIC of its own side.
34+
# Match each parent VIF's role tag to its NIC category.
3735
# wip:after dougs's changes pr-1011790 ironic gains vif.* filter variables
3836
# match vif.tags here instead the parent ports already carry these tags.
3937
CUSTOM_NETDEV_ROLE_ATTACH:

‎python/neutron-understack/neutron_understack/ironic.py‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@
3636
_RECONCILE_PROVISION_TIMEOUT = 60
3737
_PANOS_DRIVER = "panos"
3838
_ROUTER_RELEASE_MARKER = "understack_router_release" # release is in progress
39-
# 1. Ironic TBN trait of a node whose ports carry roles (category "outside" / "inside")
40-
# 2. enroll-fw adds it to the node
41-
# 3. adoption copies it into instance_info.traits, which is what makes Ironic apply the
42-
# matching rule in cm-trait-based-networking.yaml
39+
# Enrollment sets the node trait; adoption activates its TBN rule.
4340
ROLE_ATTACH_TRAIT = "CUSTOM_NETDEV_ROLE_ATTACH"
4441
_TENANT_VIF_KEY = "tenant_vif_port_id"
4542

@@ -186,13 +183,7 @@ def attach_vif_to_node(
186183
*,
187184
tags: list[str] | None = None,
188185
) -> None:
189-
"""Attach a Neutron port (VIF) to the node.
190-
191-
tags go in the attach request as vif_info['tags'], which Ironic's trait-based
192-
networking matches as network.tags
193-
Todo: Today The SDK call cannot send them, so a tagged attach posts
194-
the same request itself.
195-
"""
186+
"""Attach a VIF, forwarding optional role tags to Ironic's TBN rules."""
196187
node_id = node.id if isinstance(node, BaremetalNode) else node
197188
if not tags:
198189
LOG.info("Attaching VIF %s to Ironic node %s", vif_id, node_id)
@@ -202,8 +193,7 @@ def attach_vif_to_node(
202193
LOG.info(
203194
"Attaching VIF %s to Ironic node %s with tags %s", vif_id, node_id, tags
204195
)
205-
# Same version and retries as the SDK's Node.attach_vif: a 409 usually
206-
# means the node is locked, not that the VIF is in use.
196+
# The SDK cannot send VIF tags; post directly with its retry policy.
207197
response = self.irclient.post(
208198
f"/nodes/{node_id}/vifs",
209199
json={"id": vif_id, "tags": list(tags)},

‎workflows/argo-events/workflowtemplates/enroll-fw.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ spec:
5555
template: enroll-fw
5656
- name: enroll-fw
5757
container:
58-
image: ghcr.io/rackerlabs/understack/ironic-nautobot-client:latest
58+
image: ghcr.io/rackerlabs/understack/ironic-nautobot-client:pr-2578
59+
imagePullPolicy: Always
5960
command:
6061
- enroll-fw
6162
args:

0 commit comments

Comments
 (0)