group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #46227
[Bug 2038417] Re: missing dependency on python3-systemd
This bug was fixed in the package ubuntu-advantage-tools - 30~22.04
---------------
ubuntu-advantage-tools (30~22.04) jammy; urgency=medium
* Backport new upstream release to jammy (LP: #2038461)
ubuntu-advantage-tools (30) noble; urgency=medium
* d/control:
- add python3-apt as a build dependency
- add the new ubuntu-pro-client-l10n binary package
- recommend installing ubuntu-pro-client-l10n
* d/po/*:
- Makefile to build localization files to debian/po/usr/share/locale/
- update POTFILES.in to cover all translatable messages
- remove old unused pot file
- add new complete pot file for "ubuntu-pro" domain
- add first Brazilian Portuguese translations
* d/rules:
- add step to build the translations
* d/tests/control:
- mark autopkgtests as superficial (GH: #2609)
* d/ubuntu-advantage-tools.maintscript:
- remove /etc/ubuntu-advantage/help_data.yaml
* d/ubuntu-pro-client-l10n.install:
- add install file for the new binary package
* New upstream release 30 (LP: #2038461)
- api:
+ add new backwards compatible plan steps to the v1 fix plan endpoints
+ improve information returned from the fix plan endpoints
+ new endpoint: u.pro.security.fix.cve.execute.v1
+ new endpoint: u.pro.security.fix.usn.execute.v1
- apt: improve performance and consistency by refactoring the code to use
the apt_pkg module
- auto-attach: add newline to the MOTD message to separate it from other
MOTD messages
- contract: send information about variants to the contracts server
- enable: update only service specific apt sources when enabling a service
(GH: #1311) (GH: #1482)
- esm: create static files to pin packages from esm-infra and esm-apps with
higher priority (GH: #2580)
- disable:
+ (experimental) add the --purge flag to the disable command, so users
can remove all service related packages when disabling a service
+ show extra warnings when kernels are involved in the purge operation
- files: Reduce race window when creating new files (LP: #2024204)
- fips: add support to Jammy to prepare for when it is available
- fips-preview:
+ add fips-preview as a new entitlement
- github: add issue templates (GH: #2646)
- internationalization:
+ add general internationalization support and templates
+ add initial sentence set for Brazilian Portuguese
- logging:
+ add journald logging for the daemon and systemd timer
+ remove daemon and timer log files
+ standardize the logging calls through the codebase (GH: #2632)
- systemd: change ubuntu-advantage.service type from 'notify' to 'simple',
dropping the dependency on python3-systemd (LP: #2038417) (GH: #2692)
- tests:
+ add scenarios where cloud-init is present but disabled (LP: #1938208)
+ change 'permission' to 'priority' when checking apt priority in tests
(GH: #2719)
-- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx> Tue, 07 Nov 2023
16:23:42 +0200
** Changed in: ubuntu-advantage-tools (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/2038417
Title:
missing dependency on python3-systemd
Status in ubuntu-advantage-tools package in Ubuntu:
Fix Released
Status in ubuntu-advantage-tools source package in Xenial:
Fix Committed
Status in ubuntu-advantage-tools source package in Bionic:
Fix Released
Status in ubuntu-advantage-tools source package in Focal:
Fix Released
Status in ubuntu-advantage-tools source package in Jammy:
Fix Released
Status in ubuntu-advantage-tools source package in Lunar:
Fix Released
Status in ubuntu-advantage-tools source package in Mantic:
Fix Released
Bug description:
[ Impact ]
Users running systems which don't include the python3-systemd package (like in minimal installations) will see errors when executing ubuntu-advantage.service.
This happens because of a call to systemd.daemon.notify() in the python code. The solution is to remove this call and set the service type to 'simple' instead.
[ 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-advantage.service, and see it fail
- install the package from proposed
- see that ubuntu-advantage.service runs fine
Results from executing these steps will be added to the bug once done.
Besides that, the ubuntu-advantage-tools CI includes many acceptance
tests which cover possible regressions on this change - those will be
executed as part of the verification of
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-
tools/+bug/2038461
[ 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/ubuntu-advantage/daemon.py", line 5, in <module>
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]: ModuleNotFoundError: No module named 'systemd'
Sep 22 06:56:15 ubuntu-2 systemd[1]: ubuntu-advantage.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 06:56:15 ubuntu-2 systemd[1]: ubuntu-advantage.service: Failed with result 'exit-code'.
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2038417/+subscriptions