Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Burlakov committed Apr 30, 2024
1 parent 0278593 commit e01dd17
Showing 1 changed file with 62 additions and 57 deletions.
119 changes: 62 additions & 57 deletions hawk/app/models/tableless.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ def current_cib
default: "true",
longdesc: _("Is the cluster allowed to start and stop the resource?")
},
"maintenancee" => {
type: "boolean",
default: "false",
longdesc: _("Resources in maintenancee mode are not monitored by the cluster.")
},
"maintenance" => {
type: "boolean",
default: "false",
Expand All @@ -99,63 +104,63 @@ def current_cib
default: "0",
longdesc: _("If not all resources can be active, the cluster will stop lower priority resources in order to keep higher priority ones active.")
},
"multiple-active" => {
type: "enum",
default: "stop_start",
values: ["block", "stop_only", "stop_start"],
longdesc: _("What should the cluster do if it ever finds the resource active on more than one node?")
},
"failure-timeout" => {
type: "integer",
default: "0",
longdesc: _("How many seconds to wait before acting as if the failure had not occurred, and potentially allowing the resource back to the node on which it failed. A value of 0 indicates that this feature is disabled.")
},
"resource-stickiness" => {
type: "integer",
default: "0",
longdesc: _("How much does the resource prefer to stay where it is?")
},
"target-role" => {
type: "enum",
default: "Stopped",
values: ["Started", "Stopped", "Master"],
longdesc: _("What state should the cluster attempt to keep this resource in?")
},
"restart-type" => {
type: "enum",
default: "ignore",
values: ["ignore", "restart"]
},
"description" => {
type: "string",
default: ""
},
"requires" => {
type: "enum",
default: "fencing",
values: ["nothing", "quorum", "fencing"],
longdesc: _("Conditions under which the resource can be started.")
},
"remote-node" => {
type: "string",
default: "",
longdesc: _("The name of the remote-node this resource defines. This both enables the resource as a remote-node and defines the unique name used to identify the remote-node. If no other parameters are set, this value will also be assumed as the hostname to connect to at the port specified by remote-port. WARNING: This value cannot overlap with any resource or node IDs. If not specified, this feature is disabled.")
},
"remote-port" => {
type: "integer",
default: 3121,
longdesc: _("Port to use for the guest connection to pacemaker_remote.")
},
"remote-addr" => {
type: "string",
default: "",
longdesc: _("The IP address or hostname to connect to if remote-node's name is not the hostname of the guest.")
},
"remote-connect-timeout" => {
type: "string",
default: "60s",
longdesc: _("How long before a pending guest connection will time out.")
}
#"multiple-active" => {
# type: "enum",
# default: "stop_start",
# values: ["block", "stop_only", "stop_start"],
# longdesc: _("What should the cluster do if it ever finds the resource active on more than one node?")
#},
#"failure-timeout" => {
# type: "integer",
# default: "0",
# longdesc: _("How many seconds to wait before acting as if the failure had not occurred, and potentially allowing the resource back to the node on which it failed. A value of 0 indicates that this feature is disabled.")
#},
#"resource-stickiness" => {
# type: "integer",
# default: "0",
# longdesc: _("How much does the resource prefer to stay where it is?")
#},
#"target-role" => {
# type: "enum",
# default: "Stopped",
# values: ["Started", "Stopped", "Master"],
# longdesc: _("What state should the cluster attempt to keep this resource in?")
#},
#"restart-type" => {
# type: "enum",
# default: "ignore",
# values: ["ignore", "restart"]
#},
#"description" => {
# type: "string",
# default: ""
#},
#"requires" => {
# type: "enum",
# default: "fencing",
# values: ["nothing", "quorum", "fencing"],
# longdesc: _("Conditions under which the resource can be started.")
#},
#"remote-node" => {
# type: "string",
# default: "",
# longdesc: _("The name of the remote-node this resource defines. This both enables the resource as a remote-node and defines the unique name used to identify the remote-node. If no other parameters are set, this value will also be assumed as the hostname to connect to at the port specified by remote-port. WARNING: This value cannot overlap with any resource or node IDs. If not specified, this feature is disabled.")
#},
#"remote-port" => {
# type: "integer",
# default: 3121,
# longdesc: _("Port to use for the guest connection to pacemaker_remote.")
#},
#"remote-addr" => {
# type: "string",
# default: "",
# longdesc: _("The IP address or hostname to connect to if remote-node's name is not the hostname of the guest.")
#},
#"remote-connect-timeout" => {
# type: "string",
# default: "60s",
# longdesc: _("How long before a pending guest connection will time out.")
#}
}.freeze

OP_DEFAULTS = {
Expand Down

0 comments on commit e01dd17

Please sign in to comment.