Re: ceph-deploy : systemd unit files not deployed to a centos7 nodes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have just run into this after upgrading to Ubuntu 15.04 and trying to deploy ceph 0.94.

Initially tried to get things going by changing relevant code for ceph-deploy and ceph-disk to use systemd for this release - however the unit files in ./systemd do not contain a ceph-create-keys step, so will not work (I'll take a look at how tricky that is to add later - when I understand the purpose of the various unit files better/at all)!

In the meantime, it is possible to get things going falling back to sysvinit - not unit files but systemctl seems to understand what is going on! Changes attached, my feeling is that it is better/clearer to get the direct systemd unit files working - but as an interim hack-around to get going this 'will do'.

Cheers

Mark


On 18/04/15 02:22, HEWLETT, Paul (Paul)** CTR ** wrote:
I would be very keen for this to be implemented in Hammer and am willing to help test it...


Paul Hewlett
Senior Systems Engineer
Velocix, Cambridge
Alcatel-Lucent
t: +44 1223 435893 m: +44 7985327353



________________________________________
From: ceph-users [ceph-users-bounces@xxxxxxxxxxxxxx] on behalf of Ken Dreyer [kdreyer@xxxxxxxxxx]
Sent: 17 April 2015 14:45
To: ceph-users@xxxxxxxxxxxxxx
Subject: Re:  ceph-deploy : systemd unit files not deployed to a    centos7 nodes

As you've seen, a set of systemd unit files has been committed to git,
but the packages do not yet use them.

There is an open ticket for this task,
http://tracker.ceph.com/issues/11344 . Feel free to add yourself as a
watcher on that if you are interested in the progress.

- Ken

On 04/17/2015 06:22 AM, Alexandre DERUMIER wrote:
Oh,

I didn't see that a sysvinit file was also deployed.

works fine with /etc/init.d/ceph


----- Mail original -----
De: "aderumier" <aderumier@xxxxxxxxx>
À: "ceph-users" <ceph-users@xxxxxxxxxxxxxx>
Envoyé: Vendredi 17 Avril 2015 14:11:45
Objet:  ceph-deploy : systemd unit files not deployed to a        centos7 nodes

Hi,

I'm currently try to deploy a new ceph test cluster on centos7, (hammer)

from ceph-deploy (on a debian wheezy).

And it seem that systemd unit files are not deployed

Seem that ceph git have systemd unit file
https://github.com/ceph/ceph/tree/hammer/systemd

I don't have look inside the rpm package.


(This is my first install on centos, so I don't known if it's working with previous releases)


I have deployed with:

ceph-deploy install --release hammer ceph1-{1,2,3}
ceph-deploy new ceph1-{1,2,3}


Is it normal ?
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


diff --git a/ceph_deploy/hosts/debian/__init__.py b/ceph_deploy/hosts/debian/__init__.py
index 654d838..00c43cc 100644
--- a/ceph_deploy/hosts/debian/__init__.py
+++ b/ceph_deploy/hosts/debian/__init__.py
@@ -17,5 +17,8 @@ def choose_init():
     Returns the name of a init system (upstart, sysvinit ...).
     """
     if distro.lower() == 'ubuntu':
-        return 'upstart'
+        init_mapping = {
+            '15.04' : 'sysvinit',
+            }
+        return init_mapping.get(release, 'upstart')
     return 'sysvinit'
--- /usr/sbin/ceph-disk	2015-04-26 17:56:47.000000000 +1200
+++ /tmp/ceph-disk	2015-04-27 13:02:14.958474646 +1200
@@ -2148,7 +2148,10 @@
             else:
                 (distro, release, codename) = platform.dist()
                 if distro == 'Ubuntu':
-                    init = 'upstart'
+                    init_mapping = {
+                        '15.04' : 'sysvinit',
+                        }
+                    init = init_mapping.get(release, 'upstart')
                 else:
                     init = 'sysvinit'
 
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux