Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add exit 2 on noble from cloud-init status #4792

Conversation

blackboxsw
Copy link
Collaborator

@blackboxsw blackboxsw commented Jan 22, 2024

rebase merge

Proposed Commit Message

tests: add exit 2 on noble from cloud-init status

Supplemental integration test missed in commit 720665263.
This will all be reverted with Noble cloud-image builds with
/etc/cloud/build.info serial that is greater than 20240110.

Additional Context

One other integration test missed expecting exit 2 on noble due to deb822 duplicated source warnings.
Both this PR and 7206652 will likely need to be revoked within a week when cloudimage builds are unblocked for noble.

Test Steps


#  Without this PR, the following test fails on `execute.(cloud-init status --wait).ok` on line 45
 CLOUD_INIT_KEEP_INSTANCE=1 CLOUD_INIT_CLOUD_INIT_SOURCE=ppa:cloud-init-dev/daily CLOUD_INIT_OS_IMAGE=noble CLOUD_INIT_PLATFORM=lxd_container .tox/integration-tests/bin/pytest tests/integration_tests/cmd/test_clean.py::TestCleanCommand::test_clean_rotated_logs

Checklist

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

Supplemental integration test missed in commit 7206652.
This will all be reverted with Noble cloud-image builds with
/etc/cloud/build.info serial that is greater than 20240110.
@blackboxsw
Copy link
Collaborator Author

cc: @catmsred for triage.

# Expect warning exit code 2 on Ubuntu Noble due to cloud-init
# disabling /etc/apt/sources.list build artifact in favor of deb822
result = class_client.execute("cloud-init status --wait --long")
return_code = 2 if CURRENT_RELEASE.series == "noble" else 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: in the future we should use something like

return_code = 2 if CURRENT_RELEASE >= NOBLE else 0

but since this will all be reverted, it looks good as is

@blackboxsw blackboxsw merged commit 3b9397f into canonical:main Jan 23, 2024
29 checks passed
catmsred added a commit to catmsred/cloud-init that referenced this pull request Jan 25, 2024
New noble download images are building again so they should not
return 2 on cloud-init status --wait.  This change reverts the
temporary fix to allow our tests to pass during the out of sync
period.
catmsred added a commit to catmsred/cloud-init that referenced this pull request Jan 25, 2024
New noble download images are building again so they should not
return 2 on cloud-init status --wait.  This change reverts the
temporary fix to allow our tests to pass during the out of sync
period.
TheRealFalcon pushed a commit that referenced this pull request Jan 25, 2024
New noble download images are building again so they should not
return 2 on cloud-init status --wait.  This change reverts the
temporary fix to allow our tests to pass during the out of sync
period.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants