Skip to content

Commit

Permalink
Merge "Fix usage of "|" for tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jul 15, 2018
2 parents 8f2a9ec + 9186a60 commit 491a100
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions playbooks/ceph-rgw-keystone-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
insecure: "{{ keystone_service_adminuri_insecure }}"
run_once: true
register: add_service
until: add_service|success
until: add_service is success
retries: 5
delay: 2
no_log: True
Expand All @@ -52,7 +52,7 @@
insecure: "{{ keystone_service_adminuri_insecure }}"
run_once: true
register: add_user
until: add_user|success
until: add_user is success
retries: 5
delay: 10
no_log: True
Expand All @@ -73,7 +73,7 @@
insecure: "{{ keystone_service_adminuri_insecure }}"
run_once: true
register: add_admin_role
until: add_admin_role|success
until: add_admin_role is success
retries: 5
delay: 10
no_log: True
Expand All @@ -92,7 +92,7 @@
insecure: "{{ keystone_service_adminuri_insecure }}"
run_once: true
register: add_swiftoperator_role
until: add_swiftoperator_role|success
until: add_swiftoperator_role is success
retries: 5
delay: 10
no_log: True
Expand Down Expand Up @@ -120,7 +120,7 @@
interface: "internal"
run_once: true
register: add_endpoint
until: add_endpoint|success
until: add_endpoint is success
retries: 5
delay: 10
no_log: True
Expand Down
6 changes: 3 additions & 3 deletions playbooks/common-tasks/os-lxc-container-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
changed_when: false
delegate_to: "{{ physical_host }}"
register: _lxc_container_state
until: _lxc_container_state | success
until: _lxc_container_state is success
retries: 3
delay: 5
when:
Expand All @@ -105,7 +105,7 @@
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
delegate_to: "{{ physical_host }}"
register: container_stop
until: container_stop | success
until: container_stop is success
retries: 3
failed_when:
- container_stop.rc not in [0, 2]
Expand All @@ -126,7 +126,7 @@
--logpriority {{ (debug | bool) | ternary('DEBUG', 'INFO') }}
delegate_to: "{{ physical_host }}"
register: container_start
until: container_start | success
until: container_start is success
retries: 3
when:
- (_mc is defined and _mc | changed) or (_ec is defined and _ec | changed)
Expand Down
6 changes: 3 additions & 3 deletions playbooks/common-tasks/os-nspawn-container-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@
name: "systemd-nspawn@{{ systemd_escape.stdout }}"
state: restarted
register: _container_restart
until: _container_restart | success
until: _container_restart is success
retries: 3
delay: 5
delegate_to: "{{ physical_host }}"
when:
- _ec | changed
- _ec is changed
tags:
- common-nspawn

Expand All @@ -123,6 +123,6 @@
delay: 3
timeout: 60
when:
- _container_restart | changed
- _container_restart is changed
tags:
- common-nspawn
2 changes: 1 addition & 1 deletion playbooks/os-cinder-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@
option: need_online_data_migrations
value: False
when:
- data_migrations | succeeded
- data_migrations is succeeded
2 changes: 1 addition & 1 deletion playbooks/os-nova-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,4 @@
option: need_online_data_migrations
value: False
when:
- data_migrations | succeeded
- data_migrations is succeeded
2 changes: 1 addition & 1 deletion playbooks/utility-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
{{ pip_install_options | default('') }}
register: install_packages
until: install_packages|success
until: install_packages is success
retries: 5
delay: 2

Expand Down
2 changes: 1 addition & 1 deletion tests/get-ansible-role-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
map(attribute='item') | list)
| default(required_roles, True) }}"
register: git_clone
until: git_clone | success
until: git_clone is success
retries: "{{ git_clone_retries }}"
delay: "{{ git_clone_retry_delay }}"

Expand Down
2 changes: 1 addition & 1 deletion tests/roles/bootstrap-host/tasks/prepare_loopback_swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- name: Format the swap file
command: mkswap /openstack/swap.img
when:
- swap_create | changed
- swap_create is changed
tags:
- swap-format
- skip_ansible_lint
Expand Down
4 changes: 2 additions & 2 deletions tests/roles/bootstrap-host/tasks/prepare_octavia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
state: "present"
update_cache: yes
register: install_packages
until: install_packages|success
until: install_packages is success
retries: 5
delay: 2
with_items:
Expand All @@ -42,7 +42,7 @@
state: "present"
extra_args: "-c {{ pip_install_upper_constraints_proto }}://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id={{ requirements_git_install_branch | regex_replace(' #.*$','') }}"
register: install_packages
until: install_packages|success
until: install_packages is success
retries: 5
delay: 2
with_items:
Expand Down

0 comments on commit 491a100

Please sign in to comment.