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

Dealbot does not remove pvc volumes when deleting dealbots #418

Open
travisperson opened this issue May 4, 2022 · 0 comments
Open

Dealbot does not remove pvc volumes when deleting dealbots #418

travisperson opened this issue May 4, 2022 · 0 comments

Comments

@travisperson
Copy link

travisperson commented May 4, 2022

Dealbot uses the lotus-bundle helm-chart when setting up dealbot lotus daemons.

Statefulsets do not clean up pvc resources and it's left up to the administrator to remove these volumes. Dealbot currently does not handle the deleting of the pvc after uninstalling the helm chart, and helm does not support deleting pvc from statefulsets either (helm/helm#5156)

func (s *KubernetesSpawner) Shutdown(regionid string, daemonid string) error {
actionConfig, _, err := s.actionConfig(regionid)
if err != nil {
log.Infow("could not create actionConfig during daemon Get", "err", err)
return err
}
client := action.NewUninstall(actionConfig)
_, err = client.Run(daemonid)
if err != nil {
return err
}
return nil
}

There is no way to delete the volume automatically. In k8s v1.23 there is an alpha feature to allow for this change. However, we will not be able to use this feature.

Dealbot will need to manually execute a delete action against the pvc for the lotus-bundle helm chart to clean up these volumes.

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

1 participant