]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: fix pulpito and paddles status in init script
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 22 Oct 2018 19:58:16 +0000 (21:58 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 14 Oct 2019 14:47:01 +0000 (16:47 +0200)
After deployment teuthology cluster on openstack, teuthology
service status-paddles and status-pulpito commands report
'dead', however paddles and pulpito are running.
This fix addresses this issue.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
teuthology/openstack/__init__.py

index 908991c81e12154cf2a83f369a8f0567f21c20d0..e40e4f47b0a6a5b2c0cecb8ef3dc809528601391 100644 (file)
@@ -1122,7 +1122,12 @@ ssh access           : ssh {identity}{username}@{ip} # logs in /usr/share/nginx/
                 "{user} >> /tmp/init.out "
                 "2>&1".format(user=self.username,
                               opts=' '.join(setup_options + all_options))),
-            "/etc/init.d/teuthology restart"
+            # wa: we want to stop paddles and pulpito started by
+            # setup-openstack before starting teuthology service
+            "pkill -f 'pecan serve'",
+            "pkill -f 'python run.py'",
+            "systemctl enable teuthology",
+            "systemctl start teuthology",
         ]
         if cacert_cmd:
             cmds.insert(0,cmd_str(cacert_cmd))