Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368657 - net-misc/vde: service should start before net.${VDE_TAP}
Summary: net-misc/vde: service should start before net.${VDE_TAP}
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 07:29 UTC by Sok Ann Yap
Modified: 2011-06-01 02:09 UTC (History)
2 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 Sok Ann Yap 2011-05-25 07:29:05 UTC
Currently, the vde service is set to start after net.${VDE_TAP}. If I understand it correctly, the tap interface is supposed to be created by the vde service, so the "after" should be changed to "before".

Reproducible: Always
Comment 1 Nico Baggus 2011-05-31 22:30:39 UTC
If you create a tap interface yourself it needs to be done BEFORE vde runs ==> 
after net.${VDE_TAP}.

If there is no net.${VDE_TAP} then there is no wait.

So IMHO it should be after.
Comment 2 Sok Ann Yap 2011-05-31 22:39:00 UTC
Well, here's my use case: I let the vde service creates a tap0 interface, have a config for tap0 in /etc/conf.d/net, and have both vde and net.tap0 at the default runlevel. For this to work, I need "before net.${VDE_TAP}".
Comment 3 Nico Baggus 2011-05-31 23:46:03 UTC
if it needs to be configurable then maybe it needs to go to the /etc/conf.d/net
either:
  RC_AFTER_tap0="vde"
or:
  RC_BEFORE_tap0="vde"

so anyone can decide which one is needed.
maybe an example needs to be added to /etc/conf.d/net?
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2011-06-01 00:33:27 UTC
net.${VDE_TAP} is fully capable of creating the tap device, so it shouldn't be necessary to have vde create it, and you shouldn't even have to change anything in the vde config file.  I'm not sure it's desirable to add that kind of complexity to vde, since it works fine either with or without a net.${VDE_TAP} device.

Do you have a scenario where it can't be made to work?  If so, could you detail it for me?
Comment 5 Sok Ann Yap 2011-06-01 01:05:07 UTC
> net.${VDE_TAP} is fully capable of creating the tap device

That's the part I don't quite understand (as mentioned in the bug description). How do I get a tap0 interface without running vde_switch tap0 first?

My current setup is rather simple:

1. cd /etc/init.d; ln -s net.lo net.tap0
2. rc-update add net.tap0 default
3. rc-update add vde default
4. echo "config_tap0="192.168.4.1/24"" >> /etc/conf.d/net
5. sed -i -e "s|after net|before net|" /etc/init.d/vde
Comment 6 Nico Baggus 2011-06-01 01:40:59 UTC
adding 

tuntap_tap0=tap

to /etc/conf.d/net 
creates a tap0 device with all strings attached.
Comment 7 Sok Ann Yap 2011-06-01 01:48:45 UTC
Didn't know that. Works great :)
Comment 8 Daniel Gryniewicz (RETIRED) gentoo-dev 2011-06-01 02:09:35 UTC
It's in the net.example (although that's harder to find in baselayout2...)  So, not a bug, then, I believe.  Re-open if it's still and issue.