Bonding NICs results in errors in ncftool and virsh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netcfg |
New
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
netcf (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description of problem: Bonded two NICs and can't work with bond0 via virsh or ncftool
Version-Release number of selected component (if applicable):
* netcf 1:0.2.8-1ubuntu1
$ virsh -V
Virsh command line tool of libvirt 1.3.1
See web site at http://
Compiled with support for:
Hypervisors: QEMU/KVM LXC UML Xen LibXL OpenVZ VMWare VirtualBox ESX Test
Networking: Remote Network Bridging Interface netcf Nwfilter VirtualPort
Storage: Dir Disk Filesystem SCSI Multipath iSCSI LVM RBD Sheepdog ZFS
Miscellaneous: Daemon Nodedev AppArmor Secrets Debug Readline Modular
How reproducible: 100%
Steps to Reproduce:
1. Bond two NIC
2. Run "virsh iface-edit bond0"
3. Get error: error: internal error: could not get interface XML description: unspecified error
or
2. run "ncftool -d dumpxml bond0"
3. Get error: error: unspecified error
Actual results:
Get errors no XML output or editing
Expected results:
With virsh: Go into vim to edit XML
With ncftool: Get XML
Additional info:
$ virsh --debug=0 iface-edit bond0
iface-edit: interface(optdata): bond0
iface-edit: found option <interface>: bond0
iface-edit: <interface> trying as interface NAME
error: internal error: could not get interface XML description: unspecified error
-------
$ virsh iface-dumpxml bond0
<interface type='bond' name='bond0'>
<protocol family='ipv4'>
<ip address=
</protocol>
<protocol family='ipv6'>
<ip address=
</protocol>
<link speed='2000' state='up'/>
<bond>
<interface type='ethernet' name='eno1'>
<link speed='1000' state='up'/>
<mac address=
</interface>
<interface type='ethernet' name='eno2'>
<link speed='1000' state='up'/>
<mac address=
</interface>
</bond>
</interface>
-------
$ more /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eno1
allow-bond eno1
iface eno1 inet manual
bond-master bond0
auto eno2
allow-bond eno2
iface eno2 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
address 192.168.1.16
gateway 192.168.1.1
netmask 255.255.255.0
bond-mode 4
bond-miimon 100
bond-lacp-rate 1
bond-slaves eno1 eno2
pre-up (sleep 1 && ifup eno1) &
pre-up (sleep 1 && ifup eno2) &
-------
$ virsh iface-dumpxml eno1
<interface type='ethernet' name='eno1'>
<link speed='1000' state='up'/>
<mac address=
</interface>
-------
$ virsh iface-dumpxml eno2
<interface type='ethernet' name='eno2'>
<link speed='1000' state='up'/>
<mac address=
</interface>
-------
Notes:
* Mac addresses on eno1=eno2=bond0
* I can run "virsh iface-dumpxml bond0" (see above)
* This affects the Virtual Machine Manager GUI so you can't edit network config that way either.
* I tried removing all comments from /etc/network/
affects: | ubuntu → libvirt (Ubuntu) |
I also opened a bug against virsh directly at https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1344552 but the comments say this bug is a problem with the Ubuntu implementation specifically.