Skip to content

Clean endpoint does not destroy the VM on libvirt #165

@lg-epitech

Description

@lg-epitech

I had a recoverable VM, I tried to clean it calling the folllowing endpoint:

DELETE /clean/{vm_id}

It seems like it did destroy the records in /var/lib/distribox/vms.

But the virtual machine was not destroyed from the libvirt pool.

❯ virsh -c qemu:///system list --all
 Id   Name                                   State
-------------------------------------------------------
 -    49971039-320a-489a-bdb4-ba2ed8b412c9   shut off

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions