Skip to content

Commit

Permalink
fix tempest
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolin committed Nov 27, 2024
1 parent d32e65f commit 275f88c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
23 changes: 23 additions & 0 deletions hack/run-tempest-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,30 @@ if [[ ${UPGRADE_KUBE_TAG} != ${KUBE_TAG} ]]; then
${UPGRADE_IMAGE_NAME}
fi

pushd /opt/stack/magnum-tempest-plugin
source /opt/stack/data/venv/bin/activate
pip install .
popd
pushd /opt/stack/tempest
echo "Tempest configs:"

cat <<EOF >> /opt/stack/tempest/etc/tempest.conf
[magnum]
flavor_id = m1.large
master_flavor_id = m1.large
copy_logs = true
network_driver = ${NETWORK_DRIVER}
image_id = ${IMAGE_OS}-kube-${KUBE_TAG}
coe = kubernetes
labels = '{"kube_tag": "${KUBE_TAG}", "fixed_subnet_cidr": "10.0.0.0/26"}'
docker_storage_driver = overlay2
EOF

echo "Run Tempest against configs:"
cat /opt/stack/tempest/etc/tempest.conf

echo "Run Tempest tests:"
/opt/stack/data/venv/bin/tempest run -r '(^magnum_tempest_plugin)' \
--exclude-regex '^magnum_tempest_plugin.tests.api.v1.test_cluster.ClusterTest\.(test_create_cluster_with_zero_nodes|test_create_list_sign_delete_clusters)'
popd
Expand Down
1 change: 0 additions & 1 deletion zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
abstract: true
timeout: 7200
run: zuul.d/playbooks/tempest/run.yml
post-run: zuul.d/playbooks/tempest/post.yml
nodeset:
nodes:
- name: ubuntu-jammy
Expand Down
9 changes: 0 additions & 9 deletions zuul.d/playbooks/tempest/post.yml

This file was deleted.

6 changes: 0 additions & 6 deletions zuul.d/playbooks/tempest/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,3 @@
BUILD_NEW_IMAGE: "{{ fetch_artifact.changed }}"
BUILD_NEW_UPGRADE_IMAGE: "{{ fetch_artifact_upgrade.changed }}"
NETWORK_DRIVER: "{{ network_driver }}"

- name: Copy Tempest results to output folder
copy:
src: "/opt/stack/tempest/tempest.log"
dest: "{{ zuul_output_dir }}/artifacts/tempest.log"
remote_src: true

0 comments on commit 275f88c

Please sign in to comment.