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: force version of cloud-init from PPA regardless of version #5251

Conversation

blackboxsw
Copy link
Collaborator

Proposed Commit Message

    tests: force version of cloud-init from PPA regardless of version
    
    The PPA provided to CLOUD_INIT_CLOUD_INIT_SOURCE can contain a lower
    version of cloud-init than what is currently released for a given
    series. In those cases install an apt preferences file to pin
    the cloud-init installed to the given PPA regardless of the published
    version.

Additional Context

Test Steps

CLOUD_INIT_KEEP_INSTANCE=1 CLOUD_INIT_OS_IMAGE=jammy CLOUD_INIT_PLATFORM=lxd_vm CLOUD_INIT_CLOUD_INIT_SOURCE=ppa:cloud-init-dev/daily tox -e integration-tests -- tests/integration_tests/test_networking.py::test_invalid_network_v2_netplan

lxc exec cloudinit....... -- apt policy cloud-init  # ensure that the cloud-init version installed is 23.4.daily based instead of 24.1.3.

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>)

The PPA provided to CLOUD_INIT_CLOUD_INIT_SOURCE can contain a lower
version of cloud-init than what is currently released for a given
series. In those cases install an apt preferences file to pin
the cloud-init installed to the given PPA regardless of the published
version.
Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

LGTM!

@TheRealFalcon TheRealFalcon merged commit 237d957 into canonical:main May 2, 2024
29 checks passed
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.

None yet

2 participants