]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Fix failure on starting a domain with multiple interfaces
authorRyota Ozaki <ozaki.ryota@gmail.com>
Mon, 3 May 2010 09:13:26 +0000 (11:13 +0200)
committerDaniel Veillard <veillard@redhat.com>
Mon, 3 May 2010 09:13:26 +0000 (11:13 +0200)
commitd2ac3c2fdde7ad397f0abbd65d6c5e0129fd2236
tree23954136b44e1583899197161660beb5841dc84e
parent94f7144183c1c47251cf82a8a54c62922fb1dcf2
lxc: Fix failure on starting a domain with multiple interfaces

[Error message]
error: Failed to start domain lxc_test1
error: internal error Failed to create veth device pair: 512

The reason of the failure is that lxc driver unexpectedly re-uses
an auto-assigned veth name and tries to create the created veth
again. The failure will happen when a domain has multiple network
interfaces and the names of those are not specified in XML.

The patch fixes the problem by resetting buffers of veth names
in every iteration of creating veth.

* src/lxc/lxc_driver.c: prevent re-using auto-assigned veth name
  Reported by Kumar L Srikanth-B22348.
src/lxc/lxc_driver.c