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 Chart Not getting deleted from Chart Musuem #596

Open
HamzaMalik95 opened this issue Jun 20, 2022 · 7 comments
Open

Helm Chart Not getting deleted from Chart Musuem #596

HamzaMalik95 opened this issue Jun 20, 2022 · 7 comments

Comments

@HamzaMalik95
Copy link

I have deleted a helm chart but it's not getting deleted somehow,

Steps Performed:

  • Used Curl command to delete the helm chart:
    curl -u username:passwd -XDELETE https:///api/charts/kubernetes-dashboard/5.6.0

  • I do get the response that its deleted but it doesnt get deleted:
    {"deleted":true}

Logs:

{"L":"DEBUG","T":"2022-06-20T13:33:48.631Z","M":"[417863] Incoming request: /api/charts/kubernetes-dashboard/5.6.0","reqID":"354bafb0-1600-4bae-97a3-a1ab5bceb323"}
{"L":"DEBUG","T":"2022-06-20T13:33:48.631Z","M":"[417863] Deleting package from storage","package":"kubernetes-dashboard-5.6.0.tgz","reqID":"354bafb0-1600-4bae-97a3-a1ab5bceb323"}
{"L":"INFO","T":"2022-06-20T13:33:48.719Z","M":"[417863] Request served","path":"/api/charts/kubernetes-dashboard/5.6.0","comment":"","clientIP":"10.152.30.55","method":"DELETE","statusCode":200,"latency":"87.345932ms","reqID":"354bafb0-1600-4bae-97a3-a1ab5bceb323"}
{"L":"DEBUG","T":"2022-06-20T13:33:48.719Z","M":"[417863] Event received","event":{"repo_name":"","operation_type":2,"chart_version":{"name":"kubernetes-dashboard","version":"5.6.0","urls":null,"created":"0001-01-01T00:00:00Z"}},"reqID":"354bafb0-1600-4bae-97a3-a1ab5bceb323"}
{"L":"DEBUG","T":"2022-06-20T13:33:48.719Z","M":"[417863] Entry found in cache store","repo":"","reqID":"354bafb0-1600-4bae-97a3-a1ab5bceb323"}
{"L":"DEBUG","T":"2022-06-20T13:33:48.719Z","M":"[417863] Entry saved in cache store","repo":"","reqID":"354bafb0-1600-4bae-97a3-a1ab5bceb323"}
{"L":"DEBUG","T":"2022-06-20T13:33:48.719Z","M":"[417863] Event handled successfully","event":{"repo_name":"","operation_type":2,"chart_version":{"name":"kubernetes-dashboard","version":"5.6.0","urls":null,"created":"0001-01-01T00:00:00Z"}},"reqID":"354bafb0-1600-4bae-97a3-a1ab5bceb323"}
{"L":"DEBUG","T":"2022-06-20T13:33:48.833Z","M":"[417863] index-cache.yaml saved in storage","repo":"","reqID":"354bafb0-1600-4bae-97a3-a1ab5bceb323"}

@HamzaMalik95
Copy link
Author

I anyone there

@HamzaMalik95
Copy link
Author

@jdolitsky can u please check it out

@HamzaMalik95
Copy link
Author

@scbizu

@scbizu
Copy link
Contributor

scbizu commented Jun 23, 2022

It seems that the chart still in the cache , try to set cache-interval as small as possible

@HamzaMalik95
Copy link
Author

how can we set that like do we need to put it somewhere in deployment file?

@HamzaMalik95
Copy link
Author

What I have done is added this in my deployment file

Args:
--cache-interval=1m

@cbuto
Copy link
Contributor

cbuto commented Jun 24, 2022

@HamzaMalik95 thanks for reporting this, I have a few questions!

  1. Can you share more of the debug logs that show the chart was not deleted? Those logs show the chart was deleted, but I'd be interested to see logs that show a GET request to download the chart again.
  2. Did this happen while chartmuseum was under heavy load?
  3. Can you share your full ChartMuseum configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants