group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #44661
[Bug 2006508] Re: /usr/lib/ubuntu-advantage/esm_cache.py:RuntimeError:/usr/lib/ubuntu-advantage/esm_cache.py@22:main:update_esm_caches:is_current_series_lts:get_platform_info
** Also affects: ubuntu-advantage-tools (Ubuntu Xenial)
Importance: Undecided
Status: New
** Also affects: ubuntu-advantage-tools (Ubuntu Jammy)
Importance: Undecided
Status: New
** Also affects: ubuntu-advantage-tools (Ubuntu Focal)
Importance: Undecided
Status: New
** Also affects: ubuntu-advantage-tools (Ubuntu Bionic)
Importance: Undecided
Status: New
** Also affects: ubuntu-advantage-tools (Ubuntu Lunar)
Importance: Undecided
Status: New
** Also affects: ubuntu-advantage-tools (Ubuntu Kinetic)
Importance: Undecided
Status: New
--
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/2006508
Title:
/usr/lib/ubuntu-advantage/esm_cache.py:RuntimeError:/usr/lib/ubuntu-
advantage/esm_cache.py@22:main:update_esm_caches:is_current_series_lts:get_platform_info
Status in ubuntu-advantage-tools package in Ubuntu:
New
Status in ubuntu-advantage-tools source package in Xenial:
New
Status in ubuntu-advantage-tools source package in Bionic:
New
Status in ubuntu-advantage-tools source package in Focal:
New
Status in ubuntu-advantage-tools source package in Jammy:
New
Status in ubuntu-advantage-tools source package in Kinetic:
New
Status in ubuntu-advantage-tools source package in Lunar:
New
Bug description:
[Original Description]
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-advantage-tools. This problem was most recently seen with package version 27.13.3~22.04.1, the problem page at https://errors.ubuntu.com/problem/40e03a6c527c3448d3cebf9af7558e3f64887e4d contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
[Impact]
User will see a degrade state on systemd because the `esm_cache` job
will fail, since it cannot properly parse /etc/os-release.
This is probably affecting releases that are ubuntu based, and not
Ubuntu itself.
[ Test Case ]
Scenario 1:
1) Launch a LXD container with an affected Ubuntu release
2) Install the Pro client version with the fix
3) Modify /etc/os-release so that we don't have the fields VERSION, VERSION_CODENAME and VERSION_ID
4) Run the esm_cache job and verify that it doesn't break anymore
5) Check /var/log/ubuntu-advantage.log to see that we have alerted the user about this scenario
Scenario 2:
1) Launch a LXD container with an affected Ubuntu release
2) Install the Pro client version with the fix
3) Modify /etc/os-release so that we don't have the fields VERSION_CODENAME and VERSION_ID and change VERSION to "22.04 LTS (modified to 22.04 LTS)"
4) Run the esm_cache job and verify that it doesn't break anymore
5) Check /var/log/ubuntu-advantage.log to see that we have alerted the user about this scenario
Scenario 3:
1) Launch a LXD container with an affected Ubuntu release
2) Install the Pro client version with the fix
3) Modify /etc/os-release so that VERSION is set to "22.04 LTS (modified to 22.04 LTS)"
4) Run the esm_cache job and verify that it doesn't break anymore
5) Check /var/log/ubuntu-advantage.log to see that the job did not generated any error logs
[ Regression potential ]
We are modifying how we collect information from /etc/os-release. If we have a mismatch between VERSION_ID and VERSION_CODENAME from VERSION, we might now pass different information to the contract server. However, we
believe this is low risk, as those fields should be consistent among themselves
[ Discussion]
Before running the esm_cache job, we check to see if the machine is an
ESM release. To perform that check, we gather information from
/etc/os-release. If we cannot find the require information there, we
raise an Exception that is not being treated on the esm_cache job. We
are now not only handling better how we extract information from
/etc/os-release, but also making the esm_cache job more resilient to
potential unexpected exceptions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2006508/+subscriptions