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

Failed to upgrade the helm chart #1546

Closed
RobertIndie opened this issue May 3, 2023 · 4 comments · Fixed by #1775
Closed

Failed to upgrade the helm chart #1546

RobertIndie opened this issue May 3, 2023 · 4 comments · Fixed by #1775
Assignees
Labels
bug Something isn't working
Milestone

Comments

@RobertIndie
Copy link
Member

Apache StreamPipes version

dev (current development state)

Affected StreamPipes components

Backend, Connect, Processing Elements, UI

What happened?

When running helm upgrade streampipes ./ to upgrade the helm chart, it will throw errors:

Error: UPGRADE FAILED: cannot patch "backend-pvc" with kind PersistentVolumeClaim: PersistentVolumeClaim "backend-pvc" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims
  core.PersistentVolumeClaimSpec{
  	... // 2 identical fields
  	Resources:        {Requests: {s"storage": {i: {...}, s: "50Mi", Format: "BinarySI"}}},
  	VolumeName:       "pvc-a85d92d5-ab2f-4500-9d22-326629e3365b",
- 	StorageClassName: &"hostpath",
+ 	StorageClassName: nil,
  	VolumeMode:       &"Filesystem",
  	DataSource:       nil,
  	DataSourceRef:    nil,
  }
 && cannot patch "consul-pvc" with kind PersistentVolumeClaim: PersistentVolumeClaim "consul-pvc" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims
  core.PersistentVolumeClaimSpec{
  	... // 2 identical fields
  	Resources:        {Requests: {s"storage": {i: {...}, s: "20M", Format: "DecimalSI"}}},
  	VolumeName:       "pvc-89730b87-f414-48a9-b842-58a677f2ddb6",
- 	StorageClassName: &"hostpath",
+ 	StorageClassName: nil,
  	VolumeMode:       &"Filesystem",
  	DataSource:       nil,
  	DataSourceRef:    nil,
  }
 && cannot patch "couchdb-pvc" with kind PersistentVolumeClaim: PersistentVolumeClaim "couchdb-pvc" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims
  core.PersistentVolumeClaimSpec{
  	... // 2 identical fields
  	Resources:        {Requests: {s"storage": {i: {...}, s: "50M", Format: "DecimalSI"}}},
  	VolumeName:       "pvc-1f227581-aa7c-4ed4-a30f-3c2abc302118",
- 	StorageClassName: &"hostpath",
+ 	StorageClassName: nil,
  	VolumeMode:       &"Filesystem",
  	DataSource:       nil,
  	DataSourceRef:    nil,
  }
 && cannot patch "influxdb-pvc" with kind PersistentVolumeClaim: PersistentVolumeClaim "influxdb-pvc" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims
  core.PersistentVolumeClaimSpec{
  	... // 2 identical fields
  	Resources:        {Requests: {s"storage": {i: {...}, s: "250Mi", Format: "BinarySI"}}},
  	VolumeName:       "pvc-e1f7a48e-5c10-4d57-90c5-6a95d5eab867",
- 	StorageClassName: &"hostpath",
+ 	StorageClassName: nil,
  	VolumeMode:       &"Filesystem",
  	DataSource:       nil,
  	DataSourceRef:    nil,
  }
 && cannot patch "influxdb2-pvc" with kind PersistentVolumeClaim: PersistentVolumeClaim "influxdb2-pvc" is invalid: spec: Forbidden: spec is immutable after creation except resources.requests for bound claims
  core.PersistentVolumeClaimSpec{
  	... // 2 identical fields
  	Resources:        {Requests: {s"storage": {i: {...}, s: "250Mi", Format: "BinarySI"}}},
  	VolumeName:       "pvc-776895f1-3137-4853-b02a-22eae07f7cc7",
- 	StorageClassName: &"hostpath",
+ 	StorageClassName: nil,
  	VolumeMode:       &"Filesystem",
  	DataSource:       nil,
  	DataSourceRef:    nil,
  }

How to reproduce?

  1. Deploy the streampipes according to https://github.com/apache/streampipes/blob/dev/installer/k8s/README.md
  2. Upgrade the helm chart by executing helm upgrade streampipes ./.

Expected behavior

No response

Additional technical information

No response

Are you willing to submit a PR?

None

@RobertIndie RobertIndie added the bug Something isn't working label May 3, 2023
@bossenti
Copy link
Contributor

bossenti commented May 3, 2023

@smlabt maybe that's something where you can jump in ☺️

@luoluoyuyu
Copy link
Contributor

hi @RobertIndie
I think the reason for the error is that the value of StorageClassName is the empty string, so pv uses hostpath by default, we should change the value of StorageClassName to hostpath.

@RobertIndie
Copy link
Member Author

@luoluoyuyu Thanks for investigating. I assign this issue to you since you are already working on this issue.

luoluoyuyu added a commit to luoluoyuyu/streampipes that referenced this issue Jul 16, 2023
luoluoyuyu added a commit to luoluoyuyu/streampipes that referenced this issue Jul 16, 2023
tenthe pushed a commit that referenced this issue Jul 18, 2023
* Fix Helm Chart Upgrade Failure (#1546)

* Fix Helm Chart Upgrade Failure (#1546)
@bossenti bossenti linked a pull request Jul 18, 2023 that will close this issue
@bossenti bossenti added this to the 0.93.0 milestone Jul 18, 2023
@bossenti
Copy link
Contributor

resolved by #1775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants