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

Automatic upgrade to 1.0.6 failing #92

Closed
EagleIJoe opened this issue Jun 2, 2021 · 6 comments
Closed

Automatic upgrade to 1.0.6 failing #92

EagleIJoe opened this issue Jun 2, 2021 · 6 comments

Comments

@EagleIJoe
Copy link

Upgrading from 1.0.5 via automatic strategy seems to be failing. Relevant event is:

install strategy failed: Deployment.apps "cert-utils-operator-controller-manager" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"operator":"cert-utils-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

@raffaelespazzoli
Copy link
Contributor

can you delete the operator deployment? OLM should recreate it for you. Please let me know how it goes.

@EagleIJoe
Copy link
Author

EagleIJoe commented Jun 3, 2021

@raffaelespazzoli completely removing the operator 1.0.6 and then re-adding it manually solved the issue. My 1.0.5 was in a different namespace as the default suggested, so that could have caused the hick-up maybe? on OCP 4.7

@madchr1st
Copy link

I had to remove the 1.0.5 subscription and uninstall the failing 1.0.6 operator and the reinstall the 1.0.6 operator. Using default namespace cert-utils-operator.

@raffaelespazzoli
Copy link
Contributor

raffaelespazzoli commented Jun 3, 2021 via email

@madchr1st
Copy link

Yes, full logs available in Elasticsearch, which ones do you need?
OLM logged:

I0603 07:59:58.724388       1 event.go:282] Event(v1.ObjectReference{Kind:"ClusterServiceVersion", Namespace:"cert-utils-operator", Name:"cert-utils-operator.v1.0.6", UID:"ced69576-1c5e-4588-81cd-0c86b85be683", APIVersion:"operators.coreos.com/v1alpha1", ResourceVersion:"613758835", FieldPath:""}): type: 'Warning' reason: 'InstallComponentFailed' install strategy failed: Deployment.apps "cert-utils-operator-controller-manager" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"operator":"cert-utils-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

@raffaelespazzoli
Copy link
Contributor

raffaelespazzoli commented Jun 3, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants