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

trusty upgrade to xenial will show esm-infra as disabled #1590

Closed
lucasmoura opened this issue Apr 28, 2021 · 3 comments
Closed

trusty upgrade to xenial will show esm-infra as disabled #1590

lucasmoura opened this issue Apr 28, 2021 · 3 comments

Comments

@lucasmoura
Copy link
Contributor

When we are attached to a trusty machine and we perform a do-release-upgrade operation we expect to be upgraded to xenial while keeping esm-infra, or any other service we have enabled, still enabled. We guarantee that by running the upgrade_lts_contract in the end of do-release-upgrade. This is script is run by adding the following configuration at /etc/update-manager/release-upgrades.d/

[Sources]
Pockets=security,updates,proposed,backports,infra-security,infra-updates,apps-security,apps-updates
[Distro]
PostInstallScripts=./xorg_fix_proprietary.py, /usr/lib/ubuntu-advantage/upgrade_lts_contract.py

In our current testing infrastructure, we are updating the tusty packaging to the development version of uaclient and then performing the upgrade. This will guarantee that will we have that file in place before running do-release-upgrade. Now, since we will not release the new uaclient version into trusty, we will never have that configuration in place. This means that do-release-upgrade will not run the upgrade_lts_script in the end, which in turn, will make esm-infra to be disabled, as the apt sources will not be correctly updated.

@lucasmoura
Copy link
Contributor Author

We two workarounds for this:

  1. Manually add the etc/update-manager/release-upgrades.d/ config:
[Sources]
Pockets=security,updates,proposed,backports,infra-security,infra-updates,apps-security,apps-updates
[Distro]
PostInstallScripts=./xorg_fix_proprietary.py, /usr/lib/ubuntu-advantage/upgrade_lts_contract.py

Before running do-release-upgrade

  1. After running do-release-upgrade and restarting the machine, run ua enable esm-infra

@mitechie
Copy link
Contributor

Documented as an FAQ item in https://discourse.ubuntu.com/t/ubuntu-advantage-client/21788/4

@lucasmoura lucasmoura mentioned this issue Apr 29, 2021
6 tasks
@orndorffgrant
Copy link
Collaborator

Closing as a Won't Fix because it is documented.

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

No branches or pull requests

3 participants