ubuntu-advantage-script:python-apt-dependency

Last commit made on 2024-02-22
Get this branch:
git clone -b python-apt-dependency https://git.launchpad.net/ubuntu-advantage-script

Branch merges

Branch information

Name:
python-apt-dependency
Repository:
lp:ubuntu-advantage-script

Recent commits

6095ac2... by Renan Rodrigo

deps: pick the proper python-apt based on the Python version

This follows the python versions available in different Ubuntu releases.
This is a weak mapping though, and may need to be improved in the
future.

Signed-off-by: Renan Rodrigo <email address hidden>

203a3f4... by Grant Orndorff

tests: make it slightly easier to set a custom ppa install source

0ea591f... by Grant Orndorff

daemon: wait for cloud-config.service to complete in python

When cloud-init gets "ubuntu_advantage" user-data, it may need to
install or upgrade ubuntu-advantage-tools. This happens during
cloud-config.service. The install/upgrade of ubuntu-advantage-tools
triggers a "systemctl start ubuntu-advantage.service".
ubuntu-advantage.service is configured with an
"After=cloud-config.service", so it waits to start until
cloud-config.service becomes "active". In this scenario,
cloud-config.service cannot continue until ubuntu-advantage.service
starts, creating deadlock.

We get around this deadlock by removing the "After=cloud-config.service"
from ubuntu-advantage.service. Instead we are moving the ordering dependency
enforcement into the python code called by the service. This allows
systemd to go ahead and start the service allowing the install of
ubuntu-advantage-tools to finish and cloud-init to continue.
ubuntu-advantage.service will wait until cloud-config.service is
"active" to actually do anything.

LP: #2050022

e9cc3ed... by Lucas Albuquerque Medeiros de Moura

logs: fix redaction filter

The redaction filter was not correctly applied to our current logs.
We are now fixing this by adding the redaction filter directly in
the log file handler

9e7d4a3... by Grant Orndorff

d/rules: fix quotes in echo command

5c41a05... by Grant Orndorff

rename: no need for 'image' in auto-attach package name

06d41a6... by Grant Orndorff

d/control: add explanation for the lack of Provides

8c050fd... by Grant Orndorff

lintian: fix or override errors and warnings

0323460... by Lucas Albuquerque Medeiros de Moura

tests: add test for transition package

Add integration test that install the ubuntu-advantage-tools
transition package and checks that it also install the
new ubuntu-pro-client package.

We are also performing the same check for the ubuntu-advantage-pro
package

32b5a9f... by Grant Orndorff

fixup: don't provide ubuntu-advantage-tools

By removing "Provides: ubuntu-advantage-tools", we lower the chances of
ubuntu-advantage-tools <31 being removed during an install of
ubuntu-pro-client, becuase ubuntu-minimal (and ubuntu-cloud-minimal)
Depend on ubuntu-advantage-tools. This removes the need for
ubuntu-pro-client Depends: ubuntu-advantage-tools.