Merge "Fix usage of "|" for tests"
This commit is contained in:
commit
4dd27f67f8
@ -39,7 +39,7 @@
|
|||||||
- octavia_amp_image_upload_enabled
|
- octavia_amp_image_upload_enabled
|
||||||
- octavia_image_downloader == "deployment-host"
|
- octavia_image_downloader == "deployment-host"
|
||||||
register: octavia_amp_image_copy_result
|
register: octavia_amp_image_copy_result
|
||||||
until: octavia_amp_image_copy_result | success
|
until: octavia_amp_image_copy_result is success
|
||||||
retries: 6
|
retries: 6
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
|
||||||
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
|
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
@ -42,7 +42,7 @@
|
|||||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||||
{{ pip_install_options | default('') }}
|
{{ pip_install_options | default('') }}
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
@ -65,7 +65,7 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ octavia_bin | dirname }}"
|
path: "{{ octavia_bin | dirname }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: octavia_get_venv | changed
|
when: octavia_get_venv is changed
|
||||||
|
|
||||||
- name: Create octavia venv dir
|
- name: Create octavia venv dir
|
||||||
file:
|
file:
|
||||||
@ -81,7 +81,7 @@
|
|||||||
copy: "no"
|
copy: "no"
|
||||||
when:
|
when:
|
||||||
- not octavia_developer_mode | bool
|
- not octavia_developer_mode | bool
|
||||||
- octavia_get_venv | changed or octavia_venv_dir | changed
|
- octavia_get_venv is changed or octavia_venv_dir is changed
|
||||||
notify: Restart octavia services
|
notify: Restart octavia services
|
||||||
|
|
||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
@ -95,7 +95,7 @@
|
|||||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||||
{{ pip_install_options | default('') }}
|
{{ pip_install_options | default('') }}
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
when: octavia_developer_mode | bool
|
when: octavia_developer_mode | bool
|
||||||
@ -108,7 +108,7 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr == 'yum'
|
- ansible_pkg_mgr == 'yum'
|
||||||
- not octavia_developer_mode | bool
|
- not octavia_developer_mode | bool
|
||||||
- octavia_get_venv | changed or octavia_venv_dir | changed
|
- octavia_get_venv is changed or octavia_venv_dir is changed
|
||||||
|
|
||||||
# NOTE(odyssey4me):
|
# NOTE(odyssey4me):
|
||||||
# We reinitialize the venv to ensure that the right
|
# We reinitialize the venv to ensure that the right
|
||||||
@ -128,7 +128,7 @@
|
|||||||
--no-wheel
|
--no-wheel
|
||||||
when:
|
when:
|
||||||
- not octavia_developer_mode | bool
|
- not octavia_developer_mode | bool
|
||||||
- octavia_get_venv | changed or octavia_venv_dir | changed
|
- octavia_get_venv is changed or octavia_venv_dir is changed
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
insecure: "{{ keystone_service_adminuri_insecure }}"
|
insecure: "{{ keystone_service_adminuri_insecure }}"
|
||||||
role_name: "{{ item }}"
|
role_name: "{{ item }}"
|
||||||
register: add_role
|
register: add_role
|
||||||
until: add_role|success
|
until: add_role is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
no_log: True
|
no_log: True
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
description: "{{ octavia_service_description }}"
|
description: "{{ octavia_service_description }}"
|
||||||
insecure: "{{ keystone_service_adminuri_insecure }}"
|
insecure: "{{ keystone_service_adminuri_insecure }}"
|
||||||
register: add_service
|
register: add_service
|
||||||
until: add_service|success
|
until: add_service is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
no_log: True
|
no_log: True
|
||||||
@ -45,7 +45,7 @@
|
|||||||
insecure: "{{ keystone_service_adminuri_insecure }}"
|
insecure: "{{ keystone_service_adminuri_insecure }}"
|
||||||
register: add_service
|
register: add_service
|
||||||
when: not octavia_service_in_ldap | bool
|
when: not octavia_service_in_ldap | bool
|
||||||
until: add_service|success
|
until: add_service is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
no_log: True
|
no_log: True
|
||||||
@ -64,7 +64,7 @@
|
|||||||
insecure: "{{ keystone_service_adminuri_insecure }}"
|
insecure: "{{ keystone_service_adminuri_insecure }}"
|
||||||
register: add_service
|
register: add_service
|
||||||
when: not octavia_service_in_ldap | bool
|
when: not octavia_service_in_ldap | bool
|
||||||
until: add_service|success
|
until: add_service is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
no_log: True
|
no_log: True
|
||||||
@ -90,7 +90,7 @@
|
|||||||
- url: "{{ octavia_service_adminuri }}"
|
- url: "{{ octavia_service_adminuri }}"
|
||||||
interface: "admin"
|
interface: "admin"
|
||||||
register: add_service_v2
|
register: add_service_v2
|
||||||
until: add_service_v2|success
|
until: add_service_v2 is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
no_log: True
|
no_log: True
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||||
{{ pip_install_options | default('') }}
|
{{ pip_install_options | default('') }}
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
vars_files:
|
vars_files:
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||||
{{ pip_install_options | default('') }}
|
{{ pip_install_options | default('') }}
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages is success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
with_items:
|
with_items:
|
||||||
@ -143,7 +143,7 @@
|
|||||||
openstack loadbalancer show test-lb
|
openstack loadbalancer show test-lb
|
||||||
environment: "{{ env }}"
|
environment: "{{ env }}"
|
||||||
when:
|
when:
|
||||||
- debug|bool == true
|
- debug | bool
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
@ -161,13 +161,13 @@
|
|||||||
uri:
|
uri:
|
||||||
url: "http://{{ vip }}"
|
url: "http://{{ vip }}"
|
||||||
status_code: 503
|
status_code: 503
|
||||||
when: test_octavia_amphora|bool == true
|
when: test_octavia_amphora | bool
|
||||||
- name: Delete LoadBalancer
|
- name: Delete LoadBalancer
|
||||||
shell: >
|
shell: >
|
||||||
openstack loadbalancer delete --cascade test-lb
|
openstack loadbalancer delete --cascade test-lb
|
||||||
environment: "{{ env }}"
|
environment: "{{ env }}"
|
||||||
register: lb_deleted
|
register: lb_deleted
|
||||||
until: lb_deleted|success
|
until: lb_deleted is success
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 15
|
delay: 15
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
Reference in New Issue
Block a user