Fix devstack/packstack job permission denied issue
The review fixes permission denied issues while either tempest.conf is copied to /opt/stack/tempest location or a tempest plugins are installed there. Change-Id: I16bbc2faccb31af04867757aa4357d55ee4de572
This commit is contained in:
parent
aa204351a0
commit
5cf1410618
@ -120,7 +120,7 @@
|
||||
user: admin
|
||||
cloud_user: devstack-admin
|
||||
plugins_paths:
|
||||
- "~/{{ zuul.projects['opendev.org/openstack/heat-tempest-plugin'].src_dir }}"
|
||||
- "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/heat-tempest-plugin'].src_dir }}"
|
||||
tempest_concurrency: 2
|
||||
|
||||
- job:
|
||||
|
@ -55,6 +55,7 @@
|
||||
# tempest role which will run tests has tempest in {{ devstack_base_dir }}
|
||||
# location, therefore the file is copied there
|
||||
- name: Copy tempest.conf to the tempest directory
|
||||
become: yes
|
||||
shell: |
|
||||
set -x
|
||||
cp {{ tempestconf_src_relative_path }}/etc/tempest.conf {{ devstack_base_dir }}/tempest/etc/tempest.conf
|
||||
|
@ -1,9 +1,11 @@
|
||||
- name: Prepare tempest venv
|
||||
become: yes
|
||||
command: tox -r --notest -efull
|
||||
args:
|
||||
chdir: "{{devstack_base_dir}}/tempest"
|
||||
|
||||
- name: Install plugins
|
||||
become: yes
|
||||
command: tox -evenv-tempest -- pip install {{ item }}
|
||||
with_items: "{{ plugins_paths }}"
|
||||
args:
|
||||
@ -11,6 +13,7 @@
|
||||
when: plugins_paths is defined
|
||||
|
||||
- name: List installed tempest plugins
|
||||
become: yes
|
||||
command: tox -evenv-tempest -- tempest list-plugins
|
||||
args:
|
||||
chdir: "{{devstack_base_dir}}/tempest"
|
||||
|
Loading…
x
Reference in New Issue
Block a user