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

Installs release-upgrader in prepare-servers role #5792

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

conorsch
Copy link
Contributor

Status

Ready for review

Description of Changes

Closes #5781. Adds the package to an early run, mostly
to satisfy dev/testing environments where deb packages are installed
directly as part of test runs.

Also updates the "python" -> "python3" in the same task, since on Focal
the former would result in (EOL'd) python2 being unnecessarily installed.
Updated tests to match.

Testing

Make sure you use the newest Vagrant boxes available, preferably libvirt. At least 202102.02.0 should exhibit the problem.
Run make staging. Observe it passes.

Optionally we can update the boxes used in CI, which would shave a few minutes off each staging-with-rebase run, but not doing that now since the motivation here is to unbreak dev environments.

Deployment

None, we expect this package to be installed on hardware, and it indeed always have been. Dev-focused.

- name: Install python and packages required by installer
raw: apt install -y python apt-transport-https dnsutils
register: _apt_install_prereqs_results
changed_when: "'0 upgraded, 0 newly installed, 0 to remove' not in _apt_install_prereqs_results.stdout"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I revised the order of these tasks, because we must ensure that python3 is present before using an Ansible module. That's why the previous tasks are using raw, because we aren't sure yet.

Closes #5781. Adds the package to an early run, mostly
to satisfy dev/testing environments where deb packages are installed
directly as part of test runs.

Also updates the "python" -> "python3" in the same task, since on Focal
the former would result in (EOL'd) python2 being unnecessarily installed.
Updated tests to match.
@conorsch conorsch force-pushed the 5781-release-upgrader-settings branch from 5a43431 to 4248549 Compare February 16, 2021 22:20
@eloquence eloquence added this to the 1.8.0 milestone Feb 17, 2021
@eloquence
Copy link
Member

@kushaldas has committed to reviewing this change.

Copy link
Contributor

@kushaldas kushaldas left a comment

Choose a reason for hiding this comment

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

Took some extra time to review this due to apt failures. Which are finally after a few fresh retries. All good. Approved.

@kushaldas kushaldas merged commit 9d89dea into develop Feb 19, 2021
@kushaldas kushaldas deleted the 5781-release-upgrader-settings branch February 19, 2021 08:23
@kushaldas kushaldas mentioned this pull request Feb 26, 2021
27 tasks
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.

Add dependency to ubuntu-release-upgrader-core
3 participants