From 28a7e1578ccdd6223e1d9feeb53b6fea3e654c11 Mon Sep 17 00:00:00 2001 From: hamistao Date: Wed, 20 Mar 2024 17:48:59 -0300 Subject: [PATCH] metadata: Add security.shared for volumes Signed-off-by: hamistao --- doc/config_options.txt | 63 +++++++++++++++++++++++++++++++++ lxd/metadata/configuration.json | 63 +++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) diff --git a/doc/config_options.txt b/doc/config_options.txt index 62ecbeb45ce2..ed7d2df6c3c5 100644 --- a/doc/config_options.txt +++ b/doc/config_options.txt @@ -4330,6 +4330,15 @@ prior to creating the storage pool. +```{config:option} security.shared storage-btrfs-volume-conf +:condition: "custom block volume" +:defaultdesc: "same as `volume.security.shared` or `false`" +:shortdesc: "Enable volume sharing" +:type: "bool" +Enabling this allows sharing the volume across multiple instances despite of data loss. + +``` + ```{config:option} security.shifted storage-btrfs-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -4485,6 +4494,15 @@ If not set, `ext4` is assumed. ``` +```{config:option} security.shared storage-ceph-volume-conf +:condition: "custom block volume" +:defaultdesc: "same as `volume.security.shared` or `false`" +:shortdesc: "Enable volume sharing" +:type: "bool" +Enabling this allows sharing the volume across multiple instances despite of data loss. + +``` + ```{config:option} security.shifted storage-ceph-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -4625,6 +4643,15 @@ when creating a missing OSD pool. +```{config:option} security.shared storage-cephfs-volume-conf +:condition: "custom block volume" +:defaultdesc: "same as `volume.security.shared` or `false`" +:shortdesc: "Enable volume sharing" +:type: "bool" +Enabling this allows sharing the volume across multiple instances despite of data loss. + +``` + ```{config:option} security.shifted storage-cephfs-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -4764,6 +4791,15 @@ to be placed on the socket I/O. +```{config:option} security.shared storage-dir-volume-conf +:condition: "custom block volume" +:defaultdesc: "same as `volume.security.shared` or `false`" +:shortdesc: "Enable volume sharing" +:type: "bool" +Enabling this allows sharing the volume across multiple instances despite of data loss. + +``` + ```{config:option} security.shifted storage-dir-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -4950,6 +4986,15 @@ If not set, `ext4` is assumed. The size must be at least 4096 bytes, and a multiple of 512 bytes. ``` +```{config:option} security.shared storage-lvm-volume-conf +:condition: "custom block volume" +:defaultdesc: "same as `volume.security.shared` or `false`" +:shortdesc: "Enable volume sharing" +:type: "bool" +Enabling this allows sharing the volume across multiple instances despite of data loss. + +``` + ```{config:option} security.shifted storage-lvm-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -5128,6 +5173,15 @@ If not set, `ext4` is assumed. ``` +```{config:option} security.shared storage-powerflex-volume-conf +:condition: "custom block volume" +:defaultdesc: "same as `volume.security.shared` or `false`" +:shortdesc: "Enable volume sharing" +:type: "bool" +Enabling this allows sharing the volume across multiple instances despite of data loss. + +``` + ```{config:option} security.shifted storage-powerflex-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -5273,6 +5327,15 @@ If not set, `ext4` is assumed. ``` +```{config:option} security.shared storage-zfs-volume-conf +:condition: "custom block volume" +:defaultdesc: "same as `volume.security.shared` or `false`" +:shortdesc: "Enable volume sharing" +:type: "bool" +Enabling this allows sharing the volume across multiple instances despite of data loss. + +``` + ```{config:option} security.shifted storage-zfs-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" diff --git a/lxd/metadata/configuration.json b/lxd/metadata/configuration.json index 62b7dc2b7894..376c968328c7 100644 --- a/lxd/metadata/configuration.json +++ b/lxd/metadata/configuration.json @@ -4890,6 +4890,15 @@ }, "volume-conf": { "keys": [ + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5058,6 +5067,15 @@ "type": "string" } }, + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5206,6 +5224,15 @@ }, "volume-conf": { "keys": [ + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5362,6 +5389,15 @@ }, "volume-conf": { "keys": [ + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5560,6 +5596,15 @@ "type": "string" } }, + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5750,6 +5795,15 @@ "type": "string" } }, + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5899,6 +5953,15 @@ "type": "string" } }, + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume",