Merge "Configure gate jobs to collect the correct logs"
This commit is contained in:
commit
0fd99d9fac
|
@ -18,9 +18,16 @@
|
|||
# Install freezer devstack integration
|
||||
#export DEVSTACK_LOCAL_CONFIG="enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api"
|
||||
|
||||
export DEVSTACK_GATE_TEMPEST_REGEX="freezer_tempest_plugin.tests.freezer_api"
|
||||
# export DEVSTACK_GATE_TEMPEST_REGEX="freezer_tempest_plugin.tests.freezer_api"
|
||||
|
||||
export PROJECTS="openstack/python-freezerclient $PROJECTS"
|
||||
# export PROJECTS="openstack/python-freezerclient $PROJECTS"
|
||||
|
||||
# Invoke default behavior.
|
||||
# $BASE/new/devstack-gate/devstack-vm-gate.sh
|
||||
echo "Start of Post gate Hook"
|
||||
|
||||
# Link the log file so it will be collected by the CI system
|
||||
if [ -n "$BASE" ] && [ -d "$BASE/logs" ]; then
|
||||
sudo ln -sf $FREEZER_API_LOG_DIR/freezer-api.log $BASE/logs/freezer-api-post.log
|
||||
sudo ln -sf /home/tempest/.freezer/freezer.log $BASE/logs/freezer.log
|
||||
fi
|
|
@ -77,4 +77,16 @@
|
|||
- --include=/logs/**
|
||||
- --include=*/
|
||||
- --exclude=*
|
||||
- --prune-empty-dirs
|
||||
- --prune-empty-dirs
|
||||
|
||||
- name: Copy freezer-api.log to logs
|
||||
synchronize:
|
||||
src: '/opt/stack/new/logs/freezer-api.log'
|
||||
dest: '{{ zuul.executor.log_root }}/freezer_api.log'
|
||||
mode: pull
|
||||
copy_links: true
|
||||
verify_host: true
|
||||
rsync_opts:
|
||||
- --include=*
|
||||
|
||||
|
||||
|
|
|
@ -64,6 +64,11 @@
|
|||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
|
||||
function post_test_hook {
|
||||
bash -xe $BASE/new/freezer-api/devstack/gate_hook.sh
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
|
|
@ -77,4 +77,15 @@
|
|||
- --include=/logs/**
|
||||
- --include=*/
|
||||
- --exclude=*
|
||||
- --prune-empty-dirs
|
||||
- --prune-empty-dirs
|
||||
|
||||
- name: Copy freezer-api.log to logs
|
||||
synchronize:
|
||||
src: '/opt/stack/new/logs/freezer-api.log'
|
||||
dest: '{{ zuul.executor.log_root }}/freezer_api.log'
|
||||
mode: pull
|
||||
copy_links: true
|
||||
verify_host: true
|
||||
rsync_opts:
|
||||
- --include=*
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
export PROJECTS="openstack/freezer-web-ui $PROJECTS"
|
||||
export PROJECTS="openstack/freezer $PROJECTS"
|
||||
export PROJECTS="openstack/python-freezerclient $PROJECTS"
|
||||
export PROJECTS="openstack/freezer-tempest-plugin $PROJECTS"
|
||||
export PROJECTS="openstack/freezer-tempest-plugin $PROJECTS"
|
||||
# tempest config
|
||||
export DEVSTACK_GATE_TEMPEST=1
|
||||
export DEVSTACK_GATE_TEMPEST_REGEX="freezer_tempest_plugin.tests.freezer_api"
|
||||
|
@ -64,6 +64,11 @@
|
|||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
|
||||
function post_test_hook {
|
||||
bash -xe $BASE/new/freezer-api/devstack/gate_hook.sh
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
|
|
@ -77,4 +77,14 @@
|
|||
- --include=/logs/**
|
||||
- --include=*/
|
||||
- --exclude=*
|
||||
- --prune-empty-dirs
|
||||
- --prune-empty-dirs
|
||||
|
||||
- name: Copy freezer-api.log to logs
|
||||
synchronize:
|
||||
src: '/opt/stack/new/logs/freezer-api.log'
|
||||
dest: '{{ zuul.executor.log_root }}/freezer_api.log'
|
||||
mode: pull
|
||||
copy_links: true
|
||||
verify_host: true
|
||||
rsync_opts:
|
||||
- --include=*
|
||||
|
|
|
@ -64,6 +64,11 @@
|
|||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
./safe-devstack-vm-gate-wrap.sh
|
||||
|
||||
function post_test_hook {
|
||||
bash -xe $BASE/new/freezer-api/devstack/gate_hook.sh
|
||||
}
|
||||
export -f post_test_hook
|
||||
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
|
Loading…
Reference in New Issue