missing dependency on python3-systemd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
Users running systems which don't include the python3-systemd package (like in minimal installations) will see errors when executing ubuntu-
This happens because of a call to systemd.
[ Test Case ]
For the SRU verification, when the package is in proposed:
On an Ubuntu machine:
- uninstall the python3-systemd package
- try to run ubuntu-
- install the package from proposed
- see that ubuntu-
Results from executing these steps will be added to the bug once done.
Besides that, the ubuntu-
[ Where problems could occur ]
Using type=simple for the u-a.service tells systemd that the service is executed, unblocking chain dependencies for instance, as soon as it is called. It will behave this way even if the binary is missing, or if there is a runtime error on the service.
- from our internal perspective, it is fine - we have integration tests to cover functionality and logging to debug if something goes bad, which we do not expect. We were just initializing logging before notifying, so not using type=notify does not hurt us.
- from external perspective, no systemd services should be relying on u-a.service, and the impact of the service not running is immediately perceivable, so bugs can be opened.
[ Original Description ]
Sep 22 06:56:15 ubuntu-2 systemd[1]: Starting Ubuntu Pro Background Auto Attach...
Sep 22 06:56:15 ubuntu-2 python3[32767]: Traceback (most recent call last):
Sep 22 06:56:15 ubuntu-2 python3[32767]: File "/usr/lib/
Sep 22 06:56:15 ubuntu-2 python3[32767]: from systemd.daemon import notify # type: ignore
Sep 22 06:56:15 ubuntu-2 python3[32767]: ModuleNotFoundE
Sep 22 06:56:15 ubuntu-2 systemd[1]: ubuntu-
Sep 22 06:56:15 ubuntu-2 systemd[1]: ubuntu-
Sep 22 06:56:15 ubuntu-2 systemd[1]: Failed to start Ubuntu Pro Background Auto Attach.
After installing python3-systemd the service starts normally.
Hello, Frans, thanks for reporting
We are aware of this bug and this is being fixed in the next release of ubuntu- advantage- tools (v. 30).
The release should be out around November 14th.