Skip to content

Fix ISO tagging tests: wait for ISO download before tagging operations#13368

Open
awen11123 wants to merge 1 commit into
apache:mainfrom
awen11123:openmeta/7041-fix-iso-tagging-tests
Open

Fix ISO tagging tests: wait for ISO download before tagging operations#13368
awen11123 wants to merge 1 commit into
apache:mainfrom
awen11123:openmeta/7041-fix-iso-tagging-tests

Conversation

@awen11123
Copy link
Copy Markdown

🤖

Description

The create_iso() helper in test/integration/component/test_tags.py calls Iso.create() and immediately returns, but the ISO may still be downloading when tagging tests proceed. This causes tests 7, 16, and 17 to fail intermittently when the ISO upload hasn't completed.

This PR adds a call to iso.download() after creation. The download() method (on the Iso class in marvin) already has a built-in retry loop (300 retries × 5s interval) that waits for the ISO to reach Successfully Installed and isready state.

If the download fails after the retry period, the test is skipped with a clear message rather than failing with an opaque upload error.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Fixes

Fixes #7041

Affected tests

  • test_07_iso_tag
  • test_16_query_tags_other_account
  • test_17_query_tags_admin_account

The create_iso() helper in test_tags.py calls Iso.create() and immediately
returns, but the ISO may still be downloading when tagging tests proceed.
This causes tests 7, 16, and 17 to fail intermittently with upload errors.

Call iso.download() after creation, which has a built-in retry loop that
waits for the ISO to reach 'Successfully Installed' and isready state.
If the download fails after the retry period, skip the test instead of
failing with an opaque upload error.

Fixes intermittent failures in test_07_iso_tag, test_16_query_tags_other_account,
and test_17_query_tags_admin_account.
@boring-cyborg boring-cyborg Bot added component:integration-test Python Warning... Python code Ahead! labels Jun 8, 2026
@boring-cyborg
Copy link
Copy Markdown

boring-cyborg Bot commented Jun 8, 2026

Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
Here are some useful points:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-test Python Warning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix iso tagging tests

1 participant