Collect some logs and print out tempest.conf
Collect accounts.yaml, tempest.conf, tempest.log and refstack result files. Also print both tempest.conf files (one for generating accounts.yaml and the other used in refstack-client) to the console. Change-Id: Id993dca0d47c8e3d33ca11e5a29026a518380b71
This commit is contained in:
parent
ca9d61a6d7
commit
3243e510fd
@ -27,6 +27,13 @@
|
|||||||
- openstack/requirements
|
- openstack/requirements
|
||||||
roles:
|
roles:
|
||||||
- zuul: openstack/devstack
|
- zuul: openstack/devstack
|
||||||
|
vars:
|
||||||
|
zuul_copy_output:
|
||||||
|
"{{ zuul.projects['opendev.org/osf/refstack-client'].src_dir }}/etc/accounts.yaml": logs
|
||||||
|
"{{ zuul.projects['opendev.org/osf/refstack-client'].src_dir }}/etc/tempest.conf": logs
|
||||||
|
"{{ zuul.projects['opendev.org/osf/refstack-client'].src_dir }}/.tempest/.stestr/1.json": logs
|
||||||
|
"{{ zuul.projects['opendev.org/osf/refstack-client'].src_dir }}/.tempest/.stestr/1": logs
|
||||||
|
"{{ zuul.projects['opendev.org/osf/refstack-client'].src_dir }}/.tempest/tempest.log": logs
|
||||||
run: playbooks/refstack-client-devstack.yaml
|
run: playbooks/refstack-client-devstack.yaml
|
||||||
irrelevant-files:
|
irrelevant-files:
|
||||||
- ^.*\.md$
|
- ^.*\.md$
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
# there, otherwise the role assumes that's the refstack-client a user wanna
|
# there, otherwise the role assumes that's the refstack-client a user wanna
|
||||||
# execute (mainly used in CI for Zuul jobs to test the changes)
|
# execute (mainly used in CI for Zuul jobs to test the changes)
|
||||||
refstack_client_source: "~/.refstack-client"
|
refstack_client_source: "~/.refstack-client"
|
||||||
|
# default refstack-client version used is the master
|
||||||
|
refstack_client_version: "HEAD"
|
||||||
|
|
||||||
# it will upload the result of the refstack-client to the server
|
# it will upload the result of the refstack-client to the server
|
||||||
# (refstack server by default, see server variable)
|
# (refstack server by default, see server variable)
|
||||||
@ -10,14 +12,11 @@ upload_results: false
|
|||||||
server: "https://refstack.openstack.org/api"
|
server: "https://refstack.openstack.org/api"
|
||||||
|
|
||||||
download_artifacts: false
|
download_artifacts: false
|
||||||
url_cirros_image: "http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img"
|
|
||||||
|
|
||||||
# Local directory where the files will be stored
|
# Local directory where the files will be stored
|
||||||
dest_dir: "{{ lookup('env', 'PWD') }}"
|
dest_dir: "{{ lookup('env', 'PWD') }}"
|
||||||
|
|
||||||
# the latest guideline by default
|
# the latest guideline by default
|
||||||
guideline: "2020.06"
|
guideline: "2020.06"
|
||||||
# default refstack-client version used is the master
|
url_cirros_image: "http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img"
|
||||||
refstack_client_version: "HEAD"
|
|
||||||
|
|
||||||
# a concurrency accounts.yaml file is generated with by tempest
|
# a concurrency accounts.yaml file is generated with by tempest
|
||||||
tempest_account_concurrency: 3
|
tempest_account_concurrency: 3
|
||||||
|
@ -31,6 +31,14 @@
|
|||||||
chdir: "{{ refstack_client_source }}"
|
chdir: "{{ refstack_client_source }}"
|
||||||
when: additional_tempestconf_params is defined
|
when: additional_tempestconf_params is defined
|
||||||
|
|
||||||
|
- name: Cat generated tempest.conf file
|
||||||
|
shell: |
|
||||||
|
cat ./etc/tempest.conf
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: "{{ refstack_client_source }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Generate tempest accounts.yaml file
|
- name: Generate tempest accounts.yaml file
|
||||||
shell: |
|
shell: |
|
||||||
set -ex
|
set -ex
|
||||||
|
@ -13,6 +13,14 @@
|
|||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
changed_when: tempest_config_path is not defined
|
changed_when: tempest_config_path is not defined
|
||||||
|
|
||||||
|
- name: Cat generated tempest.conf file
|
||||||
|
shell: |
|
||||||
|
cat ./etc/tempest.conf
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
chdir: "{{ refstack_client_source }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- 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: "./etc/tempest.conf"
|
||||||
|
@ -2,14 +2,10 @@
|
|||||||
# The task finds the latest result file in case there are more of them
|
# The task finds the latest result file in case there are more of them
|
||||||
# e.g. refstack-client was already executed in the current env
|
# e.g. refstack-client was already executed in the current env
|
||||||
- name: Find the test result json file
|
- name: Find the test result json file
|
||||||
shell: |
|
find:
|
||||||
set -o pipefail -ex
|
path: "{{ refstack_client_source }}/.tempest/.stestr"
|
||||||
ls | grep "\.json" | tail -1
|
patterns: '*.json'
|
||||||
register: ls_out
|
register: ls_out
|
||||||
args:
|
|
||||||
chdir: "{{ refstack_client_source }}/.tempest/.stestr"
|
|
||||||
executable: /bin/bash
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- when: upload_results | bool
|
- when: upload_results | bool
|
||||||
block:
|
block:
|
||||||
@ -30,7 +26,7 @@
|
|||||||
shell: |
|
shell: |
|
||||||
set -ex
|
set -ex
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
refstack-client upload -y ".tempest/.stestr/{{ ls_out.stdout }}" \
|
refstack-client upload -y "{{ ls_out.files[-1].path }}" \
|
||||||
--url {{ server }} \
|
--url {{ server }} \
|
||||||
-i {{ private_key_path }}
|
-i {{ private_key_path }}
|
||||||
register: upload_out
|
register: upload_out
|
||||||
@ -50,13 +46,13 @@
|
|||||||
block:
|
block:
|
||||||
- name: Download results file in .json
|
- name: Download results file in .json
|
||||||
fetch:
|
fetch:
|
||||||
src: "{{ refstack_client_source }}/.tempest/.stestr/{{ ls_out.stdout }}"
|
src: "{{ ls_out.files[-1].path }}"
|
||||||
dest: "{{ dest_dir }}/test_results.json"
|
dest: "{{ dest_dir }}/test_results.json"
|
||||||
flat: true
|
flat: true
|
||||||
|
|
||||||
- name: Download results file in subunit
|
- name: Download results file in subunit
|
||||||
fetch:
|
fetch:
|
||||||
src: "{{ refstack_client_source }}/.tempest/.stestr/{{ ls_out.stdout | splitext | first }}"
|
src: "{{ ls_out.files[-1].path | splitext | first }}"
|
||||||
dest: "{{ dest_dir }}/test_results_subunit"
|
dest: "{{ dest_dir }}/test_results_subunit"
|
||||||
flat: true
|
flat: true
|
||||||
|
|
||||||
@ -66,7 +62,7 @@
|
|||||||
dest: "{{ dest_dir }}/upload_output.txt"
|
dest: "{{ dest_dir }}/upload_output.txt"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
when: upload_out is defined
|
when: upload_results | bool
|
||||||
|
|
||||||
- name: Download tempest.conf file
|
- name: Download tempest.conf file
|
||||||
fetch:
|
fetch:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user