-
Notifications
You must be signed in to change notification settings - Fork 70
provisioning controller: set correct status when platform=baremetal and no CR is found #75
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
Conversation
…nd no CR is found Assisted deploys with platform=baremetal, but without any provisioning CR. I believe the correct fix for this is to set the operator to Available=true, Disabled=true, Progressing=false, and requeue to wait to see if a provisioning CR is created.
|
/test e2e-metal-assisted |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stbenjam The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@stbenjam: The specified target(s) for
Use
DetailsIn response to this:
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. |
| } | ||
|
|
||
| // We're disabled, but requeue in case we get a provisioning CR | ||
| return ctrl.Result{}, fmt.Errorf("no provisioning CR found; will remain Disabled until CR available") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely clear if this is the right fix; will we hit the Reconcile loop if there's no CR at all? This might need to go to main.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return ctrl.Result{}, fmt.Errorf("no provisioning CR found; will remain Disabled until CR available") | |
| return ctrl.Result{}, nil |
We are watching the CR so we will get a Reconcile if one is created/updated. this will just cause a lot of unnecessary Reconcile calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to check in main; assisted is still failing and looking at the logs it looks like it does start but we're never reconciling which makes sense if there's no CR at all yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, this will only hit if you delete the cr. We probably need to initialize the status to Unsupported in case the cr never gets created
|
/test e2e-metal-assisted |
|
@stbenjam: The specified target(s) for
Use
DetailsIn response to this:
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. |
|
/test e2e-metal-assisted |
|
@stbenjam: The specified target(s) for
Use
DetailsIn response to this:
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. |
|
/refresh |
|
/test e2e-metal-assisted |
2 similar comments
|
/test e2e-metal-assisted |
|
/test e2e-metal-assisted |
|
@stbenjam: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/close Fixed by #81 |
|
@stbenjam: Closed this PR. DetailsIn response to this:
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. |
Assisted deploys with platform=baremetal, but without any provisioning
CR. I believe the correct fix for this is to set the operator to
Available=true, Disabled=true, Progressing=false, and requeue to wait to
see if a provisioning CR is created.