Make stackviz tasks not to fail jobs
Due to issue on stckviz side, job start failing with POST_FAILURE. If we fix the issue still we need to wait for periodic job periodic-package-stackviz-element to publish the latest tarball on https://tarballs.openstack.org/stackviz/dist/. Let's not fail the job for any issue occur during stackviz processing. Closes-Bug: 1863161 Change-Id: Ifee04f28ecee52e74803f1623aba5cfe5ee5ec90
This commit is contained in:
parent
cd0147194d
commit
580fec54c3
@ -1,70 +1,73 @@
|
|||||||
- name: Devstack checks if stackviz archive exists
|
- name: Process Stackviz
|
||||||
stat:
|
|
||||||
path: "/opt/cache/files/stackviz-latest.tar.gz"
|
|
||||||
register: stackviz_archive
|
|
||||||
|
|
||||||
- debug:
|
|
||||||
msg: "Stackviz archive could not be found in /opt/cache/files/stackviz-latest.tar.gz"
|
|
||||||
when: not stackviz_archive.stat.exists
|
|
||||||
|
|
||||||
- name: Check if subunit data exists
|
|
||||||
stat:
|
|
||||||
path: "{{ zuul_work_dir }}/testrepository.subunit"
|
|
||||||
register: subunit_input
|
|
||||||
|
|
||||||
- debug:
|
|
||||||
msg: "Subunit file could not be found at {{ zuul_work_dir }}/testrepository.subunit"
|
|
||||||
when: not subunit_input.stat.exists
|
|
||||||
|
|
||||||
- name: Install stackviz
|
|
||||||
when:
|
|
||||||
- stackviz_archive.stat.exists
|
|
||||||
- subunit_input.stat.exists
|
|
||||||
block:
|
block:
|
||||||
- include_role:
|
|
||||||
name: ensure-pip
|
|
||||||
|
|
||||||
- pip:
|
- name: Devstack checks if stackviz archive exists
|
||||||
name: "file://{{ stackviz_archive.stat.path }}"
|
stat:
|
||||||
virtualenv: /tmp/stackviz
|
path: "/opt/cache/files/stackviz-latest.tar.gz"
|
||||||
virtualenv_command: '{{ ensure_pip_virtualenv_command }}'
|
register: stackviz_archive
|
||||||
extra_args: -U
|
|
||||||
|
|
||||||
- name: Deploy stackviz static html+js
|
- debug:
|
||||||
command: cp -pR /tmp/stackviz/share/stackviz-html {{ stage_dir }}/stackviz
|
msg: "Stackviz archive could not be found in /opt/cache/files/stackviz-latest.tar.gz"
|
||||||
when:
|
when: not stackviz_archive.stat.exists
|
||||||
- stackviz_archive.stat.exists
|
|
||||||
- subunit_input.stat.exists
|
|
||||||
|
|
||||||
- name: Check if dstat data exists
|
- name: Check if subunit data exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{ devstack_base_dir }}/logs/dstat-csv.log"
|
path: "{{ zuul_work_dir }}/testrepository.subunit"
|
||||||
register: dstat_input
|
register: subunit_input
|
||||||
when:
|
|
||||||
- stackviz_archive.stat.exists
|
|
||||||
- subunit_input.stat.exists
|
|
||||||
|
|
||||||
- name: Run stackviz with dstat
|
- debug:
|
||||||
shell: |
|
msg: "Subunit file could not be found at {{ zuul_work_dir }}/testrepository.subunit"
|
||||||
cat {{ subunit_input.stat.path }} | \
|
when: not subunit_input.stat.exists
|
||||||
/tmp/stackviz/bin/stackviz-export \
|
|
||||||
--dstat "{{ devstack_base_dir }}/logs/dstat-csv.log" \
|
|
||||||
--env --stdin \
|
|
||||||
{{ stage_dir }}/stackviz/data
|
|
||||||
when:
|
|
||||||
- stackviz_archive.stat.exists
|
|
||||||
- subunit_input.stat.exists
|
|
||||||
- dstat_input.stat.exists
|
|
||||||
failed_when: False
|
|
||||||
|
|
||||||
- name: Run stackviz without dstat
|
- name: Install stackviz
|
||||||
shell: |
|
when:
|
||||||
cat {{ subunit_input.stat.path }} | \
|
- stackviz_archive.stat.exists
|
||||||
/tmp/stackviz/bin/stackviz-export \
|
- subunit_input.stat.exists
|
||||||
--env --stdin \
|
block:
|
||||||
{{ stage_dir }}/stackviz/data
|
- include_role:
|
||||||
when:
|
name: ensure-pip
|
||||||
- stackviz_archive.stat.exists
|
|
||||||
- subunit_input.stat.exists
|
- pip:
|
||||||
- not dstat_input.stat.exists
|
name: "file://{{ stackviz_archive.stat.path }}"
|
||||||
failed_when: False
|
virtualenv: /tmp/stackviz
|
||||||
|
virtualenv_command: '{{ ensure_pip_virtualenv_command }}'
|
||||||
|
extra_args: -U
|
||||||
|
|
||||||
|
- name: Deploy stackviz static html+js
|
||||||
|
command: cp -pR /tmp/stackviz/share/stackviz-html {{ stage_dir }}/stackviz
|
||||||
|
when:
|
||||||
|
- stackviz_archive.stat.exists
|
||||||
|
- subunit_input.stat.exists
|
||||||
|
|
||||||
|
- name: Check if dstat data exists
|
||||||
|
stat:
|
||||||
|
path: "{{ devstack_base_dir }}/logs/dstat-csv.log"
|
||||||
|
register: dstat_input
|
||||||
|
when:
|
||||||
|
- stackviz_archive.stat.exists
|
||||||
|
- subunit_input.stat.exists
|
||||||
|
|
||||||
|
- name: Run stackviz with dstat
|
||||||
|
shell: |
|
||||||
|
cat {{ subunit_input.stat.path }} | \
|
||||||
|
/tmp/stackviz/bin/stackviz-export \
|
||||||
|
--dstat "{{ devstack_base_dir }}/logs/dstat-csv.log" \
|
||||||
|
--env --stdin \
|
||||||
|
{{ stage_dir }}/stackviz/data
|
||||||
|
when:
|
||||||
|
- stackviz_archive.stat.exists
|
||||||
|
- subunit_input.stat.exists
|
||||||
|
- dstat_input.stat.exists
|
||||||
|
|
||||||
|
- name: Run stackviz without dstat
|
||||||
|
shell: |
|
||||||
|
cat {{ subunit_input.stat.path }} | \
|
||||||
|
/tmp/stackviz/bin/stackviz-export \
|
||||||
|
--env --stdin \
|
||||||
|
{{ stage_dir }}/stackviz/data
|
||||||
|
when:
|
||||||
|
- stackviz_archive.stat.exists
|
||||||
|
- subunit_input.stat.exists
|
||||||
|
- not dstat_input.stat.exists
|
||||||
|
|
||||||
|
ignore_errors: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user