Move os_tempest role var at the top of play level
Once tempest run finishes using os_tempest role, python_venv_build noop handler[1.] is called and the playbook fails with tempest_install_method undefined var as it's scope is only for that task when role is called. Moving the var at the top of the play keeps the scope of the var for the whole play. Closes-Bug: #https://bugs.launchpad.net/tripleo/+bug/1838496 Change-Id: I58082b307cb5b3f9ff908c29c8e24b9b970561de Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
This commit is contained in:
parent
532133c8bf
commit
02548d8c93
@ -48,11 +48,15 @@
|
||||
|
||||
- name: Validate the deployment
|
||||
hosts: undercloud
|
||||
# Note(chkumar246): Moved the os_tempest related var at the top
|
||||
# of play level in order to have scope for the whole of the play
|
||||
# https://bugs.launchpad.net/tripleo/+bug/1838496
|
||||
|
||||
vars:
|
||||
tempest_install_method: distro
|
||||
tempest_cloud_name: 'standalone'
|
||||
tasks:
|
||||
- include_tasks: tempest.yml
|
||||
vars:
|
||||
tempest_install_method: distro
|
||||
tempest_cloud_name: 'standalone'
|
||||
when:
|
||||
- not run_tempest|bool
|
||||
- use_os_tempest is defined
|
||||
|
@ -22,12 +22,15 @@
|
||||
|
||||
- name: Validate the deployment
|
||||
hosts: undercloud
|
||||
# Note(chkumar246): Moved the os_tempest related var at the top
|
||||
# of play level in order to have scope for the whole of the play
|
||||
# https://bugs.launchpad.net/tripleo/+bug/1838496
|
||||
vars:
|
||||
tempest_install_method: distro
|
||||
tempest_cloud_name: 'overcloud'
|
||||
tempest_cidr: '192.168.24.0/24'
|
||||
tasks:
|
||||
- include_tasks: tempest.yml
|
||||
vars:
|
||||
tempest_install_method: distro
|
||||
tempest_cloud_name: 'overcloud'
|
||||
tempest_cidr: '192.168.24.0/24'
|
||||
when:
|
||||
- not run_tempest|bool
|
||||
- use_os_tempest is defined
|
||||
|
Loading…
Reference in New Issue
Block a user