cloud-init 23.2 introduced a couple new functions to extract cloud-specific values automatically for apport bug reports in apport/general-hooks/cloud_init.py.
The functions _get_azure_data and _get_ec2_data added type hints which were incompatible with Focal's python3.8.
Attempts to run apport-bug cloud-init on focal results in immediate tracebacks which collecting apport info:
*** 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/general-hooks/cloud-init.py crashed:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 226, in _run_hook
exec(compile(fd.read(), hook, 'exec'), symb)
File "/usr/share/apport/general-hooks/cloud-init.py", line 7, in <module>
def _get_azure_data(ds_data) -> dict[str, str]:
TypeError: 'type' object is not subscriptable
.
*** Your device details (lshw) may be useful to developers when addressing this bug, but gathering it requires admin privileges. Would you like to include this info?
This regression will block SRU to focal. It does not affect Jammy or later series
SRU verification regression found during testing of https:/ /bugs.launchpad .net/ubuntu/ +source/ apport/ +bug/1724623.
cloud-init 23.2 introduced a couple new functions to extract cloud-specific values automatically for apport bug reports in apport/ general- hooks/cloud_ init.py.
The functions _get_azure_data and _get_ec2_data added type hints which were incompatible with Focal's python3.8.
Attempts to run apport-bug cloud-init on focal results in immediate tracebacks which collecting apport info:
*** Collecting problem information
The collected information can be sent to the developers to improve the apport/ general- hooks/cloud- init.py crashed: python3/ dist-packages/ apport/ report. py", line 226, in _run_hook compile( fd.read( ), hook, 'exec'), symb) apport/ general- hooks/cloud- init.py" , line 7, in <module> data(ds_ data) -> dict[str, str]:
application. This might take a few minutes.
......ERROR: hook /usr/share/
Traceback (most recent call last):
File "/usr/lib/
exec(
File "/usr/share/
def _get_azure_
TypeError: 'type' object is not subscriptable
.
*** Your device details (lshw) may be useful to developers when addressing this bug, but gathering it requires admin privileges. Would you like to include this info?
This regression will block SRU to focal. It does not affect Jammy or later series