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
|
user: admin
|
||||||
cloud_user: devstack-admin
|
cloud_user: devstack-admin
|
||||||
plugins_paths:
|
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
|
tempest_concurrency: 2
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
# tempest role which will run tests has tempest in {{ devstack_base_dir }}
|
# tempest role which will run tests has tempest in {{ devstack_base_dir }}
|
||||||
# location, therefore the file is copied there
|
# location, therefore the file is copied there
|
||||||
- name: Copy tempest.conf to the tempest directory
|
- name: Copy tempest.conf to the tempest directory
|
||||||
|
become: yes
|
||||||
shell: |
|
shell: |
|
||||||
set -x
|
set -x
|
||||||
cp {{ tempestconf_src_relative_path }}/etc/tempest.conf {{ devstack_base_dir }}/tempest/etc/tempest.conf
|
cp {{ tempestconf_src_relative_path }}/etc/tempest.conf {{ devstack_base_dir }}/tempest/etc/tempest.conf
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
- name: Prepare tempest venv
|
- name: Prepare tempest venv
|
||||||
|
become: yes
|
||||||
command: tox -r --notest -efull
|
command: tox -r --notest -efull
|
||||||
args:
|
args:
|
||||||
chdir: "{{devstack_base_dir}}/tempest"
|
chdir: "{{devstack_base_dir}}/tempest"
|
||||||
|
|
||||||
- name: Install plugins
|
- name: Install plugins
|
||||||
|
become: yes
|
||||||
command: tox -evenv-tempest -- pip install {{ item }}
|
command: tox -evenv-tempest -- pip install {{ item }}
|
||||||
with_items: "{{ plugins_paths }}"
|
with_items: "{{ plugins_paths }}"
|
||||||
args:
|
args:
|
||||||
@ -11,6 +13,7 @@
|
|||||||
when: plugins_paths is defined
|
when: plugins_paths is defined
|
||||||
|
|
||||||
- name: List installed tempest plugins
|
- name: List installed tempest plugins
|
||||||
|
become: yes
|
||||||
command: tox -evenv-tempest -- tempest list-plugins
|
command: tox -evenv-tempest -- tempest list-plugins
|
||||||
args:
|
args:
|
||||||
chdir: "{{devstack_base_dir}}/tempest"
|
chdir: "{{devstack_base_dir}}/tempest"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user