Skip to content

Commit 571ec4b

Browse files
mandreopenshift-cherrypick-robot
authored andcommitted
Bug 2033862: Ensure subnets belong to the queried network
There is a known issue with Cisco ACI [1] that causes the query to return subnets that don't belong to the specified network. We can workaround it and ensure the subnets really belong to the network. [1] https://bugzilla.redhat.com/show_bug.cgi?id=2027305
1 parent a7442bb commit 571ec4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/cloud/openstack/clients/machineservice.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,11 @@ func (is *InstanceService) InstanceCreate(clusterName string, name string, clust
608608
return nil, err
609609
}
610610
for _, snet := range snetResults {
611+
// Under some circumstances the filter ignores the NetworkID
612+
// See https://bugzilla.redhat.com/show_bug.cgi?id=2033862
613+
if snet.NetworkID != netID {
614+
continue
615+
}
611616
nets = append(nets, openstackconfigv1.PortOpts{
612617
NetworkID: snet.NetworkID,
613618
NameSuffix: snet.ID,

0 commit comments

Comments
 (0)