Fix issues with nova distro install on Ubuntu
The Ubuntu nova-api and nova-spiceproxy distro packages create services with names differing from the OSA's defaults. Set default init overrides for these services which provide these names as aliases. The nova-compute-kvm package creates a nova-compute.conf file setting libvirt.virt_type=kvm which overrides anything in nova.conf. Remove it. Depends-On: https://review.openstack.org/#/c/614888 Change-Id: I0bf038930fde4790bcc8f9dbbacd236901c94346
This commit is contained in:
parent
7bf2426ff8
commit
914fd48924
@ -495,7 +495,7 @@ nova_services:
|
||||
nova-api-os-compute:
|
||||
group: nova_api_os_compute
|
||||
service_name: nova-api-os-compute
|
||||
init_config_overrides: "{{ nova_api_os_compute_init_overrides }}"
|
||||
init_config_overrides: "{{ {'Install': {'Alias': 'nova-api.service'}} | combine(nova_api_os_compute_init_overrides) }}"
|
||||
start_order: 4
|
||||
execstarts: "{{ nova_uwsgi_bin }}/uwsgi --autoload --ini /etc/uwsgi/nova-api-os-compute.ini"
|
||||
execreloads: "{{ nova_uwsgi_bin }}/uwsgi --reload /var/run/nova-api-os-compute/nova-api-os-compute.pid"
|
||||
@ -544,7 +544,7 @@ nova_services:
|
||||
nova-spicehtml5proxy:
|
||||
group: nova_console
|
||||
service_name: nova-spicehtml5proxy
|
||||
init_config_overrides: "{{ nova_spicehtml5proxy_init_overrides }}"
|
||||
init_config_overrides: "{{ {'Install': {'Alias': 'nova-spiceproxy.service'}} | combine(nova_spicehtml5proxy_init_overrides) }}"
|
||||
condition: "{{ nova_console_type == 'spice' }}"
|
||||
start_order: 5
|
||||
execstarts: "{{ nova_bin }}/nova-spicehtml5proxy"
|
||||
|
@ -77,6 +77,17 @@
|
||||
- nova-config
|
||||
- nova-post-install
|
||||
|
||||
- name: Remove nova-compute config
|
||||
file:
|
||||
path: /etc/nova/nova-compute.conf
|
||||
state: absent
|
||||
notify:
|
||||
- Manage LB
|
||||
- Restart nova services
|
||||
tags:
|
||||
- nova-config
|
||||
- nova-post-install
|
||||
|
||||
- name: Drop sudoers file
|
||||
template:
|
||||
src: "sudoers.j2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user