Hide Forgot
Description of problem: [OVS] - Allow to configure also a prefix for a network static ip. Currently we are not allowing to configure a prefix for ovs network static ip, only netmask. jsonrpc/7::ERROR::2016-09-08 10:42:53,396::API::1518::vds::(setupNetworks) Must specify netmask to configure ip for network. Traceback (most recent call last): File "/usr/share/vdsm/API.py", line 1515, in setupNetworks supervdsm.getProxy().setupNetworks(networks, bondings, options) File "/usr/lib/python2.7/site-packages/vdsm/supervdsm.py", line 53, in __call__ return callMethod() File "/usr/lib/python2.7/site-packages/vdsm/supervdsm.py", line 51, in <lambda> **kwargs) File "<string>", line 2, in setupNetworks File "/usr/lib64/python2.7/multiprocessing/managers.py", line 773, in _callmethod raise convert_to_error(kind, result) ConfigNetworkError: (22, 'Must specify netmask to configure ip for network.') Version-Release number of selected component (if applicable): 4.1.0-0.0.master.20160907231315.gitfa04f87.el7.centos How reproducible: 100 Steps to Reproduce: 1. Add host to OVS type cluster(4.1) 2. Attach network to host via setup networks dialog and set a static ip with prefix 24 Actual results: Error while executing action HostSetupNetworks: Illegal or Incomplete IP Address - When setting netmask it works Expected results: Netmask and prefix are allowed(like on legacy type)
please add supervdsm.log, including the setupNetworks() call.
Created attachment 1198994 [details] supervdsm log
Could you pinpoint me to the log line with setupNetworks command that is lacking prefix (what is the network name)? I fail to find it in the logs.
MainProcess|jsonrpc/7::DEBUG::2016-09-08 13:47:39,354::api::247::root::(setupNetworks) Setting up network according to configuration: networks:{'ovs-net1': {'ipv6autoconf': True, 'nic': 'enp6s0', 'ipaddr': '5.5.5.5', 'prefix': '24', 'mtu': 1500, 'switch': 'ovs', 'dhcpv6': False, 'STP': 'no', 'bridged': 'true'}}, bondings:{}, options:{'connectivityCheck': 'true', 'connectivityTimeout': 120} MainProcess|jsonrpc/7::DEBUG::2016-09-08 13:47:39,354::api::268::root::(_setup_networks) Validating configuration MainProcess|jsonrpc/7::INFO::2016-09-08 13:47:40,475::netconfpersistence::58::root::(setNetwork) Adding network ovs-net1({'ipv6autoconf': True, 'nameservers': [], 'nic': 'enp6s0', 'ipaddr': '5.5.5.5', 'switch': 'ovs', 'mtu': 1500, 'prefix': '24', 'dhcpv6': False, 'stp': False, 'bridged': True, 'defaultRoute': False} It's not lacking prefix, it is sent, but failing. Network name is 'ovs-net1'
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.
Verified on - vdsm-4.18.16-1.el7ev.x86_64 and 4.0.6-0.1.el7ev