sosreport job skipped because sosreport not installed
Bug #1710172 reported by
Jeff Lane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Resource |
Fix Released
|
High
|
Jeff Lane |
Bug Description
From a recent test submission:
miscellanea/
But when I look in the packages listing, sosreport is definitely there:
sosreport 3.4-1~ubuntu16.04.1
And if I check a different, but similarly deployed system, I see that the version is correct:
sosreport:
Installed: 3.4-1~ubuntu16.04.1
And the executable is, indeed, called sosreport:'
bladernr@
/usr/bin
/usr/bin/sosreport
Related branches
~bladernr/plainbox-provider-resource:1710172-executable-skips-symlinks
- Devices Certification Bot: Needs Fixing
- Jonathan Cave (community): Approve
- Maciej Kisielewski (community): Approve
-
Diff: 13 lines (+1/-1)1 file modifiedjobs/resource.pxu (+1/-1)
Changed in plainbox-provider-resource: | |
status: | In Progress → Fix Committed |
Changed in plainbox-provider-resource: | |
milestone: | future → 0.34.0 |
Changed in plainbox-provider-resource: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Turns out the resource job fails to follow symlinks:
bladernr@ galactica: ~/development/ git/plainbox- provider- resource/ jobs$ find -H $(echo "$PATH" | sed -e 's/:/ /g') -maxdepth 1 -type f -executable -printf "name: %f\nlocation: %h\n\n" |grep sosreport galactica: ~/development/ git/plainbox- provider- resource/ jobs$ ll /usr/bin/sosreport sosreport/ sosreport
bladernr@
lrwxrwxrwx 1 root root 28 Apr 26 08:38 /usr/bin/sosreport -> ../share/
As you can see, the command used by the executable resource job doesn't find sosreport, and digging deeper, we see that it's actually a symlink to /usr/share/ sosreport/ sosreport.