[libvirt] [PATCH 4/4] Revert "Separate out StateAutoStart from StateInitialize"

Ján Tomko jtomko at redhat.com
Tue Mar 5 14:12:59 UTC 2019


On Mon, Mar 04, 2019 at 03:02:13PM +0100, Michal Privoznik wrote:
>https://bugzilla.redhat.com/show_bug.cgi?id=1685151
>
>This reverts commit e4a969092bda5b3b952963fdf6658895165040b7.
>
>Now that drivers may call virConnectOpen() on secondary drivers,
>it doesn't make much sense to have autostart separated from
>driver initialization callback. In fact, it creates a problem
>because one driver during its initialization might try to fetch
>an object from another driver but since the object is yet to be
>autostarted the fetch fails. This has been observed in reality:
>qemu driver performs qemuProcessReconnect() during qemu's
>stateInitialize phase which may call
>virDomainDiskTranslateSourcePool() which connects to the storage
>driver to look up the volume. But the storage driver did not
>autostarted its pools yet therefore volume lookup fails and

s/autostarted/autostart/

>the domain is killed.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/driver-state.h |  4 ----
> src/libvirt.c      | 14 +-------------
> 2 files changed, 1 insertion(+), 17 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190305/f980dcfe/attachment-0001.sig>


More information about the libvir-list mailing list