Red Hat Bugzilla – Bug 446138
Xenner leaks TAP device upon failure
Last modified: 2008-05-19 06:39:26 EDT
bDescription of problem:
During startup of a VM, Xenner enables the TUNSETPERSIST flag for the TAP device
it is passed. The network device details are not written into Xenstore for
netbackd until later during Xenner startup, and netbackd then makes it non
persistent. If Xenner fails during this window for any reason, you are left with
a TAP device that will never go away.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Invoke xenner passing a pre-allocated TAP filedescriptor in the -net command
line arg, along with another arg that will cause it to fail to boot - eg point
it to a disk image which doesn't have any OS installed, so pygrub fails, or
don't start the 'xenner' initscript.
2. ifconfig -a
xenner quits, but tap device still exists
xenner quits and device goes away
It appears the only reason Xenner makes the TAP device persistent is so that
netbackd can then open the interface. Might it be possible to avoid this
approach by having Xenner pass the FD directly to netbackd over a UNIX domain
socket using SCM_RIGHTS ?
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
Fixed in 0.35.