-
Notifications
You must be signed in to change notification settings - Fork 207
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
Bug: Resource created with reconcile policy skip
and updated to manage
keeps AzureResourceNotFound status until long running operation finishes
#3788
Comments
My best guess is that this has to do with the logic for overwriting conditions: azure-service-operator/v2/pkg/genruntime/conditions/conditions.go Lines 230 to 237 in 543a399
|
Agree w/ your guess @nojnhuh. We'll take a look at fixing this |
matthchr
added a commit
to matthchr/azure-service-operator
that referenced
this issue
Feb 28, 2024
This fixes Azure#3788. AzureResourceNotFound only comes up when ReconcilePolicy is skip. This conditions priority being less than Reconciling allows skip -> reconcile to immediately update the condition to Reconciling rather than continuing to report AzureResourceNotFound until the resource is created.
3 tasks
github-merge-queue bot
pushed a commit
that referenced
this issue
Mar 5, 2024
This fixes #3788. AzureResourceNotFound only comes up when ReconcilePolicy is skip. This conditions priority being less than Reconciling allows skip -> reconcile to immediately update the condition to Reconciling rather than continuing to report AzureResourceNotFound until the resource is created.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of Azure Service Operator
v2.5.0
Describe the bug
Creating a resource with
reconcile-policy: skip
and then updating that tomanage
while the resource's Ready condition is false because of AzureResourceNotFound does not transition the reason to Reconciling when the ensuing PUT begins. Creating the same resource withreconcile-policy: manage
from the start shows a Reconciling reason for the duration of the operation like I would expect.To Reproduce
Steps to reproduce the behavior:
reason: AzureResourceNotFound
(as expected)manage
:reason
for the Ready condition toReconciling
Expected behavior
Immediately after step 3, I expect the ManagedCluster's Ready condition to still be false but with
reason: Reconciling
to reflect that ASO has successfully begun to create the resource. This is the behavior I observe when creating the ManagedCluster with themanage
reconcile policy straight away.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
CAPZ is basing some logic on the
reason
for the Ready condition, treating Reconciling as less severe than AzureResourceNotFound. This doesn't break any functionality for us, it only leads to some overly negative status reporting on CAPZ resources.The text was updated successfully, but these errors were encountered: