group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #44686
[Bug 2006351] Re: /usr/lib/ubuntu-advantage/apt_news.py:KeyError:/usr/lib/ubuntu-advantage/apt_news.py@32:main:update_apt_news:local_apt_news:get_contract_expiry_status:contract_remaining_days:contract_expiry_datetime
This bug was fixed in the package ubuntu-advantage-tools -
27.13.5~20.04.1
---------------
ubuntu-advantage-tools (27.13.5~20.04.1) focal; urgency=medium
* Backport new upstream release
ubuntu-advantage-tools (27.13.5~23.04.1) lunar; urgency=medium
* d/ubuntu-advantage-tools.postinst:
- fix version for cleaning the esm-apps stale unauthenticated files
(LP: #2006765)
ubuntu-advantage-tools (27.13.4~23.04.1) lunar; urgency=medium
* d/ubuntu-advantage-tools.postinst:
- remove stale esm-apps unauthenticated caches (LP: #2004193)
* apt-hook:
- Change esm-apps advertisement message on apt upgrade to
make it clearer that the service is providing more upgrades
and not restricting user to only get updates if esm-apps
is enabled (LP: #2006510)
* contract:
- make code aware that the effective date is not a required field
in the machine-token.json file (LP: #2006351)
* esm_cache
- do not fail if we cannot extract information from
/etc/os-release file (LP: #2006508)
* security-status:
- consider packages without a candidate as 'unknown' (LP: #2006049)
* status:
- treat null effective contract dates as unknown/expired
(LP: #2004650)
* timer:
- recycle invalid jobs-status.json file if we detect it is
corrupted (LP: #2006261)
-- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx> Thu, 09 Feb 2023
14:36:05 -0300
** Changed in: ubuntu-advantage-tools (Ubuntu Bionic)
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/2006351
Title:
/usr/lib/ubuntu-advantage/apt_news.py:KeyError:/usr/lib/ubuntu-
advantage/apt_news.py@32:main:update_apt_news:local_apt_news:get_contract_expiry_status:contract_remaining_days:contract_expiry_datetime
Status in ubuntu-advantage-tools package in Ubuntu:
In Progress
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
Status in ubuntu-advantage-tools source package in Kinetic:
Fix Released
Status in ubuntu-advantage-tools source package in Lunar:
In Progress
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.10.1, the problem page at https://errors.ubuntu.com/problem/104213ca2086ad5b775cd6775a4cf995e8ead2c0 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]
When running the apt_news job, the job will fail if the contract does not have an effective date. Users will see a degraded status for the systemctl job.
[Test Case]
To test this fix we will add an integration test that target the
scenario where we have null effectiveTo date and verify that the
apt_news job does not fail and correctly show the expired message when
running the `apt upgrade` command.
[Regression Potential]
This change is just making the code more resilient to null values for effective dates. Since the apt_news feature was broken on that scenario, we don't believe the fix should provide any major regression here.
[Discussion]
We are now assuming that the contract is expired if it does not have a valid effective date. This will allow us to correctly message the user and alert that the subscription need to be renewed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2006351/+subscriptions