]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli/osdmaptool/clobber.t
update sources to v12.1.1
[ceph.git] / ceph / src / test / cli / osdmaptool / clobber.t
1 $ osdmaptool --createsimple 3 myosdmap --with-default-pool
2 osdmaptool: osdmap file 'myosdmap'
3 osdmaptool: writing epoch 1 to myosdmap
4
5 $ ORIG_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
6 osdmaptool: osdmap file 'myosdmap'
7
8 $ osdmaptool --createsimple 3 myosdmap --with-default-pool
9 osdmaptool: osdmap file 'myosdmap'
10 osdmaptool: myosdmap exists, --clobber to overwrite
11 [255]
12
13 # hasn't changed yet
14 #TODO typo
15 $ osdmaptool --print myosdmap
16 osdmaptool: osdmap file 'myosdmap'
17 epoch 1
18 fsid [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} (re)
19 created \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
20 modified \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
21 flags
22 crush_version 1
23 full_ratio 0
24 backfillfull_ratio 0
25 nearfull_ratio 0
26 min_compat_client jewel
27
28 pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 last_change 0 flags hashpspool stripe_width 0
29
30 max_osd 3
31
32
33 $ NEW_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
34 osdmaptool: osdmap file 'myosdmap'
35 $ [ "$ORIG_FSID" = "$NEW_FSID" ]
36
37 $ osdmaptool --createsimple 1 --clobber myosdmap --with-default-pool
38 osdmaptool: osdmap file 'myosdmap'
39 osdmaptool: writing epoch 1 to myosdmap
40
41 $ osdmaptool --print myosdmap
42 osdmaptool: osdmap file 'myosdmap'
43 epoch 1
44 fsid [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} (re)
45 created \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
46 modified \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
47 flags
48 crush_version 1
49 full_ratio 0
50 backfillfull_ratio 0
51 nearfull_ratio 0
52 min_compat_client jewel
53
54 pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 64 pgp_num 64 last_change 0 flags hashpspool stripe_width 0
55
56 max_osd 1
57
58
59 $ NEW_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
60 osdmaptool: osdmap file 'myosdmap'
61 #TODO --clobber should probably set new fsid, remove the [1]
62 $ [ "$ORIG_FSID" != "$NEW_FSID" ]
63 [1]