From bca45815ea101c99669a8552411cc7b827f5bbaa Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Fri, 31 Mar 2023 19:37:07 +0200 Subject: [PATCH] Create nodes with namespace already prepended For some reason, BMO creates nodes without the namespace~ prefix, then updates them. This may cause conflicts between nodes belong to hosts from different namespaces. --- pkg/provisioner/ironic/ironic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provisioner/ironic/ironic.go b/pkg/provisioner/ironic/ironic.go index aa6760f5d7..e81b855c44 100644 --- a/pkg/provisioner/ironic/ironic.go +++ b/pkg/provisioner/ironic/ironic.go @@ -373,7 +373,7 @@ func (p *ironicProvisioner) ValidateManagementAccess(data provisioner.Management Driver: bmcAccess.Driver(), BIOSInterface: bmcAccess.BIOSInterface(), BootInterface: bmcAccess.BootInterface(), - Name: p.objectMeta.Name, + Name: ironicNodeName(p.objectMeta), DriverInfo: driverInfo, DeployInterface: p.deployInterface(data), InspectInterface: "inspector",