[pve-devel] [RFC ha-manager v2 1/3] Resources: add 'stopped' state

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Nov 15 11:13:55 CET 2016


without any functionality for now.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/HA/Resources.pm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/PVE/HA/Resources.pm b/src/PVE/HA/Resources.pm
index 96d2f8f..3f47927 100644
--- a/src/PVE/HA/Resources.pm
+++ b/src/PVE/HA/Resources.pm
@@ -16,9 +16,13 @@ my $defaultData = {
 	sid => get_standard_option('pve-ha-resource-or-vm-id',
 				   { completion => \&PVE::HA::Tools::complete_sid }),
 	state => {
-	    description => "Resource state.",
+	    description => "Resource state. When in 'enabled' state, a " .
+	      "resource will be started and recovered on node failures. In " .
+	      "'stopped' state it will be stopped but also recovered on " .
+	      "failures. In 'disabled' state it will be stopped and will not " .
+	      "get recovered on failures",
 	    type => 'string',
-	    enum => ['enabled', 'disabled'],
+	    enum => ['enabled', 'stopped', 'disabled'],
 	    optional => 1,
 	    default => 'enabled',
 	},
-- 
2.1.4





More information about the pve-devel mailing list