Description
/kind bug
This is from code inspection. In CreatePorts
we generate the port's name by index:
cluster-api-provider-openstack/pkg/cloud/services/networking/port.go
Lines 335 to 337 in 654d714
However, this index is not absolute. It is relative to the number of ports which were previously created:
cluster-api-provider-openstack/controllers/openstackmachine_controller.go
Lines 501 to 512 in 654d714
This means that if we declare 2 ports, create 1, fail, then create the other one on the next reconcile, they will both get the index 1.
This is not just untidy, it is also something we rely on in port adoption:
cluster-api-provider-openstack/pkg/cloud/services/networking/port.go
Lines 553 to 557 in 654d714
Metadata
Metadata
Assignees
Type
Projects
Status