From: Alfredo Deza Date: Wed, 18 Sep 2013 00:41:55 +0000 (-0400) Subject: close pushy connections before starting the monitors X-Git-Tag: v1.2.5~1^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d5e00d54e6e8b67770bef1df6a4f0dbdbf75f7c4;p=ceph-deploy.git close pushy connections before starting the monitors Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/centos/mon/create.py b/ceph_deploy/hosts/centos/mon/create.py index 32816d6..c8cc2bc 100644 --- a/ceph_deploy/hosts/centos/mon/create.py +++ b/ceph_deploy/hosts/centos/mon/create.py @@ -9,6 +9,8 @@ def create(distro, logger, args, monitor_keyring): common.mon_create(distro, logger, args, monitor_keyring, hostname) service = common.which_service(distro.sudo_conn, logger) + distro.sudo_conn.close() + # TODO transition this once pushy is out rconn = get_connection(hostname, logger) process.run( diff --git a/ceph_deploy/hosts/debian/mon/create.py b/ceph_deploy/hosts/debian/mon/create.py index 40afa2f..407ebb6 100644 --- a/ceph_deploy/hosts/debian/mon/create.py +++ b/ceph_deploy/hosts/debian/mon/create.py @@ -8,6 +8,7 @@ def create(distro, logger, args, monitor_keyring): hostname = remote_shortname(distro.sudo_conn.modules.socket) common.mon_create(distro, logger, args, monitor_keyring, hostname) + distro.sudo_conn.close() # TODO transition this once pushy is out rconn = get_connection(hostname, logger) diff --git a/ceph_deploy/hosts/fedora/mon/create.py b/ceph_deploy/hosts/fedora/mon/create.py index 4e4b158..687736f 100644 --- a/ceph_deploy/hosts/fedora/mon/create.py +++ b/ceph_deploy/hosts/fedora/mon/create.py @@ -9,6 +9,8 @@ def create(distro, logger, args, monitor_keyring): common.mon_create(distro, logger, args, monitor_keyring, hostname) service = common.which_service(distro.sudo_conn, logger) + distro.sudo_conn.close() + # TODO transition this once pushy is out rconn = get_connection(hostname, logger) diff --git a/ceph_deploy/hosts/suse/mon/create.py b/ceph_deploy/hosts/suse/mon/create.py index 4e4b158..687736f 100644 --- a/ceph_deploy/hosts/suse/mon/create.py +++ b/ceph_deploy/hosts/suse/mon/create.py @@ -9,6 +9,8 @@ def create(distro, logger, args, monitor_keyring): common.mon_create(distro, logger, args, monitor_keyring, hostname) service = common.which_service(distro.sudo_conn, logger) + distro.sudo_conn.close() + # TODO transition this once pushy is out rconn = get_connection(hostname, logger)