[Bug 2076233] Re: AttributeError: 'Report' object has no attribute 'add_tags'
Olivier Gayot
2076233 at bugs.launchpad.net
Wed Aug 14 12:26:35 UTC 2024
I am able to consistently reproduce with the following on the oracular
daily image:
autoinstall:
early-commands:
- /bin/false
However, the exception only shows in the journal so it isn't easy to
notice.
But there is something more when I try on noble-daily. the exception
does not happen, but the screen gets stuck showing:
+--------------------------------------------------------------------------------------------------
| Sorry, an unknown error occurred.
|
| Information is being collected form the system that will help the developers diagnose the report.
|
+---------------------------------------------------------------------------------------------------
My understanding is that this happens because the installer is stuck
trying to retrieve the MD5check result using GET /integrity
However, just like most controllers endpoints, /integrity blocks until
all controllers are started - which does not happen when an error occurs
during early-commands. I will file a separate bug for the integrity
issue ; but fixing it seems to trigger the exception (from this bug
report) to happen on noble too.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2076233
Title:
AttributeError: 'Report' object has no attribute 'add_tags'
Status in subiquity package in Ubuntu:
Triaged
Bug description:
When testing things on oracular, I ran into this exception after a
late-commands failed:
ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed
Traceback (most recent call last):
File "/snap/subiquity/5988/usr/lib/python3/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook
symb['add_info'](report, ui)
File "/usr/share/apport/general-hook/ubuntu.py", line 34, in add_info
_add_release_info(report)
File "/usr/share/apport/general-hooks/ubuntu.py", line 472, in _add_release_info
report.add_tags([release_codename])
AttributeError: 'Report' object has no attribute 'add_tags'.
This seems to happen because the Report class in core22
(/snap/subiquity/.../report.py) does not define an add_tags method ;
but the hooks in oracular expect the method to exist.
This might not be limited to oracular ; and could be a thing in noble
too?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2076233/+subscriptions
More information about the foundations-bugs
mailing list