[GH-ISSUE #665] Fail to destroy VM having Ceph/RBD volumes #384

Open
opened 2026-02-27 15:58:28 +03:00 by kerem · 0 comments
Owner

Originally created by @fangebee on GitHub (Mar 14, 2025).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/665

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.

Originally created by @fangebee on GitHub (Mar 14, 2025). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/665 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#384
No description provided.