From 689da211153fb5ebdd7e1fdecbb830a2970250f0 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 4 Sep 2018 15:40:23 +0100 Subject: [PATCH] Ensure nova-compute service start after libvirtd This patch aims to ensure that the nova-compute systemd service is started only after the libvirtd systemd service. This is a re-implementation of https://review.openstack.org/593001 which is required due to the changes in how the services is setup. Closes-Bug: 1780011 Co-Authored-By: kaiokassiano Change-Id: Ie9b6d83d4a9573be96e050376f756e97895b6e67 --- templates/nova-systemd-init.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/nova-systemd-init.j2 b/templates/nova-systemd-init.j2 index 0f43c196..2a3f5a58 100644 --- a/templates/nova-systemd-init.j2 +++ b/templates/nova-systemd-init.j2 @@ -2,6 +2,9 @@ [Unit] Description=nova openstack service +{% if item.service_name == nova_services['nova-compute']['service_name'] %} +After=libvirtd.service +{% endif %} After=syslog.target After=network.target