-
Notifications
You must be signed in to change notification settings - Fork 904
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
lock CRD upgrade fail going from 1.7.0 to 1.12.2 or higher. #4442
Comments
just a note we dropped v1alpha1 for lock in v1.11.0 #3479 |
Btw signing off. T'is 2:30 a.m. here and I have an early meeting tomorrow :( |
@phisco then we need a new release for that and add lock crd with v1alpha1 like v1.13.1 fix |
So now that I have had a couple of hours of sleep... Are these lock objects transient? Only 6 of our 8 dev clusters failed to update and they were all 1.7.0. And @turkenh also performed a 1.7.0 -> 1.12.2 upgrade without error. I am wondering if we can 'fix' our broken clusters by
|
Posted to slack |
Pretty sure that workaround is exactly what I did when I hit the Lock CRD issue with one of my clusters when upgrading to 1.11. |
If you installed Crossplane prior to version v1.4.0, you would have the v1alpha1 version of locks.pkg.crossplane.io. However, starting from version v1.4.0, the storageVersion was updated to v1beta1, and drop for v1alpha1 was in version v1.11.0 added a repo for reproduce this issue https://github.com/haarchri/crossplane-issue-4442 |
Thanks @haarchri, @phisco & @jbw976 I manually fixed one of our 2 broken dev clusters last night.
Again, thanks so much for the assist :) |
@phisco @turkenh - did you all already discuss a patch release for this Lock migration fixed by #4447 too? I'm not sure if I can articulate it, but I feel like this issue isn't quite as pervasive/severe/urgent as the CompositionRevision migration fix we put into v1.13.1. Thoughts? |
Hey everyone, I surveyed all of our clusters and while v1alpha1 shows up in versionNames a few times storedVersions is always v1beta1 at this point. Is v1alapha1 a problem if it is in versionNames or only if it is in storedVersions? |
What happened?
After upgrading from 1.7.0 to 1.12.2 we found that Crossplane init container failed to complete and was reporting
crossplane: error: core.initCommand.Run(): cannot initialize core: cannot apply crd: cannot patch object: CustomResourceDefinition.apiextensions.k8s.io "locks.pkg.crossplane.io" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
How can we reproduce it?
Upgrade from 1.7.0 to 1.12.2 plus ?????
@turkenh tried the upgrade but didn't see the above. Not sure what extra action is required.
What environment did it happen in?
Crossplane version: 1.12.2
k8s: 1.25.10 <!-- will try to get history of k8s upgrades
k8s distro : aws <!-- Teammate is checking how widespread this problem is, could be on others as well
os: Unavailable at this time
kernel: Unavailable at this time
The text was updated successfully, but these errors were encountered: