]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Put distro.conn.exit to the end of function 247/head
authorDongmao Zhang <deanraccoon@gmail.com>
Wed, 8 Oct 2014 08:38:40 +0000 (16:38 +0800)
committerDongmao Zhang <deanraccoon@gmail.com>
Wed, 8 Oct 2014 08:38:40 +0000 (16:38 +0800)
system.enable_service(distro.conn) is still needing the connection.

Signed-off-by: Dongmao Zhang <deanraccoon@gmail.com>
ceph_deploy/osd.py

index 2d338eb386c52e051d2b99def83208eee91c9eee..9b4c3cbe726955d7f1123b9285122d1c93cae867 100644 (file)
@@ -381,11 +381,12 @@ def activate(args, cfg):
         # give the OSD a few seconds to start
         time.sleep(5)
         catch_osd_errors(distro.conn, distro.conn.logger, args)
-        distro.conn.exit()
 
         if distro.is_el:
             system.enable_service(distro.conn)
 
+        distro.conn.exit()
+
 
 def disk_zap(args):