group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #44063
[Bug 1985863] Re: ubuntu advantage tools enable esm-infra gets killed
This bug was fixed in the package ubuntu-advantage-tools -
27.11.2~16.04.1
---------------
ubuntu-advantage-tools (27.11.2~16.04.1) xenial; urgency=medium
* Backport new upstream release: (LP: #1991173) to xenial
ubuntu-advantage-tools (27.11.2~22.10.1) kinetic; urgency=medium
* New upstream release 27.11.2: (LP: #1991173)
- esm: add the --beta flag back to esm-apps
- messaging: show Ubuntu Pro beta message in apt output
- security-status: don't show esm-apps information when the service is not
enabled
- ros: add the --beta flag back to ros and ros-updates
ubuntu-advantage-tools (27.11.1~22.10.1) kinetic; urgency=medium
* New upstream release 27.11.1: (LP: #1990907)
- Fix release upgrade when ESM packages are installed
+ d/postinst: remove series information from the APT preferences template
+ esm: remove series information from the APT preferences file
ubuntu-advantage-tools (27.11~22.10.1) kinetic; urgency=medium
* d/control:
- Update VCS references
* d/links:
- add usr/bin/pro as an alias to ubuntu-advantage
* d/postinst:
- include root_mode parameter when creating UAConfig instances
- change calls to add_notice to notice_file.add
- create public machine-token file if it does not exist
* New upstream release 27.11 (LP: #1989279)
- api:
+ new `pro api` command to access the public client API
+ 'version' endpoint returning version information
+ 'should auto attach' endpoint informing if a system should run
auto-attach on startup
+ 'full auto attach' endpoint performing auto-attach
+ 'magic attach' endpoints for the Magic Attach flow
- auto-attach:
+ better errors for invalid pro images (GH: #2180, #1833)
+ don't detach on already auto-attached instances
+ no-op when ubuntu-advantage information is present on cloud-init
userdata
+ change systemd unit to run after cloud-config
- cli:
+ cli: better error message on unrecognized flags (GH: #672)
- collect-logs:
+ can now be executed as a non-root user
+ is executed automatically and result is appended when using apport to
report a bug
- docs: now formatted to be built with sphinx, and published in readthedocs
- enable:
+ new access-only flag for usecases where auto-install is undesired
+ fix apt auth line replacement (LP: #1985863)
- esm-apps: generally available as non-beta as part of Ubuntu Pro
- fix: check if livepatch has already fixed a CVE before attempting a fix
- jobs: new timer job to check if the release reached end of support
- pro:
+ Ubuntu Pro is released as a product
+ make `pro` the recommended executable for the client
+ client, apt and motd messages updated/rewritten to show Pro
information
+ base URL changed from /advantage to /pro
+ ESM services renamed as part of Pro
- ros: released as a non-beta entitlement
- security-status
+ does not require the --format flag anymore
+ human readable output added based on ubuntu-security-status
+ machine readable output contains CVEs fixed by Livepatch
+ package counts include all esm-infra and esm-apps repositories
- status:
+ don't show unavailable services by default (GH: #2156, #2159)
+ expiry date formatted based on timezone (GH: #695)
+ non-root users get the current status instead of a cached version
+ --wait flag now working for non-root users
- version: warn about new available versions of the client in CLI command
output and API calls
-- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx> Thu, 29 Sep 2022
18:22:54 -0300
** Changed in: ubuntu-advantage-tools (Ubuntu Xenial)
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/1985863
Title:
ubuntu advantage tools enable esm-infra gets killed
Status in ubuntu-advantage-tools package in Ubuntu:
Fix Released
Status in ubuntu-advantage-tools source package in Xenial:
Fix Released
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
Bug description:
[Impact]
This bug impacts any user which, for any reason, enables/disables a service several times. It was initially reported because an automation script, misled by another bug in esm, (now fixed) has enabled a service many times in a row, causing /etc/apt/auth.conf.d/90ubuntu-advantage to grow exponentially.
The growth happened because the client incorrectly appends to the auth
file many times when it should not.
The fix to the function makes sure the auth information for a service
only gets inserted in the auth file once.
[Test Case]
To reproduce the bug, using `ubuntu-advantage-tools <= 27.10.1` , enable and disable the same service (esm-infra) and check that /etc/apt/auth.conf.d/90ubuntu-advantage grows more and more with each enablement.
Doing the same in `27.11` will leave the file with the same size after
the first enablement for any subsequent amount of calls.
An automated test was added in `27.11` to cover this case, and its
execution using the package in `-proposed` will be appended to this
bug.
* Automated Test Results
Our integration test suite has now a test to cover this behavior.
The output of that test, executed using the package from -proposed, was added to the bug as a comment.
The automated test is executed on Xenial, and the behavior can be
reproduced in any LTS alike.
I am marking this bug as verified.
[Regression Potential]
There is no expected risk of regression, as the change was validated and covered by an integration test.
[Original Description]
On some clients ubuntu advantage enable has stopped working
When running with --debug flag we only get "Killed" as last output
$ sudo ua --debug enable esm-infra --assume-yes
DEBUG: Executed with sys.argv: ['/usr/bin/ua', '--debug', 'enable', 'esm-infra', '--assume-yes']
DEBUG: Reading file: /var/lib/ubuntu-advantage/private/lock
Removing stale lock file previously held by 668502:ua enable
DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json
DEBUG: Writing file: /var/lib/ubuntu-advantage/private/lock
DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json
One moment, checking your subscription first
DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b''
DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json
DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json
DEBUG: Reading file: /var/lib/ubuntu-advantage/services-once-enabled
DEBUG: File does not exist: /var/lib/ubuntu-advantage/services-once-enabled
DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json
DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json
DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json
DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json
DEBUG: Reading file: /var/lib/ubuntu-advantage/notices.json
DEBUG: Writing file: /var/lib/ubuntu-advantage/notices.json
DEBUG: URL [POST]:
REDACTED
DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-token.json
DEBUG: Writing file: /var/lib/ubuntu-advantage/private/machine-id
DEBUG: Reading file: /var/lib/ubuntu-advantage/private/machine-token.json
DEBUG: Ran cmd: apt-cache policy, rc: 0 stderr: b''
DEBUG: Writing file: /etc/apt/sources.list.d/ubuntu-esm-infra.list
DEBUG: Reading file: /etc/apt/auth.conf.d/90ubuntu-advantage
Killed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1985863/+subscriptions