Skip to content

Commit

Permalink
Ensure nova-compute service start after libvirtd
Browse files Browse the repository at this point in the history
This patch aims to ensure that the nova-compute systemd service is
started only after the libvirtd systemd service.

Closes-Bug: 1780011
Co-Authored-By: kaiokassiano <kaiokmo@lsd.ufcg.edu.br>
Change-Id: Ie9b6d83d4a9573be96e050376f756e97895b6e67
  • Loading branch information
Jesse Pretorius and kaiokmo committed Aug 17, 2018
1 parent 3ebffbd commit da2b8f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Expand Up @@ -481,6 +481,10 @@ nova_services:
start_order: 6
execstarts: "{{ nova_bin }}/nova-compute"
execreloads: "/bin/kill -HUP $MAINPID"
after_targets:
- libvirtd.service
- syslog.target
- network.target
nova-conductor:
group: nova_conductor
service_name: nova-conductor
Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Expand Up @@ -135,6 +135,7 @@
name: systemd_service
private: true
vars:
systemd_after_targets: "{{ service_var.after_targets | default(['syslog.target', 'network.target']) }}"
systemd_user_name: "{{ nova_system_user_name }}"
systemd_group_name: "{{ nova_system_group_name }}"
systemd_tempd_prefix: openstack
Expand Down

0 comments on commit da2b8f4

Please sign in to comment.