[PKG-Openstack-devel] Bug#770706: Bug#770706: keystone.service does not start, /var/run/keystone not created

Gaudenz Steinlin gaudenz at debian.org
Thu Dec 4 09:42:34 UTC 2014


Mikaël Cluseau <mcluseau at isi.nc> writes:

> On 12/04/2014 03:52 AM, Thomas Goirand wrote:
>> Let's see what the release team says.
>
> Thanks Thomas.
>
> Aside from this, I took a look at how they did in Fedora.
>
> Here is their unit file:
>
> [Unit]
> Description=OpenStack Identity Service (code-named Keystone)
> After=syslog.target network.target
>
> [Service]
> Type=notify
> Restart=always
> User=keystone
> ExecStart=/usr/bin/keystone-all --config-file 
> /usr/share/keystone/keystone-dist.conf --config-file 
> /etc/keystone/keystone.conf
>
> [Install]
> WantedBy=multi-user.target
>
> So, we can use multiple config files, this allows the same granularity 
> as the /etc/default/* way. They also use the Type=notify clause. Their 
> keystone-dist.conf has the following DEFAULT section:
>
> [DEFAULT]
> log_file = /var/log/keystone/keystone.log
> onready = keystone.common.systemd

Cool, didn't know that keystone supports the systemd notification
protocol. We should definitely use that post jessie then. Do you know if
all the openstack daemons support this and configure it in the same way?

>
> To mimic the current genericity of our init-script, we could use 
> something like
>
> ExecStart=... --config-file /usr/share/keystone/keystone-systemd.conf 
> --config-file /etc/openstack.conf --config-file /etc/keystone/keystone.conf
>
> with the same global section in 
> /usr/share/keystone/keystone-systemd.conf. One can then use 
> /etc/openstack.conf to switch back to syslog or stdout or stderr or 
> whatever she wants globally.

That looks like a good solution to me to get rid of the /etc/default
files without loosing any functionality. This would avoid duplicating
configuration settings in configuration files and /etc/default files.
Looks like the best solution to me, but ovviously post jessie.

Gaudenz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20141204/69d868ec/attachment-0001.sig>


More information about the Openstack-devel mailing list