Skip to content

Commit f83520c

Browse files
authored
Merge pull request #1125 from Nordix/ensure-trunk-deletion
✨ Ensure trunk deletion
2 parents 506931f + b8943da commit f83520c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

hack/ci/cloud-init/controller.yaml.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
ENABLED_SERVICES+=,g-api
3636

3737
# Neutron
38-
ENABLED_SERVICES+=,neutron-api,neutron-agent,neutron-dhcp,neutron-l3
38+
ENABLED_SERVICES+=,neutron-api,neutron-agent,neutron-dhcp,neutron-l3,neutron-trunk
39+
3940
ENABLED_SERVICES+=,neutron-metadata-agent,neutron-qos
4041
# Octavia
4142
ENABLED_SERVICES+=,octavia,o-api,o-cw,o-hm,o-hk,o-da

pkg/cloud/services/networking/trunk.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ func (s *Service) DeleteTrunk(eventObject runtime.Object, portID string) error {
9595
record.Eventf(eventObject, "SuccessfulDeleteTrunk", "Trunk %s with id %s did not exist", trunkInfo[0].Name, trunkInfo[0].ID)
9696
return true, nil
9797
}
98+
if capoerrors.IsConflict(err) {
99+
return false, nil
100+
}
98101
if capoerrors.IsRetryable(err) {
99102
return false, nil
100103
}

0 commit comments

Comments
 (0)