chartmuseum icon indicating copy to clipboard operation
chartmuseum copied to clipboard

Helm Chart Not getting deleted from Chart Musuem

Open HamzaMalik95 opened this issue 2 years ago • 7 comments

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 avatar Jun 20 '22 13:06 HamzaMalik95

I anyone there

HamzaMalik95 avatar Jun 23 '22 10:06 HamzaMalik95

@jdolitsky can u please check it out

HamzaMalik95 avatar Jun 23 '22 10:06 HamzaMalik95

@scbizu

HamzaMalik95 avatar Jun 23 '22 10:06 HamzaMalik95

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

scbizu avatar Jun 23 '22 11:06 scbizu

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

HamzaMalik95 avatar Jun 23 '22 11:06 HamzaMalik95

What I have done is added this in my deployment file

Args: --cache-interval=1m

HamzaMalik95 avatar Jun 23 '22 11:06 HamzaMalik95

@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?

cbuto avatar Jun 24 '22 14:06 cbuto