crossplane-contrib / provider-upjet-aws

Official AWS Provider for Crossplane by Upbound.
https://marketplace.upbound.io/providers/upbound/provider-aws
Apache License 2.0
142 stars 121 forks source link

cannot run refresh: refresh failed: #480

Closed nagavijayan-nagarathinam closed 1 month ago

nagavijayan-nagarathinam commented 1 year ago

What happened ?

I am tring to create group of IAM and securityGroup resources together, thats comes around totally 40 manage resources. it was able to keep sync state successful and everything looks good, Only when resource count is 20 to 25 at a time

But when the overall resource count goes beyond 30, i started to get this error messages in all the MR status.

How can we reproduce it?

Write 40 series of managed resource in a file combination of IAM role/policy/attachments SecurityGroups/Rules and apply that to reproduce it

What environment did it happen in?

Include at least the version or commit of Official AWS Provider you were running. Consider

also including your:

same error message getting across the resources

    Last Transition Time:  2023-02-02T12:25:28Z
    Message:               observe failed: cannot run plan: plan failed: 
    Reason:                ReconcileError
    Status:                False
    Type:                  Synced
    Last Transition Time:  2023-02-02T11:55:57Z
    Reason:                Available
    Status:                True
    Type:                  Ready
    Last Transition Time:  2023-02-02T11:54:36Z
    Reason:                Finished
    Status:                True
    Type:                  AsyncOperation
    Last Transition Time:  2023-02-02T11:54:36Z
    Reason:                Success
    Status:                True
    Type:                  LastAsyncOperation
  Warning  CannotObserveExternalResource    15m                  managed/iam.aws.upbound.io/v1beta1, kind=policy  cannot run plan: plan failed:
  Warning  CannotObserveExternalResource    11m (x3 over 29m)    managed/iam.aws.upbound.io/v1beta1, kind=policy  cannot run plan: plan failed:
  Warning  CannotUpdateManagedResource      10m                  managed/iam.aws.upbound.io/v1beta1, kind=policy  Operation cannot be fulfilled on policies.iam.aws.upbound.io "cplane-123-autoscaling-policy-vjv75-4": the object has been modified; please apply your changes to the latest version and try again
  Warning  CannotObserveExternalResource    8m56s (x5 over 28m)  managed/iam.aws.upbound.io/v1beta1, kind=policy  cannot run plan: plan failed:
  Warning  CannotObserveExternalResource    8m34s                managed/iam.aws.upbound.io/v1beta1, kind=policy  cannot run refresh: refresh failed:
  Warning  CannotObserveExternalResource    8m29s (x3 over 20m)  managed/iam.aws.upbound.io/v1beta1, kind=policy  cannot run refresh: refresh failed:
svscheg commented 1 year ago

Hi @nagavijayan-nagarathinam ! I just try reproduce the issue with the latest AWS Provider Version(v0.31.0) and seems can't reproduce it.

I used next example file with 40 resources:

test40.yaml.txt

apply this file and then checked that all resources created correctly:

Image

Could yo please try to reproduce this issue once again with the latest AWS Provider Version(v0.31.0) and if it will reproduced - please attach yaml with tested resource?

github-actions[bot] commented 2 months ago

This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

github-actions[bot] commented 1 month ago

This issue is being closed since there has been no activity for 14 days since marking it as stale. If you still need help, feel free to comment or reopen the issue!