stolon-chart icon indicating copy to clipboard operation
stolon-chart copied to clipboard

Upgrade problems

Open Negashev opened this issue 5 years ago • 5 comments

Label In off chart is not updated after create app: {{ template "stolon.name" . }} https://github.com/helm/charts/blob/4527ebe8a36180ddd16973acddf476abe7264cfe/stable/stolon/templates/proxy-service.yaml#L6

In iwolf upgrade always if new version is deploy

https://github.com/lwolf/stolon-chart/blob/42e44c4241c29b06f70fafd034d1909498b0c559/stolon/templates/proxy-service.yaml#L7

app label change with problems on rancher

Installing
Failed to install app stolon-p-nkww4. Error: UPGRADE FAILED: Deployment.apps "stolon-p-nkww4-stolon-proxy" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"release":"stolon-p-nkww4", "stolon-cluster":"kube-stolon", "app":"stolon-p-nkww4-stolon-proxy", "chart":"stolon-0.8.1", "component":"stolon-proxy"}: `selector` does not match template `labels` && Deployment.apps "stolon-p-nkww4-stolon-sentinel" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"chart":"stolon-0.8.1", "component":"stolon-sentinel", "release":"stolon-p-nkww4", "stolon-cluster":"kube-stolon", "stolon-sentinel":"true", "app":"stolon-p-nkww4-stolon-sentinel"}: `selector` does not match template `labels` && StatefulSet.apps "stolon-p-nkww4-stolon-keeper" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"chart":"stolon-0.8.1", "component":"stolon-keeper", "release":"stolon-p-nkww4", "stolon-cluster":"kube-stolon", "app":"stolon-p-nkww4-stolon-keeper"}: `selector` does not match template `labels`

Negashev avatar Jun 15 '19 18:06 Negashev

I'm not sure I understand your issue. Are you trying to upgrade stolon installed by this [lwolf-charts/stolon] with stable/stolon?

lwolf avatar Jun 16 '19 09:06 lwolf

@lwolf No, I use only iwolf/stolon, and during the update, the version of the application changes in the labels, and the statefulsets are not updated as a result, the service does not find pods before rebooting

Negashev avatar Jun 16 '19 09:06 Negashev

I don't see how those labels could be the reason for the failed upgrade you described, at least not the labels you are changing in the attached PR.

Could you please provide steps to reproduce the issue?

lwolf avatar Jun 16 '19 10:06 lwolf

I can not simulate another update, but maybe this is a problem rancher that I use, but the problem is not reproduced on stable helm / stolon

Negashev avatar Jun 17 '19 06:06 Negashev

could you post the values.yaml file you use (with removed sensitive information like passwords) here?

lwolf avatar Jun 17 '19 17:06 lwolf