Просмотр исходного кода

augeas: update the lense (rm amf & add update quorum options)

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Angus Salkeld 14 лет назад
Родитель
Сommit
3177e1b421
2 измененных файлов с 19 добавлено и 32 удалено
  1. 5 11
      conf/lenses/corosync.aug
  2. 14 21
      conf/lenses/tests/test_corosync.aug

+ 5 - 11
conf/lenses/corosync.aug

@@ -140,22 +140,16 @@ let resources =
     system in
   section "resources" setting
 
-(* The amf section *)
-let amf =
-  let setting =
-   kv "mode" /enabled|disabled/ in
-  section "amf" setting
-
 (* The quorum section *)
 let quorum =
   let setting =
    qstr /provider/
    |kv "expected_votes" Rx.integer
    |kv "votes" Rx.integer
-   |kv "quorumdev_poll" Rx.integer
-   |kv "leaving_timeout" Rx.integer
-   |kv "disallowed" Rx.integer
-   |kv "quorate" Rx.integer
+   |kv "wait_for_all" Rx.integer
+   |kv "last_man_standing" Rx.integer
+   |kv "last_man_standing_window" Rx.integer
+   |kv "auto_tie_breaker" Rx.integer
    |kv "two_node" Rx.integer in
   section "quorum" setting
 
@@ -171,6 +165,6 @@ let uidgid =
    qstr /uid|gid/ in
   section "uidgid" setting
 
-let lns = (comment|empty|compatibility|totem|quorum|logging|resources|amf|service|uidgid)*
+let lns = (comment|empty|compatibility|totem|quorum|logging|resources|service|uidgid)*
 
 let xfm = transform lns (incl "/etc/corosync/corosync.conf")

+ 14 - 21
conf/lenses/tests/test_corosync.aug

@@ -46,14 +46,14 @@ logging {
 }
 
 quorum {
-    provider: corosync_quorum_ykd
+    provider: corosync_votequorum
     expected_votes: 5
-    votes: 1
-    quorumdev_poll: 2
-    leaving_timeout: 2
-    disallowed: 0
-    quorate: 1
-    two_node: 0
+    votes: 2
+    two_node: 1
+    wait_for_all: 1
+    last_man_standing: 1
+    last_man_standing_window: 10000
+    auto_tie_breaker: 1
 }
 
 resources {
@@ -72,10 +72,6 @@ resources {
 uidgid {
     uid: 0
     gid: 0
-}
-
-amf {
-	mode: disabled
 }\n"
 
 test Corosync.lns get conf =
@@ -121,14 +117,14 @@ test Corosync.lns get conf =
 		{ "tags" = "enter|trace4" } } }
   { }
   { "quorum"
-    { "provider" = "corosync_quorum_ykd" }
+    { "provider" = "corosync_votequorum" }
     { "expected_votes" = "5" }
-    { "votes" = "1" }
-    { "quorumdev_poll" = "2" }
-    { "leaving_timeout" = "2" }
-    { "disallowed" = "0" }
-    { "quorate" = "1" }
-    { "two_node" = "0" } }
+    { "votes" = "2" }
+    { "two_node" = "1" }
+    { "wait_for_all" = "1" }
+    { "last_man_standing" = "1" }
+    { "last_man_standing_window" = "10000" }
+    { "auto_tie_breaker" = "1" } }
   { }
     { "resources"
 	  { "system"
@@ -142,6 +138,3 @@ test Corosync.lns get conf =
   { "uidgid"
     { "uid" = "0" }
     { "gid" = "0" } }
-  { }
-  { "amf"
-	{ "mode" = "disabled" } }