Merge "Correct bug report save location"
This commit is contained in:
commit
c0b769a351
@ -1,4 +1,4 @@
|
||||
---
|
||||
result_dir: "{{inventory_dir}}/../results"
|
||||
result_dir: "{{ playbook_dir }}/../../results"
|
||||
|
||||
mysql_tuner_script: https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl
|
||||
|
@ -57,9 +57,10 @@
|
||||
ansible_python_interpreter: "/usr/bin/python"
|
||||
name: Generating bug report
|
||||
tasks:
|
||||
- local_action: template src=templates/bug_report.j2 dest={{result_dir}}/bug_report.log
|
||||
- file: "path={{result_dir}} state=directory"
|
||||
- template: src=templates/bug_report.j2 dest={{result_dir}}/bug_report.log
|
||||
become: false
|
||||
- local_action: template src=templates/mysql_report.j2 dest={{result_dir}}/mysql_report.log
|
||||
- template: src=templates/mysql_report.j2 dest={{result_dir}}/mysql_report.log
|
||||
become: false
|
||||
- replace: dest={{result_dir}}/mysql_report.log regexp='\[([^\s+]+)' replace=''
|
||||
- replace: dest={{result_dir}}/mysql_report.log regexp='\r' replace=''
|
||||
|
@ -44,11 +44,11 @@ deployCloud()
|
||||
pushd $WORKSPACE/tripleo-quickstart
|
||||
bash quickstart.sh \
|
||||
--tags all \
|
||||
-e undercloud_image_url="http://artifacts.ci.centos.org/artifacts/rdo/images/$RELEASE/$BUILD_SYS/$LOCATION/undercloud.qcow2" \
|
||||
--config $WORKSPACE/config/general_config/$CONFIG.yml \
|
||||
--working-dir $WORKSPACE/ \
|
||||
--teardown all \
|
||||
--no-clone \
|
||||
--playbook quickstart-extras.yml \
|
||||
--requirements quickstart-extras-requirements.txt \
|
||||
-R mitaka \
|
||||
--bootstrap \
|
||||
--working-dir $WORKSPACE \
|
||||
$VIRTHOST $RELEASE
|
||||
popd
|
||||
}
|
||||
@ -100,12 +100,13 @@ runCheck()
|
||||
|
||||
ansible-playbook --ssh-common-args="-F $WORKSPACE/ssh.config.ansible" -i $WORKSPACE/hosts check/site.yml
|
||||
|
||||
if [[ $($SSH_CMD "cat /home/stack/ansible/bug_report.log") == "" ]]
|
||||
pushd $WORKSPACE/browbeat/results
|
||||
if [[ $(cat bug_report.log) == "" ]]
|
||||
then
|
||||
#checks failed to create the bug_report.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
popd
|
||||
popd
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user