[openstack-dev] [devstack] systemd + ENABLED_SERVICES + user_init_file

Markus Zoeller mzoeller at linux.vnet.ibm.com
Thu May 11 13:56:47 UTC 2017

I'm working on a nova live-migration hook which configures and starts
the nova-serialproxy service, runs a subset of tempest tests, and tears
down the previously started service.


After the change to "systemd", I thought all I have to do was to start
the service with:

   systemctl enable devstack at n-sproxy
   systemctl restart devstack at n-sproxy

But this results in the error "Failed to execute operation: No such file
or directory". The reason is, that there is no systemd "user unit file".
This file gets written in Devstack at:


For that to happen, a service must be in the list "ENABLED_SERVICES":


Which is *not* the case for the "n-sproxy" service:


I'm not sure how to approach this problem. I could:
1) add "n-sproxy" to the default ENABLED_SERVICES list for Nova in
2) always write the systemd user unit file in Devstack
   (despite being an enabled service)
3) Write the "user unit file" on the fly in the hook (in Nova).
4) ?

Right now I tend to option 2, as I think it brings more flexibility (for
other services too) with less change in the set of default enabled
services in the gate.

Is this the right direction? Any other thoughts?

Regards, Markus Zoeller (markus_z)

More information about the OpenStack-dev mailing list