]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: remove 'mds setmap' from workunits 8123/head
authorSage Weil <sage@redhat.com>
Tue, 15 Mar 2016 13:44:13 +0000 (09:44 -0400)
committerSage Weil <sage@redhat.com>
Tue, 15 Mar 2016 13:49:00 +0000 (09:49 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 6a80e2df8b31802a39ef6f89136ed357dce50c20)

qa/workunits/cephtool/test.sh
qa/workunits/rest/test.py

index 67cd3648e9b78c36c5bd1f6cb56fb969b0c3b2c4..8e6e70e03afa696548ee93ac75174dbd33b80689 100755 (executable)
@@ -751,8 +751,6 @@ function test_mon_mds()
   mdsmapfile=$TMPDIR/mdsmap.$$
   current_epoch=$(ceph mds getmap -o $mdsmapfile --no-log-to-stderr 2>&1 | grep epoch | sed 's/.*epoch //')
   [ -s $mdsmapfile ]
-  ((epoch = current_epoch + 1))
-  ceph mds setmap -i $mdsmapfile $epoch
   rm $mdsmapfile
 
   ceph osd pool create data2 10
index 19808badb7c157145900aaa70cdbff316339df76..5c42fe796de0e5020aaf6d3bcff9ca1809b8c32f 100755 (executable)
@@ -166,26 +166,6 @@ if __name__ == '__main__':
     r = expect('mds/dump.xml', 'GET', 200, 'xml')
     assert(r.tree.find('output/mdsmap/created') is not None)
 
-    failresps = []
-    while len(failresps) < 10:
-        r = expect('mds/dump.json', 'GET', 200, 'json')
-        assert('created' in r.myjson['output'])
-        current_epoch = r.myjson['output']['epoch']
-
-        map = expect('mds/getmap', 'GET', 200, '')
-        assert(len(map.content) != 0)
-        msg, r = expect_nofail(
-            'mds/setmap?epoch={0}'.format(current_epoch + 1), 'PUT', 200,
-            'plain', {'Content-Type':'text/plain'}, data=map.content
-            )
-        if msg:
-            failresps.append(msg + r.content)
-        else:
-            break
-
-    if len(failresps) == 10:
-        fail(r, 'Could not mds setmap in 10 tries; responses:' +
-             '\n'.join(failresps))
     expect('mds/newfs?metadata=0&data=1&sure=--yes-i-really-mean-it', 'PUT',
            200, '')
     expect('osd/pool/create?pool=data2&pg_num=10', 'PUT', 200, '')