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

charts: upgrade is failing because of misinterpretation of storage-class change #585

Open
giubacc opened this issue Jun 14, 2023 · 4 comments
Labels
area/charts Related to the Helm chart itself kind/documentation Improvements or additions to documentation triage/proposal for closure There are reasons for this issue to be closed

Comments

@giubacc
Copy link

giubacc commented Jun 14, 2023

To Reproduce Steps to reproduce the behavior:

helm install s3gw -n s3gw --create-namespace s3gw/s3gw --set publicDomain=127.0.0.1.omg.howdoi.website --set ui.publicDomain=127.0.0.1.omg.howdoi.website --version 0.16.0 --wait

helm upgrade s3gw -n s3gw s3gw/s3gw --version 0.17.0 --wait

Expected behavior A clear and concise description of what you expected to
happen.

upgrade should not fail because of the following error:

Error: UPGRADE FAILED: cannot patch "s3gw-pvc" with kind PersistentVolumeClaim: PersistentVolumeClaim "s3gw-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: "10Gi", Format: "BinarySI"}}},
        VolumeName:       "pvc-ecb6dbe1-fee7-4f96-8a78-5667ae3c9109",
-       StorageClassName: &"local-path",
+       StorageClassName: nil,
        VolumeMode:       &"Filesystem",
        DataSource:       nil,
        DataSourceRef:    nil,
  }

the problem is that StorageClassName during the upgrade if not explicitly set with the value computed by k8s during the initial installation leads to the error above.

Not sure if this should be something we should point out explicitly in the documentation and explain the user how to retrieve the value of the storage-class and tell that this is a mandatory value to use when upgrading.

@github-actions github-actions bot added the triage/waiting Waiting for triage label Jun 14, 2023
@giubacc giubacc added area/kubernetes k8s and related kind/bug Something isn't working and removed triage/waiting Waiting for triage labels Jun 14, 2023
@giubacc
Copy link
Author

giubacc commented Oct 24, 2023

@m-ildefons @jecluis I don't know if this is still something we want to address given that the s3gw charts will be discontinued (?)
Could this case be something the controller should care as well?

@giubacc giubacc added the triage/proposal for closure There are reasons for this issue to be closed label Oct 24, 2023
@jecluis
Copy link
Contributor

jecluis commented Oct 24, 2023

I don't think the charts will be discontinued. The only thing being discontinued is the chart in the rancher marketplace.

Is there any other reason to close this issue?

@giubacc giubacc removed the triage/proposal for closure There are reasons for this issue to be closed label Oct 24, 2023
@giubacc
Copy link
Author

giubacc commented Oct 24, 2023

Is there any other reason to close this issue?

no ;)

So I guess it is only matter to decide the priority and if this should be a documentation issue.
I think we should/could mention this in the documentation when the s3gw will become GA and in the section dedicated to upgrades.

@giubacc giubacc added the triage/waiting Waiting for triage label Oct 24, 2023
@jecluis jecluis added kind/documentation Improvements or additions to documentation area/charts Related to the Helm chart itself and removed kind/bug Something isn't working area/kubernetes k8s and related triage/waiting Waiting for triage labels Oct 24, 2023
@jecluis jecluis added this to the v0.26.0 milestone Oct 24, 2023
@jecluis
Copy link
Contributor

jecluis commented Oct 24, 2023

marking as chart's documentation issue, to be reassessed later.

@jecluis jecluis removed this from the v0.26.0 milestone Mar 20, 2024
@jecluis jecluis added the triage/proposal for closure There are reasons for this issue to be closed label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/charts Related to the Helm chart itself kind/documentation Improvements or additions to documentation triage/proposal for closure There are reasons for this issue to be closed
Projects
Status: No status
Development

No branches or pull requests

2 participants