[Openstack] Spawning Issue with Juno, Neutron, Xen and Libvirt

Anthony PERARD anthony.perard at citrix.com
Thu Jul 30 14:28:05 UTC 2015


On Fri, Jul 24, 2015 at 06:14:44PM -0400, Geoffrey Tran wrote:
> Hi Anthony,
> 
> > Otherwise, to work arround this bug we could modify the script to set down
> > the interface before trying to rename it:
> > In /etc/xen/scripts/vif-common.sh, search the function rename_vif() and add
> > in the begining this:
> >   ip link set "$dev" down
> > And don't forget to remove the "exit 0" in /etc/xen/scripts/vif-bridge that
> > we've added earlier.
> 
> I removed the exit line and added the ip link command to the rename_vif()
> function, however, I then receive the same initial error and the instance
> fails to boot:
> 
> libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-bridge online [-1] exited with error status 1
> libxl: error: libxl_device.c:1085:device_hotplug_child_death_cb: script: ip link set vif4.0 name tap90f11177-24 failed
> libxl: debug: libxl_event.c:618:libxl__ev_xswatch_deregister: watch w=0x7f37c800a050: deregister unregistered
> libxl: error: libxl_create.c:1226:domcreate_attach_vtpms: unable to add nic devices

Did you put the line before ip link set $dev name $vifname ?

The function should look like this:
rename_vif() {
    local dev=$1
    local vifname=$2

    # if a custom vifname was chosen and a link with that desired name
    # already exists, then stop, before messing up whatever is using
    # that interface (e.g. another running domU) because it's likely a
    # configuration error
    if ip link show "$vifname" >&/dev/null
    then
        fatal "Cannot rename interface $dev. An interface with name $vifname already exists."
    fi
    ip link set "$dev" down
    do_or_die ip link set "$dev" name "$vifname"
}

-- 
Anthony PERARD




More information about the Openstack mailing list