Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339169 - vde-2.3.1 is missing /usr/bin/pcapp_plug
Summary: vde-2.3.1 is missing /usr/bin/pcapp_plug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 19:51 UTC by rainer
Modified: 2010-10-01 07:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2010-09-29 19:51:28 UTC
After adding vde at the default run level,
the startup script yields an error because
it wants to run /usr/bin/vde_pcapplug which does
not exist.   

Reproducible: Always

Steps to Reproduce:
1.emerge vde
2.rc-update add vde default
3.reboot

Actual Results:  
start-stop-daemon: /usr/bin/vde_pcapplug does not exist
Failed to start vde_pcapplug
Error: vde failed to start


# emerge --info
Portage 2.1.9.12 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r8cfg-2010-08-14 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r8cfg-2010-08-14-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 29 Sep 2010 17:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa amd64 ao audiofile avahi bash-completion bcmath berkdb blas bluetooth branding bzip2 cairo calendar caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl curlwrappers cxx dbus dga directfb djvu dri dts dv dvd dvdr emacs emboss encode esd exif fam fbcon ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp ginac glut gnome gnome-keyring gnuplot gnutls gphoto2 gpm gps graphviz gsm gstreamer gtk gtkhtml gzip hal hddtemp iconv icq ieee1394 imagemagick imap imlib iodbc ipv6 jabber java java6 javascript jbig jingle jpeg jpeg2k kde kontact lame lapack lash latex lcms ldap libgda libnotify lirc lm_sensors lzo mad matroska mikmod mime mmx mng modules mono mozilla mp3 mp4 mpeg mpi mplayer msn mudflap mule multilib musepack musicbrainz mysql mysqli nas ncurses neXt nls nntp nocd nptl nptlonly nsplugin odbc offensive ofx ogg openal openexr opengl openmp osc oscar oss pam pango pcre pdf perl php plasma plotutils png policykit ppds pppd pulseaudio python qt3support qt4 quicktime raw readline reflection rss ruby samba scanner sdl semantic-desktop session smp sockets socks5 sox speex spell sqlite sqlite3 sse sse2 ssl startup-notification svg symlink sysfs syslog sysvipc szip tcl tcpd threads tiff truetype unicode usb v4l v4l2 vcd vde vnc vorbis wmf wxwidgets x264 xattr xcb xcomposite xemacs xft xml xorg xosd xpm xsl xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeon fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-29 20:23:02 UTC
Please paste the output of 'emerge -pv vde' too (I guess it mentions USE=-pcap).
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-09-29 20:40:50 UTC
If I build with pcap, then vde_pcapplug is installed; if I build with -pcap, it is not installed.  On my systems, however, vde_pcaplug is not referenced by the init scripts at all (and the init script starts in both places).

Could you post your /etc/conf.d/vde?
Comment 3 rainer 2010-09-30 06:12:28 UTC
You are right, it is built without the pcap use flag on my system. I guess that enabling the pcap use flag would then solve the issue. 

Below are the contents of /etc/conf.d/vde

# load the tun module
VDE_MODPROBE_TUN="no"
# virtual tap networking device to be used for vde
#VDE_TAP="tap0"
VDE_TAP="eth0"

# mode and group for the socket
VDE_SOCK_CHMOD="770"
VDE_SOCK_CHOWN=":kvm"

# This is the actual options string passed to VDE.  Change this at your own risk.
VDE_PCAPPLUG_OPTS="${VDE_TAP} -daemon"
VDE_SWITCH_OPTS="-daemon"
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-09-30 12:27:51 UTC
It's just strange that your system seems to want it with -pcap, but mine doesn't want it at all (even with +pcap).  Could you post your /etc/init.d/vde as well?
Comment 5 rainer 2010-09-30 18:55:30 UTC
Below are the contents of /etc/init.d/vde

#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/vde/files/vde.init,v 1.4 2010/01/12 12:58:36 dang Exp $

depend() {
        after net.${VDE_TAP}
}


start() {
        ebegin "Starting vde_switch"
        [ "${VDE_MODPROBE_TUN}" == "yes" ] && modprobe tun
        start-stop-daemon --start --quiet \
                --exec /usr/bin/vde_switch -- ${VDE_SWITCH_OPTS}
        eend $? "Failed to start vde_switch"

        chmod -R ${VDE_SOCK_CHMOD} /var/run/vde.ctl
        chown -R ${VDE_SOCK_CHOWN} /var/run/vde.ctl

        ebegin "Starting vde_pcapplug"
        start-stop-daemon --start --quiet \
                --exec /usr/bin/vde_pcapplug -- ${VDE_PCAPPLUG_OPTS}
        eend $? "Failed to start vde_pcapplug"
}

stop() {
        ebegin "Stopping vde_pcapplug"
        [ "${VDE_MODPROBE_TUN}" == "yes" ] && modprobe -r tun
        start-stop-daemon --stop --quiet --exec /usr/bin/vde_pcapplug
        eend $? "Failed to stop vde_pcapplug"

        ebegin "Stopping vde_switch"
        start-stop-daemon --stop --quiet --exec /usr/bin/vde_switch
        eend $? "Failed to stop vde_switch"
}
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-30 19:03:14 UTC
Please try rebuilding the package. It seems that someone was lazy and forget to revbump the ebuild after modifying init.d scripts.
Comment 7 rainer 2010-09-30 20:50:39 UTC
Rebuilding does not change the init script for me.

# emerge -1 vde
[...]

# equery files vde
 * Searching for vde ...
 * Contents of net-misc/vde-2.3.1:
/etc
/etc/conf.d
/etc/conf.d/vde
/etc/init.d
/etc/init.d/vde
[...]

After that, the contents of /etc/init.d/vde
is as shown earlier.


Comment 8 Nico Baggus 2010-09-30 22:22:26 UTC
what does 
  ls -l /etc/init.d/ | grep vde 
produce? (init scripts are safeguarded against overwriting through config_protect)
They might need to be upgraded with: update-etc or dispatch-conf
(If there are new config changes then you have hidden files containing the name and a serial number.
Comment 9 rainer 2010-10-01 06:21:46 UTC
I am running etc-update daily.
etc-update did not capture that the file is outdated.
This seems strange to me because so far I was relying that
emerge and etc-update keep my system up-to-date.

I was deleting /etc/init.d/vde and re-emerging vde,
this resolved the issue.

Do you have any idea why etc-update did not capture the
configuration update? 

Thank you for helping me to resolve this issue.
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-01 07:49:07 UTC
(In reply to comment #9)
> Do you have any idea why etc-update did not capture the
> configuration update? 

Maybe you have rejected the update earlier? Not sure about etc-update but dispatch-conf is able to record previous actions and repeat them whenever the same file is installed.