]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
calamari_setup: handle RHCS 1.2 (missing /mnt/MON)
authorKen Dreyer <kdreyer@redhat.com>
Wed, 5 Aug 2015 22:54:49 +0000 (16:54 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 6 Aug 2015 13:58:35 +0000 (07:58 -0600)
In RHCS 1.2 we don't have a /mnt/MON directory. The intention of
35c6363a1eaf5011e26be8561ffcd4e9324d13a2 was to handle this condition,
but in 1.2, the non-zero return code makes Teuthology fail the whole
test.

We don't want *Teuthology* itself to act on the return code here; we
simply want to know what it was and structure the rest of the test
accordingly.

tasks/calamari_setup.py

index fd3ef4e39599544f4957ee73a10709be90e47680..628df2eca484990a78fae8274be6ad58a070c99c 100644 (file)
@@ -345,7 +345,7 @@ def deploy_ceph(ctx, cal_svr):
     # created local repos at all, but that is the subject of a future
     # change.)
 
-    r = cal_svr.run(args='/usr/bin/test -d /mnt/MON')
+    r = cal_svr.run(args='/usr/bin/test -d /mnt/MON', check_status=False)
     use_install_repo = (r.returncode == 0)
 
     # pre-1.3: