Use full paths to projects in the playbook
Let's use full paths to the projects cloned by zuul It will help to set path_to_tempest_config and path_to_accounts_file to full paths as well. Currently they contained just relative paths (relative to the refstack-client's source) which has been causing problems in the post_tasks as fetch doesn't work reliably with ansible chdir option. Change-Id: I062ca182c30c9916d2a17c44f29bc85cec81db94
This commit is contained in:
parent
05461ccfb6
commit
56698291b1
@ -23,11 +23,8 @@
|
|||||||
- name: Run ansible-role-refstack-client
|
- name: Run ansible-role-refstack-client
|
||||||
include_tasks: ../tasks/main.yaml
|
include_tasks: ../tasks/main.yaml
|
||||||
vars:
|
vars:
|
||||||
refstack_client_source: "{{ zuul.projects['opendev.org/osf/refstack-client'].src_dir }}"
|
refstack_client_source: "/home/zuul/{{ zuul.projects['opendev.org/osf/refstack-client'].src_dir }}"
|
||||||
# the task which installs refstack-client changes dir to the refstack-client's
|
tempestconf_source: "/home/zuul/{{ zuul.projects['opendev.org/osf/python-tempestconf']. src_dir }}"
|
||||||
# location, python-tempestconf is in the same org (osf) so it's cloned
|
|
||||||
# just one level up by the zuul
|
|
||||||
tempestconf_source: "../python-tempestconf"
|
|
||||||
source_credentials: "{{ devstack_base_dir }}/devstack/openrc demo demo"
|
source_credentials: "{{ devstack_base_dir }}/devstack/openrc demo demo"
|
||||||
source_admin_credentials: "{{ devstack_base_dir }}/devstack/openrc admin admin"
|
source_admin_credentials: "{{ devstack_base_dir }}/devstack/openrc admin admin"
|
||||||
additional_tempestconf_params: "auth.tempest_roles Member object-storage.operator_role Member"
|
additional_tempestconf_params: "auth.tempest_roles Member object-storage.operator_role Member"
|
||||||
|
@ -65,4 +65,4 @@
|
|||||||
|
|
||||||
- name: Set path to newly generated accounts.yaml
|
- name: Set path to newly generated accounts.yaml
|
||||||
set_fact:
|
set_fact:
|
||||||
path_to_accounts_file: "./etc/accounts.yaml"
|
path_to_accounts_file: "{{ refstack_client_source }}/etc/accounts.yaml"
|
||||||
|
@ -23,4 +23,4 @@
|
|||||||
|
|
||||||
- name: Set path to newly generated tempest.conf
|
- name: Set path to newly generated tempest.conf
|
||||||
set_fact:
|
set_fact:
|
||||||
path_to_tempest_config: "./etc/tempest.conf"
|
path_to_tempest_config: "{{ refstack_client_source }}/etc/tempest.conf"
|
||||||
|
@ -69,13 +69,9 @@
|
|||||||
src: "{{ path_to_tempest_config }}"
|
src: "{{ path_to_tempest_config }}"
|
||||||
dest: "{{ dest_dir }}/tempest.conf"
|
dest: "{{ dest_dir }}/tempest.conf"
|
||||||
flat: true
|
flat: true
|
||||||
args:
|
|
||||||
chdir: "{{ refstack_client_source }}"
|
|
||||||
|
|
||||||
- name: Download accounts.yaml file
|
- name: Download accounts.yaml file
|
||||||
fetch:
|
fetch:
|
||||||
src: "{{ path_to_accounts_file }}"
|
src: "{{ path_to_accounts_file }}"
|
||||||
dest: "{{ dest_dir }}/accounts.yaml"
|
dest: "{{ dest_dir }}/accounts.yaml"
|
||||||
flat: true
|
flat: true
|
||||||
args:
|
|
||||||
chdir: "{{ refstack_client_source }}"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user