reassign 757644 iproute2
found 757644 3.16.0-1
affects 757644 libvirt-daemon-system
tags 757644 +patch
thanks

On Mon, Aug 11, 2014 at 08:18:58AM +0800, Rodney Lorrimar wrote:
> Please find log and configs attached.

Thanks. I can confirm that it works with iproute2 3.15 and breaks with
3.16 so I'm reassigning to ipoute2. 

Dear iproute2 maintainers,

Libvirt breaks with iproute2 3.16 like

Aug 11 17:44:43 bogon libvirtd: 6966: debug : virCommandRunAsync:2299 : About 
to run ip link add vnet18 type veth peer name vnet19
Aug 11 17:44:43 bogon libvirtd: 6966: debug : virCommandRunAsync:2302 : Command 
result 0, with PID 7089
Aug 11 17:44:43 bogon libvirtd: 6966: debug : virCommandRun:2150 : Result 
invalid value 255, stdout: '' stderr: 'Error: argument "vnet18" is wrong
: Unknown device#012'

while it works with 3.15. This was caused by upstream commit

  9a02651a87d0fd56e2e7eedd63921a050a42b3ec

Removing the check makes things work again (see attached patch).
Cheers,
 -- Guido

> 
> Cheers,
> 
> Rodney

> Aug 11 07:33:02 aurora libvirtd[31076]: libvirt version: 1.2.7, package: 6 
> (root 2014-08-08-16:09:22 bogon)
> Aug 11 07:33:02 aurora libvirtd[31076]: Unable to initialize audit layer: 
> Protocol not supported
> Aug 11 07:33:03 aurora dnsmasq[31158]: started, version 2.71 cachesize 150
> Aug 11 07:33:03 aurora dnsmasq[31158]: compile time options: IPv6 GNU-getopt 
> DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC
> Aug 11 07:33:03 aurora dnsmasq-dhcp[31158]: DHCP, IP range 172.16.2.128 -- 
> 172.16.2.254, lease time 1h
> Aug 11 07:33:03 aurora dnsmasq-dhcp[31158]: DHCP, sockets bound exclusively 
> to interface virbr1
> Aug 11 07:33:03 aurora dnsmasq[31158]: reading /etc/resolv.conf
> Aug 11 07:33:03 aurora dnsmasq[31158]: using nameserver 134.115.253.12#53
> Aug 11 07:33:03 aurora dnsmasq[31158]: using nameserver 134.115.253.10#53
> Aug 11 07:33:03 aurora dnsmasq[31158]: using nameserver 134.115.4.33#53
> Aug 11 07:33:03 aurora dnsmasq[31158]: using nameserver 134.115.253.11#53
> Aug 11 07:33:03 aurora dnsmasq[31158]: read /etc/hosts - 4 addresses
> Aug 11 07:33:03 aurora dnsmasq[31158]: read 
> /var/lib/libvirt/dnsmasq/ccgdev.addnhosts - 0 addresses
> Aug 11 07:33:03 aurora dnsmasq-dhcp[31158]: read 
> /var/lib/libvirt/dnsmasq/ccgdev.hostsfile
> Aug 11 07:33:03 aurora dnsmasq[31162]: started, version 2.71 cachesize 150
> Aug 11 07:33:03 aurora dnsmasq[31162]: compile time options: IPv6 GNU-getopt 
> DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC
> Aug 11 07:33:03 aurora dnsmasq-dhcp[31162]: DHCP, IP range 192.168.122.2 -- 
> 192.168.122.254, lease time 1h
> Aug 11 07:33:03 aurora dnsmasq-dhcp[31162]: DHCP, sockets bound exclusively 
> to interface virbr0
> Aug 11 07:33:03 aurora dnsmasq[31162]: reading /etc/resolv.conf
> Aug 11 07:33:03 aurora dnsmasq[31162]: using nameserver 134.115.253.12#53
> Aug 11 07:33:03 aurora dnsmasq[31162]: using nameserver 134.115.253.10#53
> Aug 11 07:33:03 aurora dnsmasq[31162]: using nameserver 134.115.4.33#53
> Aug 11 07:33:03 aurora dnsmasq[31162]: using nameserver 134.115.253.11#53
> Aug 11 07:33:03 aurora dnsmasq[31162]: read /etc/hosts - 4 addresses
> Aug 11 07:33:03 aurora dnsmasq[31162]: read 
> /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
> Aug 11 07:33:03 aurora dnsmasq-dhcp[31162]: read 
> /var/lib/libvirt/dnsmasq/default.hostsfile
> Aug 11 07:33:03 aurora libvirtd[31076]: libnuma: Warning: Cannot parse 
> distance information in sysfs: Success
> Aug 11 07:33:03 aurora libvirtd[31076]: XML error: unexpected root element 
> <domain>, expecting <domstatus>
> Aug 11 07:33:33 aurora libvirtd[31076]: internal error: Failed to allocate 
> free veth pair after 10 attempts



> _______________________________________________
> Pkg-libvirt-maintainers mailing list
> [email protected]
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-libvirt-maintainers

>From 4a5577fab7490573ceaafa6e4417cf03bca178f1 Mon Sep 17 00:00:00 2001
Message-Id: <4a5577fab7490573ceaafa6e4417cf03bca178f1.1407786415.git....@sigxcpu.org>
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <[email protected]>
Date: Mon, 11 Aug 2014 21:41:51 +0200
Subject: [PATCH] Don't enforce that dev already exists

Commit 9a02651a87d0fd56e2e7eedd63921a050a42b3ec tried to make sure
the device can be looked up but that e.g. isn't true for

  ip link add vnet10 type veth peer name vnet11

where vnet10 isn't yet existent.
---
 ip/iplink.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/ip/iplink.c b/ip/iplink.c
index de9ef5d..0d747e7 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -571,8 +571,6 @@ int iplink_parse(int argc, char **argv, struct iplink_req *req,
 				duparg2("dev", *argv);
 			*dev = *argv;
 			dev_index = ll_name_to_index(*dev);
-			if (dev_index == 0)
-				invarg("Unknown device", *argv);
 		}
 		argc--; argv++;
 	}
-- 
2.0.1

Reply via email to