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

Crash on startup from ClusterResourceSetBindingController #5961

Closed
killianmuldoon opened this issue Jan 20, 2022 · 4 comments · Fixed by #5969
Closed

Crash on startup from ClusterResourceSetBindingController #5961

killianmuldoon opened this issue Jan 20, 2022 · 4 comments · Fixed by #5969
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. kind/release-blocking Issues or PRs that need to be closed before the next CAPI release
Milestone

Comments

@killianmuldoon
Copy link
Contributor

Using backup and restore on a workload cluster with a ClusterResourceSet and ClusterResourceSetBinding which resulted in a crash on startup in the ClusterResourceSetBinding controller. The issue is a nil pointer exception due to insufficient nil checking around

if apierrors.IsNotFound(err) || !cluster.DeletionTimestamp.IsZero() {

Both cluster and error can be nil from the GetOwnerCluster function but this is not caught by our checks.

/good-first-issue

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 20, 2022
@k8s-ci-robot
Copy link
Contributor

@killianmuldoon:
This request has been marked as suitable for new contributors.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

Using backup and restore on a workload cluster with a ClusterResourceSet and ClusterResourceSetBinding which resulted in a crash on startup in the ClusterResourceSetBinding controller. The issue is a nil pointer exception due to insufficient nil checking around

if apierrors.IsNotFound(err) || !cluster.DeletionTimestamp.IsZero() {

Both cluster and error can be nil from the GetOwnerCluster function but this is not caught by our checks.

/good-first-issue

/kind bug

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.

@k8s-ci-robot k8s-ci-robot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jan 20, 2022
@killianmuldoon
Copy link
Contributor Author

@fabriziopandini
Copy link
Member

fabriziopandini commented Jan 20, 2022

Good catch! this is a candidate for backporting, also putting in the release as blocking, but we can re-evaluate near release

/milestone v1.1
/kind release-blocking

@k8s-ci-robot k8s-ci-robot added this to the v1.1 milestone Jan 20, 2022
@k8s-ci-robot k8s-ci-robot added the kind/release-blocking Issues or PRs that need to be closed before the next CAPI release label Jan 20, 2022
@aartij17
Copy link
Contributor

/assign @AartiJivrajani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. kind/release-blocking Issues or PRs that need to be closed before the next CAPI release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants