some resources show "not-supported" when they shouldn't
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
Critical
|
Zygmunt Krynicki | ||
Checkbox Provider - Resource |
Fix Released
|
Critical
|
Zygmunt Krynicki |
Bug Description
I installed the latest set of packages from the PPA to test c-d-t-s. This problem seems related to the new resource provider which has a new layout and possibly some other changes. Versions are:
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii checkbox-gui 0.17.6-0ubuntu5 amd64 QML based interface for system testing based on Plainbox.
ii checkbox-ng 0.3~dev+
ii checkbox-ng-service 0.3~dev+
ii plainbox 0.6~dev+
ii plainbox-
ii plainbox-
ii plainbox-
ii plainbox-
ii python3-checkbox-ng 0.3~dev+
ii python3-
ii python3-plainbox 0.6~dev+
Running c-d-t-s and trying to generate a report failed with some error about not finding a "name" key in packages. Also a couple of the required resources failed bogusly as their requirements do exist on the system.
Running this:
$ plainbox run -i .*miscellanea/
Ultimately results in this, notice the not-supported resources:
=======
2013.com.
2013.com.
2013.com.
2013.com.
2013.com.
2013.com.
2013.com.
2013.com.
2013.com.
2013.com.
The job definitions (now living in /usr/share/
id: dpkg
estimated_duration: 0.19
plugin: resource
command: dpkg_resource
requires: package.name == "dpkg"
_description: Gets info on the version of dpkg installed
id: lsb
estimated_duration: 1.63
plugin: resource
command: lsb_resource
requires: package.name == "lsb-release"
_description: Generates release info based on /etc/lsb-release
both lsb-release and dpkg *are* installed on the target system.
Trying to save this to xml ($ plainbox run -i .*miscellanea/
CRITICAL plainbox.crashes: Executable 'plainbox' invoked with Namespace(
Traceback (most recent call last):
File "/usr/lib/
return self.dispatch_
File "/usr/lib/
return ns.command.
File "/usr/lib/
return RunInvocation(
File "/usr/lib/
return self._run_jobs(ns, job_list, exporter, transport)
File "/usr/lib/
exporter.
File "/usr/lib/
root = self.get_
File "/usr/lib/
self.
File "/usr/lib/
("name", package_
KeyError: 'name'
I need to set this as critical since inability to generate the reports blocks pretty much every legitimate use of these tools.
Related branches
- Brendan Donegan (community): Approve
-
Diff: 21 lines (+2/-2)1 file modifiedproviders/plainbox-provider-resource-generic/jobs/resource.txt (+2/-2)
Changed in checkbox: | |
status: | New → Confirmed |
assignee: | nobody → Zygmunt Krynicki (zkrynicki) |
Changed in checkbox-ihv-ng: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → Daniel Manrique (roadmr) |
milestone: | none → version1.8 |
Changed in checkbox: | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Fix Released |
Changed in checkbox-ihv-ng: | |
status: | Confirmed → Fix Committed |
Changed in checkbox: | |
milestone: | none → plainbox-0.6 |
Changed in plainbox-provider-resource: | |
milestone: | none → 0.3 |
importance: | Undecided → Critical |
status: | New → Fix Committed |
assignee: | nobody → Zygmunt Krynicki (zkrynicki) |
Changed in checkbox: | |
milestone: | plainbox-0.6 → none |
Changed in plainbox-provider-resource: | |
status: | Fix Committed → Fix Released |
Changed in checkbox-ihv-ng: | |
status: | Fix Committed → Fix Released |
The culprit: dpkg-query -W -f='id: ${Package} \nversion: ${Version}\n\n'
name changed to id