Fix create sasl account before config file is ready
Add checking for container readiness before create sasl user Closes-Bug: #2015589 Change-Id: Ic650ba6be1f192e3cbeaa94de3d00507636c1c92
This commit is contained in:
parent
717eb8c14f
commit
46415123d5
@ -93,7 +93,7 @@
|
|||||||
vars:
|
vars:
|
||||||
service_name: "nova-libvirt"
|
service_name: "nova-libvirt"
|
||||||
service: "{{ nova_cell_services[service_name] }}"
|
service: "{{ nova_cell_services[service_name] }}"
|
||||||
nova_libvirt_notify: "{{ ['Create libvirt SASL user'] if libvirt_enable_sasl | bool else [] }}"
|
nova_libvirt_notify: "{{ ['Checking libvirt container is ready', 'Create libvirt SASL user'] if libvirt_enable_sasl | bool else [] }}"
|
||||||
become: true
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
@ -115,6 +115,18 @@
|
|||||||
- kolla_action != "config"
|
- kolla_action != "config"
|
||||||
notify: "{{ nova_libvirt_notify }}"
|
notify: "{{ nova_libvirt_notify }}"
|
||||||
|
|
||||||
|
# need to wait kolla_set_configs script to overwrite sasl config file
|
||||||
|
- name: Checking libvirt container is ready
|
||||||
|
become: true
|
||||||
|
shell:
|
||||||
|
cmd: >
|
||||||
|
set -o pipefail &&
|
||||||
|
{{ kolla_container_engine }} exec -i nova_libvirt ls /run/libvirtd.pid
|
||||||
|
executable: /bin/bash
|
||||||
|
register: libvirt_container_ready
|
||||||
|
until: libvirt_container_ready is succeeded
|
||||||
|
retries: 10
|
||||||
|
|
||||||
# The SASL user needs to exist in order for nova-compute to start successfully.
|
# The SASL user needs to exist in order for nova-compute to start successfully.
|
||||||
- name: Create libvirt SASL user
|
- name: Create libvirt SASL user
|
||||||
become: true
|
become: true
|
||||||
|
5
releasenotes/notes/bug-2015589-94427c14cd857c98.yaml
Normal file
5
releasenotes/notes/bug-2015589-94427c14cd857c98.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes create sasl account before config file is ready.
|
||||||
|
`LP#2015589 <https://launchpad.net/bugs/2015589>`__
|
Loading…
Reference in New Issue
Block a user