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

OCPBUGS-31467: Return from EnsureHostInPool on all NIC errors #1964

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nrb
Copy link

@nrb nrb commented May 7, 2024

When looking up the NIC, if there's an error, this function should return regardless of the error.

The previous code could proceed when an instance wasn't found, and the nic would be a nil pointer.

Carry of kubernetes#124541; that PR may not merge since the Azure cloud provider has been removed from the master branch.

The fix is present in https://github.com/kubernetes-sigs/cloud-provider-azure (https://github.com/kubernetes-sigs/cloud-provider-azure/blame/master/pkg/provider/azure_standard.go#L866), but not all customers are using the external provider.

I do not know exactly why this change is not present in k8s/k8s but is in k8s-sigs/cloud-provider-azure. The git blame for the relevant line is confusing to me.

When looking up the NIC, if there's an error, this function should
return regardless of the error.

The previous code could proceed when an instance wasn't found, and the
`nic` would be a nil pointer.

Signed-off-by: Nolan Brubaker <nolan@nbrubaker.com>
@openshift-ci-robot openshift-ci-robot added backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels May 7, 2024
@openshift-ci-robot
Copy link

@nrb: This pull request references Jira Issue OCPBUGS-31467, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @sunzhaohua2

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

When looking up the NIC, if there's an error, this function should return regardless of the error.

The previous code could proceed when an instance wasn't found, and the nic would be a nil pointer.

Carry of kubernetes#124541

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link

@nrb: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci openshift-ci bot added the vendor-update Touching vendor dir or related files label May 7, 2024
@openshift-ci-robot
Copy link

@nrb: This pull request references Jira Issue OCPBUGS-31467, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @sunzhaohua2

In response to this:

When looking up the NIC, if there's an error, this function should return regardless of the error.

The previous code could proceed when an instance wasn't found, and the nic would be a nil pointer.

Carry of kubernetes#124541; that PR may not merge since the Azure cloud provider has been removed from the master branch.

The fix is present in https://github.com/kubernetes-sigs/cloud-provider-azure (https://github.com/kubernetes-sigs/cloud-provider-azure/blame/master/pkg/provider/azure_standard.go#L866), but not all customers are using the external provider.

I do not know exactly why this change is not present in k8s/k8s but is in k8s-sigs/cloud-provider-azure. The git blame for the relevant line is confusing to me.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link

openshift-ci bot commented May 7, 2024

@nrb: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@JoelSpeed
Copy link

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 20, 2024
Copy link

openshift-ci bot commented May 20, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: JoelSpeed, nrb
Once this PR has been reviewed and has the lgtm label, please assign deads2k for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. vendor-update Touching vendor dir or related files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants