Ask Your Question

unexpected virtualport type -1

asked 2014-05-06 09:41:10 -0600

Brenne gravatar image


I'm trying ironic on devstack. My localrc configuration is the same like described in Deploying Ironic with devstack

Unfortunately I get the errors:

error: Failed to define network from /dev/fd/63
error: XML error: unexpected virtualport type -1

Output of before the errors occur:

++ create_bridge_and_vms
++ sudo su ubuntu -c /home/ubuntu/devstack/tools/ironic/scripts/setup-network
+ LIBVIRT_CONNECT_URI=qemu:///system
+++ dirname /home/ubuntu/devstack/tools/ironic/scripts/setup-network
++ cd /home/ubuntu/devstack/tools/ironic/scripts/..
++ pwd
+ TOP_DIR=/home/ubuntu/devstack/tools/ironic
+ export VIRSH_DEFAULT_CONNECT_URI=qemu:///system
+ sudo ovs-vsctl list-br
+ grep 'brbm$'
+ virsh net-list
+ grep 'brbm '
+ virsh net-list --inactive
+ grep 'brbm '
+ virsh net-define /dev/fd/63
++ sed s/brbm/brbm/ /home/ubuntu/devstack/tools/ironic/templates/brbm.xml

The brbm.xml file seems to be okay. The output of virsh net-list --inactive is

Name                 State      Autostart
default              inactive   yes

And if I call the command virsh-netdefine /dev/fd/63 manually it fails due to "No such file or directory". Any ideas? Seems to be somthing with network configuration? Do I need special network settings for ironic?

edit retag flag offensive close merge delete


Hi Brenne, I am also facing the same problem on a fresh Ubuntu 12.04 server and devstack. Please let me know if you come across any solution. I'll be sure to do the same ..

Gokul Praveen gravatar imageGokul Praveen ( 2014-05-13 04:59:48 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-15 10:45:49 -0600

Brenne gravatar image

I solved the problem. Or lets say at least the script run without any error having the same settings like described in the manuals. I used ubuntu 14.04 server instead of 12.04...

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-05-06 09:41:10 -0600

Seen: 243 times

Last updated: May 15 '14