mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
lxc: Do not try to reconnect inactive domain when do lxcStartup
Otherwise if there are inactive lxc domains, lxcStartup will try to reconnect to sockets of these domains, which results in errors in libvirtd log.
This commit is contained in:
parent
0620e83d10
commit
0e7f7f8566
@ -1992,6 +1992,9 @@ lxcReconnectVM(void *payload, const void *name ATTRIBUTE_UNUSED, void *opaque)
|
||||
|
||||
virDomainObjLock(vm);
|
||||
|
||||
if (!virDomainObjIsActive(vm))
|
||||
goto cleanup;
|
||||
|
||||
priv = vm->privateData;
|
||||
if ((priv->monitor = lxcMonitorClient(driver, vm)) < 0) {
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user