[libvirt] 0.10.2 virtualport profileid (802.1Qbh) malformed

Hi, I've just upgraded a test libvirtd host to 0.10.2 from 0.9.4 to be able to make use of the new 'virsh net-update add portgroup' live updates, however can't get my private/802.1Qbh interfaces working at all after the upgrade. Trying to start an existing domain or install a new domain after the upgrade gives: "ERROR internal error corrupted profileid string" and a corresponding error in the libvirtd log: "error : virNetDevVPortProfileMerge:381 : internal error corrupted profileid string" I've tried all sorts of profileid combinations and tried defining the virtualport in the domain instead of in the network, to no avail. The source indicates this is to do with a malformed (not null terminated) profile id when merging the port profile. Why would this be happening? Any hints how to debug it? My example network definition: <network> <name>testnet</name> <uuid>76d32a2d-8433-6873-9c15-cdae30e7a632</uuid> <forward dev='eth1' mode='private'> <interface dev='eth1'/> <interface dev='eth2'/> <interface dev='eth3'/> ... </forward> <portgroup name='server1' default='yes'> <virtualport type='802.1Qbh'> <parameters profileid='profile-server1'/> </virtualport> </portgroup> <portgroup name='server2'> <virtualport type='802.1Qbh'> <parameters profileid='profile-server2'/> </virtualport> </portgroup> <portgroup name='server3'> <virtualport type='802.1Qbh'> <parameters profileid='profile-server3'/> </virtualport> </portgroup> </network> and a domain definition which throws an error on start-up: <interface type='network'> <mac address='52:54:00:d1:94:5f'/> <source network='testnet' portgroup='server1'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> Tom

On 10/21/2012 08:02 AM, Tom Lanyon wrote:
Hi,
I've just upgraded a test libvirtd host to 0.10.2 from 0.9.4 to be able to make use of the new 'virsh net-update add portgroup' live updates, however can't get my private/802.1Qbh interfaces working at all after the upgrade.
Trying to start an existing domain or install a new domain after the upgrade gives: "ERROR internal error corrupted profileid string" and a corresponding error in the libvirtd log: "error : virNetDevVPortProfileMerge:381 : internal error corrupted profileid string"
Sigh. Unfortunately, this is a bug that wasn't found until after 0.10.2 was released. It's fixed in the current upstream sources though: commit 83aebf6de4e2902c621edcba65de1d1556bee454 Author: Kyle Mestery <kmestery@cisco.com> Date: Wed Oct 3 15:46:55 2012 -0400 Correct checking of virStrcpyStatic() return value Correct the check for the return value of virStrcpyStatic() when copying port-profile names. Fixes Open vSwitch ports which utilize port-profiles from network definitions. This will be in the next release (1.0.0 in a couple weeks) or you can build the latest upstream (or apply that one patch to the 0.10.2 sources).
participants (2)
-
Laine Stump
-
Tom Lanyon