]> git.proxmox.com Git - pve-storage.git/commitdiff
rbd: make monhost option optional
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 5 Sep 2017 12:59:30 +0000 (14:59 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Sep 2017 09:35:00 +0000 (11:35 +0200)
to allow differentiating between user-created external RBD storage
entries (WITH monhost), and those created and managed by pveceph
(without).

making monhost non-fixed allows easily opting into the managed behaviour via
'pvesm set STORAGE -delete monhost', but is also helpful for external clusters
(i.e., after adding or removing a monitor you need to update the monhost
parameter..)

adapt description accordingly.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/Storage/RBDPlugin.pm

index 250ee7c38e1a30eb9e4e0161a3886e1685d1efeb..4c2967c7ee9d1ea2ffd15dbab497a6bd2fb12708 100644 (file)
@@ -258,7 +258,7 @@ sub plugindata {
 sub properties {
     return {
        monhost => {
-           description => "Monitors daemon ips.",
+           description => "IP addresses of monitors (for external clusters).",
            type => 'string', format => 'pve-storage-portal-dns-list',
        },
        pool => {
@@ -284,7 +284,7 @@ sub options {
     return {
        nodes => { optional => 1 },
        disable => { optional => 1 },
-       monhost => { fixed => 1 },
+       monhost => { optional => 1},
        pool => { optional => 1 },
        username => { optional => 1 },
        content => { optional => 1 },