]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/monmaptool/rm-nonexistent.t
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / test / cli / monmaptool / rm-nonexistent.t
CommitLineData
7c673cae
FG
1 $ monmaptool --create --add foo 2.3.4.5:6789 mymonmap
2 monmaptool: monmap file mymonmap
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 mymonmap (1 monitors)
5
6 $ ORIG_FSID="$(monmaptool --print mymonmap|grep ^fsid)"
7
8 $ monmaptool --rm doesnotexist mymonmap
9 monmaptool: monmap file mymonmap
10 monmaptool: removing doesnotexist
11 monmaptool: map does not contain doesnotexist
11fdf7f2 12 monmaptool -h for usage
7c673cae
FG
13 [1]
14
15 $ monmaptool --print mymonmap
16 monmaptool: monmap file mymonmap
17 epoch 0
18 fsid [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} (re)
19 last_changed \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
20 created \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
11fdf7f2
TL
21 min_mon_release 0 (unknown)
22 0: v1:2.3.4.5:6789/0 mon.foo
7c673cae
FG
23
24 $ NEW_FSID="$(monmaptool --print mymonmap|grep ^fsid)"
25 $ [ "$ORIG_FSID" = "$NEW_FSID" ]