[Bug 1423613] Re: maas needs to support systemd for Ubuntu >= 15.04

Martin Pitt martin.pitt at ubuntu.com
Thu Feb 19 17:42:27 UTC 2015


This is a first (untested) approach to maas-clusterd.service.

This doesn't do the ExecStartPre= with the "A shared secret has not been
installed for this cluster...." bits, as that's quite ugly -- you don't
see this anywhere if you aren't on a console of the machine, and
eventually it will time out and not restart automatically any more. This
job will start if a secret exists, and just silently not start if there
isn't one (and show you that the condition for the secret is failing, in
systemctl status maas-clusterd).

This can be modelled with two jobs, one which waits for a secret to
appear, which then starts maas-clusterd.service. But before I write such
a thing, I'd be interested in the precise semantics of this. I. e. what
creates the secret? Does that happen automatically, or does the user
have to do that manually? How long should we wait for it?

** Attachment added: "maas-clusterd.service sketch"
   https://bugs.launchpad.net/maas/+bug/1423613/+attachment/4322682/+files/maas-clusterd.service

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1423613

Title:
  maas needs to support systemd for Ubuntu >= 15.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1423613/+subscriptions



More information about the Ubuntu-server-bugs mailing list