/sbin/ipvsadm doesn't work when $PATH doesn't contain /sbin

Bug #347165 reported by Ruben Laban
2
Affects Status Importance Assigned to Milestone
ipvsadm (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: ipvsadm

As /sbin/ipvsadm is a wrapper script for 2 versions of ipvsadm and isn't using full paths to those executables, running /sbin/ipvsadm when /sbin is not part of $PATH, the script will fail. (Root) Cronjobs by default don't appear to have /sbin in their $PATH, so any cronjobs running /sbin/ipvsadm will fail, unless $PATH is overridden.

Output from a script using bash -x using /sbin/ipvsadm :

+ /sbin/ipvsadm -Lnf 4
exec: 15: ipvsadm-1.24: not found

Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
1. Is this reproducible?
2. If so, what specific steps should we take to recreate this bug? Be as detailed as possible.
This will help us to find and resolve the problem.

Changed in ipvsadm (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Ruben Laban (r-laban) wrote : Re: [Bug 347165] Re: /sbin/ipvsadm doesn't work when $PATH doesn't contain /sbin

On Thursday 15 October 2009 at 19:06 (CET), Chuck Short wrote:
> 1. Is this reproducible?

Yes.

> 2. If so, what specific steps should we take to recreate this bug? Be as
> detailed as possible. This will help us to find and resolve the problem.

As described in the bugreport itself:

$ sudo crontab -l
# m h dom mon dow command
4 20 * * * /sbin/ipvsadm
4 20 * * * ipvsadm

This results in two error mails from cron.
The first mentions:
exec: 15: ipvsadm-1.24: not found

The second mentions:
/bin/sh: ipvsadm: not found

--
Ruben

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the fast response this will probably be fixed in karmic+1.

Regards
chuck

Changed in ipvsadm (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

This should be fixed for Lucid now.

Regards
chuck

Changed in ipvsadm (Ubuntu):
status: Confirmed → 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.