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

Helm upgrade fails with immutable modification error #1080

Closed
tscurtu opened this issue Oct 11, 2023 · 1 comment
Closed

Helm upgrade fails with immutable modification error #1080

tscurtu opened this issue Oct 11, 2023 · 1 comment
Labels
bug Something isn't working infrastructure Things that relate to setting up the runtime

Comments

@tscurtu
Copy link
Contributor

tscurtu commented Oct 11, 2023

This manifests on the 1.1.17 Helm charts. It happens both for when there previously was a chart installed from sources and from an official release. Uninstalling works around the error.

$ helm list
NAME          	NAMESPACE	REVISION	UPDATED                                	STATUS	CHART                	APP VERSION
sematic-server	[...]    	2       	2023-10-11 22:37:28.633201775 +0000 UTC	failed	sematic-server-1.1.16	v0.34.1

$ helm upgrade sematic-server sematic-ai/sematic-server -f [...]
Error: UPGRADE FAILED: cannot patch "sematic-server" with kind Deployment: Deployment.apps "sematic-server" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"sematic-server", "app.kubernetes.io/name":"sematic-server", "sematic.ai/component":"all"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

$ helm uninstall sematic-server

$ helm upgrade --install sematic-server sematic-ai/sematic-server -f [...]
Release "sematic-server" does not exist. Installing it now.
NAME: sematic-server
LAST DEPLOYED: Wed Oct 11 22:46:51 2023
NAMESPACE: [...]
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Sematic dashboard url: [...]

$ helm list
NAME          	NAMESPACE	REVISION	UPDATED                                	STATUS  	CHART                	APP VERSION
sematic-server	[...]    	1       	2023-10-11 22:46:51.895308881 +0000 UTC	deployed	sematic-server-1.1.17	v0.35.0
@tscurtu tscurtu added bug Something isn't working infrastructure Things that relate to setting up the runtime labels Oct 11, 2023
@tscurtu
Copy link
Contributor Author

tscurtu commented Oct 12, 2023

This was caused by the fact that the environment had previously had a version of deployment with a non-dedicated Socketio installation.

When upgrading from a previous non-dedicated version of the deployment to >= 0.35.0, you now have to uninstall the deployment first.

@tscurtu tscurtu closed this as completed Oct 12, 2023
github-merge-queue bot pushed a commit that referenced this issue Oct 12, 2023
These updated instructions avoid this issue:
#1080.
neutralino1 pushed a commit that referenced this issue Apr 3, 2024
These updated instructions avoid this issue:
#1080.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure Things that relate to setting up the runtime
Projects
None yet
Development

No branches or pull requests

1 participant