[Users] Creating bridge fails on Centos 6.3 node / vdsm
Hello everybody, I installed oVirt Engine on a CentOS 6.3 host (also serving repositories via HTTP and NFS, running puppet, razor and svn as well as xinetd/TFTP, NFS, DNS and DHCP). When I set up a new node with a minimal CentOS 6.3 install and then use the OVirt GUI to install vdsm on it, I get an error setting up the bridging. As a next step, I set up the node again and installed vdsm and vdsm-cli manually before setting up the node via the GUI. This time, I don't see any errors in the event log of the node in ovirt GUI. However, the bridge is not created and the node marked as not operational. When I click on the node and click set up Networks, I can assign the ovirtmgmt network to eth0. When I click on OK, I get Error while executing action Setup Networks: Internal oVirt Engine Error in the gui. The engine.log shows the following messages: 2012-09-05 10:49:03,833 INFO [org.ovirt.engine.core.bll.SetupNetworksCommand] (ajp--127.0.0.1-8702-7) [3e1fa402] Running command: SetupNetworksCommand internal: false. Entities affected : ID: 0c6f61b8-f72b-11e1-add6-1cc1de08c55e Type: VDS 2012-09-05 10:49:03,838 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand] (ajp--127.0.0.1-8702-7) [3e1fa402] START, SetupNetworksVDSCommand(vdsId = 0c6f61b8-f72b-11e1-add6-1cc1de08c55e), log id: 50e63074 2012-09-05 10:49:03,839 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand] (ajp--127.0.0.1-8702-7) [3e1fa402] FINISH, SetupNetworksVDSCommand, log id: 50e63074 2012-09-05 10:49:04,356 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (ajp--127.0.0.1-8702-7) [3e1fa402] org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip 2012-09-05 10:49:04,357 ERROR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (ajp--127.0.0.1-8702-7) [3e1fa402] Command SetupNetworksVDS execution failed. Exception: RuntimeException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip In the installation log /tmp/vdsm-bootstrap-phase1-20120905092647.log on the node, I see these errors Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 386 Bridge ovirtmgmt not found, need to create it. Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 438 getAddress Entry. url=http://mgmt0.be.tng:80/Components/vds/ Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 460 getAddress return. address=mgmt0.be.tng port=80 Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 859 makeBridge begin. Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 343 _getMGTIface: read host name: mgmt0.be.tng Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 350 _getMGTIface: using host name mgmt0.be.tng strIP= 10.4.116.9 Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 356 _getMGTIface IP=10.4.116.9 strIface=eth0 Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 897 makeBridge found the following bridge paramaters: ['BOOTPROTO=dhcp', 'IPV6INIT=yes', 'MTU=1500', 'ONBOOT=yes', 'UUID=79df5c4c-8df0-474b-9e98-22f3fb9b54c9'] Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 122 ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', 'eth0', 'BOOTPROTO=dhcp', 'IPV6INIT=yes', 'MTU=1500', 'ONBOOT=yes', 'UUID=79df5c4c-8df0-474b-9e98-22f3fb9b54c9', 'blockingdhcp=true'] Wed, 05 Sep 2012 09:27:20 DEBUGdeployUtil 126 Specified netmask or gateway but not ip Wed, 05 Sep 2012 09:27:20 DEBUGdeployUtil 127 WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or directory: '/var/run/vdsm/lvm.env' WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead WARNING:root:options ONBOOT is deprecated. Use onboot instead Traceback (most recent call last): File /usr/share/vdsm/configNetwork.py, line 1382, in module main() File /usr/share/vdsm/configNetwork.py, line 1351, in main addNetwork(bridge, **kwargs) File /usr/share/vdsm/configNetwork.py, line 835, in addNetwork bridged=bridged, **options) File /usr/share/vdsm/configNetwork.py, line 771, in _addNetworkValidation Specified netmask or gateway but not ip) ConfigNetworkError: (22, 'Specified netmask or gateway but not ip') Wed, 05 Sep 2012 09:27:20 DEBUGdeployUtil 930 makeBridge Failed to add ovirtmgmt bridge out=Specified netmask or gateway but not ip err=WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or directory: '/var/run/vdsm/lvm.env' WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead WARNING:root:options ONBOOT is deprecated. Use onboot instead Traceback (most recent call last): File /usr/share/vdsm/configNetwork.py, line 1382, in module main() File /usr/share/vdsm/configNetwork.py, line 1351, in main addNetwork(bridge, **kwargs) File /usr/share/vdsm/configNetwork.py, line 835, in addNetwork bridged=bridged, **options) File /usr/share/vdsm/configNetwork.py, line 771, in _addNetworkValidation Specified
Re: [Users] Creating bridge fails on Centos 6.3 node / vdsm
On Wed, Sep 05, 2012 at 08:59:33AM +, Joern Ott wrote: Hello everybody, I installed oVirt Engine on a CentOS 6.3 host (also serving repositories via HTTP and NFS, running puppet, razor and svn as well as xinetd/TFTP, NFS, DNS and DHCP). When I set up a new node with a minimal CentOS 6.3 install and then use the OVirt GUI to install vdsm on it, I get an error setting up the bridging. As a next step, I set up the node again and installed vdsm and vdsm-cli manually before setting up the node via the GUI. This time, I don't see any errors in the event log of the node in ovirt GUI. However, the bridge is not created and the node marked as not operational. When I click on the node and click set up Networks, I can assign the ovirtmgmt network to eth0. When I click on OK, I get Error while executing action Setup Networks: Internal oVirt Engine Error in the gui. The engine.log shows the following messages: 2012-09-05 10:49:03,833 INFO [org.ovirt.engine.core.bll.SetupNetworksCommand] (ajp--127.0.0.1-8702-7) [3e1fa402] Running command: SetupNetworksCommand internal: false. Entities affected : ID: 0c6f61b8-f72b-11e1-add6-1cc1de08c55e Type: VDS 2012-09-05 10:49:03,838 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand] (ajp--127.0.0.1-8702-7) [3e1fa402] START, SetupNetworksVDSCommand(vdsId = 0c6f61b8-f72b-11e1-add6-1cc1de08c55e), log id: 50e63074 2012-09-05 10:49:03,839 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand] (ajp--127.0.0.1-8702-7) [3e1fa402] FINISH, SetupNetworksVDSCommand, log id: 50e63074 2012-09-05 10:49:04,356 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (ajp--127.0.0.1-8702-7) [3e1fa402] org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip 2012-09-05 10:49:04,357 ERROR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (ajp--127.0.0.1-8702-7) [3e1fa402] Command SetupNetworksVDS execution failed. Exception: RuntimeException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException: VDSGenericException: VDSNetworkException: Specified netmask or gateway but not ip In the installation log /tmp/vdsm-bootstrap-phase1-20120905092647.log on the node, I see these errors Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 386 Bridge ovirtmgmt not found, need to create it. Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 438 getAddress Entry. url=http://mgmt0.be.tng:80/Components/vds/ Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 460 getAddress return. address=mgmt0.be.tng port=80 Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 859 makeBridge begin. Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 343 _getMGTIface: read host name: mgmt0.be.tng Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 350 _getMGTIface: using host name mgmt0.be.tng strIP= 10.4.116.9 Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 356 _getMGTIface IP=10.4.116.9 strIface=eth0 Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 897 makeBridge found the following bridge paramaters: ['BOOTPROTO=dhcp', 'IPV6INIT=yes', 'MTU=1500', 'ONBOOT=yes', 'UUID=79df5c4c-8df0-474b-9e98-22f3fb9b54c9'] Wed, 05 Sep 2012 09:27:19 DEBUGdeployUtil 122 ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', 'eth0', 'BOOTPROTO=dhcp', 'IPV6INIT=yes', 'MTU=1500', 'ONBOOT=yes', 'UUID=79df5c4c-8df0-474b-9e98-22f3fb9b54c9', 'blockingdhcp=true'] Wed, 05 Sep 2012 09:27:20 DEBUGdeployUtil 126 Specified netmask or gateway but not ip Wed, 05 Sep 2012 09:27:20 DEBUGdeployUtil 127 WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or directory: '/var/run/vdsm/lvm.env' WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead WARNING:root:options ONBOOT is deprecated. Use onboot instead Traceback (most recent call last): File /usr/share/vdsm/configNetwork.py, line 1382, in module main() File /usr/share/vdsm/configNetwork.py, line 1351, in main addNetwork(bridge, **kwargs) File /usr/share/vdsm/configNetwork.py, line 835, in addNetwork bridged=bridged, **options) File /usr/share/vdsm/configNetwork.py, line 771, in _addNetworkValidation Specified netmask or gateway but not ip) ConfigNetworkError: (22, 'Specified netmask or gateway but not ip') Wed, 05 Sep 2012 09:27:20 DEBUGdeployUtil 930 makeBridge Failed to add ovirtmgmt bridge out=Specified netmask or gateway but not ip err=WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or directory: '/var/run/vdsm/lvm.env' WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead WARNING:root:options ONBOOT is deprecated. Use onboot instead Traceback (most recent call last): File /usr/share/vdsm/configNetwork.py, line 1382, in module main() File /usr/share/vdsm/configNetwork.py, line 1351, in main addNetwork(bridge, **kwargs) File