summaryrefslogtreecommitdiffstats
path: root/src/test/cli/crushtool/simple.template
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/cli/crushtool/simple.templatebin0 -> 316 bytes
-rw-r--r--src/test/cli/crushtool/simple.template.adj.one50
-rw-r--r--src/test/cli/crushtool/simple.template.adj.three58
-rw-r--r--src/test/cli/crushtool/simple.template.adj.two58
-rw-r--r--src/test/cli/crushtool/simple.template.five59
-rw-r--r--src/test/cli/crushtool/simple.template.four50
-rw-r--r--src/test/cli/crushtool/simple.template.multitree64
-rw-r--r--src/test/cli/crushtool/simple.template.multitree.reweighted67
-rw-r--r--src/test/cli/crushtool/simple.template.one52
-rw-r--r--src/test/cli/crushtool/simple.template.three52
-rw-r--r--src/test/cli/crushtool/simple.template.two52
11 files changed, 562 insertions, 0 deletions
diff --git a/src/test/cli/crushtool/simple.template b/src/test/cli/crushtool/simple.template
new file mode 100644
index 000000000..8f0076f54
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template
Binary files differ
diff --git a/src/test/cli/crushtool/simple.template.adj.one b/src/test/cli/crushtool/simple.template.adj.one
new file mode 100644
index 000000000..faf02c72c
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.adj.one
@@ -0,0 +1,50 @@
+# begin crush map
+
+# devices
+device 0 device0
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -2 # do not change unnecessarily
+ # weight 1.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+}
+cluster cluster0 {
+ id -1 # do not change unnecessarily
+ # weight 1.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 1.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.adj.three b/src/test/cli/crushtool/simple.template.adj.three
new file mode 100644
index 000000000..52fed1f14
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.adj.three
@@ -0,0 +1,58 @@
+# begin crush map
+
+# devices
+device 0 device0
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -2 # do not change unnecessarily
+ # weight 3.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 3.00000
+}
+host fake {
+ id -3 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 2.00000
+}
+cluster cluster0 {
+ id -1 # do not change unnecessarily
+ # weight 5.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 3.00000
+ item fake weight 2.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.adj.two b/src/test/cli/crushtool/simple.template.adj.two
new file mode 100644
index 000000000..00cb81055
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.adj.two
@@ -0,0 +1,58 @@
+# begin crush map
+
+# devices
+device 0 device0
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -2 # do not change unnecessarily
+ # weight 1.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+}
+host fake {
+ id -3 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 2.00000
+}
+cluster cluster0 {
+ id -1 # do not change unnecessarily
+ # weight 3.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 1.00000
+ item fake weight 2.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.five b/src/test/cli/crushtool/simple.template.five
new file mode 100644
index 000000000..74c53abeb
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.five
@@ -0,0 +1,59 @@
+# begin crush map
+
+# devices
+device 0 device0
+device 1 osd1
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -2 # do not change unnecessarily
+ # weight 1.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+}
+host host1 {
+ id -3 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item osd1 weight 2.00000
+}
+cluster cluster0 {
+ id -1 # do not change unnecessarily
+ # weight 3.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 1.00000
+ item host1 weight 2.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.four b/src/test/cli/crushtool/simple.template.four
new file mode 100644
index 000000000..faf02c72c
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.four
@@ -0,0 +1,50 @@
+# begin crush map
+
+# devices
+device 0 device0
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -2 # do not change unnecessarily
+ # weight 1.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+}
+cluster cluster0 {
+ id -1 # do not change unnecessarily
+ # weight 1.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 1.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.multitree b/src/test/cli/crushtool/simple.template.multitree
new file mode 100644
index 000000000..c3ab1ff53
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.multitree
@@ -0,0 +1,64 @@
+# begin crush map
+
+# devices
+device 0 device0
+device 1 osd1
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ # weight 1.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+}
+host host1 {
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item osd1 weight 2.00000
+}
+cluster cluster0 {
+ # weight 3.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 1.00000
+ item host1 weight 2.00000
+}
+
+cluster cluster1 {
+ # weight 3.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 1.00000
+ item host1 weight 2.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster1
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.multitree.reweighted b/src/test/cli/crushtool/simple.template.multitree.reweighted
new file mode 100644
index 000000000..daaf34ac7
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.multitree.reweighted
@@ -0,0 +1,67 @@
+# begin crush map
+
+# devices
+device 0 device0
+device 1 osd1
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -1 # do not change unnecessarily
+ # weight 1.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+}
+host host1 {
+ id -2 # do not change unnecessarily
+ # weight 2.50000
+ alg straw
+ hash 0 # rjenkins1
+ item osd1 weight 2.50000
+}
+cluster cluster0 {
+ id -3 # do not change unnecessarily
+ # weight 3.50000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 1.00000
+ item host1 weight 2.50000
+}
+cluster cluster1 {
+ id -4 # do not change unnecessarily
+ # weight 3.50000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 1.00000
+ item host1 weight 2.50000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster1
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.one b/src/test/cli/crushtool/simple.template.one
new file mode 100644
index 000000000..33ebc662a
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.one
@@ -0,0 +1,52 @@
+# begin crush map
+
+# devices
+device 0 device0
+device 1 device1
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -2 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+ item device1 weight 1.00000
+}
+cluster cluster0 {
+ id -1 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 2.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.three b/src/test/cli/crushtool/simple.template.three
new file mode 100644
index 000000000..33ebc662a
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.three
@@ -0,0 +1,52 @@
+# begin crush map
+
+# devices
+device 0 device0
+device 1 device1
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -2 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+ item device1 weight 1.00000
+}
+cluster cluster0 {
+ id -1 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 2.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map
diff --git a/src/test/cli/crushtool/simple.template.two b/src/test/cli/crushtool/simple.template.two
new file mode 100644
index 000000000..33ebc662a
--- /dev/null
+++ b/src/test/cli/crushtool/simple.template.two
@@ -0,0 +1,52 @@
+# begin crush map
+
+# devices
+device 0 device0
+device 1 device1
+
+# types
+type 0 device
+type 1 host
+type 2 cluster
+
+# buckets
+host host0 {
+ id -2 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item device0 weight 1.00000
+ item device1 weight 1.00000
+}
+cluster cluster0 {
+ id -1 # do not change unnecessarily
+ # weight 2.00000
+ alg straw
+ hash 0 # rjenkins1
+ item host0 weight 2.00000
+}
+
+# rules
+rule data {
+ id 0
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule metadata {
+ id 1
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+rule rbd {
+ id 2
+ type replicated
+ step take cluster0
+ step chooseleaf firstn 0 type host
+ step emit
+}
+
+# end crush map