Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release reserved GCE IP address after ensure completes, irrespective of outcome. #97740

Merged
merged 1 commit into from Jan 6, 2021

Conversation

prameshj
Copy link
Contributor

@prameshj prameshj commented Jan 5, 2021

Previous behavior was to release the ip only upon success, but it should be released
on failure as well. Otherwise, an IP address will be unnecessarily consumed due to an
in-error service.

What type of PR is this?

What this PR does / why we need it:
Prior to this change, the controller behavior was to release the ip only upon success, but it should be released
on failure as well. Otherwise, an IP address will be unnecessarily consumed due to an
in-error service.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

GCE Internal LoadBalancer sync loop will now release the ILB IP address upon sync failure. An error in ILB forwarding rule creation will no longer leak IP addresses.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Previous behavior was to release the ip only upon success, but it should be released
on failure as well. Otherwise, an IP address will be unnecessarily consumed due to an
in-error service.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jan 5, 2021
@prameshj
Copy link
Contributor Author

prameshj commented Jan 5, 2021

/assign @MrHohn @freehan

@k8s-ci-robot k8s-ci-robot added area/cloudprovider sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jan 5, 2021
@prameshj
Copy link
Contributor Author

prameshj commented Jan 5, 2021

/triage accepted
/sig network
/kind bug

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. sig/network Categorizes an issue or PR as relevant to SIG Network. kind/bug Categorizes issue or PR as related to a bug. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Jan 5, 2021
Copy link
Member

@MrHohn MrHohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/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 Jan 5, 2021
@prameshj
Copy link
Contributor Author

prameshj commented Jan 6, 2021

/assign @liggitt @andrewsykim

@liggitt
Copy link
Member

liggitt commented Jan 6, 2021

/approve

@liggitt
Copy link
Member

liggitt commented Jan 6, 2021

/approve cancel

deferring to cloud-provider approvers

@liggitt
Copy link
Member

liggitt commented Jan 6, 2021

/unassign

@andrewsykim
Copy link
Member

/approve

Should this have release notes?

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewsykim, MrHohn, prameshj

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

The pull request process is described here

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Jan 6, 2021
@prameshj
Copy link
Contributor Author

prameshj commented Jan 6, 2021

/approve

Should this have release notes?

Since this is a bug fix, I had not added releases notes. Updated the PR now.

@cpanato
Copy link
Member

cpanato commented Jan 8, 2021

/priority important-soon

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jan 8, 2021
k8s-ci-robot added a commit that referenced this pull request Jan 8, 2021
…40-upstream-release-1.20

Automated cherry pick of #97740: Release reserved GCE IP address after ensure completes.
k8s-ci-robot added a commit that referenced this pull request Jan 8, 2021
…40-upstream-release-1.19

Automated cherry pick of #97740: Release reserved GCE IP address after ensure completes.
k8s-ci-robot added a commit that referenced this pull request Jan 8, 2021
…40-upstream-release-1.17

Automated cherry pick of #97740: Release reserved GCE IP address after ensure completes.
k8s-ci-robot added a commit that referenced this pull request Jan 8, 2021
…40-upstream-release-1.18

Automated cherry pick of #97740: Release reserved GCE IP address after ensure completes.
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. area/cloudprovider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. sig/network Categorizes an issue or PR as relevant to SIG Network. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants