Fix cyborg api failed to load api-paste.ini file
Change-Id: Id0f5809b50d0f6a0c96704e8f855d18f16f8de56 Closes-bug: #1874028
This commit is contained in:
parent
bb6e23fb29
commit
a374ff9f3f
@ -82,28 +82,18 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart {{ item.key }} container
|
- Restart {{ item.key }} container
|
||||||
|
|
||||||
- name: Checking whether cyborg-api-paste.ini file exists
|
|
||||||
vars:
|
|
||||||
service: "{{ cyborg_services['cyborg-api'] }}"
|
|
||||||
stat:
|
|
||||||
path: "{{ node_custom_config }}/cyborg/cyborg-api-paste.ini"
|
|
||||||
delegate_to: localhost
|
|
||||||
run_once: True
|
|
||||||
register: check_cyborg_api_paste_ini
|
|
||||||
when:
|
|
||||||
- service.enabled | bool
|
|
||||||
|
|
||||||
- name: Copying over cyborg-api-paste.ini
|
- name: Copying over cyborg-api-paste.ini
|
||||||
vars:
|
vars:
|
||||||
service: "{{ cyborg_services['cyborg-api'] }}"
|
service: "{{ cyborg_services['cyborg-api'] }}"
|
||||||
template:
|
merge_configs:
|
||||||
src: "{{ node_custom_config }}/cyborg/cyborg-api-paste.ini"
|
sources:
|
||||||
|
- "{{ role_path }}/templates/cyborg-api-paste.ini.j2"
|
||||||
|
- "{{ node_custom_config }}/cyborg/cyborg-api-paste.ini"
|
||||||
dest: "{{ node_config_directory }}/cyborg-api/api-paste.ini"
|
dest: "{{ node_config_directory }}/cyborg-api/api-paste.ini"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['cyborg-api']
|
- inventory_hostname in groups['cyborg-api']
|
||||||
- service.enabled | bool
|
- service.enabled | bool
|
||||||
- check_cyborg_api_paste_ini.stat.exists
|
|
||||||
notify:
|
notify:
|
||||||
- Restart cyborg-api container
|
- Restart cyborg-api container
|
||||||
|
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fix cyborg api container failed to load api paste file. For details
|
||||||
|
please see `bug 1874028
|
||||||
|
<https://bugs.launchpad.net/kolla-ansible/+bug/1874028>`__.
|
Loading…
Reference in New Issue
Block a user