apport package hook for mdadm causes a Traceback
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned |
Bug Description
As we can see in bug 1581940 (attachment HookError_
Here's the Traceback:
Traceback (most recent call last):
File "/usr/lib/
symb[
TypeError: add_info() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
report[
File "/usr/share/
out = cpio.communicat
File "/usr/lib/
stdout, stderr = self._communica
File "/usr/lib/
self.
File "/usr/lib/
self._input = self._input.
AttributeError: 'bytes' object has no attribute 'encode'
[Impact]
Makes diagnosing issues around mdadm more difficult, as it won't be shown whether the generated initrd for the running kernel includes the bits relevant to mdadm.
[Test Case]
NOTE: an md device is not needed to reproduce the apport failure, the stacktrace is reproducable without setting up software raid.
1. sudo apt-get install mdadm
2. sudo apport-cli -f -p mdadm
For the failure case, a traceback like the above will be seen. For the successful case, no traceback will be seen, and (V)iewing the report will show a section titled 'initrd.files'
[Regression Potential]
Changes involved are only to the apport hook for mdadm, so the only risk is due to the rebuild of the mdadm package itself, and any toolchain changes that have occurred since it was last rebuilt.
description: | updated |
tags: | added: trusty wily |
Changed in mdadm (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in mdadm (Ubuntu Wily): | |
importance: | Undecided → Medium |
Changed in mdadm (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in mdadm (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
Changed in mdadm (Ubuntu Trusty): | |
status: | New → Triaged |
Changed in mdadm (Ubuntu Wily): | |
status: | New → Triaged |
Changed in mdadm (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in mdadm (Ubuntu Yakkety): | |
status: | New → Triaged |
Here are some other bugs with the HookError attachments:
./mdadm/bug-1473654/HookError_ source_ mdadm.txt source_ mdadm.txt source_ mdadm.txt source_ mdadm.txt
./mdadm/bug-1581940/HookError_
./mdadm/bug-1471625/HookError_
./mdadm/bug-1217344/HookError_