group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #47301
[Bug 2065616] Re: apport hook AttributeError: 'UAConfig' object has no attribute 'data_path'
This bug was fixed in the package ubuntu-advantage-tools - 32.3~23.10
---------------
ubuntu-advantage-tools (32.3~23.10) mantic; urgency=medium
* Backport 32.3 to mantic (LP: #2060732)
ubuntu-advantage-tools (32.3) oracular; urgency=medium
* d/apparmor: adjust the profiles to account for usr-merge consequences
(LP: #2067319)
ubuntu-advantage-tools (32.2) oracular; urgency=medium
* d/apparmor: adjust rules for violations found during testing (LP:
#2066929)
ubuntu-advantage-tools (32.1) oracular; urgency=medium
* d/apparmor: allow access for /etc/os-release on all supported
profiles (LP: #2065573)
* apport: get path for timer job status from the correct place (LP: #2065616)
ubuntu-advantage-tools (32) oracular; urgency=medium
* d/postinst: ensure migrations happen in correct package postinst (GH: #2982)
* d/apparmor: introduce new ubuntu_pro_esm_cache apparmor policy
* New upstream release 32 (LP: #2060732)
- api:
+ u.pro.attach.token.full_token_attach.v1: add support for attach
with token
+ u.pro.services.disable.v1: add support for disable operation
+ u.pro.services.enable.v1: add support for enable operation
+ u.pro.detach.v1: add support for detach operation
+ u.pro.status.is_attached.v1: add extra fields to API response
+ u.pro.services.dependencies.v1: add support for service dependencies
+ u.pro.security.fix.*.plan.v1: update ESM cache during plan API
if needed
- apt_news: add architectures and packages selectors filters for apt news
- cli:
+ improved cli/log message for unexpected errors (GH: #2600)
+ properly handle setting empty config values (GH: #2925)
- cloud-init: support ubuntu_pro user-data
- collect-logs: update default output file to pro_logs.tar.gz (LP: #2033313)
- config: create public and private config (GH: #2809)
- entitlements:
+ update logic that checks if a service is enabled (LP: #2031192)
- fips: warn/confirm with user if enabling fips downgrades the kernel
- fix: warn users if ESM cache cannot be updated (GH: #2841)
- logging:
+ use journald logging for all systemd services
+ add redundancy to secret redaction
- messaging:
+ add consistent messaging for end of contract state
+ make explicit that unattached enable/disable is a noop (GH: #2487)
+ make explicit that disabling a disabled service is a noop
+ make explicit that enabling an enabled service is a noop
- notices: filter unreadable notices when listing notices (GH: #2898)
-- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx> Tue, 28 May 2024
15:15:45 -0300
** Changed in: ubuntu-advantage-tools (Ubuntu Mantic)
Status: Fix Committed => Fix Released
** Changed in: ubuntu-advantage-tools (Ubuntu Jammy)
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/2065616
Title:
apport hook AttributeError: 'UAConfig' object has no attribute
'data_path'
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
Status in ubuntu-advantage-tools source package in Mantic:
Fix Released
Status in ubuntu-advantage-tools source package in Noble:
Fix Released
Status in ubuntu-advantage-tools source package in Oracular:
Fix Released
Bug description:
[ Impact ]
The apport hook for ubuntu-advantage-tools is crashing:
```
# ubuntu-bug ubuntu-advantage-tools
(...)
.............ERROR: hook /usr/share/apport/package-hooks/source_ubuntu-advantage-tools.py crashed:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook
symb['add_info'](report, ui)
File "/usr/share/apport/package-hooks/source_ubuntu-advantage-tools.py", line 29, in add_info
os.path.basename(cfg.data_path("jobs-status")),
AttributeError: 'UAConfig' object has no attribute 'data_path'
...
```
This produces incomplete bug reports.
[ Test Plan ]
- run `ubuntu-bug ubuntu-advantage-tools`
- it should not crash, and you should be able to produce a complete bug report
[ Where problems could occur ]
The apport hook is already crashing, meaning it's not collecting all the information we want. Another regression here would not make things worse.
[ Other Info ]
Not at this time.
[ Original Description ]
In Pro v32, from jammy-proposed, when running `ubuntu-bug ubuntu-
advantage-tools`:
# ubuntu-bug ubuntu-advantage-tools
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.............ERROR: hook /usr/share/apport/package-hooks/source_ubuntu-advantage-tools.py crashed:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook
symb['add_info'](report, ui)
File "/usr/share/apport/package-hooks/source_ubuntu-advantage-tools.py", line 29, in add_info
os.path.basename(cfg.data_path("jobs-status")),
AttributeError: 'UAConfig' object has no attribute 'data_path'
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2065616/+subscriptions