test_corosync.aug 3.0 KB

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