[Users] ovirt 3.2 networking setup problems

Yuriy Demchenko demchenko.ya at gmail.com
Tue Feb 26 11:25:13 UTC 2013


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}}
>




More information about the Users mailing list