sosreport job skipped because sosreport not installed

Bug #1710172 reported by Jeff Lane 
6
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/sosreport test untested job cannot be started: resource expression "executable.name == 'sosreport'" evaluates to false

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@galactica:~$ dpkg -L sosreport |grep bin
/usr/bin
/usr/bin/sosreport

Related branches

Revision history for this message
Jeff Lane  (bladernr) wrote :

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
bladernr@galactica:~/development/git/plainbox-provider-resource/jobs$ ll /usr/bin/sosreport
lrwxrwxrwx 1 root root 28 Apr 26 08:38 /usr/bin/sosreport -> ../share/sosreport/sosreport

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.

affects: plainbox-provider-checkbox → plainbox-provider-resource
Changed in plainbox-provider-resource:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Jeff Lane  (bladernr) wrote :

Looks like simply chaging -type to -xtype will include symlinks in the $PATH as well as actual binaries.

Changed in plainbox-provider-resource:
status: Confirmed → In Progress
assignee: nobody → Jeff Lane (bladernr)
milestone: none → future
Jeff Lane  (bladernr)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.