Fail to destroy VM having Ceph/RBD volumes
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- backend, infrastructure
Research direction
Start in instances/views.py at destroy, then follow delete_all_disks and refresh_instance_pools in vrtManager/instance.py, especially the get_pool_by_target(target_path).refresh(0) call. Reproduce destruction for a VM with a Ceph/RBD disk and trace the pool lookup. Done means the VM can be completely destroyed without the NoneType refresh error.
Written by the indexing model from the issue text.
Description
When trying to completely destroy a VM I got "Error 500" and the following stracktrace in logs:
File "/srv/webvirtcloud/instances/views.py", line 408, in destroy
instance.proxy.delete_all_disks()
File "/srv/webvirtcloud/vrtManager/instance.py", line 1257, in delete_all_disks
self.refresh_instance_pools()
File "/srv/webvirtcloud/vrtManager/instance.py", line 1420, in refresh_instance_pools
self.get_wvmStorages().get_pool_by_target(target_path).refresh(0)
AttributeError: 'NoneType' object has no attribute 'refresh'
This is because the VM has a disk on Ceph/RBD.
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 398
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from retspen/webvirtcloud
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
retspen/webvirtcloud#393 · 1 comment · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
retspen/webvirtcloud#683 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
retspen/webvirtcloud#682 ·
-
安装完成后打开控制头灰屏 Open
Difficulty 4/5 3-5 days Newbie friendliness 15/100
retspen/webvirtcloud#678 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
retspen/webvirtcloud#674 · 1 reaction ·
All issues in retspen/webvirtcloud
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·