python-libvirt domain.destroy() doesn't appear to be working for me

Jeremy Markle jeremy.markle at gmail.com
Sat Aug 22 16:25:21 UTC 2020


I clearly did something wrong but now it appears to be operating as
expected. Sorry and thank you.

On Sat, Aug 22, 2020 at 10:32 AM Jeremy Markle <jeremy.markle at gmail.com>
wrote:

> I'm using the python-libvirt library and finding that I cannot get
> .destroy() or .shutdown() to work.
>
>
> https://github.com/simora/docker-libvirt-flask/blob/cba6041b47bdf4ccb3b9506a0379cf8c788a9a57/root/app/mqtt.py#L96
>
> That is the line in my code. .create() works fine and using virsh in the
> docker container works fine to destroy the domain as well.
>
> This is based on ubuntu bionic in a docker container with the libvirt
> socket and such made available. .create() works, listing works and virsh
> works so permissions are not the issue. I'm confident I have failed to
> properly use the function or am missing the appropriate logging.
>
> Any assistance would be greatly appreciated.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20200822/b5a7226e/attachment.htm>


More information about the libvirt-users mailing list