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

[BUG] 删除云账号的时候没有级联删除对应的serversku #20011

Closed
ilovedumplings opened this issue Apr 16, 2024 · 10 comments
Closed
Labels

Comments

@ilovedumplings
Copy link

问题描述/What happened:
删除云账号的时候没有级联删除对应的serversku,删除云账号的task,没有涉及相关serversku的删除应该
环境/Environment:
master分支

  • OS (e.g. cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Host: (e.g. dmidecode | egrep -i 'manufacturer|product' |sort -u)
  • Service Version (e.g. kubectl exec -n onecloud $(kubectl get pods -n onecloud | grep climc | awk '{print $1}') -- climc version-list):
@ilovedumplings ilovedumplings added the bug Something isn't working label Apr 16, 2024
@ioito
Copy link
Collaborator

ioito commented Apr 16, 2024

哪个云,这个云是否有其他云账号

@ilovedumplings
Copy link
Author

哪个云,这个云是否有其他云账号

私有云和公有云都有这个问题,私有云使用openstack,公有云使用的是阿里云

@ilovedumplings
Copy link
Author

#20011 (comment) 不知道这样改合适么

@ioito
Copy link
Collaborator

ioito commented Apr 16, 2024

err = self.purgeSkuResources(ctx)
这里会清除sku,需要region没有被其他账号引用后才会删

@ilovedumplings
Copy link
Author

err = self.purgeSkuResources(ctx)

这里会清除sku,需要region没有被其他账号引用后才会删

为什么region还被引用就允许云账号被删除呢?

@ilovedumplings
Copy link
Author

err = self.purgeSkuResources(ctx)

这里会清除sku,需要region没有被其他账号引用后才会删

err = self.purgeSkuResources(ctx)

这里会清除sku,需要region没有被其他账号引用后才会删

为什么region还被引用就允许云账号被删除呢?

而且云账号被删除之后,虚拟机就应该不存在了吧?那其region为什么还会被引用呢?

@ioito
Copy link
Collaborator

ioito commented Apr 16, 2024

公有云region是共用,最后一个云账号删除才会删除对应的region

@ilovedumplings
Copy link
Author

公有云region是共用,最后一个云账号删除才会删除对应的region

那私有云账号被删除了,我理解对应的私有云的region以后也就用不到了,而且私有云对应的虚拟机其实在平台应该都不可见了吧?那其实region应该也会被删除吧?但我私有云的region是没有被删除呢,这块是有什么考虑吗?

@ioito
Copy link
Collaborator

ioito commented Apr 16, 2024

#20020 试下这个改动

Copy link

If you do not provide feedback for more than 37 days, we will close the issue and you can either reopen it or submit a new issue.

您超过 37 天未反馈信息,我们将关闭该 issue,如有需求您可以重新打开或者提交新的 issue。

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

No branches or pull requests

2 participants