]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[BZ-1231203] specify a pid location for monitors
authorAlfredo Deza <adeza@redhat.com>
Tue, 3 Nov 2015 18:46:05 +0000 (13:46 -0500)
committerAlfredo Deza <adeza@redhat.com>
Wed, 4 Nov 2015 00:28:58 +0000 (19:28 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph_deploy/hosts/common.py

index 26cc1864e7a127408ded5a16af53df3fcacca772..489f93f2e37bb091939e55a4f3556cca621bd9f4 100644 (file)
@@ -55,6 +55,7 @@ def mon_create(distro, args, monitor_keyring, hostname):
             user_args = user_args + [ '--setuser', str(uid) ]
         if gid != 0:
             user_args = user_args + [ '--setgroup', str(gid) ]
+
         remoto.process.run(
             distro.conn,
             [
@@ -133,6 +134,7 @@ def mon_add(distro, args, monitor_keyring):
             user_args = user_args + [ '--setuser', str(uid) ]
         if gid != 0:
             user_args = user_args + [ '--setgroup', str(gid) ]
+
         remoto.process.run(
             distro.conn,
             [
@@ -156,12 +158,14 @@ def mon_add(distro, args, monitor_keyring):
     distro.conn.remote_module.create_init_path(init_path, uid, gid)
 
     # start the mon using the address
+    pid_location = "/var/run/ceph/mon.%s.pid" % hostname
     remoto.process.run(
         distro.conn,
         [
             'ceph-mon',
             '-i',
             hostname,
+            '--pid-file', pid_location,
             '--public-addr',
             args.address,
         ],