Re: [PATCH v2] lxc: Cleanup after failed startup

2020-12-01 Thread Michal Privoznik
On 11/11/20 1:57 PM, Michal Privoznik wrote: > Polite ping. Michal

[PATCH v2] lxc: Cleanup after failed startup

2020-11-11 Thread Michal Privoznik
If starting an container fails, the virLXCProcessStop() is called. But since vm->def->id is not set until libvirt_lxc is spawned (the domain's ID is PID of that process), virLXCProcessStop() returns early as virDomainObjIsActive() returns false. But doing so leaves behind resources reserved for