bugfix: fix the mongodb oplog size to 10GB 39/10039/1
authorcarey.xu <carey.xuhan@huawei.com>
Tue, 16 Feb 2016 07:05:28 +0000 (15:05 +0800)
committercarey.xu <carey.xuhan@huawei.com>
Tue, 16 Feb 2016 07:05:28 +0000 (15:05 +0800)
JIRA: COMPASS-316

Change-Id: Ib7a6a0f9a8c06de19d0530157bbeaaf233ce169f
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
deploy/adapters/ansible/roles/database/templates/mongodb.conf
deploy/client.py

index 593f903..fc5dc72 100644 (file)
@@ -871,11 +871,11 @@ class CompassClient(object):
                          (cluster_id, status, cluster_state)
                     )
 
-                LOG.info("current_time=%s, deployment_timeout=%s" \
-                        % (current_time(), deployment_timeout))
                 time.sleep(5)
 
-            if not current_time() < deployment_timeout:
+            if current_time() >= deployment_timeout:
+                LOG.info("current_time=%s, deployment_timeout=%s" \
+                        % (current_time(), deployment_timeout))
                 raise RuntimeError("installation timeout")
 
         try: