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

We should remove charts from the DB if fetching the tarball fails #164

Closed
prydonius opened this issue Mar 6, 2018 · 3 comments · Fixed by #223
Closed

We should remove charts from the DB if fetching the tarball fails #164

prydonius opened this issue Mar 6, 2018 · 3 comments · Fixed by #223
Labels
component/asset-syncer Issue related to kubeapps asset-syncer component/packages Issue related to kubeapps packaging formats to be distributed (Helm chart and Carvel packages) component/ui Issue related to kubeapps UI kind/bug An issue that reports a defect in an existing feature

Comments

@prydonius
Copy link
Contributor

From @arapulido on February 16, 2018 15:41

I have Kubeapps deployed in Minikube (running 1.8, RBAC disabled)
I successfully deployed the service catalog (rbac disabled) and I was trying to add the OSBA broker to give it a spin.

I added the chart repo for OSBA (https://kubernetescharts.blob.core.windows.net/azure) and clicked on refreshed to get the charts.

The chart appears in the list of charts, but when I select it, the README file is not loaded, and the values file also show a 404.

Reason is that the tarball doesn't exist. We should remove those from the DB

screen shot 2018-02-16 at 4 35 30 pm

Copied from original issue: vmware-archive/dashboard#89

@prydonius
Copy link
Contributor Author

I did a helm fetch of this chart and there's no tarball for that chart. This is actually a bug in our chart syncing, since we dump metadata directly in the database we don't actually check if the tarball exists, but the readme and value fetching fails.

I think we can easily fix that by removing the chart from the db if fetching the tarball fails.

BTW, I think you were looking for the open-service-broker-azure chart, I'm guessing the Azure repo needs to be updated to remove that older chart (cc @ritazh @sozercan @arschles)

@prydonius prydonius added the kind/bug An issue that reports a defect in an existing feature label Mar 6, 2018
@prydonius
Copy link
Contributor Author

From @arapulido on February 16, 2018 16:7

@prydonius thanks! I have updated the description to better reflect the actual issue

@prydonius
Copy link
Contributor Author

#223 partially addresses this by adding a clear error message when the README is not there, however we still need to do something to indicate that the tarball could not be downloaded and the chart cannot be installed.

There are 2 possible solutions to this:

  1. Have the chart sync record a field in the chart version document indicating the tarball failed to download

This could be exposed as hasTarball or tarballExists and if this is false or undefined we can disable the "Deploy" button and explain that the tarball might not be accessible.

  1. Allow the chart version to be deployable, but have the Helm CRD controller report back that the tarball download failed.

This would be a longer term fix as it requires improvements to the Helm CRD controller, but something we may need to do anyway. The benefit of this is that the tarball not being available may be a temporary network issue, which may have recovered by the time of install.

@prydonius prydonius reopened this Apr 5, 2018
@prydonius prydonius removed this from the v0.6.0 milestone Apr 6, 2018
@prydonius prydonius added this to the Beyond 1.0 milestone Sep 27, 2018
@ppbaena ppbaena added component/packages Issue related to kubeapps packaging formats to be distributed (Helm chart and Carvel packages) and removed component/helm labels May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/asset-syncer Issue related to kubeapps asset-syncer component/packages Issue related to kubeapps packaging formats to be distributed (Helm chart and Carvel packages) component/ui Issue related to kubeapps UI kind/bug An issue that reports a defect in an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants