Add a few more devstack confs and logs
Add localrc for places where it may be still used. Collect verify_tempest_conf. Change-Id: I733c6472e8452ed6fc04c6de1c170713812a436f
This commit is contained in:
parent
290d9d87f4
commit
71bf831a90
@ -3,18 +3,34 @@
|
|||||||
vars:
|
vars:
|
||||||
devstack_log_dir: "{{ devstack_base_dir|default('/opt/stack') }}/logs/"
|
devstack_log_dir: "{{ devstack_base_dir|default('/opt/stack') }}/logs/"
|
||||||
devstack_conf_dir: "{{ devstack_base_dir|default('/opt/stack') }}/devstack/"
|
devstack_conf_dir: "{{ devstack_base_dir|default('/opt/stack') }}/devstack/"
|
||||||
|
tasks:
|
||||||
|
# NOTE(andreaf) If the tempest service is enabled, a tempest.log is
|
||||||
|
# generated as part of lib/tempest, as a result of verify_tempest_config
|
||||||
|
- name: Check if a tempest log exits
|
||||||
|
stat:
|
||||||
|
path: "{{ devstack_conf_dir }}/tempest.log"
|
||||||
|
register: tempest_log
|
||||||
|
- name: Link post-devstack tempest.log
|
||||||
|
file:
|
||||||
|
src: "{{ devstack_conf_dir }}/tempest.log"
|
||||||
|
dest: "{{ stage_dir }}/verify_tempest_conf.log"
|
||||||
|
state: hard
|
||||||
|
when: tempest_log.stat.exists
|
||||||
roles:
|
roles:
|
||||||
- export-devstack-journal
|
- export-devstack-journal
|
||||||
- role: stage-output
|
- role: stage-output
|
||||||
zuul_copy_output:
|
zuul_copy_output:
|
||||||
{ '{{ devstack_conf_dir }}/local.conf': 'logs',
|
{ '{{ devstack_conf_dir }}/local.conf': 'logs',
|
||||||
|
'{{ devstack_conf_dir }}/localrc': 'logs',
|
||||||
'{{ devstack_conf_dir }}/.stackenv': 'logs' ,
|
'{{ devstack_conf_dir }}/.stackenv': 'logs' ,
|
||||||
'{{ devstack_log_dir }}/dstat-csv.log': 'logs',
|
'{{ devstack_log_dir }}/dstat-csv.log': 'logs',
|
||||||
'{{ devstack_log_dir }}/devstacklog.txt': 'logs',
|
'{{ devstack_log_dir }}/devstacklog.txt': 'logs',
|
||||||
'{{ devstack_log_dir }}/devstacklog.txt.summary': 'logs' }
|
'{{ devstack_log_dir }}/devstacklog.txt.summary': 'logs',
|
||||||
|
'{{ stage_dir }}/verify_tempest_conf.log': 'logs' }
|
||||||
extensions_to_txt:
|
extensions_to_txt:
|
||||||
- conf
|
- conf
|
||||||
- log
|
- log
|
||||||
|
- localrc
|
||||||
- summary
|
- summary
|
||||||
# NOTE(andreaf) We need fetch-devstack-log-dir only as long as the base job
|
# NOTE(andreaf) We need fetch-devstack-log-dir only as long as the base job
|
||||||
# starts pulling logs for us from {{ ansible_user_dir }}/logs.
|
# starts pulling logs for us from {{ ansible_user_dir }}/logs.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user