render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
a41c76
From 753a2f4071eadeed34e92c9b3b98423ae33fbfad Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <753a2f4071eadeed34e92c9b3b98423ae33fbfad@dist-git>
a41c76
From: Peter Krempa <pkrempa@redhat.com>
a41c76
Date: Mon, 16 Mar 2020 22:11:54 +0100
a41c76
Subject: [PATCH] qemuDomainSecretStorageSourcePrepare: Change aliases for disk
a41c76
 secrets
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
Originally there was only the secret for authentication so we didn't use
a41c76
any suffix to tell it apart. With the introduction of encryption we
a41c76
added a 'luks' suffix for the encryption secrets. Since encryption is
a41c76
really generic and authentication is not the only secret modify the
a41c76
aliases for the secrets to better describe what they are used for.
a41c76
a41c76
This is possible as we store the disk secrets in the status XML thus
a41c76
only new machines will use the new secrets.
a41c76
a41c76
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a41c76
(cherry picked from commit 70d2758a9cee795b26563fe33b38a2396efa2324)
a41c76
https://bugzilla.redhat.com/show_bug.cgi?id=1804750
a41c76
Message-Id: <ca3a038969c81a17495add50a445901d5e42de5a.1584391727.git.pkrempa@redhat.com>
a41c76
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a41c76
---
a41c76
 src/qemu/qemu_domain.c                        |  4 +--
a41c76
 ...-backing-chains-noindex.x86_64-2.12.0.args |  4 +--
a41c76
 ...-backing-chains-noindex.x86_64-latest.args |  6 ++--
a41c76
 ...sk-hostdev-scsi-virtio-iscsi-auth-AES.args |  6 ++--
a41c76
 .../disk-network-iscsi.x86_64-2.12.0.args     | 12 +++----
a41c76
 .../disk-network-iscsi.x86_64-latest.args     |  8 ++---
a41c76
 .../disk-network-rbd.x86_64-2.12.0.args       |  4 +--
a41c76
 .../disk-network-rbd.x86_64-latest.args       |  4 +--
a41c76
 ...isk-network-source-auth.x86_64-2.12.0.args | 10 +++---
a41c76
 ...isk-network-source-auth.x86_64-latest.args |  8 ++---
a41c76
 .../disk-nvme.x86_64-latest.args              |  4 +--
a41c76
 .../encrypted-disk-usage.args                 |  4 +--
a41c76
 tests/qemuxml2argvdata/encrypted-disk.args    |  4 +--
a41c76
 .../luks-disks-source-qcow2.args              | 24 +++++++-------
a41c76
 ...luks-disks-source-qcow2.x86_64-latest.args | 32 +++++++++----------
a41c76
 tests/qemuxml2argvdata/luks-disks-source.args | 26 ++++++++-------
a41c76
 tests/qemuxml2argvdata/luks-disks.args        | 10 +++---
a41c76
 tests/qemuxml2argvdata/user-aliases.args      |  4 +--
a41c76
 18 files changed, 90 insertions(+), 84 deletions(-)
a41c76
a41c76
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
a41c76
index 3599e0c9aa..65df463acc 100644
a41c76
--- a/src/qemu/qemu_domain.c
a41c76
+++ b/src/qemu/qemu_domain.c
a41c76
@@ -1786,7 +1786,7 @@ qemuDomainSecretStorageSourcePrepare(qemuDomainObjPrivatePtr priv,
a41c76
                                                             &src->auth->seclookupdef);
a41c76
         } else {
a41c76
             srcPriv->secinfo = qemuDomainSecretAESSetupFromSecret(priv, aliasprotocol,
a41c76
-                                                                  NULL,
a41c76
+                                                                  "auth",
a41c76
                                                                   usageType,
a41c76
                                                                   src->auth->username,
a41c76
                                                                   &src->auth->seclookupdef);
a41c76
@@ -1798,7 +1798,7 @@ qemuDomainSecretStorageSourcePrepare(qemuDomainObjPrivatePtr priv,
a41c76
 
a41c76
     if (hasEnc) {
a41c76
         if (!(srcPriv->encinfo = qemuDomainSecretAESSetupFromSecret(priv, aliasformat,
a41c76
-                                                                    "luks",
a41c76
+                                                                    "encryption",
a41c76
                                                                     VIR_SECRET_USAGE_TYPE_VOLUME,
a41c76
                                                                     NULL,
a41c76
                                                                     &src->encryption->secrets[0]->seclookupdef)))
a41c76
diff --git a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-2.12.0.args b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-2.12.0.args
a41c76
index a8675debd5..47691339d6 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-2.12.0.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-2.12.0.args
a41c76
@@ -39,12 +39,12 @@ id=virtio-disk1 \
a41c76
 if=none,id=drive-virtio-disk2 \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk2,\
a41c76
 id=virtio-disk2 \
a41c76
--object secret,id=virtio-disk3-secret0,\
a41c76
+-object secret,id=virtio-disk3-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\
a41c76
 mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:\
a41c76
-6322,file.password-secret=virtio-disk3-secret0,format=qcow2,if=none,\
a41c76
+6322,file.password-secret=virtio-disk3-auth-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk3' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk3,\
a41c76
 id=virtio-disk3 \
a41c76
diff --git a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args
a41c76
index 4108943574..23ceb0aa48 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-backing-chains-noindex.x86_64-latest.args
a41c76
@@ -80,15 +80,15 @@ id=virtio-disk2 \
a41c76
 "node-name":"libvirt-15-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-15-format","read-only":true,"driver":"qcow2",\
a41c76
 "file":"libvirt-15-storage","backing":null}' \
a41c76
--object secret,id=libvirt-14-storage-secret0,\
a41c76
+-object secret,id=libvirt-14-storage-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"rbd","pool":"pool","image":"image",\
a41c76
 "server":[{"host":"mon1.example.org","port":"6321"},{"host":"mon2.example.org",\
a41c76
 "port":"6322"},{"host":"mon3.example.org","port":"6322"}],"user":"myname",\
a41c76
 "auth-client-required":["cephx","none"],\
a41c76
-"key-secret":"libvirt-14-storage-secret0","node-name":"libvirt-14-storage",\
a41c76
-"auto-read-only":true,"discard":"unmap"}' \
a41c76
+"key-secret":"libvirt-14-storage-auth-secret0",\
a41c76
+"node-name":"libvirt-14-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-14-format","read-only":false,"driver":"qcow2",\
a41c76
 "file":"libvirt-14-storage","backing":"libvirt-15-format"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=libvirt-14-format,\
a41c76
diff --git a/tests/qemuxml2argvdata/disk-hostdev-scsi-virtio-iscsi-auth-AES.args b/tests/qemuxml2argvdata/disk-hostdev-scsi-virtio-iscsi-auth-AES.args
a41c76
index aece52dad2..47b014aacc 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-hostdev-scsi-virtio-iscsi-auth-AES.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-hostdev-scsi-virtio-iscsi-auth-AES.args
a41c76
@@ -28,13 +28,13 @@ server,nowait \
a41c76
 -no-acpi \
a41c76
 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x3 \
a41c76
 -usb \
a41c76
--object secret,id=virtio-disk0-secret0,\
a41c76
+-object secret,id=virtio-disk0-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file.driver=iscsi,file.portal=example.org:6000,\
a41c76
 file.target=iqn.1992-01.com.example:storage,file.lun=1,file.transport=tcp,\
a41c76
-file.user=myname,file.password-secret=virtio-disk0-secret0,format=raw,if=none,\
a41c76
-id=drive-virtio-disk0 \
a41c76
+file.user=myname,file.password-secret=virtio-disk0-auth-secret0,format=raw,\
a41c76
+if=none,id=drive-virtio-disk0 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
 -object secret,id=hostdev0-secret0,\
a41c76
diff --git a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-2.12.0.args b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-2.12.0.args
a41c76
index 55347521da..930d8d5db2 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-2.12.0.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-2.12.0.args
a41c76
@@ -38,22 +38,22 @@ file.target=iqn.1992-01.com.example,file.lun=1,file.transport=tcp,format=raw,\
a41c76
 if=none,id=drive-virtio-disk1 \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,\
a41c76
 id=virtio-disk1 \
a41c76
--object secret,id=virtio-disk2-secret0,\
a41c76
+-object secret,id=virtio-disk2-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file.driver=iscsi,file.portal=example.org:6000,\
a41c76
 file.target=iqn.1992-01.com.example:storage,file.lun=1,file.transport=tcp,\
a41c76
-file.user=myname,file.password-secret=virtio-disk2-secret0,format=raw,if=none,\
a41c76
-id=drive-virtio-disk2 \
a41c76
+file.user=myname,file.password-secret=virtio-disk2-auth-secret0,format=raw,\
a41c76
+if=none,id=drive-virtio-disk2 \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk2,\
a41c76
 id=virtio-disk2 \
a41c76
--object secret,id=virtio-disk3-secret0,\
a41c76
+-object secret,id=virtio-disk3-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file.driver=iscsi,file.portal=example.org:6000,\
a41c76
 file.target=iqn.1992-01.com.example:storage,file.lun=2,file.transport=tcp,\
a41c76
-file.user=myname,file.password-secret=virtio-disk3-secret0,format=raw,if=none,\
a41c76
-id=drive-virtio-disk3 \
a41c76
+file.user=myname,file.password-secret=virtio-disk3-auth-secret0,format=raw,\
a41c76
+if=none,id=drive-virtio-disk3 \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk3,\
a41c76
 id=virtio-disk3 \
a41c76
 -drive file.driver=iscsi,file.portal=example.org:3260,\
a41c76
diff --git a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args
a41c76
index 8831db6622..1cb2f369f6 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args
a41c76
@@ -42,23 +42,23 @@ id=virtio-disk0,bootindex=1 \
a41c76
 "file":"libvirt-4-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=libvirt-4-format,\
a41c76
 id=virtio-disk1 \
a41c76
--object secret,id=libvirt-3-storage-secret0,\
a41c76
+-object secret,id=libvirt-3-storage-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"iscsi","portal":"example.org:6000",\
a41c76
 "target":"iqn.1992-01.com.example:storage","lun":1,"transport":"tcp",\
a41c76
-"user":"myname","password-secret":"libvirt-3-storage-secret0",\
a41c76
+"user":"myname","password-secret":"libvirt-3-storage-auth-secret0",\
a41c76
 "node-name":"libvirt-3-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-3-format","read-only":false,"driver":"raw",\
a41c76
 "file":"libvirt-3-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=libvirt-3-format,\
a41c76
 id=virtio-disk2 \
a41c76
--object secret,id=libvirt-2-storage-secret0,\
a41c76
+-object secret,id=libvirt-2-storage-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"iscsi","portal":"example.org:6000",\
a41c76
 "target":"iqn.1992-01.com.example:storage","lun":2,"transport":"tcp",\
a41c76
-"user":"myname","password-secret":"libvirt-2-storage-secret0",\
a41c76
+"user":"myname","password-secret":"libvirt-2-storage-auth-secret0",\
a41c76
 "node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-2-format","read-only":false,"driver":"raw",\
a41c76
 "file":"libvirt-2-storage"}' \
a41c76
diff --git a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-2.12.0.args b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-2.12.0.args
a41c76
index 18cb534552..21d1c2deba 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-2.12.0.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-2.12.0.args
a41c76
@@ -45,12 +45,12 @@ id=virtio-disk2 \
a41c76
 format=raw,if=none,id=drive-virtio-disk3 \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk3,\
a41c76
 id=virtio-disk3 \
a41c76
--object secret,id=virtio-disk4-secret0,\
a41c76
+-object secret,id=virtio-disk4-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\
a41c76
 mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:\
a41c76
-6322,file.password-secret=virtio-disk4-secret0,format=raw,if=none,\
a41c76
+6322,file.password-secret=virtio-disk4-auth-secret0,format=raw,if=none,\
a41c76
 id=drive-virtio-disk4' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk4,\
a41c76
 id=virtio-disk4 \
a41c76
diff --git a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args
a41c76
index 2d05e63cd2..4c26dad497 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-network-rbd.x86_64-latest.args
a41c76
@@ -56,14 +56,14 @@ id=virtio-disk2 \
a41c76
 "file":"libvirt-3-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=libvirt-3-format,\
a41c76
 id=virtio-disk3 \
a41c76
--object secret,id=libvirt-2-storage-secret0,\
a41c76
+-object secret,id=libvirt-2-storage-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"rbd","pool":"pool","image":"image",\
a41c76
 "server":[{"host":"mon1.example.org","port":"6321"},{"host":"mon2.example.org",\
a41c76
 "port":"6322"},{"host":"mon3.example.org","port":"6322"}],"user":"myname",\
a41c76
 "auth-client-required":["cephx","none"],\
a41c76
-"key-secret":"libvirt-2-storage-secret0","node-name":"libvirt-2-storage",\
a41c76
+"key-secret":"libvirt-2-storage-auth-secret0","node-name":"libvirt-2-storage",\
a41c76
 "auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-2-format","read-only":false,"driver":"raw",\
a41c76
 "file":"libvirt-2-storage"}' \
a41c76
diff --git a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args
a41c76
index f34c6b678d..279d5c73ec 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-2.12.0.args
a41c76
@@ -27,21 +27,21 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
a41c76
 -no-acpi \
a41c76
 -boot strict=on \
a41c76
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
a41c76
--object secret,id=virtio-disk0-secret0,\
a41c76
+-object secret,id=virtio-disk0-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file.driver=iscsi,file.portal=example.org:6000,\
a41c76
 file.target=iqn.1992-01.com.example:storage,file.lun=1,file.transport=tcp,\
a41c76
-file.user=myname,file.password-secret=virtio-disk0-secret0,format=raw,if=none,\
a41c76
-id=drive-virtio-disk0 \
a41c76
+file.user=myname,file.password-secret=virtio-disk0-auth-secret0,format=raw,\
a41c76
+if=none,id=drive-virtio-disk0 \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x2,drive=drive-virtio-disk0,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
--object secret,id=virtio-disk1-secret0,\
a41c76
+-object secret,id=virtio-disk1-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive 'file=rbd:pool/image:id=myname:auth_supported=cephx\;none:\
a41c76
 mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:\
a41c76
-6322,file.password-secret=virtio-disk1-secret0,format=raw,if=none,\
a41c76
+6322,file.password-secret=virtio-disk1-auth-secret0,format=raw,if=none,\
a41c76
 id=drive-virtio-disk1' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x3,drive=drive-virtio-disk1,\
a41c76
 id=virtio-disk1 \
a41c76
diff --git a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args
a41c76
index 057cd97273..182c8ab883 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-network-source-auth.x86_64-latest.args
a41c76
@@ -27,25 +27,25 @@ file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
a41c76
 -no-acpi \
a41c76
 -boot strict=on \
a41c76
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
a41c76
--object secret,id=libvirt-2-storage-secret0,\
a41c76
+-object secret,id=libvirt-2-storage-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"iscsi","portal":"example.org:6000",\
a41c76
 "target":"iqn.1992-01.com.example:storage","lun":1,"transport":"tcp",\
a41c76
-"user":"myname","password-secret":"libvirt-2-storage-secret0",\
a41c76
+"user":"myname","password-secret":"libvirt-2-storage-auth-secret0",\
a41c76
 "node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-2-format","read-only":false,"driver":"raw",\
a41c76
 "file":"libvirt-2-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x2,drive=libvirt-2-format,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
--object secret,id=libvirt-1-storage-secret0,\
a41c76
+-object secret,id=libvirt-1-storage-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"rbd","pool":"pool","image":"image",\
a41c76
 "server":[{"host":"mon1.example.org","port":"6321"},{"host":"mon2.example.org",\
a41c76
 "port":"6322"},{"host":"mon3.example.org","port":"6322"}],"user":"myname",\
a41c76
 "auth-client-required":["cephx","none"],\
a41c76
-"key-secret":"libvirt-1-storage-secret0","node-name":"libvirt-1-storage",\
a41c76
+"key-secret":"libvirt-1-storage-auth-secret0","node-name":"libvirt-1-storage",\
a41c76
 "auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw",\
a41c76
 "file":"libvirt-1-storage"}' \
a41c76
diff --git a/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args b/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args
a41c76
index 3393a9129b..2d52c58dff 100644
a41c76
--- a/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args
a41c76
+++ b/tests/qemuxml2argvdata/disk-nvme.x86_64-latest.args
a41c76
@@ -46,7 +46,7 @@ id=virtio-disk1 \
a41c76
 "file":"libvirt-2-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=libvirt-2-format,\
a41c76
 id=virtio-disk2 \
a41c76
--object secret,id=libvirt-1-format-luks-secret0,\
a41c76
+-object secret,id=libvirt-1-format-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"nvme","device":"0001:02:00.0","namespace":2,\
a41c76
@@ -54,7 +54,7 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 "auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-1-format","read-only":false,\
a41c76
 "cache":{"direct":true,"no-flush":false},"driver":"qcow2",\
a41c76
-"encrypt":{"format":"luks","key-secret":"libvirt-1-format-luks-secret0"},\
a41c76
+"encrypt":{"format":"luks","key-secret":"libvirt-1-format-encryption-secret0"},\
a41c76
 "file":"libvirt-1-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=libvirt-1-format,\
a41c76
 id=virtio-disk3,write-cache=on \
a41c76
diff --git a/tests/qemuxml2argvdata/encrypted-disk-usage.args b/tests/qemuxml2argvdata/encrypted-disk-usage.args
a41c76
index 4522d2cb84..8641701293 100644
a41c76
--- a/tests/qemuxml2argvdata/encrypted-disk-usage.args
a41c76
+++ b/tests/qemuxml2argvdata/encrypted-disk-usage.args
a41c76
@@ -27,11 +27,11 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
a41c76
 -no-shutdown \
a41c76
 -no-acpi \
a41c76
 -usb \
a41c76
--object secret,id=virtio-disk0-luks-secret0,\
a41c76
+-object secret,id=virtio-disk0-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk,encrypt.format=luks,\
a41c76
-encrypt.key-secret=virtio-disk0-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=virtio-disk0-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk0 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
diff --git a/tests/qemuxml2argvdata/encrypted-disk.args b/tests/qemuxml2argvdata/encrypted-disk.args
a41c76
index 4522d2cb84..8641701293 100644
a41c76
--- a/tests/qemuxml2argvdata/encrypted-disk.args
a41c76
+++ b/tests/qemuxml2argvdata/encrypted-disk.args
a41c76
@@ -27,11 +27,11 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
a41c76
 -no-shutdown \
a41c76
 -no-acpi \
a41c76
 -usb \
a41c76
--object secret,id=virtio-disk0-luks-secret0,\
a41c76
+-object secret,id=virtio-disk0-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk,encrypt.format=luks,\
a41c76
-encrypt.key-secret=virtio-disk0-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=virtio-disk0-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk0 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
diff --git a/tests/qemuxml2argvdata/luks-disks-source-qcow2.args b/tests/qemuxml2argvdata/luks-disks-source-qcow2.args
a41c76
index ab1c864cf6..e7a29b2e03 100644
a41c76
--- a/tests/qemuxml2argvdata/luks-disks-source-qcow2.args
a41c76
+++ b/tests/qemuxml2argvdata/luks-disks-source-qcow2.args
a41c76
@@ -27,53 +27,53 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
a41c76
 -no-shutdown \
a41c76
 -no-acpi \
a41c76
 -usb \
a41c76
--object secret,id=virtio-disk0-luks-secret0,\
a41c76
+-object secret,id=virtio-disk0-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk,encrypt.format=luks,\
a41c76
-encrypt.key-secret=virtio-disk0-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=virtio-disk0-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk0 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
--object secret,id=virtio-disk1-luks-secret0,\
a41c76
+-object secret,id=virtio-disk1-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk2,encrypt.format=luks,\
a41c76
-encrypt.key-secret=virtio-disk1-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=virtio-disk1-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk1 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,\
a41c76
 id=virtio-disk1 \
a41c76
--object secret,id=virtio-disk2-luks-secret0,\
a41c76
+-object secret,id=virtio-disk2-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=iscsi://myname:AQCVn5hO6HzFAhAAq0NCv8jtJcIcE+HOBlMQ1A@example.org:\
a41c76
 6000/iqn.1992-01.com.example%3Astorage/1,encrypt.format=luks,\
a41c76
-encrypt.key-secret=virtio-disk2-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=virtio-disk2-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk2 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=drive-virtio-disk2,\
a41c76
 id=virtio-disk2 \
a41c76
--object secret,id=virtio-disk3-luks-secret0,\
a41c76
+-object secret,id=virtio-disk3-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=iscsi://iscsi.example.com:3260/demo-target/3,encrypt.format=luks,\
a41c76
-encrypt.key-secret=virtio-disk3-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=virtio-disk3-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk3 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-virtio-disk3,\
a41c76
 id=virtio-disk3 \
a41c76
--object secret,id=virtio-disk4-luks-secret0,\
a41c76
+-object secret,id=virtio-disk4-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive 'file=rbd:pool/image:auth_supported=none:mon_host=mon1.example.org\:\
a41c76
 6321\;mon2.example.org\:6322\;mon3.example.org\:6322,encrypt.format=luks,\
a41c76
-encrypt.key-secret=virtio-disk4-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=virtio-disk4-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk4' \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x8,drive=drive-virtio-disk4,\
a41c76
 id=virtio-disk4 \
a41c76
--object secret,id=virtio-disk5-luks-secret0,\
a41c76
+-object secret,id=virtio-disk5-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk5,encrypt.format=luks,\
a41c76
-encrypt.key-secret=virtio-disk5-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=virtio-disk5-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-virtio-disk5 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x9,drive=drive-virtio-disk5,\
a41c76
 id=virtio-disk5 \
a41c76
diff --git a/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args b/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args
a41c76
index 021bcb6961..44e4c5698d 100644
a41c76
--- a/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args
a41c76
+++ b/tests/qemuxml2argvdata/luks-disks-source-qcow2.x86_64-latest.args
a41c76
@@ -28,53 +28,53 @@ file=/tmp/lib/domain--1-encryptdisk/master-key.aes \
a41c76
 -no-acpi \
a41c76
 -boot strict=on \
a41c76
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
a41c76
--object secret,id=libvirt-7-format-luks-secret0,\
a41c76
+-object secret,id=libvirt-7-format-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"file","filename":"/storage/guest_disks/encryptdisk",\
a41c76
 "node-name":"libvirt-7-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-7-format","read-only":false,"driver":"qcow2",\
a41c76
-"encrypt":{"format":"luks","key-secret":"libvirt-7-format-luks-secret0"},\
a41c76
+"encrypt":{"format":"luks","key-secret":"libvirt-7-format-encryption-secret0"},\
a41c76
 "file":"libvirt-7-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=libvirt-7-format,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
--object secret,id=libvirt-6-format-luks-secret0,\
a41c76
+-object secret,id=libvirt-6-format-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"file","filename":"/storage/guest_disks/encryptdisk2",\
a41c76
 "node-name":"libvirt-6-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-6-format","read-only":false,"driver":"qcow2",\
a41c76
-"encrypt":{"format":"luks","key-secret":"libvirt-6-format-luks-secret0"},\
a41c76
+"encrypt":{"format":"luks","key-secret":"libvirt-6-format-encryption-secret0"},\
a41c76
 "file":"libvirt-6-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=libvirt-6-format,\
a41c76
 id=virtio-disk1 \
a41c76
--object secret,id=libvirt-5-storage-secret0,\
a41c76
+-object secret,id=libvirt-5-storage-auth-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
--object secret,id=libvirt-5-format-luks-secret0,\
a41c76
+-object secret,id=libvirt-5-format-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"iscsi","portal":"example.org:6000",\
a41c76
 "target":"iqn.1992-01.com.example:storage","lun":1,"transport":"tcp",\
a41c76
-"user":"myname","password-secret":"libvirt-5-storage-secret0",\
a41c76
+"user":"myname","password-secret":"libvirt-5-storage-auth-secret0",\
a41c76
 "node-name":"libvirt-5-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-5-format","read-only":false,"driver":"qcow2",\
a41c76
-"encrypt":{"format":"luks","key-secret":"libvirt-5-format-luks-secret0"},\
a41c76
+"encrypt":{"format":"luks","key-secret":"libvirt-5-format-encryption-secret0"},\
a41c76
 "file":"libvirt-5-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x2,drive=libvirt-5-format,\
a41c76
 id=virtio-disk2 \
a41c76
--object secret,id=libvirt-4-format-luks-secret0,\
a41c76
+-object secret,id=libvirt-4-format-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"iscsi","portal":"iscsi.example.com:3260",\
a41c76
 "target":"demo-target","lun":3,"transport":"tcp",\
a41c76
 "node-name":"libvirt-4-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-4-format","read-only":false,"driver":"qcow2",\
a41c76
-"encrypt":{"format":"luks","key-secret":"libvirt-4-format-luks-secret0"},\
a41c76
+"encrypt":{"format":"luks","key-secret":"libvirt-4-format-encryption-secret0"},\
a41c76
 "file":"libvirt-4-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=libvirt-4-format,\
a41c76
 id=virtio-disk3 \
a41c76
--object secret,id=libvirt-3-format-luks-secret0,\
a41c76
+-object secret,id=libvirt-3-format-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"rbd","pool":"pool","image":"image",\
a41c76
@@ -82,25 +82,25 @@ keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 "port":"6322"},{"host":"mon3.example.org","port":"6322"}],\
a41c76
 "node-name":"libvirt-3-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-3-format","read-only":false,"driver":"qcow2",\
a41c76
-"encrypt":{"format":"luks","key-secret":"libvirt-3-format-luks-secret0"},\
a41c76
+"encrypt":{"format":"luks","key-secret":"libvirt-3-format-encryption-secret0"},\
a41c76
 "file":"libvirt-3-storage"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=libvirt-3-format,\
a41c76
 id=virtio-disk4 \
a41c76
--object secret,id=libvirt-2-format-luks-secret0,\
a41c76
+-object secret,id=libvirt-2-format-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"file","filename":"/storage/guest_disks/base.qcow2",\
a41c76
 "node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-2-format","read-only":true,"driver":"qcow2",\
a41c76
-"encrypt":{"format":"luks","key-secret":"libvirt-2-format-luks-secret0"},\
a41c76
+"encrypt":{"format":"luks","key-secret":"libvirt-2-format-encryption-secret0"},\
a41c76
 "file":"libvirt-2-storage","backing":null}' \
a41c76
--object secret,id=libvirt-1-format-luks-secret0,\
a41c76
+-object secret,id=libvirt-1-format-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -blockdev '{"driver":"file","filename":"/storage/guest_disks/encryptdisk5",\
a41c76
 "node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
a41c76
 -blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2",\
a41c76
-"encrypt":{"format":"luks","key-secret":"libvirt-1-format-luks-secret0"},\
a41c76
+"encrypt":{"format":"luks","key-secret":"libvirt-1-format-encryption-secret0"},\
a41c76
 "file":"libvirt-1-storage","backing":"libvirt-2-format"}' \
a41c76
 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=libvirt-1-format,\
a41c76
 id=virtio-disk5 \
a41c76
diff --git a/tests/qemuxml2argvdata/luks-disks-source.args b/tests/qemuxml2argvdata/luks-disks-source.args
a41c76
index 4566f84ff1..e2bd559212 100644
a41c76
--- a/tests/qemuxml2argvdata/luks-disks-source.args
a41c76
+++ b/tests/qemuxml2argvdata/luks-disks-source.args
a41c76
@@ -27,41 +27,45 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
a41c76
 -no-shutdown \
a41c76
 -no-acpi \
a41c76
 -usb \
a41c76
--object secret,id=virtio-disk0-luks-secret0,\
a41c76
+-object secret,id=virtio-disk0-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk,\
a41c76
-key-secret=virtio-disk0-luks-secret0,format=luks,if=none,id=drive-virtio-disk0 \
a41c76
+key-secret=virtio-disk0-encryption-secret0,format=luks,if=none,\
a41c76
+id=drive-virtio-disk0 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
--object secret,id=virtio-disk1-luks-secret0,\
a41c76
+-object secret,id=virtio-disk1-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk2,\
a41c76
-key-secret=virtio-disk1-luks-secret0,format=luks,if=none,id=drive-virtio-disk1 \
a41c76
+key-secret=virtio-disk1-encryption-secret0,format=luks,if=none,\
a41c76
+id=drive-virtio-disk1 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,\
a41c76
 id=virtio-disk1 \
a41c76
--object secret,id=virtio-disk2-luks-secret0,\
a41c76
+-object secret,id=virtio-disk2-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=iscsi://myname:AQCVn5hO6HzFAhAAq0NCv8jtJcIcE+HOBlMQ1A@example.org:\
a41c76
-6000/iqn.1992-01.com.example%3Astorage/1,key-secret=virtio-disk2-luks-secret0,\
a41c76
-format=luks,if=none,id=drive-virtio-disk2 \
a41c76
+6000/iqn.1992-01.com.example%3Astorage/1,\
a41c76
+key-secret=virtio-disk2-encryption-secret0,format=luks,if=none,\
a41c76
+id=drive-virtio-disk2 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=drive-virtio-disk2,\
a41c76
 id=virtio-disk2 \
a41c76
--object secret,id=virtio-disk3-luks-secret0,\
a41c76
+-object secret,id=virtio-disk3-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=iscsi://iscsi.example.com:3260/demo-target/3,\
a41c76
-key-secret=virtio-disk3-luks-secret0,format=luks,if=none,id=drive-virtio-disk3 \
a41c76
+key-secret=virtio-disk3-encryption-secret0,format=luks,if=none,\
a41c76
+id=drive-virtio-disk3 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-virtio-disk3,\
a41c76
 id=virtio-disk3 \
a41c76
--object secret,id=virtio-disk4-luks-secret0,\
a41c76
+-object secret,id=virtio-disk4-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive 'file=rbd:pool/image:auth_supported=none:mon_host=mon1.example.org\:\
a41c76
 6321\;mon2.example.org\:6322\;mon3.example.org\:6322,\
a41c76
-key-secret=virtio-disk4-luks-secret0,format=luks,if=none,\
a41c76
+key-secret=virtio-disk4-encryption-secret0,format=luks,if=none,\
a41c76
 id=drive-virtio-disk4' \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x8,drive=drive-virtio-disk4,\
a41c76
 id=virtio-disk4 \
a41c76
diff --git a/tests/qemuxml2argvdata/luks-disks.args b/tests/qemuxml2argvdata/luks-disks.args
a41c76
index db1ae45b60..47626966f2 100644
a41c76
--- a/tests/qemuxml2argvdata/luks-disks.args
a41c76
+++ b/tests/qemuxml2argvdata/luks-disks.args
a41c76
@@ -27,18 +27,20 @@ path=/tmp/lib/domain--1-encryptdisk/monitor.sock,server,nowait \
a41c76
 -no-shutdown \
a41c76
 -no-acpi \
a41c76
 -usb \
a41c76
--object secret,id=virtio-disk0-luks-secret0,\
a41c76
+-object secret,id=virtio-disk0-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk,\
a41c76
-key-secret=virtio-disk0-luks-secret0,format=luks,if=none,id=drive-virtio-disk0 \
a41c76
+key-secret=virtio-disk0-encryption-secret0,format=luks,if=none,\
a41c76
+id=drive-virtio-disk0 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
a41c76
 id=virtio-disk0,bootindex=1 \
a41c76
--object secret,id=virtio-disk1-luks-secret0,\
a41c76
+-object secret,id=virtio-disk1-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/storage/guest_disks/encryptdisk2,\
a41c76
-key-secret=virtio-disk1-luks-secret0,format=luks,if=none,id=drive-virtio-disk1 \
a41c76
+key-secret=virtio-disk1-encryption-secret0,format=luks,if=none,\
a41c76
+id=drive-virtio-disk1 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,\
a41c76
 id=virtio-disk1 \
a41c76
 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
a41c76
diff --git a/tests/qemuxml2argvdata/user-aliases.args b/tests/qemuxml2argvdata/user-aliases.args
a41c76
index 54463386cd..88e540bc3c 100644
a41c76
--- a/tests/qemuxml2argvdata/user-aliases.args
a41c76
+++ b/tests/qemuxml2argvdata/user-aliases.args
a41c76
@@ -48,11 +48,11 @@ id=drive-ua-myDisk1,cache=none \
a41c76
 id=drive-ua-myDisk2 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-ua-myDisk2,id=ua-myDisk2,\
a41c76
 bootindex=1 \
a41c76
--object secret,id=ua-myEncryptedDisk1-luks-secret0,\
a41c76
+-object secret,id=ua-myEncryptedDisk1-encryption-secret0,\
a41c76
 data=9eao5F8qtkGt+seB1HYivWIxbtwUu6MQtg1zpj/oDtUsPr1q8wBYM91uEHCn6j/1,\
a41c76
 keyid=masterKey0,iv=AAECAwQFBgcICQoLDA0ODw==,format=base64 \
a41c76
 -drive file=/var/lib/libvirt/images/OtherDemo.img,encrypt.format=luks,\
a41c76
-encrypt.key-secret=ua-myEncryptedDisk1-luks-secret0,format=qcow2,if=none,\
a41c76
+encrypt.key-secret=ua-myEncryptedDisk1-encryption-secret0,format=qcow2,if=none,\
a41c76
 id=drive-ua-myEncryptedDisk1 \
a41c76
 -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-ua-myEncryptedDisk1,\
a41c76
 id=ua-myEncryptedDisk1 \
a41c76
-- 
a41c76
2.25.1
a41c76