test_corosync.aug 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. module Test_corosync =
  2. let conf = "# Please read the corosync.conf.5 manual page
  3. totem {
  4. version: 2
  5. secauth: off
  6. crypto_cipher: none
  7. crypto_hash: none
  8. threads: 0
  9. clear_node_high_bit: no
  10. rrp_mode: none
  11. transport: udp
  12. token: 1000
  13. interface {
  14. ringnumber: 0
  15. bindnetaddr: 192.168.122.1
  16. mcastaddr: 226.94.1.1
  17. ttl: 45
  18. mcastport: 5405
  19. }
  20. }
  21. logging {
  22. fileline: off
  23. function_name: on
  24. to_stderr: yes
  25. to_logfile: yes
  26. to_syslog: yes
  27. logfile: /tmp/corosync.log
  28. debug: off
  29. timestamp: on
  30. logger_subsys {
  31. to_syslog: no
  32. subsys: CPG
  33. debug: on
  34. }
  35. logger_subsys {
  36. to_stderr: no
  37. logfile: /tmp/corosync-msg.log
  38. subsys: MSG
  39. debug: on
  40. tags: enter|trace4
  41. }
  42. }
  43. quorum {
  44. provider: corosync_votequorum
  45. expected_votes: 5
  46. votes: 2
  47. two_node: 1
  48. wait_for_all: 1
  49. last_man_standing: 1
  50. last_man_standing_window: 10000
  51. auto_tie_breaker: 1
  52. }
  53. resources {
  54. system {
  55. memory_used {
  56. recovery: reboot
  57. max: 80
  58. }
  59. load_15min {
  60. recovery: watchdog
  61. max: 8.56
  62. }
  63. }
  64. }
  65. uidgid {
  66. uid: 0
  67. gid: 0
  68. }
  69. nodelist {
  70. node {
  71. ring0_addr: 192.168.122.1
  72. nodeid: 1
  73. quorum_votes: 2
  74. }
  75. node {
  76. ring0_addr: 192.168.122.2
  77. ring1_addr: 192.168.123.1
  78. nodeid: 2
  79. }
  80. }\n"
  81. test Corosync.lns get conf =
  82. { "#comment" = "Please read the corosync.conf.5 manual page" }
  83. { }
  84. { "totem"
  85. { "version" = "2" }
  86. { "secauth" = "off" }
  87. { "crypto_cipher" = "none" }
  88. { "crypto_hash" = "none" }
  89. { "threads" = "0" }
  90. { "clear_node_high_bit" = "no" }
  91. { "rrp_mode" = "none" }
  92. { "transport" = "udp" }
  93. { "token" = "1000" }
  94. { "interface"
  95. { "ringnumber" = "0" }
  96. { "bindnetaddr" = "192.168.122.1" }
  97. { "mcastaddr" = "226.94.1.1" }
  98. { "ttl" = "45" }
  99. { "mcastport" = "5405" } } }
  100. { }
  101. { "logging"
  102. { "fileline" = "off" }
  103. { "function_name" = "on" }
  104. { "to_stderr" = "yes" }
  105. { "to_logfile" = "yes" }
  106. { "to_syslog" = "yes" }
  107. { "logfile" = "/tmp/corosync.log" }
  108. { "debug" = "off" }
  109. { "timestamp" = "on" }
  110. { "logger_subsys"
  111. { "to_syslog" = "no" }
  112. { "subsys" = "CPG" }
  113. { "debug" = "on" } }
  114. { "logger_subsys"
  115. { "to_stderr" = "no" }
  116. { "logfile" = "/tmp/corosync-msg.log" }
  117. { "subsys" = "MSG" }
  118. { "debug" = "on" }
  119. { "tags" = "enter|trace4" } } }
  120. { }
  121. { "quorum"
  122. { "provider" = "corosync_votequorum" }
  123. { "expected_votes" = "5" }
  124. { "votes" = "2" }
  125. { "two_node" = "1" }
  126. { "wait_for_all" = "1" }
  127. { "last_man_standing" = "1" }
  128. { "last_man_standing_window" = "10000" }
  129. { "auto_tie_breaker" = "1" } }
  130. { }
  131. { "resources"
  132. { "system"
  133. { "memory_used"
  134. { "recovery" = "reboot" }
  135. { "max" = "80" } }
  136. { "load_15min"
  137. { "recovery" = "watchdog" }
  138. { "max" = "8.56" } } } }
  139. { }
  140. { "uidgid"
  141. { "uid" = "0" }
  142. { "gid" = "0" } }
  143. { }
  144. { "nodelist"
  145. { "node"
  146. { "ring0_addr" = "192.168.122.1" }
  147. { "nodeid" = "1" }
  148. { "quorum_votes" = "2" } }
  149. { }
  150. { "node"
  151. { "ring0_addr" = "192.168.122.2" }
  152. { "ring1_addr" = "192.168.123.1" }
  153. { "nodeid" = "2" } } }