Peter Krempa
6bde2a1e20
conf: Sanitize handling of <auth> and <encryption> placement for disks
...
Modern way to store <auth> and <encryption> of a <disk> is under
<source>. This was added to mirror how <backingStore> handles these and
in fact they are relevant to the source rather than to any other part of
the disk. Historically we allowed them to be directly under <disk> and
we need to keep compatibility.
This wasn't a problem until introduction of -blockdev in qemu using of
<auth> or <encryption> plainly wouldn't work with backing chains.
Now that it works in backing chains and can be moved back and forth
using snapshots/block-commit we need to ensure that the original
placement is properly kept even if the source changes.
To achieve the above semantics we need to store the preferred placement
with the disk definition rather than the storage source definitions and
also ensure that the modern way is chosen when the VM started with
<source/encryption> only in the backing store.
https://bugzilla.redhat.com/show_bug.cgi?id=1822878
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-05-12 06:55:00 +02:00
..
2019-02-24 13:20:51 +04:00
2019-02-24 13:20:51 +04:00
2019-12-03 13:57:44 +00:00
2020-03-25 09:04:49 +01:00
2020-04-08 17:52:50 +02:00
2020-04-14 18:49:41 +02:00
2020-04-14 18:49:41 +02:00
2020-05-06 15:08:41 +02:00
2019-12-03 13:57:44 +00:00
2020-03-16 15:51:44 +01:00
2019-12-13 17:52:10 +00:00
2020-05-07 17:38:41 -06:00
2020-02-06 15:00:57 +01:00
2020-04-23 10:59:33 +02:00
2019-10-18 18:49:54 +01:00
2020-04-23 10:59:33 +02:00
2020-04-23 10:59:33 +02:00
2019-03-22 12:59:56 +03:00
2019-08-09 12:17:19 +02:00
2019-12-03 13:57:44 +00:00
2020-04-24 09:17:06 +02:00
2020-05-12 06:55:00 +02:00
2019-11-13 08:16:04 +01:00
2019-07-26 16:48:58 -05:00
2019-12-03 13:57:44 +00:00
2019-07-08 16:10:22 -05:00
2019-12-03 13:57:44 +00:00
2019-03-12 15:29:44 +01:00
2020-03-05 11:31:38 +01:00
2020-03-12 08:04:40 +01:00
2020-03-12 08:04:40 +01:00
2020-03-16 16:00:27 +00:00
2020-03-16 17:33:08 +01:00
2019-09-24 13:19:08 -04:00
2020-05-12 06:55:00 +02:00
2020-05-12 06:55:00 +02:00
2019-07-26 09:59:27 +01:00
2019-12-20 14:31:08 +01:00
2019-06-25 17:11:56 +02:00
2019-06-25 17:11:56 +02:00
2019-03-06 11:12:48 -05:00
2019-06-03 17:59:38 +02:00
2020-01-16 15:11:55 +00:00
2019-11-15 12:58:43 +01:00
2020-01-03 15:42:13 +00:00
2019-07-19 10:52:06 +02:00
2020-01-16 15:11:55 +00:00
2020-03-20 09:47:16 +01:00
2019-07-12 16:55:39 +01:00
2019-07-16 13:42:39 +02:00
2020-02-25 15:43:56 +00:00
2019-12-17 10:04:43 +01:00
2020-03-19 11:25:33 +01:00
2020-04-21 09:22:14 -06:00
2019-04-16 13:11:08 -04:00
2019-04-15 20:03:55 -04:00
2020-03-09 15:46:42 +01:00
2020-01-09 18:05:17 +00:00
2019-12-09 10:17:27 +00:00
2020-02-20 23:13:15 -05:00
2020-02-24 01:52:22 +01:00
2019-11-12 16:15:59 +01:00
2020-02-04 14:00:45 +00:00
2020-03-24 14:33:29 +01:00
2020-04-27 08:30:27 +02:00
2019-02-11 17:40:44 -05:00
2020-04-07 15:26:10 +02:00
2019-12-09 10:17:27 +00:00
2019-10-15 16:14:19 +02:00
2020-02-06 13:41:03 +01:00
2019-11-12 16:15:59 +01:00
2020-02-24 23:15:49 +01:00
2019-12-20 14:23:39 +00:00
2020-04-14 18:49:41 +02:00
2019-11-12 16:15:59 +01:00
2020-02-25 12:05:01 +01:00
2020-04-09 15:45:05 -06:00
2019-12-09 10:17:27 +00:00
2020-01-03 15:42:12 +00:00
2020-05-06 16:24:31 +02:00
2019-03-08 14:59:20 +01:00
2020-04-23 12:38:01 +02:00
2019-11-19 15:22:43 +01:00
2020-04-23 10:59:33 +02:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-10-15 11:25:25 +02:00
2019-11-12 16:15:59 +01:00
2020-01-29 14:51:40 +00:00
2019-11-19 15:22:43 +01:00
2019-11-19 15:22:43 +01:00
2019-11-12 16:15:59 +01:00
2020-02-24 23:15:50 +01:00
2019-12-09 14:46:13 +00:00
2020-04-27 08:13:52 +02:00
2020-05-12 06:55:00 +02:00
2019-12-23 16:39:38 +00:00
2019-12-13 14:57:32 +01:00
2020-05-06 12:32:49 +02:00
2019-12-13 14:57:32 +01:00
2019-10-15 11:25:25 +02:00
2020-01-03 15:42:12 +00:00
2020-01-03 15:42:12 +00:00
2020-01-03 15:42:12 +00:00
2020-04-23 15:57:36 +02:00
2020-05-07 22:31:04 +02:00
2020-05-07 22:31:04 +02:00
2019-12-13 14:57:32 +01:00
2020-04-27 08:30:27 +02:00
2020-04-27 08:30:27 +02:00
2020-04-27 08:30:27 +02:00
2019-11-12 16:15:59 +01:00
2020-02-04 14:00:45 +00:00
2019-07-03 08:36:04 +02:00
2020-01-03 15:42:12 +00:00
2020-01-17 10:02:01 +00:00
2020-05-12 06:55:00 +02:00
2020-05-12 06:55:00 +02:00
2020-02-24 23:15:50 +01:00
2019-10-14 10:54:42 +01:00
2019-11-12 16:15:59 +01:00
2020-01-03 15:42:12 +00:00
2019-12-17 10:03:35 +01:00
2019-10-21 12:51:59 +02:00
2019-10-15 11:25:25 +02:00
2020-02-04 14:00:45 +00:00
2019-08-23 11:26:26 +01:00
2020-02-04 14:00:45 +00:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-10-07 11:34:24 +01:00
2020-05-07 13:39:52 +01:00
2020-02-11 16:30:18 +01:00
2019-10-15 16:14:19 +02:00
2019-12-09 10:15:16 +00:00
2019-12-09 10:15:16 +00:00
2020-05-07 22:31:04 +02:00
2019-12-09 10:17:27 +00:00
2020-02-21 10:50:10 +01:00
2020-02-21 10:50:10 +01:00
2020-02-25 12:05:00 +01:00
2019-12-09 10:15:16 +00:00
2019-10-15 16:14:19 +02:00
2020-02-24 23:15:50 +01:00
2019-10-21 12:51:59 +02:00
2020-01-29 14:51:40 +00:00
2020-03-20 09:47:16 +01:00
2020-02-03 19:44:38 +01:00
2020-01-16 15:11:55 +00:00
2020-01-27 14:55:03 +01:00
2020-02-04 14:00:45 +00:00
2020-01-03 15:42:12 +00:00
2019-11-12 16:15:59 +01:00
2019-08-23 11:26:26 +01:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2019-10-11 12:20:08 -04:00
2019-11-19 15:22:43 +01:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2019-10-21 12:51:59 +02:00
2020-01-03 15:42:13 +00:00
2020-02-24 23:15:50 +01:00
2019-11-12 16:15:59 +01:00
2019-06-19 17:12:34 +02:00
2019-10-24 19:35:34 +02:00
2019-06-19 17:12:34 +02:00
2020-01-24 13:45:38 +01:00
2020-03-24 11:31:07 +01:00
2020-05-06 16:24:31 +02:00
2020-05-06 16:24:31 +02:00
2019-10-15 11:25:25 +02:00
2019-10-21 12:51:55 +02:00
2020-03-20 09:47:16 +01:00
2020-02-24 23:15:49 +01:00
2019-10-24 19:35:34 +02:00
2020-02-25 10:02:15 +00:00
2019-08-27 15:49:48 +02:00
2019-11-19 15:22:43 +01:00
2019-10-15 11:25:25 +02:00
2019-10-16 12:06:43 +02:00
2020-03-19 14:39:38 +01:00
2019-07-09 15:01:54 +02:00
2019-10-24 19:35:34 +02:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-11-19 15:22:43 +01:00
2020-01-29 14:51:40 +00:00
2019-10-15 11:25:25 +02:00
2020-03-19 14:39:38 +01:00
2020-02-24 23:15:49 +01:00
2020-02-24 23:15:49 +01:00
2020-02-24 23:15:50 +01:00
2019-06-19 17:12:34 +02:00
2020-01-29 14:51:40 +00:00
2020-02-25 15:43:56 +00:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2020-01-03 15:42:13 +00:00
2020-01-03 15:42:12 +00:00
2019-11-19 15:22:43 +01:00
2020-01-29 14:51:40 +00:00
2020-02-24 23:15:49 +01:00
2019-10-15 11:25:25 +02:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-10-15 16:14:19 +02:00
2019-12-10 12:41:56 +01:00
2020-02-24 23:15:50 +01:00
2020-03-06 17:02:10 +00:00
2020-03-06 17:02:10 +00:00
2019-08-02 09:44:41 -05:00
2019-12-03 13:57:44 +00:00
2019-07-29 15:56:46 +02:00
2019-08-02 09:44:41 -05:00
2019-04-04 09:35:40 -05:00
2020-02-11 16:30:18 +01:00
2020-05-12 06:55:00 +02:00
2019-10-16 12:06:43 +02:00
2020-02-07 15:03:54 +00:00
2020-04-07 15:26:19 +02:00
2019-11-21 08:27:03 +01:00
2020-01-29 14:51:40 +00:00
2020-01-29 14:51:40 +00:00
2019-10-15 16:14:19 +02:00
2020-01-29 14:51:40 +00:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2019-11-12 16:15:59 +01:00
2020-03-19 11:25:33 +01:00
2020-02-04 14:00:45 +00:00
2020-04-21 09:22:14 -06:00
2019-12-09 14:06:15 +01:00
2019-12-09 10:17:27 +00:00