Merge "Murano fails to deploy - cannot check core library"
This commit is contained in:
commit
ac56f2498c
@ -23,9 +23,9 @@
|
|||||||
- "kolla_logs:/var/log/kolla/"
|
- "kolla_logs:/var/log/kolla/"
|
||||||
when: inventory_hostname in groups['murano-api']
|
when: inventory_hostname in groups['murano-api']
|
||||||
|
|
||||||
- name: Waiting for Murano API service to be ready
|
- name: Waiting for Murano API service to be ready on first node
|
||||||
wait_for:
|
wait_for:
|
||||||
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
host: "{{ api_interface_address }}"
|
||||||
port: "{{ murano_api_port }}"
|
port: "{{ murano_api_port }}"
|
||||||
connect_timeout: 1
|
connect_timeout: 1
|
||||||
timeout: 60
|
timeout: 60
|
||||||
@ -34,7 +34,7 @@
|
|||||||
until: check_murano_port | success
|
until: check_murano_port | success
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 6
|
delay: 6
|
||||||
when: inventory_hostname in groups['murano-api']
|
delegate_to: "{{ groups['murano-api'][0] }}"
|
||||||
|
|
||||||
- name: Checking if Murano core library package exists
|
- name: Checking if Murano core library package exists
|
||||||
command: "docker exec murano_api murano \
|
command: "docker exec murano_api murano \
|
||||||
@ -43,11 +43,13 @@
|
|||||||
--os-project-name admin \
|
--os-project-name admin \
|
||||||
--os-auth-url \
|
--os-auth-url \
|
||||||
{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v3 \
|
{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v3 \
|
||||||
|
--murano-url \
|
||||||
|
{{ admin_protocol }}://{{ api_interface_address }}:{{ murano_api_port }} \
|
||||||
package-list"
|
package-list"
|
||||||
register: status
|
register: status
|
||||||
changed_when: False
|
changed_when: False
|
||||||
run_once: True
|
run_once: True
|
||||||
when: inventory_hostname in groups['murano-api']
|
delegate_to: "{{ groups['murano-api'][0] }}"
|
||||||
|
|
||||||
- name: Importing Murano core library package
|
- name: Importing Murano core library package
|
||||||
command: "docker exec murano_api murano \
|
command: "docker exec murano_api murano \
|
||||||
@ -56,8 +58,10 @@
|
|||||||
--os-project-name admin \
|
--os-project-name admin \
|
||||||
--os-auth-url \
|
--os-auth-url \
|
||||||
{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v3 \
|
{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v3 \
|
||||||
|
--murano-url \
|
||||||
|
{{ admin_protocol }}://{{ api_interface_address }}:{{ murano_api_port }} \
|
||||||
package-import --is-public /io.murano.zip"
|
package-import --is-public /io.murano.zip"
|
||||||
run_once: True
|
run_once: True
|
||||||
|
delegate_to: "{{ groups['murano-api'][0] }}"
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['murano-api']
|
|
||||||
- status.stdout.find("io.murano") == -1
|
- status.stdout.find("io.murano") == -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user