From 1dff11708f4126512a3940cdf55889e040d029eb 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 8db7c35af3d6..f5a67804e047 100644 --- a/doc/config_options.txt +++ b/doc/config_options.txt @@ -4342,6 +4342,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 option allows sharing the volume across multiple instances despite the possibility of data loss. + +``` + ```{config:option} security.shifted storage-btrfs-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -4497,6 +4506,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 option allows sharing the volume across multiple instances despite the possibility of data loss. + +``` + ```{config:option} security.shifted storage-ceph-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -4637,6 +4655,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 option allows sharing the volume across multiple instances despite the possibility of data loss. + +``` + ```{config:option} security.shifted storage-cephfs-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -4776,6 +4803,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 option allows sharing the volume across multiple instances despite the possibility of data loss. + +``` + ```{config:option} security.shifted storage-dir-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -4962,6 +4998,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 option allows sharing the volume across multiple instances despite the possibility of data loss. + +``` + ```{config:option} security.shifted storage-lvm-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -5140,6 +5185,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 option allows sharing the volume across multiple instances despite the possibility of data loss. + +``` + ```{config:option} security.shifted storage-powerflex-volume-conf :condition: "custom volume" :defaultdesc: "same as `volume.security.shifted` or `false`" @@ -5285,6 +5339,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 option allows sharing the volume across multiple instances despite the possibility 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 b78d9a06e6a3..4f63f96aeabd 100644 --- a/lxd/metadata/configuration.json +++ b/lxd/metadata/configuration.json @@ -4900,6 +4900,15 @@ }, "volume-conf": { "keys": [ + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this option allows sharing the volume across multiple instances despite the possibility of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5068,6 +5077,15 @@ "type": "string" } }, + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this option allows sharing the volume across multiple instances despite the possibility of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5216,6 +5234,15 @@ }, "volume-conf": { "keys": [ + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this option allows sharing the volume across multiple instances despite the possibility of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5372,6 +5399,15 @@ }, "volume-conf": { "keys": [ + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this option allows sharing the volume across multiple instances despite the possibility of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5570,6 +5606,15 @@ "type": "string" } }, + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this option allows sharing the volume across multiple instances despite the possibility of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5760,6 +5805,15 @@ "type": "string" } }, + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this option allows sharing the volume across multiple instances despite the possibility of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume", @@ -5909,6 +5963,15 @@ "type": "string" } }, + { + "security.shared": { + "condition": "custom block volume", + "defaultdesc": "same as `volume.security.shared` or `false`", + "longdesc": "Enabling this option allows sharing the volume across multiple instances despite the possibility of data loss.\n", + "shortdesc": "Enable volume sharing", + "type": "bool" + } + }, { "security.shifted": { "condition": "custom volume",