Skip to content

Dealbot does not remove pvc volumes when deleting dealbots #418

@travisperson

Description

@travisperson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions