Skip to content

Commit

Permalink
Dont add nova-compute to charm tests if not already there
Browse files Browse the repository at this point in the history
We were adding nova-compute if it didnt exist at all when
setting constraints which was unintentional. This patch
stops that behaviour.
  • Loading branch information
dosaboy committed Sep 18, 2024
1 parent 37e0245 commit 041ae7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openstack/tools/charmed_openstack_functest_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ if $MODIFY_BUNDLE_CONSTRAINTS; then
(
[[ -d src ]] && cd src
for f in tests/bundles/*.yaml; do
# Dont do this if the test does not have nova-compute
grep -q "nova-compute:" $f || continue
if [[ $(yq '.applications' $f) = null ]]; then
yq -i '.services.nova-compute.constraints="root-disk=80G mem=8G"' $f
else
Expand Down

0 comments on commit 041ae7f

Please sign in to comment.