Skip to content

Fail to destroy VM having Ceph/RBD volumes #665

@fangebee

Description

@fangebee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions