]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli/monmaptool/feature-set-unset-list.t
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / test / cli / monmaptool / feature-set-unset-list.t
1 $ monmaptool --create --add a 10.10.10.10:1234 /tmp/test.monmap.1234
2 monmaptool: monmap file /tmp/test.monmap.1234
3 monmaptool: generated fsid [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} (re)
4 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
5
6 $ monmaptool --feature-list --feature-list plain --feature-list parseable /tmp/test.monmap.1234
7 monmaptool: monmap file /tmp/test.monmap.1234
8 MONMAP FEATURES:
9 persistent: [none]
10 optional: [none]
11 required: [none]
12
13 AVAILABLE FEATURES:
14 supported: [kraken(1),luminous(2)]
15 persistent: [kraken(1),luminous(2)]
16 MONMAP FEATURES:
17 persistent: [none]
18 optional: [none]
19 required: [none]
20
21 AVAILABLE FEATURES:
22 supported: [kraken(1),luminous(2)]
23 persistent: [kraken(1),luminous(2)]
24 monmap:persistent:[none]
25 monmap:optional:[none]
26 monmap:required:[none]
27 available:supported:[kraken(1),luminous(2)]
28 available:persistent:[kraken(1),luminous(2)]
29
30 $ monmaptool --feature-set foo /tmp/test.monmap.1234
31 unknown features name 'foo' or unable to parse value: Expected option value to be integer, got 'foo'
32 usage: [--print] [--create [--clobber][--fsid uuid]]
33 [--generate] [--set-initial-members]
34 [--add name 1.2.3.4:567] [--rm name]
35 [--feature-list [plain|parseable]]
36 [--feature-set <value> [--optional|--persistent]]
37 [--feature-unset <value> [--optional|--persistent]] <mapfilename>
38 [1]
39
40 $ monmaptool --feature-set kraken --feature-set 16 --optional --feature-set 32 --persistent /tmp/test.monmap.1234
41 monmaptool: monmap file /tmp/test.monmap.1234
42 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
43
44 $ monmaptool --feature-list /tmp/test.monmap.1234
45 monmaptool: monmap file /tmp/test.monmap.1234
46 MONMAP FEATURES:
47 persistent: [kraken(1),unknown(32)]
48 optional: [unknown(16)]
49 required: [kraken(1),unknown(16),unknown(32)]
50
51 AVAILABLE FEATURES:
52 supported: [kraken(1),luminous(2)]
53 persistent: [kraken(1),luminous(2)]
54
55 $ monmaptool --feature-unset 32 --optional --feature-list /tmp/test.monmap.1234
56 monmaptool: monmap file /tmp/test.monmap.1234
57 MONMAP FEATURES:
58 persistent: [kraken(1),unknown(32)]
59 optional: [unknown(16)]
60 required: [kraken(1),unknown(16),unknown(32)]
61
62 AVAILABLE FEATURES:
63 supported: [kraken(1),luminous(2)]
64 persistent: [kraken(1),luminous(2)]
65 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
66
67 $ monmaptool --feature-unset 32 --persistent --feature-unset 16 --optional --feature-list /tmp/test.monmap.1234
68 monmaptool: monmap file /tmp/test.monmap.1234
69 MONMAP FEATURES:
70 persistent: [kraken(1)]
71 optional: [none]
72 required: [kraken(1)]
73
74 AVAILABLE FEATURES:
75 supported: [kraken(1),luminous(2)]
76 persistent: [kraken(1),luminous(2)]
77 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
78
79 $ monmaptool --feature-unset kraken --feature-list /tmp/test.monmap.1234
80 monmaptool: monmap file /tmp/test.monmap.1234
81 MONMAP FEATURES:
82 persistent: [none]
83 optional: [none]
84 required: [none]
85
86 AVAILABLE FEATURES:
87 supported: [kraken(1),luminous(2)]
88 persistent: [kraken(1),luminous(2)]
89 monmaptool: writing epoch 0 to /tmp/test.monmap.1234 (1 monitors)
90
91 $ rm /tmp/test.monmap.1234