| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- module Test_corosync =
- let conf = "# Please read the corosync.conf.5 manual page
- totem {
- version: 2
- secauth: off
- crypto_cipher: none
- crypto_hash: none
- threads: 0
- clear_node_high_bit: no
- rrp_mode: none
- transport: udp
- token: 1000
- interface {
- ringnumber: 0
- bindnetaddr: 192.168.122.1
- mcastaddr: 226.94.1.1
- ttl: 45
- mcastport: 5405
- }
- }
- logging {
- fileline: off
- function_name: on
- to_stderr: yes
- to_logfile: yes
- to_syslog: yes
- logfile: /tmp/corosync.log
- debug: off
- timestamp: on
- logger_subsys {
- to_syslog: no
- subsys: CPG
- debug: on
- }
- logger_subsys {
- to_stderr: no
- logfile: /tmp/corosync-msg.log
- subsys: MSG
- debug: on
- tags: enter|trace4
- }
- }
- quorum {
- provider: corosync_votequorum
- expected_votes: 5
- votes: 2
- two_node: 1
- wait_for_all: 1
- last_man_standing: 1
- last_man_standing_window: 10000
- auto_tie_breaker: 1
- }
- resources {
- system {
- memory_used {
- recovery: reboot
- max: 80
- }
- load_15min {
- recovery: watchdog
- max: 8.56
- }
- }
- }
- uidgid {
- uid: 0
- gid: 0
- }
- nodelist {
- node {
- ring0_addr: 192.168.122.1
- nodeid: 1
- name: balalaika
- quorum_votes: 2
- }
- node {
- ring0_addr: 192.168.122.2
- ring1_addr: 192.168.123.1
- nodeid: 2
- name: cythara
- }
- }\n"
- test Corosync.lns get conf =
- { "#comment" = "Please read the corosync.conf.5 manual page" }
- { }
- { "totem"
- { "version" = "2" }
- { "secauth" = "off" }
- { "crypto_cipher" = "none" }
- { "crypto_hash" = "none" }
- { "threads" = "0" }
- { "clear_node_high_bit" = "no" }
- { "rrp_mode" = "none" }
- { "transport" = "udp" }
- { "token" = "1000" }
- { "interface"
- { "ringnumber" = "0" }
- { "bindnetaddr" = "192.168.122.1" }
- { "mcastaddr" = "226.94.1.1" }
- { "ttl" = "45" }
- { "mcastport" = "5405" } } }
- { }
- { "logging"
- { "fileline" = "off" }
- { "function_name" = "on" }
- { "to_stderr" = "yes" }
- { "to_logfile" = "yes" }
- { "to_syslog" = "yes" }
- { "logfile" = "/tmp/corosync.log" }
- { "debug" = "off" }
- { "timestamp" = "on" }
- { "logger_subsys"
- { "to_syslog" = "no" }
- { "subsys" = "CPG" }
- { "debug" = "on" } }
- { "logger_subsys"
- { "to_stderr" = "no" }
- { "logfile" = "/tmp/corosync-msg.log" }
- { "subsys" = "MSG" }
- { "debug" = "on" }
- { "tags" = "enter|trace4" } } }
- { }
- { "quorum"
- { "provider" = "corosync_votequorum" }
- { "expected_votes" = "5" }
- { "votes" = "2" }
- { "two_node" = "1" }
- { "wait_for_all" = "1" }
- { "last_man_standing" = "1" }
- { "last_man_standing_window" = "10000" }
- { "auto_tie_breaker" = "1" } }
- { }
- { "resources"
- { "system"
- { "memory_used"
- { "recovery" = "reboot" }
- { "max" = "80" } }
- { "load_15min"
- { "recovery" = "watchdog" }
- { "max" = "8.56" } } } }
- { }
- { "uidgid"
- { "uid" = "0" }
- { "gid" = "0" } }
- { }
- { "nodelist"
- { "node"
- { "ring0_addr" = "192.168.122.1" }
- { "nodeid" = "1" }
- { "name" = "balalaika" }
- { "quorum_votes" = "2" } }
- { }
- { "node"
- { "ring0_addr" = "192.168.122.2" }
- { "ring1_addr" = "192.168.123.1" }
- { "nodeid" = "2" }
- { "name" = "cythara" } } }
|