[Users] ovirt 3.2 networking setup problems

Hi, I'm testing ovirt 3.2 on centos 6.3 (from dreyou repo) and have a problems setting up networks: 1. - clean install of ovirt-engine, added a host (6 NICs, only 1 configured with static ip before adding it to ovirt) - set up bonding for ovirtmgmt from 2 NICs - em1+em2 - set up 2 additional networks ("trunk" with no vlanid, "vlan50" with vlanid=50), attached it to cluster - trying to set up host networks - assigned "trunk" to one of unused NIC, "vlan50" to another, boot protocol in both - "none" and when i'm trying to apply changes - i get "Specified netmask or gateway but not ip" What is wrong? why the hell it thinks i pass some netmask/gw in first place? I dont need any ip configuration on this networks, i'll be using them only for VM's 2. when i'm trying to team NIC's in bonds, i've got choice from only 3 bonds: "bond0", "bond1", "bond4" - why is that list is fixed? If I've allready defined bond0+bond1 prior adding host to ovirt (via kickstart), even if they aren't used - choice list in ovirt host networks is short to "bond4" and trying to bond more interfaces ends up with "there no bonds available" Please help me figure this issues out ovirt-engine.log:
2013-02-26 11:42:45,772 INFO [org.ovirt.engine.core.bll.network.host.SetupNetworksCommand] (ajp--127.0.0.1-8702-2) [800e96b] Running command: SetupNetworksCommand internal: false. Entities affected : ID: d1181ea2-936b-498d-be3d-9ce16aacfb19 Type: VDS 2013-02-26 11:42:45,781 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand] (ajp--127.0.0.1-8702-2) [800e96b] START, SetupNetworksVDSCommand(HostName = its-host2, HostId = d1181ea2-936b-498d-be3d-9ce16aacfb19, force=false, checkConnectivity=true, conectivityTimeout=120, networks=[trunk {id=6a48a2c6-a028-4825-8fcf-cbc869dc5c76, description=null, subnet=null, gateway=null, type=null, vlanId=null, stp=false, dataCenterId=5849b030-626e-47cb-ad90-3ce782d831b3, mtu=0, vmNetwork=true, cluster=NetworkCluster {id={clusterId=null, networkId=null}, status=NON_OPERATIONAL, display=false, required=true}}, vlan50 {id=4f1564e4-0ba2-454c-a511-9566a1bf50a9, description=vm vlan50, subnet=null, gateway=null, type=null, vlanId=50, stp=false, dataCenterId=5849b030-626e-47cb-ad90-3ce782d831b3, mtu=0, vmNetwork=true, cluster=NetworkCluster {id={clusterId=null, networkId=null}, status=NON_OPERATIONAL, display=false, required=true}}], bonds=[], interfaces=[bond0 {id=61d4d61f-45a2-4ac4-84e8-f60077831603, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=bond0, macAddress=90:b1:1c:ac:1b:0e, networkName=ovirtmgmt, bondOptions=mode=6, bootProtocol=STATIC_IP, address=192.168.10.132, subnet=255.255.255.0, gateway=192.168.10.1, mtu=1500, bridged=true, type=2, networkImplementationDetails={inSync=true, managed=true}}, p3p4 {id=9f584135-7c20-459b-8582-4c4c2568d6ea, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=p3p4, macAddress=90:b1:1c:ac:1b:15, networkName=null, bondName=null, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=0, type=0, networkImplementationDetails=null}, em2 {id=40d2f7e3-8b34-4211-9009-101653947ef3, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=em2, macAddress=90:B1:1C:AC:1B:11, networkName=null, bondName=bond0, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=10000, type=0, networkImplementationDetails=null}, p3p3 {id=c7e50eca-c14e-4e9d-8edc-f4ab0fbfa4e1, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=p3p3, macAddress=90:b1:1c:ac:1b:14, networkName=null, bondName=null, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=0, type=0, networkImplementationDetails=null}, em1 {id=8481bb51-9020-463f-b6d6-af0770d3f3b0, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=em1, macAddress=90:B1:1C:AC:1B:0E, networkName=null, bondName=bond0, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=10000, type=0, networkImplementationDetails=null}, p3p2 {id=5a97a377-775e-4ab9-aa01-0bd0d8cdcca1, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=p3p2, macAddress=90:b1:1c:ac:1b:13, networkName=null, bondName=null, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=0, type=0, networkImplementationDetails=null}, p3p1 {id=6554620d-5e30-433b-9f8d-d4828fec5ae0, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=p3p1, macAddress=90:b1:1c:ac:1b:12, networkName=trunk, bondName=null, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=0, bridged=true, speed=0, type=0, networkImplementationDetails=null}, p3p2.50 {id=null, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, macAddress=null, networkName=vlan50, vlanId=50, bonded=null, bondName=null, bondOptions=null, bootProtocol=NONE, address=null, subnet=null, gateway=null, mtu=0, bridged=true, speed=null, type=0, networkImplementationDetails=null}], removedNetworks=[], removedBonds=[]), log id: 34ba6cbd 2013-02-26 11:42:45,858 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand] (ajp--127.0.0.1-8702-2) [800e96b] FINISH, SetupNetworksVDSCommand, log id: 34ba6cbd 2013-02-26 11:42:46,375 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (ajp--127.0.0.1-8702-2) [800e96b] org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip 2013-02-26 11:42:46,384 ERROR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (ajp--127.0.0.1-8702-2) [800e96b] Command SetupNetworksVDS execution failed. Exception: VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip 2013-02-26 11:42:46,391 ERROR [org.ovirt.engine.core.bll.network.host.SetupNetworksCommand] (ajp--127.0.0.1-8702-2) [800e96b] Command org.ovirt.engine.core.bll.network.host.SetupNetworksCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip
vdsm.log on host:
Thread-403::DEBUG::2013-02-26 11:42:45,863::BindingXMLRPC::913::vds::(wrapper) client [192.168.10.147]::call setupNetworks with ({'vlan50': {'nic': 'p3p2', 'vlan': '50', 'STP': 'no', 'bridged': 'true'}, 'trunk': {'nic': 'p3p1', 'STP': 'no', 'bridged': 'true'}}, {}, {'connectivityCheck': 'true', 'connectivityTimeout': 120}) {} Thread-404::DEBUG::2013-02-26 11:42:45,872::BindingXMLRPC::913::vds::(wrapper) client [192.168.10.147]::call ping with () {} Thread-404::DEBUG::2013-02-26 11:42:45,872::BindingXMLRPC::920::vds::(wrapper) return ping with {'status': {'message': 'Done', 'code': 0}} MainProcess|Thread-403::DEBUG::2013-02-26 11:42:45,923::configNetwork::1310::setupNetworks::(setupNetworks) Setting up network according to configuration: networks:{'vlan50': {'nic': 'p3p2', 'vlan': '50', 'STP': 'no', 'bridged': 'true'}, 'trunk': {'nic': 'p3p1', 'STP': 'no', 'bridged': 'true'}}, bondings:{}, options:{'connectivityCheck': 'true', 'connectivityTimeout': 120} MainProcess|Thread-403::DEBUG::2013-02-26 11:42:45,923::configNetwork::1314::root::(setupNetworks) Validating configuration MainProcess|Thread-403::DEBUG::2013-02-26 11:42:45,972::configNetwork::1317::setupNetworks::(setupNetworks) Applying... MainProcess|Thread-403::DEBUG::2013-02-26 11:42:46,130::configNetwork::1362::setupNetworks::(setupNetworks) Adding network 'vlan50' MainProcess|Thread-403::DEBUG::2013-02-26 11:42:46,183::configNetwork::887::root::(addNetwork) validating network... MainProcess|Thread-403::ERROR::2013-02-26 11:42:46,183::configNetwork::1382::setupNetworks::(setupNetworks) (22, 'Specified netmask or gateway but not ip') Traceback (most recent call last): File "/usr/share/vdsm/configNetwork.py", line 1364, in setupNetworks implicitBonding=True, **d) File "/usr/share/vdsm/configNetwork.py", line 891, in addNetwork bridged=bridged, **options) File "/usr/share/vdsm/configNetwork.py", line 815, in _addNetworkValidation "Specified netmask or gateway but not ip") ConfigNetworkError: (22, 'Specified netmask or gateway but not ip') MainProcess|Thread-403::ERROR::2013-02-26 11:42:46,191::supervdsmServer::80::SuperVdsm.ServerCallback::(wrapper) Error in setupNetworks Traceback (most recent call last): File "/usr/share/vdsm/supervdsmServer.py", line 78, in wrapper return func(*args, **kwargs) File "/usr/share/vdsm/supervdsmServer.py", line 177, in setupNetworks return configNetwork.setupNetworks(networks, bondings, **options) File "/usr/share/vdsm/configNetwork.py", line 1364, in setupNetworks implicitBonding=True, **d) File "/usr/share/vdsm/configNetwork.py", line 891, in addNetwork bridged=bridged, **options) File "/usr/share/vdsm/configNetwork.py", line 815, in _addNetworkValidation "Specified netmask or gateway but not ip") ConfigNetworkError: (22, 'Specified netmask or gateway but not ip') Thread-403::ERROR::2013-02-26 11:42:46,192::API::1217::vds::(setupNetworks) Specified netmask or gateway but not ip Traceback (most recent call last): File "/usr/share/vdsm/API.py", line 1215, in setupNetworks supervdsm.getProxy().setupNetworks(networks, bondings, options) File "/usr/share/vdsm/supervdsm.py", line 81, in __call__ return callMethod() File "/usr/share/vdsm/supervdsm.py", line 72, in <lambda> **kwargs) File "<string>", line 2, in setupNetworks File "/usr/lib64/python2.6/multiprocessing/managers.py", line 740, in _callmethod raise convert_to_error(kind, result) ConfigNetworkError: (22, 'Specified netmask or gateway but not ip') Thread-403::DEBUG::2013-02-26 11:42:46,192::BindingXMLRPC::920::vds::(wrapper) return setupNetworks with {'status': {'message': 'Specified netmask or gateway but not ip', 'code': 22}}
-- Yuriy Demchenko

i've made some additional research on problem #1: it seems that /usr/share/vdsm/configNetwork.py treats "gateway=null" value as true, so setting the error flag in "_addNetworkValidation" method there's a check at line 813:
if netmask or gateway: raise ConfigNetworkError(ne.ERR_BAD_ADDR, "Specified netmask or gateway but not ip")
as "ipaddr", sent by engine = "", its check evaluated as false, then "gateway" evaluated, but it contains value (word "null"), so i presume evaluated as true and exception is raised. I've added my notes to https://bugzilla.redhat.com/show_bug.cgi?id=911957 Yuriy Demchenko On 02/26/2013 12:37 PM, Yuriy Demchenko wrote:
Hi,
I'm testing ovirt 3.2 on centos 6.3 (from dreyou repo) and have a problems setting up networks: 1. - clean install of ovirt-engine, added a host (6 NICs, only 1 configured with static ip before adding it to ovirt) - set up bonding for ovirtmgmt from 2 NICs - em1+em2 - set up 2 additional networks ("trunk" with no vlanid, "vlan50" with vlanid=50), attached it to cluster - trying to set up host networks - assigned "trunk" to one of unused NIC, "vlan50" to another, boot protocol in both - "none" and when i'm trying to apply changes - i get "Specified netmask or gateway but not ip" What is wrong? why the hell it thinks i pass some netmask/gw in first place? I dont need any ip configuration on this networks, i'll be using them only for VM's
2. when i'm trying to team NIC's in bonds, i've got choice from only 3 bonds: "bond0", "bond1", "bond4" - why is that list is fixed? If I've allready defined bond0+bond1 prior adding host to ovirt (via kickstart), even if they aren't used - choice list in ovirt host networks is short to "bond4" and trying to bond more interfaces ends up with "there no bonds available"
Please help me figure this issues out
ovirt-engine.log:
2013-02-26 11:42:45,772 INFO [org.ovirt.engine.core.bll.network.host.SetupNetworksCommand] (ajp--127.0.0.1-8702-2) [800e96b] Running command: SetupNetworksCommand internal: false. Entities affected : ID: d1181ea2-936b-498d-be3d-9ce16aacfb19 Type: VDS 2013-02-26 11:42:45,781 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand] (ajp--127.0.0.1-8702-2) [800e96b] START, SetupNetworksVDSCommand(HostName = its-host2, HostId = d1181ea2-936b-498d-be3d-9ce16aacfb19, force=false, checkConnectivity=true, conectivityTimeout=120, networks=[trunk {id=6a48a2c6-a028-4825-8fcf-cbc869dc5c76, description=null, subnet=null, gateway=null, type=null, vlanId=null, stp=false, dataCenterId=5849b030-626e-47cb-ad90-3ce782d831b3, mtu=0, vmNetwork=true, cluster=NetworkCluster {id={clusterId=null, networkId=null}, status=NON_OPERATIONAL, display=false, required=true}}, vlan50 {id=4f1564e4-0ba2-454c-a511-9566a1bf50a9, description=vm vlan50, subnet=null, gateway=null, type=null, vlanId=50, stp=false, dataCenterId=5849b030-626e-47cb-ad90-3ce782d831b3, mtu=0, vmNetwork=true, cluster=NetworkCluster {id={clusterId=null, networkId=null}, status=NON_OPERATIONAL, display=false, required=true}}], bonds=[], interfaces=[bond0 {id=61d4d61f-45a2-4ac4-84e8-f60077831603, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=bond0, macAddress=90:b1:1c:ac:1b:0e, networkName=ovirtmgmt, bondOptions=mode=6, bootProtocol=STATIC_IP, address=192.168.10.132, subnet=255.255.255.0, gateway=192.168.10.1, mtu=1500, bridged=true, type=2, networkImplementationDetails={inSync=true, managed=true}}, p3p4 {id=9f584135-7c20-459b-8582-4c4c2568d6ea, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=p3p4, macAddress=90:b1:1c:ac:1b:15, networkName=null, bondName=null, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=0, type=0, networkImplementationDetails=null}, em2 {id=40d2f7e3-8b34-4211-9009-101653947ef3, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=em2, macAddress=90:B1:1C:AC:1B:11, networkName=null, bondName=bond0, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=10000, type=0, networkImplementationDetails=null}, p3p3 {id=c7e50eca-c14e-4e9d-8edc-f4ab0fbfa4e1, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=p3p3, macAddress=90:b1:1c:ac:1b:14, networkName=null, bondName=null, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=0, type=0, networkImplementationDetails=null}, em1 {id=8481bb51-9020-463f-b6d6-af0770d3f3b0, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=em1, macAddress=90:B1:1C:AC:1B:0E, networkName=null, bondName=bond0, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=10000, type=0, networkImplementationDetails=null}, p3p2 {id=5a97a377-775e-4ab9-aa01-0bd0d8cdcca1, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=p3p2, macAddress=90:b1:1c:ac:1b:13, networkName=null, bondName=null, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=1500, bridged=false, speed=0, type=0, networkImplementationDetails=null}, p3p1 {id=6554620d-5e30-433b-9f8d-d4828fec5ae0, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, name=p3p1, macAddress=90:b1:1c:ac:1b:12, networkName=trunk, bondName=null, bootProtocol=NONE, address=, subnet=, gateway=null, mtu=0, bridged=true, speed=0, type=0, networkImplementationDetails=null}, p3p2.50 {id=null, vdsId=d1181ea2-936b-498d-be3d-9ce16aacfb19, macAddress=null, networkName=vlan50, vlanId=50, bonded=null, bondName=null, bondOptions=null, bootProtocol=NONE, address=null, subnet=null, gateway=null, mtu=0, bridged=true, speed=null, type=0, networkImplementationDetails=null}], removedNetworks=[], removedBonds=[]), log id: 34ba6cbd 2013-02-26 11:42:45,858 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand] (ajp--127.0.0.1-8702-2) [800e96b] FINISH, SetupNetworksVDSCommand, log id: 34ba6cbd 2013-02-26 11:42:46,375 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (ajp--127.0.0.1-8702-2) [800e96b] org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip 2013-02-26 11:42:46,384 ERROR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (ajp--127.0.0.1-8702-2) [800e96b] Command SetupNetworksVDS execution failed. Exception: VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip 2013-02-26 11:42:46,391 ERROR [org.ovirt.engine.core.bll.network.host.SetupNetworksCommand] (ajp--127.0.0.1-8702-2) [800e96b] Command org.ovirt.engine.core.bll.network.host.SetupNetworksCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip
vdsm.log on host:
Thread-403::DEBUG::2013-02-26 11:42:45,863::BindingXMLRPC::913::vds::(wrapper) client [192.168.10.147]::call setupNetworks with ({'vlan50': {'nic': 'p3p2', 'vlan': '50', 'STP': 'no', 'bridged': 'true'}, 'trunk': {'nic': 'p3p1', 'STP': 'no', 'bridged': 'true'}}, {}, {'connectivityCheck': 'true', 'connectivityTimeout': 120}) {} Thread-404::DEBUG::2013-02-26 11:42:45,872::BindingXMLRPC::913::vds::(wrapper) client [192.168.10.147]::call ping with () {} Thread-404::DEBUG::2013-02-26 11:42:45,872::BindingXMLRPC::920::vds::(wrapper) return ping with {'status': {'message': 'Done', 'code': 0}} MainProcess|Thread-403::DEBUG::2013-02-26 11:42:45,923::configNetwork::1310::setupNetworks::(setupNetworks) Setting up network according to configuration: networks:{'vlan50': {'nic': 'p3p2', 'vlan': '50', 'STP': 'no', 'bridged': 'true'}, 'trunk': {'nic': 'p3p1', 'STP': 'no', 'bridged': 'true'}}, bondings:{}, options:{'connectivityCheck': 'true', 'connectivityTimeout': 120} MainProcess|Thread-403::DEBUG::2013-02-26 11:42:45,923::configNetwork::1314::root::(setupNetworks) Validating configuration MainProcess|Thread-403::DEBUG::2013-02-26 11:42:45,972::configNetwork::1317::setupNetworks::(setupNetworks) Applying... MainProcess|Thread-403::DEBUG::2013-02-26 11:42:46,130::configNetwork::1362::setupNetworks::(setupNetworks) Adding network 'vlan50' MainProcess|Thread-403::DEBUG::2013-02-26 11:42:46,183::configNetwork::887::root::(addNetwork) validating network... MainProcess|Thread-403::ERROR::2013-02-26 11:42:46,183::configNetwork::1382::setupNetworks::(setupNetworks) (22, 'Specified netmask or gateway but not ip') Traceback (most recent call last): File "/usr/share/vdsm/configNetwork.py", line 1364, in setupNetworks implicitBonding=True, **d) File "/usr/share/vdsm/configNetwork.py", line 891, in addNetwork bridged=bridged, **options) File "/usr/share/vdsm/configNetwork.py", line 815, in _addNetworkValidation "Specified netmask or gateway but not ip") ConfigNetworkError: (22, 'Specified netmask or gateway but not ip') MainProcess|Thread-403::ERROR::2013-02-26 11:42:46,191::supervdsmServer::80::SuperVdsm.ServerCallback::(wrapper) Error in setupNetworks Traceback (most recent call last): File "/usr/share/vdsm/supervdsmServer.py", line 78, in wrapper return func(*args, **kwargs) File "/usr/share/vdsm/supervdsmServer.py", line 177, in setupNetworks return configNetwork.setupNetworks(networks, bondings, **options) File "/usr/share/vdsm/configNetwork.py", line 1364, in setupNetworks implicitBonding=True, **d) File "/usr/share/vdsm/configNetwork.py", line 891, in addNetwork bridged=bridged, **options) File "/usr/share/vdsm/configNetwork.py", line 815, in _addNetworkValidation "Specified netmask or gateway but not ip") ConfigNetworkError: (22, 'Specified netmask or gateway but not ip') Thread-403::ERROR::2013-02-26 11:42:46,192::API::1217::vds::(setupNetworks) Specified netmask or gateway but not ip Traceback (most recent call last): File "/usr/share/vdsm/API.py", line 1215, in setupNetworks supervdsm.getProxy().setupNetworks(networks, bondings, options) File "/usr/share/vdsm/supervdsm.py", line 81, in __call__ return callMethod() File "/usr/share/vdsm/supervdsm.py", line 72, in <lambda> **kwargs) File "<string>", line 2, in setupNetworks File "/usr/lib64/python2.6/multiprocessing/managers.py", line 740, in _callmethod raise convert_to_error(kind, result) ConfigNetworkError: (22, 'Specified netmask or gateway but not ip') Thread-403::DEBUG::2013-02-26 11:42:46,192::BindingXMLRPC::920::vds::(wrapper) return setupNetworks with {'status': {'message': 'Specified netmask or gateway but not ip', 'code': 22}}

On Tue, Feb 26, 2013 at 03:25:13PM +0400, Yuriy Demchenko wrote:
i've made some additional research on problem #1: it seems that /usr/share/vdsm/configNetwork.py treats "gateway=null" value as true, so setting the error flag in "_addNetworkValidation" method there's a check at line 813:
if netmask or gateway: raise ConfigNetworkError(ne.ERR_BAD_ADDR, "Specified netmask or gateway but not ip")
as "ipaddr", sent by engine = "", its check evaluated as false, then "gateway" evaluated, but it contains value (word "null"), so i presume evaluated as true and exception is raised.
I believe that this issue is due to code introduced by dreyou. http://www.dreyou.org/ovirt/vdsm32.patch diff --git a/vdsm/configNetwork.py b/vdsm/configNetwork.py index 53debfa..c8a80f1 100755 --- a/vdsm/configNetwork.py +++ b/vdsm/configNetwork.py @@ -873,6 +873,11 @@ def addNetwork(network, vlan=None, bonding=None, nics=None, ipaddr=None, _netinfo = netinfo.NetInfo() bridged = utils.tobool(bridged) + # Hack here, netmask may be not defined, if this happen, + # set netmask to 255.255.255.0 + if not netmask: + netmask = "255.255.255.0" + if mtu: mtu = int(mtu) I do not know the motivation for it - I hope that Dreyou himself can help. Dreyou, others - I would very much appreciate it if you send such patches to upstream gerrit.ovirt.org. They deserve discussion and hopefully - incorporation into mainline vdsm.
I've added my notes to https://bugzilla.redhat.com/show_bug.cgi?id=911957
Yuriy Demchenko
On 02/26/2013 12:37 PM, Yuriy Demchenko wrote:
Hi,
I'm testing ovirt 3.2 on centos 6.3 (from dreyou repo) and have a problems setting up networks: 1. - clean install of ovirt-engine, added a host (6 NICs, only 1 configured with static ip before adding it to ovirt) - set up bonding for ovirtmgmt from 2 NICs - em1+em2 - set up 2 additional networks ("trunk" with no vlanid, "vlan50" with vlanid=50), attached it to cluster - trying to set up host networks - assigned "trunk" to one of unused NIC, "vlan50" to another, boot protocol in both - "none" and when i'm trying to apply changes - i get "Specified netmask or gateway but not ip" What is wrong? why the hell it thinks i pass some netmask/gw in first place? I dont need any ip configuration on this networks, i'll be using them only for VM's
2. when i'm trying to team NIC's in bonds, i've got choice from only 3 bonds: "bond0", "bond1", "bond4" - why is that list is fixed? If I've allready defined bond0+bond1 prior adding host to ovirt (via kickstart), even if they aren't used - choice list in ovirt host networks is short to "bond4" and trying to bond more interfaces ends up with "there no bonds available"
Genady has reported this issue to me yesterday :-(. It is fixed by http://gerrit.ovirt.org/12447 and deseves a rebuild of vdsm. Please confirm that my patch solves this issue.

Tried to revert that patch - and it helped. So it seems the problem is because that patch... Thanks for help! one less mystery to solve :) Yuriy Demchenko On 02/26/2013 04:16 PM, Dan Kenigsberg wrote:
On Tue, Feb 26, 2013 at 03:25:13PM +0400, Yuriy Demchenko wrote:
i've made some additional research on problem #1: it seems that /usr/share/vdsm/configNetwork.py treats "gateway=null" value as true, so setting the error flag in "_addNetworkValidation" method there's a check at line 813:
if netmask or gateway: raise ConfigNetworkError(ne.ERR_BAD_ADDR, "Specified netmask or gateway but not ip")
as "ipaddr", sent by engine = "", its check evaluated as false, then "gateway" evaluated, but it contains value (word "null"), so i presume evaluated as true and exception is raised. I believe that this issue is due to code introduced by dreyou. http://www.dreyou.org/ovirt/vdsm32.patch
diff --git a/vdsm/configNetwork.py b/vdsm/configNetwork.py index 53debfa..c8a80f1 100755 --- a/vdsm/configNetwork.py +++ b/vdsm/configNetwork.py @@ -873,6 +873,11 @@ def addNetwork(network, vlan=None, bonding=None, nics=None, ipaddr=None, _netinfo = netinfo.NetInfo() bridged = utils.tobool(bridged)
+ # Hack here, netmask may be not defined, if this happen, + # set netmask to 255.255.255.0 + if not netmask: + netmask = "255.255.255.0" + if mtu: mtu = int(mtu)
I do not know the motivation for it - I hope that Dreyou himself can help.
Dreyou, others - I would very much appreciate it if you send such patches to upstream gerrit.ovirt.org. They deserve discussion and hopefully - incorporation into mainline vdsm.
I've added my notes to https://bugzilla.redhat.com/show_bug.cgi?id=911957
Yuriy Demchenko
On 02/26/2013 12:37 PM, Yuriy Demchenko wrote:
Hi,
I'm testing ovirt 3.2 on centos 6.3 (from dreyou repo) and have a problems setting up networks: 1. - clean install of ovirt-engine, added a host (6 NICs, only 1 configured with static ip before adding it to ovirt) - set up bonding for ovirtmgmt from 2 NICs - em1+em2 - set up 2 additional networks ("trunk" with no vlanid, "vlan50" with vlanid=50), attached it to cluster - trying to set up host networks - assigned "trunk" to one of unused NIC, "vlan50" to another, boot protocol in both - "none" and when i'm trying to apply changes - i get "Specified netmask or gateway but not ip" What is wrong? why the hell it thinks i pass some netmask/gw in first place? I dont need any ip configuration on this networks, i'll be using them only for VM's
2. when i'm trying to team NIC's in bonds, i've got choice from only 3 bonds: "bond0", "bond1", "bond4" - why is that list is fixed? If I've allready defined bond0+bond1 prior adding host to ovirt (via kickstart), even if they aren't used - choice list in ovirt host networks is short to "bond4" and trying to bond more interfaces ends up with "there no bonds available" Genady has reported this issue to me yesterday :-(. It is fixed by http://gerrit.ovirt.org/12447 and deseves a rebuild of vdsm. Please confirm that my patch solves this issue.

Hi, I'm still cant solve this issue - "There are no available Bonds" I've done clean install of ovirt-3.2 (from dreyou repo), added freshly-kickstarted host. In my kickstart I set up 2 interfaces em1/em2 as slaves to bond0 (mode=6), which is slave to bridge "ovirtmgmt" (just so i dont need to click more buttons in webadmin setting up bond for mgmt network). After that, on page "setup host networks" I can see correct scheme for ovirtmgmt network and 4 other unused NICs. I want to set up another 2 bonds from that unused NICs, but here's the problem strikes: when trying to bond 2 NICs together i have to chose bond name - and there's only 1 choise - "bond4", I pick that and trying to bond the rest 2 NICs - I get error message "There are no available Bonds". And nothing in engine.log or vdsm.log Why is that and how to solve it? Yuriy Demchenko On 02/26/2013 12:37 PM, Yuriy Demchenko wrote:
2. when i'm trying to team NIC's in bonds, i've got choice from only 3 bonds: "bond0", "bond1", "bond4" - why is that list is fixed? If I've allready defined bond0+bond1 prior adding host to ovirt (via kickstart), even if they aren't used - choice list in ovirt host networks is short to "bond4" and trying to bond more interfaces ends up with "there no bonds available"

Could you ssh to the host and do: cat /sys/class/net/bonding_masters There is a limitation on ovirt-3.2 that only the default bridges can be used. If you don't have enough of them, you can always create the needed bridge doing echo "+bondN" > /sys/class/net/bonding_masters where N is the bridge you want to create. It would also be helpful to see the contents of doing vdsClient -s 0 getVdsCaps Best, Toni ----- Original Message -----
From: "Yuriy Demchenko" <demchenko.ya@gmail.com> To: "users" <users@ovirt.org> Sent: Wednesday, March 6, 2013 12:17:28 PM Subject: Re: [Users] ovirt 3.2 networking setup problems
Hi,
I'm still cant solve this issue - "There are no available Bonds"
I've done clean install of ovirt-3.2 (from dreyou repo), added freshly-kickstarted host. In my kickstart I set up 2 interfaces em1/em2 as slaves to bond0 (mode=6), which is slave to bridge "ovirtmgmt" (just so i dont need to click more buttons in webadmin setting up bond for mgmt network). After that, on page "setup host networks" I can see correct scheme for ovirtmgmt network and 4 other unused NICs. I want to set up another 2 bonds from that unused NICs, but here's the problem strikes: when trying to bond 2 NICs together i have to chose bond name - and there's only 1 choise - "bond4", I pick that and trying to bond the rest 2 NICs - I get error message "There are no available Bonds". And nothing in engine.log or vdsm.log
Why is that and how to solve it?
Yuriy Demchenko
On 02/26/2013 12:37 PM, Yuriy Demchenko wrote:
2. when i'm trying to team NIC's in bonds, i've got choice from only 3 bonds: "bond0", "bond1", "bond4" - why is that list is fixed? If I've allready defined bond0+bond1 prior adding host to ovirt (via kickstart), even if they aren't used - choice list in ovirt host networks is short to "bond4" and trying to bond more interfaces ends up with "there no bonds available"
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Thanks! that helped i've managed to add another bond via 'echo "+bondN" > /sys/class/net/bonding_masters' output from commands you asked:
# vdsClient -s 0 getVdsCaps HBAInventory = {'iSCSI': [{'InitiatorName': 'iqn.1994-05.com.redhat:7681c664f86a'}], 'FC': [{'wwpn': '200190b11cac1b09', 'wwnn': '200090b11cac1b09', 'model': 'LPe1205-M - Emulex LPe1205-M 8Gb 2-port PCIe Fibre Channel Adapter'}, {'wwpn': '200290b11cac1b09', 'wwnn': '200090b11cac1b09', 'model': 'LPe1205-M - Emulex LPe1205-M 8Gb 2-port PCIe Fibre Channel Adapter'}]} ISCSIInitiatorName = iqn.1994-05.com.redhat:7681c664f86a bondings = {'bond4': {'addr': '', 'cfg': {'DEVICE': 'bond4', 'NM_CONTROLLED': 'no', 'ONBOOT': 'yes', 'BONDING_OPTS': 'mode=6'}, 'mtu': '1500', 'netmask': '', 'slaves': ['p3p1', 'p3p3'], 'hwaddr': '90:b1:1c:ac:1b:05'}, 'bond0': {'addr': '', 'cfg': {'BRIDGE': 'ovirtmgmt', 'NM_CONTROLLED': 'no', 'STP': 'no', 'BONDING_OPTS': 'mode=6', 'DEVICE': 'bond0', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'slaves': ['em1', 'em2'], 'hwaddr': '90:b1:1c:ac:1b:01'}} bridges = {'ovirtmgmt': {'addr': '192.168.10.130', 'cfg': {'IPADDR': '192.168.10.130', 'ONBOOT': 'yes', 'DELAY': '0', 'NM_CONTROLLED': 'no', 'NETMASK': '255.255.255.0', 'BOOTPROTO': 'none', 'STP': 'no', 'DEVICE': 'ovirtmgmt', 'TYPE': 'Bridge', 'GATEWAY': '192.168.10.1'}, 'mtu': '1500', 'netmask': '255.255.255.0', 'stp': 'off', 'ports': ['bond0']}} clusterLevels = ['3.0', '3.1', '3.2'] cpuCores = 16 cpuFlags = fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,pdpe1gb,rdtscp,lm,constant_tsc,arch_perfmon,pebs,bts,rep_good,xtopology,nonstop_tsc,aperfmperf,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,smx,est,tm2,ssse3,cx16,xtpr,pdcm,dca,sse4_1,sse4_2,x2apic,popcnt,aes,xsave,avx,lahf_lm,ida,arat,xsaveopt,pln,pts,dts,tpr_shadow,vnmi,flexpriority,ept,vpid,model_Nehalem,model_Conroe,model_Penryn,model_Westmere,model_SandyBridge cpuModel = Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz cpuSockets = 2 cpuSpeed = 2599.849 cpuThreads = 32 emulatedMachines = ['rhel6.3.0', 'pc', 'rhel6.2.0', 'rhel6.1.0', 'rhel6.0.0', 'rhel5.5.0', 'rhel5.4.4', 'rhel5.4.0'] guestOverhead = 65 hooks = {} kvmEnabled = true lastClient = 192.168.10.147 lastClientIface = ovirtmgmt management_ip = memSize = 32062 netConfigDirty = False networks = {'ovirtmgmt': {'iface': 'ovirtmgmt', 'addr': '192.168.10.130', 'cfg': {'IPADDR': '192.168.10.130', 'ONBOOT': 'yes', 'DELAY': '0', 'NM_CONTROLLED': 'no', 'NETMASK': '255.255.255.0', 'BOOTPROTO': 'none', 'STP': 'no', 'DEVICE': 'ovirtmgmt', 'TYPE': 'Bridge', 'GATEWAY': '192.168.10.1'}, 'mtu': '1500', 'netmask': '255.255.255.0', 'stp': 'off', 'bridged': True, 'gateway': '192.168.10.1', 'ports': ['bond0']}} nics = {'em1': {'permhwaddr': '90:B1:1C:AC:1B:01', 'addr': '', 'cfg': {'SLAVE': 'yes', 'NM_CONTROLLED': 'no', 'MASTER': 'bond0', 'DEVICE': 'em1', 'STP': 'no', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:01', 'speed': 10000}, 'em2': {'permhwaddr': '90:B1:1C:AC:1B:04', 'addr': '', 'cfg': {'SLAVE': 'yes', 'NM_CONTROLLED': 'no', 'MASTER': 'bond0', 'DEVICE': 'em2', 'STP': 'no', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:04', 'speed': 10000}, 'p3p4': {'addr': '', 'cfg': {'DEVICE': 'p3p4', 'HWADDR': '90:B1:1C:AC:1B:08', 'ONBOOT': 'no', 'NM_CONTROLLED': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:08', 'speed': 0}, 'p3p3': {'permhwaddr': '90:B1:1C:AC:1B:07', 'addr': '', 'cfg': {'SLAVE': 'yes', 'ONBOOT': 'yes', 'NM_CONTROLLED': 'no', 'MASTER': 'bond4', 'HWADDR': '90:b1:1c:ac:1b:07', 'DEVICE': 'p3p3'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:07', 'speed': 1000}, 'p3p2': {'addr': '', 'cfg': {'DEVICE': 'p3p2', 'HWADDR': '90:B1:1C:AC:1B:06', 'ONBOOT': 'no', 'NM_CONTROLLED': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:06', 'speed': 0}, 'p3p1': {'permhwaddr': '90:B1:1C:AC:1B:05', 'addr': '', 'cfg': {'SLAVE': 'yes', 'ONBOOT': 'yes', 'NM_CONTROLLED': 'no', 'MASTER': 'bond4', 'HWADDR': '90:b1:1c:ac:1b:05', 'DEVICE': 'p3p1'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:05', 'speed': 1000}} operatingSystem = {'release': '3.el6.centos.9', 'version': '6', 'name': 'RHEL'} packages2 = {'kernel': {'release': '279.22.1.el6.x86_64', 'buildtime': 1360105846.0, 'version': '2.6.32'}, 'spice-server': {'release': '10.el6', 'buildtime': 1340375889, 'version': '0.10.1'}, 'vdsm': {'release': '0.31.20.el6', 'buildtime': 1361952052, 'version': '4.10.3'}, 'qemu-kvm': {'release': '2.295.el6.10', 'buildtime': 1357897281, 'version': '0.12.1.2'}, 'libvirt': {'release': '21.el6_3.8', 'buildtime': 1359401311, 'version': '0.9.10'}, 'qemu-img': {'release': '2.295.el6.10', 'buildtime': 1357897281, 'version': '0.12.1.2'}, 'mom': {'release': '1.el6', 'buildtime': 1349470062, 'version': '0.3.0'}} reservedMem = 321 software_revision = 0.31 software_version = 4.10 supportedENGINEs = ['3.0', '3.1'] supportedProtocols = ['2.2', '2.3'] uuid = 4C4C4544-004E-5910-804D-C6C04F47354A version_name = Snow Man vlans = {} vmTypes = ['kvm'] before echo: # cat /sys/class/net/bonding_masters bond0 bond4 after: # cat /sys/class/net/bonding_masters bond0 bond4 bond1
Yuriy Demchenko On 03/06/2013 04:28 PM, Antoni Segura Puimedon wrote:
Could you ssh to the host and do:
cat /sys/class/net/bonding_masters
There is a limitation on ovirt-3.2 that only the default bridges can be used. If you don't have enough of them, you can always create the needed bridge doing
echo "+bondN" > /sys/class/net/bonding_masters where N is the bridge you want to create.
It would also be helpful to see the contents of doing
vdsClient -s 0 getVdsCaps

----- Original Message -----
From: "Yuriy Demchenko" <demchenko.ya@gmail.com> To: "Antoni Segura Puimedon" <asegurap@redhat.com> Cc: "oVirt Mailing List" <users@ovirt.org> Sent: Thursday, March 7, 2013 7:54:52 AM Subject: Re: [Users] ovirt 3.2 networking setup problems
Thanks! that helped
Great! Btw, there is a patch about to hit git master that will remove the current limitation.
i've managed to add another bond via 'echo "+bondN" > /sys/class/net/bonding_masters'
output from commands you asked:
# vdsClient -s 0 getVdsCaps HBAInventory = {'iSCSI': [{'InitiatorName': 'iqn.1994-05.com.redhat:7681c664f86a'}], 'FC': [{'wwpn': '200190b11cac1b09', 'wwnn': '200090b11cac1b09', 'model': 'LPe1205-M - Emulex LPe1205-M 8Gb 2-port PCIe Fibre Channel Adapter'}, {'wwpn': '200290b11cac1b09', 'wwnn': '200090b11cac1b09', 'model': 'LPe1205-M - Emulex LPe1205-M 8Gb 2-port PCIe Fibre Channel Adapter'}]} ISCSIInitiatorName = iqn.1994-05.com.redhat:7681c664f86a bondings = {'bond4': {'addr': '', 'cfg': {'DEVICE': 'bond4', 'NM_CONTROLLED': 'no', 'ONBOOT': 'yes', 'BONDING_OPTS': 'mode=6'}, 'mtu': '1500', 'netmask': '', 'slaves': ['p3p1', 'p3p3'], 'hwaddr': '90:b1:1c:ac:1b:05'}, 'bond0': {'addr': '', 'cfg': {'BRIDGE': 'ovirtmgmt', 'NM_CONTROLLED': 'no', 'STP': 'no', 'BONDING_OPTS': 'mode=6', 'DEVICE': 'bond0', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'slaves': ['em1', 'em2'], 'hwaddr': '90:b1:1c:ac:1b:01'}} bridges = {'ovirtmgmt': {'addr': '192.168.10.130', 'cfg': {'IPADDR': '192.168.10.130', 'ONBOOT': 'yes', 'DELAY': '0', 'NM_CONTROLLED': 'no', 'NETMASK': '255.255.255.0', 'BOOTPROTO': 'none', 'STP': 'no', 'DEVICE': 'ovirtmgmt', 'TYPE': 'Bridge', 'GATEWAY': '192.168.10.1'}, 'mtu': '1500', 'netmask': '255.255.255.0', 'stp': 'off', 'ports': ['bond0']}} clusterLevels = ['3.0', '3.1', '3.2'] cpuCores = 16 cpuFlags = fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,pdpe1gb,rdtscp,lm,constant_tsc,arch_perfmon,pebs,bts,rep_good,xtopology,nonstop_tsc,aperfmperf,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,smx,est,tm2,ssse3,cx16,xtpr,pdcm,dca,sse4_1,sse4_2,x2apic,popcnt,aes,xsave,avx,lahf_lm,ida,arat,xsaveopt,pln,pts,dts,tpr_shadow,vnmi,flexpriority,ept,vpid,model_Nehalem,model_Conroe,model_Penryn,model_Westmere,model_SandyBridge cpuModel = Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz cpuSockets = 2 cpuSpeed = 2599.849 cpuThreads = 32 emulatedMachines = ['rhel6.3.0', 'pc', 'rhel6.2.0', 'rhel6.1.0', 'rhel6.0.0', 'rhel5.5.0', 'rhel5.4.4', 'rhel5.4.0'] guestOverhead = 65 hooks = {} kvmEnabled = true lastClient = 192.168.10.147 lastClientIface = ovirtmgmt management_ip = memSize = 32062 netConfigDirty = False networks = {'ovirtmgmt': {'iface': 'ovirtmgmt', 'addr': '192.168.10.130', 'cfg': {'IPADDR': '192.168.10.130', 'ONBOOT': 'yes', 'DELAY': '0', 'NM_CONTROLLED': 'no', 'NETMASK': '255.255.255.0', 'BOOTPROTO': 'none', 'STP': 'no', 'DEVICE': 'ovirtmgmt', 'TYPE': 'Bridge', 'GATEWAY': '192.168.10.1'}, 'mtu': '1500', 'netmask': '255.255.255.0', 'stp': 'off', 'bridged': True, 'gateway': '192.168.10.1', 'ports': ['bond0']}} nics = {'em1': {'permhwaddr': '90:B1:1C:AC:1B:01', 'addr': '', 'cfg': {'SLAVE': 'yes', 'NM_CONTROLLED': 'no', 'MASTER': 'bond0', 'DEVICE': 'em1', 'STP': 'no', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:01', 'speed': 10000}, 'em2': {'permhwaddr': '90:B1:1C:AC:1B:04', 'addr': '', 'cfg': {'SLAVE': 'yes', 'NM_CONTROLLED': 'no', 'MASTER': 'bond0', 'DEVICE': 'em2', 'STP': 'no', 'ONBOOT': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:04', 'speed': 10000}, 'p3p4': {'addr': '', 'cfg': {'DEVICE': 'p3p4', 'HWADDR': '90:B1:1C:AC:1B:08', 'ONBOOT': 'no', 'NM_CONTROLLED': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:08', 'speed': 0}, 'p3p3': {'permhwaddr': '90:B1:1C:AC:1B:07', 'addr': '', 'cfg': {'SLAVE': 'yes', 'ONBOOT': 'yes', 'NM_CONTROLLED': 'no', 'MASTER': 'bond4', 'HWADDR': '90:b1:1c:ac:1b:07', 'DEVICE': 'p3p3'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:07', 'speed': 1000}, 'p3p2': {'addr': '', 'cfg': {'DEVICE': 'p3p2', 'HWADDR': '90:B1:1C:AC:1B:06', 'ONBOOT': 'no', 'NM_CONTROLLED': 'yes'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:06', 'speed': 0}, 'p3p1': {'permhwaddr': '90:B1:1C:AC:1B:05', 'addr': '', 'cfg': {'SLAVE': 'yes', 'ONBOOT': 'yes', 'NM_CONTROLLED': 'no', 'MASTER': 'bond4', 'HWADDR': '90:b1:1c:ac:1b:05', 'DEVICE': 'p3p1'}, 'mtu': '1500', 'netmask': '', 'hwaddr': '90:b1:1c:ac:1b:05', 'speed': 1000}} operatingSystem = {'release': '3.el6.centos.9', 'version': '6', 'name': 'RHEL'} packages2 = {'kernel': {'release': '279.22.1.el6.x86_64', 'buildtime': 1360105846.0, 'version': '2.6.32'}, 'spice-server': {'release': '10.el6', 'buildtime': 1340375889, 'version': '0.10.1'}, 'vdsm': {'release': '0.31.20.el6', 'buildtime': 1361952052, 'version': '4.10.3'}, 'qemu-kvm': {'release': '2.295.el6.10', 'buildtime': 1357897281, 'version': '0.12.1.2'}, 'libvirt': {'release': '21.el6_3.8', 'buildtime': 1359401311, 'version': '0.9.10'}, 'qemu-img': {'release': '2.295.el6.10', 'buildtime': 1357897281, 'version': '0.12.1.2'}, 'mom': {'release': '1.el6', 'buildtime': 1349470062, 'version': '0.3.0'}} reservedMem = 321 software_revision = 0.31 software_version = 4.10 supportedENGINEs = ['3.0', '3.1'] supportedProtocols = ['2.2', '2.3'] uuid = 4C4C4544-004E-5910-804D-C6C04F47354A version_name = Snow Man vlans = {} vmTypes = ['kvm'] before echo: # cat /sys/class/net/bonding_masters bond0 bond4 after: # cat /sys/class/net/bonding_masters bond0 bond4 bond1
Yuriy Demchenko
On 03/06/2013 04:28 PM, Antoni Segura Puimedon wrote:
Could you ssh to the host and do:
cat /sys/class/net/bonding_masters
There is a limitation on ovirt-3.2 that only the default bridges can be used. If you don't have enough of them, you can always create the needed bridge doing
echo "+bondN" > /sys/class/net/bonding_masters where N is the bridge you want to create.
It would also be helpful to see the contents of doing
vdsClient -s 0 getVdsCaps
participants (3)
-
Antoni Segura Puimedon
-
Dan Kenigsberg
-
Yuriy Demchenko