Received: from eggs.gnu.org ([2001:4830:134:3::10]:54579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btgFx-0005Rm-Oa for qemu-devel@nongnu.org; Mon, 10 Oct 2016 15:29:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btgFw-0000J4-G5 for qemu-devel@nongnu.org; Mon, 10 Oct 2016 15:29:01 -0400 References: <1475272849-19990-1-git-send-email-jsnow@redhat.com> <1475272849-19990-3-git-send-email-jsnow@redhat.com> <20161005134312.GA1657@noname.str.redhat.com> <0e9d9739-b32b-8cff-3e34-ccc8e971b4c3@redhat.com> <2a33be0f-1f42-dd3c-93c2-2306811ea757@redhat.com> <20161010164542.xze564cbscx4t2up@eukaryote> From: Eric Blake Message-ID: <69d01f9f-0f41-c407-9bdc-4d43f34298e1@redhat.com> Date: Mon, 10 Oct 2016 14:28:52 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="04L5fWeTGpk2uQhoMG8nbmRQjJVmfkj9V" Subject: Re: [Qemu-devel] [PATCH v2 02/11] blockjob: centralize QMP event emissions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , Kashyap Chamarthy Cc: Kevin Wolf , vsementsov@virtuozzo.com, famz@redhat.com, qemu-block@nongnu.org, jcody@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --04L5fWeTGpk2uQhoMG8nbmRQjJVmfkj9V From: Eric Blake To: John Snow , Kashyap Chamarthy Cc: Kevin Wolf , vsementsov@virtuozzo.com, famz@redhat.com, qemu-block@nongnu.org, jcody@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Message-ID: <69d01f9f-0f41-c407-9bdc-4d43f34298e1@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 02/11] blockjob: centralize QMP event emissions References: <1475272849-19990-1-git-send-email-jsnow@redhat.com> <1475272849-19990-3-git-send-email-jsnow@redhat.com> <20161005134312.GA1657@noname.str.redhat.com> <0e9d9739-b32b-8cff-3e34-ccc8e971b4c3@redhat.com> <2a33be0f-1f42-dd3c-93c2-2306811ea757@redhat.com> <20161010164542.xze564cbscx4t2up@eukaryote> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/10/2016 01:36 PM, John Snow wrote: >>>> But if it cannot figure out which upper-layer disk the event is >>>> associated with, it just drops the event. So I think that from the >>>> libvirt perspective, you are okay if if you always report job events= , >>>> even for internal jobs. (Do we have a quick and easy way to set up = an >>>> internal job event, to double-check if I can produce some sort of >>>> libvirt scenario to trigger the event and see that it gets safely >>>> ignored?) >>>> >>> >>> Not in a QEMU release yet, I think. >> >> If not from an official QEMU release, it'd still be useful to work out= a >> a way to reproduce what Eric asked even from upstream Git master. >> >=20 > I'll be honest that I don't know; this is related to Replication which = I > know reasonably little about overall. It got added in the 2.8 timeframe= , > so the behavior it currently exhibits is not a good or meaningful > reference for maintaining compatibility. >=20 > We can /change/ the behavior before releases with no love lost. And if Replication is the only way to trigger internal use of jobs, then we aren't breaking libvirt (which doesn't know how to drive replication yet) by changing anything on that front. >=20 > Or, what if you just didn't get events for internal jobs? Are events fo= r > un-managed jobs useful in any sense beyond understanding the stateful > availability of the drive to participate in a new job? If libvirt isn't driving replication, then it's a moot point. And even though replication in libvirt is not supported yet, I suspect that down the road when support is added, the easiest thing for libvirt will be to state that replication and libvirt-controlled block jobs are mutually exclusive; there's probably enough lurking dragons that if your system MUST be high-reliance by replication, you probably don't want to be confusing things by changing the backing file depth manually with streams, pulls, or other manual actions at the same time as replication is managing the system, because how can you guarantee that both primary and secondary see the same manual actions at all the right times? At any rate, not seeing internal-only jobs is probably the most reasonable, even if it means an internal-only job can block the attempt to do a manual job. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --04L5fWeTGpk2uQhoMG8nbmRQjJVmfkj9V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX++v0AAoJEKeha0olJ0Nq3fYIAKaXCUp+zI6kpJ0Ecl3a4hBf roe1Ntur4GB2NrMtD0JAxQDOwWDuWqTotuQApMeuJJPnNH2n9xxd0VDlU7LlPNuz cUKo6vI++e/FuxPugJqqBicpX5p1LmM1Abd7R5fhqgG2vQ673h1PEDlZtXLzriY7 /xpQbn9XjYIxmOsoTbQZSNLf7JokWwoZQCxzkElTpE4xabmh1+Yszf2ndTdpEDuA GJtN6AwC2qBV02DDOLGsYxxHpsfoxIqJmPet5DG+YZ4AZ46CBczBqyArDAKs77dP xlUS0gVwStx+DDraVminh40yOSz/oIRwQObKMebboS4zLuHAc2OnyHk3GWeDhb8= =boLC -----END PGP SIGNATURE----- --04L5fWeTGpk2uQhoMG8nbmRQjJVmfkj9V--