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

[Bug]: LastAsyncOperation is failed, but resource has been marked as ready #684

Closed
1 task done
hannupiki-eficode opened this issue Mar 26, 2024 · 2 comments
Closed
1 task done
Labels
bug Something isn't working community

Comments

@hannupiki-eficode
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

At least these two:

  • network.azure.upbound.io/v1beta1 - ApplicationGateway
  • managedidentity.azure.upbound.io/v1beta1 - FederatedIdentityCredential

Resource MRs required to reproduce the bug

No response

Steps to Reproduce

  1. Create ApplicationGateway with proper configuration that does deploy it successfully
  2. Add spec.forProvider.authenticationCertificate object with invalid name
  3. Observe LastAsyncOperation and verify that resource status is still ready

If you use nested compositions, deploy ApplicationGateway into child composition and verify that also parent composition is showing everything as ready.

What happened?

Expected: Resource and compositions would be reporting resource as failed in all levels (parent and child composition and resource itself).
Observed: Resource, its composition and parent composition are showing everything as ready. Resource's LastActivityOperation is showing an error that prevents applying the change and therefor resource isn't matching the state that have been written into Git and pushed into cluster from there.

In these screenshots you see obvious failure that is rightfully failing, but also how these resources do look like with common ways of checking their status:

Output from kubectl get managed
kubectl get managed

Parent composition
Parent composition

Actual ApplicationGateway resource
Actual ApplicationGateway resource

Relevant Error Output Snippet

No response

Crossplane Version

1.15.1

Provider Version

xpkg.upbound.io/upbound/provider-azure-network:v1.0.0, xpkg.upbound.io/upbound/provider-azure-managedidentity:v1.0.0

Kubernetes Version

v1.27.7

Kubernetes Distribution

AKS

Additional Info

No response

@hannupiki-eficode hannupiki-eficode added the bug Something isn't working label Mar 26, 2024
@erhancagirici
Copy link
Collaborator

@hannupiki-eficode thanks for reporting. This issue is similar to crossplane-contrib/provider-upjet-aws#1164 . The cause is explained at crossplane-contrib/provider-upjet-aws#1164 (comment) and we will follow up there.

@turkenf
Copy link
Collaborator

turkenf commented Apr 25, 2024

I'm closing this issue because we introduced a fix for the issue in provider v1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
Development

No branches or pull requests

3 participants