-
Notifications
You must be signed in to change notification settings - Fork 123
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]: The old family Provider and ProviderRevision left when manually installed #1452
Comments
did you tried the following ? this is based on https://docs.upbound.io/providers/migration/#migrating-from-monolithic-to-family-official-providers which is the same at the end of the day please try it in a test cluster first ;) Set Revision Activation Policy to Manual:
Verify Provider Installation and Health Status: Confirm that the "manual family provider" is INSTALLED: False and HEALTHY: True.
Delete the Automatic Family Provider: After removing the automatic provider, update the revisionActivationPolicy for the manual-provider-family-aws from Manual to Automatic. This change will allow the provider to automatically manage its resources as needed. |
Same problem here. Tried @haarchri suggestion but the manual provider doesn't come to a HEALTY: True state because it says that the automatic one still exists.
I need to manually install the provider-family-aws because I realized that I'm running it on version v0.38.0, while the other providers (S3, Route53, etc.) are on version v1.0.0. Honestly, I don't know what happened, but it seems that even if I update the version of the Upbound AWS Providers image, provider-family-aws still remains on the old version and continues to install automatically with that version. |
Can you remove you Lock Lock resource remove the finalizer - can you send Provider and Providerrevision ? |
You're the man. It worked! So, the steps are the same as #1452 (comment) but you need to remove the Lock resource after you install the manual-provider-family-aws. Thanks for your help. |
The complication here originated from deploying the same provider package twice (one already existing as a dependency and another installed manually). In the PR description, both Ideally, if you have the family provider already deployed as a dependency and you want to change something, e.g. configure a |
Thanks for your explanation, in fact, another reason why I want to manually install the provider-family-aws is that when it's installed via a Provider dependency (e.g., the S3 provider), it doesn't respect the configured DeploymentRuntimeConfig and instead applies the default one. I need to use my RuntimeConfig because I've set tolerations and other deployment settings there. I think this comment talk about the same problem: #1088 (comment) |
@haarchri, thank you a lot. I managed to clean the clusters but not with little difficulty because the suggestion was not 100% working. The complete list of operations needed were:
Often, this was enough. Sometimes, I had to do it twice to clean the cluster. @turkenh, this is not a complication but a plausible scenario. If anyone initially installs the AWS Family provider but then realizes, for whatever reason, the need to assign a DeploymentRuntimeConfig to the automatically created provider and finish precisely in this situation. Manually editing the provider is not a plausible solution in a fully GitOps approach, so a more integrated solution makes profound sense. Furthermore, users should be able to choose their provider's name without impositions or hard-coded names. This bug is far from being solved because what we have is just a workaround, not a fix for the problem. |
Is there an existing issue for this?
Affected Resource(s)
No resources affected
Resource MRs required to reproduce the bug
No resources needed
Steps to Reproduce
To reproduce the problem:
What happened?
I expect the automatically installed version will disappear when the family provider is installed manually.
Of course, everything works on a clean cluster.
I am looking for a way to switch from automatic to manual family provider without reinstalling Crossplane in a cluster where there are already MRs used in production.
This is a follow-up bug concerning #1088
More details in the Slack discussion: https://crossplane.slack.com/archives/C05E0UE46S2/p1722852504359609
Relevant Error Output Snippet
The text was updated successfully, but these errors were encountered: