apport's cloud-init-specific handling tracebacks on minimal cloud images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Brian Murray | ||
Focal |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Impact
------
It is not possible to run ubuntu-bug for some packages which gather information as root because pkexec does not work in non-graphical environments (LP: #1821415). This was worked around in Ubuntu 19.10 by not gathering any information that would require root access.
Test Case
---------
1) Install multipass.
2) `multipass launch http://
3) `multipass shell reproducer`
4) `ubuntu-bug cloud-init`
Expected behaviour:
Usual bug reporting flow (though, currently, I would really expect to see just the issue reported in bug 1861450).
Actual behaviour:
ERROR: hook /usr/share/
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
return cloudinit_
File "/usr/lib/
attach_
File "/usr/lib/
'cloud-
File "/usr/lib/
sp = subprocess.
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'pkexec': 'pkexec'
(As alluded to above, this also demonstrates bug 1861450 after the traceback is emitted.)
Regression Potential
-------
Little as we are just returning and empty list if pkexec is not available, however it is always possible that the code is misformated or that there is a logic error in it. A regression test would be to run the ubuntu-bug cloud-init on a system with pkexec installed.
tags: | added: rls-ff-incoming |
tags: |
added: focal removed: rls-ff-incoming |
tags: | added: id-5e3c4d71dc61a969457f7c09 |
description: | updated |
description: | updated |
tags: | added: fr-191 |
This actually only affects Ubuntu 18.04.