[Users] Error on Setting up VLAN

Hi everyone and happy new year first ! I'm setting up a test host using VLAN It holds 2 VM's so I - Stopped the two VMs and removed the "public_10" network from the NIC - edited the "public_10" network, checked "enable VLAN tagging" and set 10 as VLAN identifier - assigned the "new" edited network to the VMs NIC - edited the HOST network, clicked the pencil on the relevant NIC and clicked "sync network" since it showed the network as "not synced" Ovirt tried to setup the network but ended with "cannot up interface" error and I lost contact with the node Ovirt is 3.3.2 on Fedora 19 (it is AIO) Here is the log: 53244 Thread-52989::DEBUG::2014-01-01 16:58:16,938::BindingXMLRPC::974::vds::(wrapper) client [172.16.0.5]::call setupNetworks with ({'public_10': {'nic': 'p5p1', 'vlan': '10', 'ipaddr': '10.0.0.5', 'netmask': '255.255.255.0', 'STP': 'no', 'bridged': 'true', 'gateway': '10.0.0.254'}}, {}, {'connectivityCheck': 'true', 'connectivityTimeout': 120}) {} flowID [49756c97] 53245 Thread-52925::DEBUG::2014-01-01 16:56:39,737::BindingXMLRPC::974::vds::(wrapper) client [172.16.0.5]::call ping with () {} flowID [64a8776] 53246 Thread-52925::DEBUG::2014-01-01 16:56:39,738::BindingXMLRPC::981::vds::(wrapper) return ping with {'status': {'message': 'Done', 'code': 0}} 53247 Thread-52924::ERROR::2014-01-01 16:56:39,802::API::1262::vds::(setupNetworks) bridge public_10 has interfaces set(['vnet0', 'vnet2']) connected 53248 Traceback (most recent call last): 53249 File "/usr/share/vdsm/API.py", line 1260, in setupNetworks 53250 supervdsm.getProxy().setupNetworks(networks, bondings, options) 53251 File "/usr/share/vdsm/supervdsm.py", line 50, in __call__ 53252 return callMethod() 53253 File "/usr/share/vdsm/supervdsm.py", line 48, in <lambda> 53254 **kwargs) 53255 File "<string>", line 2, in setupNetworks 53256 File "/usr/lib64/python2.7/multiprocessing/managers.py", line 773, in _callmethod 53257 raise convert_to_error(kind, result) 53258 ConfigNetworkError: (28, "bridge public_10 has interfaces set(['vnet0', 'vnet2']) connected") 53259 Thread-52924::DEBUG::2014-01-01 16:56:39,808::BindingXMLRPC::981::vds::(wrapper) return setupNetworks with {'status': {'message': "bridge public_10 has interfaces set(['vnet0', 'vnet2']) connected", 'code': 28}} ifcfg-p5p1 (before loosing connection) [root@hypervisor ~]# cat /etc/sysconfig/network-scripts/ifcfg-p5p1 DEVICE=p5p1 ONBOOT=yes HWADDR=00:50:fc:85:9b:76 BRIDGE=public_10 NM_CONTROLLED=no STP=no ifcfg-public_10 DEVICE=public_10 ONBOOT=yes TYPE=Bridge DELAY=0 NM_CONTROLLED=no STP=no IPADDR=10.0.0.5 NETMASK=255.255.255.0 DEFROUTE=yes GATEWAY=10.0.0.254 PEERDNS=yes DNS1=8.8.8.8 DNS2=8.8.4.4 How may I amend the configuration files? Any hint? Thank you Best regards

Looks like bridge public_10 still has vNICs connected to it. What is the output for: brctl show public_10 If you select the host and enter the Setup Networks dialog, does the physical NIC have a network on it? If so, remove it (I know you said you did this but it looks like that operation somehow silently failed). After removing all networks on the host, the public_10 bridge shouldn't exist. Also, virsh net-list shouldn't list the public_10 network. If setupNetworks shows a blank NIC, but the public_10 bridge or libvirt networks exist, try: Removing /etc/sysconfig/network-scripts/ifcfg-public_10 Type virsh <enter>, then: virsh net-undefine public_10 virsh net-destroy public_10 Login details: vdsm@ovirt shibboleth After the ifcfg file and libvirt networks are removed, go back to the GUI and select 'Save network config', then restart the host. At this point the host should come up - No ifcfg file for the network, no libvirt network, no bridge. The setup networks dialog in the GUI should show no network on the physical NIC. Now make sure (again) that the public_10 network is a VLAN network, and attach public_10 to the NIC. That operation should succeed. Assaf Muller, Cloud Networking Engineer Red Hat ----- Original Message ----- From: "Alessandro Bianchi" <a.bianchi@skynet.it> To: users@ovirt.org Sent: Wednesday, January 1, 2014 7:01:17 PM Subject: [Users] Error on Setting up VLAN Hi everyone and happy new year first ! I'm setting up a test host using VLAN It holds 2 VM's so I - Stopped the two VMs and removed the "public_10" network from the NIC - edited the "public_10" network, checked "enable VLAN tagging" and set 10 as VLAN identifier - assigned the "new" edited network to the VMs NIC - edited the HOST network, clicked the pencil on the relevant NIC and clicked "sync network" since it showed the network as "not synced" Ovirt tried to setup the network but ended with "cannot up interface" error and I lost contact with the node Ovirt is 3.3.2 on Fedora 19 (it is AIO) Here is the log: 53244 Thread-52989::DEBUG::2014-01-01 16:58:16,938::BindingXMLRPC::974::vds::(wrapper) client [172.16.0.5]::call setupNetworks with ({'public_10': {'nic': 'p5p1', 'vlan': '10', 'ipaddr': '10.0.0.5', 'netmask': '255.255.255.0', 'STP': 'no', 'bridged': 'true', 'gateway': '10.0.0.254'}}, {}, {'connectivityCheck': 'true', 'connectivityTimeout': 120}) {} flowID [49756c97] 53245 Thread-52925::DEBUG::2014-01-01 16:56:39,737::BindingXMLRPC::974::vds::(wrapper) client [172.16.0.5]::call ping with () {} flowID [64a8776] 53246 Thread-52925::DEBUG::2014-01-01 16:56:39,738::BindingXMLRPC::981::vds::(wrapper) return ping with {'status': {'message': 'Done', 'code': 0}} 53247 Thread-52924::ERROR::2014-01-01 16:56:39,802::API::1262::vds::(setupNetworks) bridge public_10 has interfaces set(['vnet0', 'vnet2']) connected 53248 Traceback (most recent call last): 53249 File "/usr/share/vdsm/API.py", line 1260, in setupNetworks 53250 supervdsm.getProxy().setupNetworks(networks, bondings, options) 53251 File "/usr/share/vdsm/supervdsm.py", line 50, in __call__ 53252 return callMethod() 53253 File "/usr/share/vdsm/supervdsm.py", line 48, in <lambda> 53254 **kwargs) 53255 File "<string>", line 2, in setupNetworks 53256 File "/usr/lib64/python2.7/multiprocessing/managers.py", line 773, in _callmethod 53257 raise convert_to_error(kind, result) 53258 ConfigNetworkError: (28, "bridge public_10 has interfaces set(['vnet0', 'vnet2']) connected") 53259 Thread-52924::DEBUG::2014-01-01 16:56:39,808::BindingXMLRPC::981::vds::(wrapper) return setupNetworks with {'status': {'message': "bridge public_10 has interfaces set(['vnet0', 'vnet2']) connected", 'code': 28}} ifcfg-p5p1 (before loosing connection) [root@hypervisor ~]# cat /etc/sysconfig/network-scripts/ifcfg-p5p1 DEVICE=p5p1 ONBOOT=yes HWADDR=00:50:fc:85:9b:76 BRIDGE=public_10 NM_CONTROLLED=no STP=no ifcfg-public_10 DEVICE=public_10 ONBOOT=yes TYPE=Bridge DELAY=0 NM_CONTROLLED=no STP=no IPADDR=10.0.0.5 NETMASK=255.255.255.0 DEFROUTE=yes GATEWAY=10.0.0.254 PEERDNS=yes DNS1=8.8.8.8 DNS2=8.8.4.4 How may I amend the configuration files? Any hint? Thank you Best regards _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Alessandro Bianchi
-
Assaf Muller