From nobody Mon Nov 25 15:34:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1600101127; cv=none; d=zohomail.com; s=zohoarc; b=lWqVm89KK245xHMSCXPaj9cUR+Jziu/pXh9hdlq/1BlgBzQ8+h9AMq0VMtgpD7cnGS1XggUoN99JIQBfLqsWcCxfakWPGoJ/5T5iVmh0TJHx0BYi2Bh/AuXG2SUISkVoFhvqdFDVNhQV/vLTwpn7/kbu0bwUFtyn385I4N9Epok= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600101127; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=3MD2+hYk8ey2hyXJZNr8BefA1WVzNL4DXyf7CWTRcUQ=; b=CclfzFK8eGjVPK7j4FqvSCQqBg2+UJlLZ5KCS6BSVjRz/w+6KeJ9WQVFw3VQkFO7yYT6Cwv7MDSQGD3TRY57LN31gfNLgwJCa64Ux6eCRK+eTqXs6Cbv9e0887c9RkieSz52j2SoqdijhVywnl2mOR5Y2LQ9CnXM7cD7N6l0yME= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 160010112701362.463972655732846; Mon, 14 Sep 2020 09:32:07 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-579-A_osa7csMdGn8YPYWzoS5g-1; Mon, 14 Sep 2020 12:31:32 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CC54A1091060; Mon, 14 Sep 2020 16:31:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A68B07512F; Mon, 14 Sep 2020 16:31:26 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 763158C7D2; Mon, 14 Sep 2020 16:31:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08EGNacV005182 for ; Mon, 14 Sep 2020 12:23:36 -0400 Received: by smtp.corp.redhat.com (Postfix) id EA51E27BD0; Mon, 14 Sep 2020 16:23:36 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.92]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6043627BBF for ; Mon, 14 Sep 2020 16:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600101125; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3MD2+hYk8ey2hyXJZNr8BefA1WVzNL4DXyf7CWTRcUQ=; b=KpYtWPUXP5SdYJOHCoLMtaaQX67ukvDQGbdDBSQ9FjCUlV4S5j0R/NodRTaLsAkpTgXtlw bIEzF7fQwTDYn5llxXouxLH2rW68zmU1BW2oA2C6ddS9A/aH631BGBw8f5l/THVdoikWEx NnOwEzQqtX+1EQAjhU9Tpjecnz9EzJ0= X-MC-Unique: A_osa7csMdGn8YPYWzoS5g-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 3/3] qemu: backup: Write TLS cert and secret object aliases into status XML Date: Mon, 14 Sep 2020 18:23:29 +0200 Message-Id: <8d541f4406b30156b95aadfd4232ce27e09b04c0.1600100538.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" We've put the aliases into the backup job definition after the status XML was already writted so they didn't appear in the on-disk state. Move the code putting them into the private definition earlier, so that the status XML update done by saving blockjobs already writes them out. Also add a note notifying that the block job status update writes the status XML. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=3D1870488 Fixes: 423576679a5 Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_backup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_backup.c b/src/qemu/qemu_backup.c index 2f1a612803..4e61a5e52b 100644 --- a/src/qemu/qemu_backup.c +++ b/src/qemu/qemu_backup.c @@ -825,6 +825,9 @@ qemuBackupBegin(virDomainObjPtr vm, goto endjob; job_started =3D true; + priv->backup->tlsAlias =3D g_steal_pointer(&tlsAlias); + priv->backup->tlsSecretAlias =3D g_steal_pointer(&tlsSecretAlias); + /* qemuBackupDiskStarted saves the status XML */ qemuBackupDiskStarted(vm, dd, ndd); if (chk) { @@ -848,9 +851,6 @@ qemuBackupBegin(virDomainObjPtr vm, } } - priv->backup->tlsAlias =3D g_steal_pointer(&tlsAlias); - priv->backup->tlsSecretAlias =3D g_steal_pointer(&tlsSecretAlias); - ret =3D 0; endjob: --=20 2.26.2