udev_resource script fails to parse device properties on kvm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
Undecided
|
Marc Tardif | ||
checkbox (Ubuntu) |
Fix Released
|
Undecided
|
Marc Tardif | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The impact of this bug is that when the udev_resource script fails to run, then some tests never get run and no hardware information is submitted to Launchpad. This fix simply adds support for periods (.) sometimes generated in the udevadm output.
The udev_resource script fails to parse device properties on some configurations of kvm. The following backtrace is generated:
Traceback (most recent call last):
File "/usr/share/
sys.
File "/usr/share/
for device in udev.devices:
File "/usr/share/
"Device property not supported: %s" % value
Exception: Device property not supported: ID_INPUT.
Related branches
- Mathias Gug: Needs Fixing
-
Diff: 822 lines (+253/-247)20 files modifiedbackend (+12/-3)
checkbox/job.py (+1/-1)
checkbox/resource.py (+3/-2)
checkbox/user_interface.py (+7/-2)
debian/changelog (+17/-0)
debian/control (+1/-0)
jobs/disk.txt.in (+1/-2)
jobs/local.txt.in (+1/-1)
jobs/resource.txt.in (+1/-0)
plugins/backend_info.py (+15/-17)
plugins/begin_prompt.py (+33/-0)
plugins/launchpad_exchange.py (+2/-1)
plugins/persist_info.py (+2/-2)
po/checkbox.pot (+10/-10)
scripts/ansi_parser (+2/-1)
scripts/device_list (+0/-168)
scripts/disk_test (+0/-33)
scripts/run_templates (+142/-0)
scripts/suspend_test (+2/-3)
scripts/udev_resource (+1/-1)
- Stéphane Graber: Approve
-
Diff: 807 lines (+250/-246)19 files modifiedbackend (+12/-3)
checkbox/job.py (+1/-1)
checkbox/resource.py (+3/-2)
checkbox/user_interface.py (+7/-2)
debian/changelog (+16/-0)
debian/control (+1/-0)
jobs/disk.txt.in (+1/-2)
jobs/local.txt.in (+1/-1)
jobs/resource.txt.in (+1/-0)
plugins/backend_info.py (+15/-17)
plugins/begin_prompt.py (+33/-0)
plugins/launchpad_exchange.py (+2/-1)
plugins/persist_info.py (+2/-2)
po/checkbox.pot (+10/-10)
scripts/device_list (+0/-168)
scripts/disk_test (+0/-33)
scripts/run_templates (+142/-0)
scripts/suspend_test (+2/-3)
scripts/udev_resource (+1/-1)
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
Changed in checkbox (Ubuntu): | |
status: | New → Fix Released |
Changed in checkbox (Ubuntu Lucid): | |
milestone: | none → lucid-updates |
status: | New → In Progress |
Changed in checkbox (Ubuntu): | |
assignee: | nobody → Marc Tardif (cr3) |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
The problem is that the udev_resource script assumes that the property names strictly consist of words (\w):
multi_pattern = re.compile( r"(?P<key> \w+)=(? P<value> .*)")