Skip to content

Commit

Permalink
debug tempest
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolin committed Nov 26, 2024
1 parent a29769f commit 4d9127c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 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
git show
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

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
11 changes: 0 additions & 11 deletions hack/stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,6 @@ MANILA_USE_SERVICE_INSTANCE_PASSWORD=True
kubernetes_allowed_network_drivers = calico,cilium
kubernetes_default_network_driver = calico
[[post-config|$TEMPEST_CONFIG]]
[magnum]
flavor_id = m1.large
master_flavor_id = m1.large
copy_logs = true
network_driver = ${NETWORK_DRIVER:-calico}
image_id = ${IMAGE_OS:-ubuntu-2204}-kube-${KUBE_TAG}
coe = kubernetes
labels = '{\"kube_tag\": \"${KUBE_TAG}\", \"fixed_subnet_cidr\": \"10.0.0.0/26\"}'
docker_storage_driver = overlay2
EOF

# Start DevStack deployment
Expand Down

0 comments on commit 4d9127c

Please sign in to comment.