Skip to content

[release-1.28] [occm] Lookup ports by SG and not tags (#2355)#2538

Merged
k8s-ci-robot merged 1 commit intokubernetes:release-1.28from
shiftstack:cherry-pick-2355-to-release-1.28
Feb 7, 2024
Merged

[release-1.28] [occm] Lookup ports by SG and not tags (#2355)#2538
k8s-ci-robot merged 1 commit intokubernetes:release-1.28from
shiftstack:cherry-pick-2355-to-release-1.28

Conversation

@dulek
Copy link
Copy Markdown
Contributor

@dulek dulek commented Feb 7, 2024

This is a cherry-pick of #2355.

Release note:

NONE

* Update gophercloud to v1.6.0

* Lookup ports by SG and not tags

When creating an SG for an LB we tag the ports we attach the SG to in
order to be able to find them easily later on when the SG will be
getting deleted. We do that to simulate an API allowing us to filter
ports by attached SGs, but turns out - such an API already exists in
Neutron and Gophercloud v1.6.0 allows to use it.

This commit makes sure that when deleting an SG we're discovering ports
to remove it from by querying the Neutron filtering by SG. Moreover
tagging the ports with the SGs is removed to as not being necessary
anymore.

I've left the code removing the SG tags from ports for backward
compatibility.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 7, 2024
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 7, 2024
@jichenjc
Copy link
Copy Markdown
Contributor

jichenjc commented Feb 7, 2024

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 7, 2024
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jichenjc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2024
@k8s-ci-robot k8s-ci-robot merged commit f2a57de into kubernetes:release-1.28 Feb 7, 2024
@mandre mandre deleted the cherry-pick-2355-to-release-1.28 branch February 7, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants