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

not delete attached volume if fail DeleteVolume when calling DeleteVirtualMachine #58

Open
whywaita opened this issue Aug 20, 2020 · 1 comment

Comments

@whywaita
Copy link
Member

https://github.com/whywaita/satelit/blob/a49cf06b66f2f53d6bee6d50b94ef5ba6ba8ac24/pkg/api/ganymede.go#L112-L134

  • ganymede.DeleteVirtualMachine が成功する
  • europa.DeleteVolume は失敗する

という動作をするとAttachされたままのVolumeがゴミとして残ってしまう

@whywaita
Copy link
Member Author

何も考えずDetachVolume / DeleteVolumeをDeleteVirtualMachineの前で呼ぶとVolume側の外部キー制約にひっかかる。

@whywaita whywaita changed the title DeleteVirtualMachineでDeleteVolumeに失敗するとVMは消えるが実態のゴミが残る not delete attached volume if fail DeleteVolume when calling DeleteVirtualMachine Mar 8, 2021
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