Re: [Users] Unable to add fresh oVirt host
How about the ouput of brctl show in your ovirt node? It looks like that the right bridge was not created. On 2012-4-27 12:39, Andrey F. wrote: On Thu, Apr 26, 2012 at 8:56 PM, Andrey F. ma3ox...@gmail.com mailto:ma3ox...@gmail.com wrote: Are some more digging. I have discovered the following. It seems that ovirt is not able to create the bridge. What could be off?; could I have missed a configuration step or param somewhere?. Ugh...I've been over-debugging...I was running the script wrong. This was getting caught in my params: /tmp/vds_bootstrap_f9c3a003-b221-4f7e-ae14-5b53ce31ab72.py script cmd = ', hense why script was getting returned in this log line: Fri, 27 Apr 2012 03:33:19 DEBUGgetAddress Entry. url=script When I run the script correctly, I get the VDS compat output per my original post with nothing in the bootstrap log. is in vds_installer script. It passes -v to bootstrap script: Fri, 27 Apr 2012 03:14:12 DEBUGtrying to run /tmp/vds_bootstrap_51b8d414- a8fa-44f9-8613-f7819255d2eb.py script cmd = '/tmp/vds_bootstrap_51b8d414-a8fa-44f9-8613-f7819255d2eb.py -v -O salesforce.com http://salesforce.com/ -t 2012-04-27T03:12:27 http://mgmt.example.com:8080/Components/vds/ node.example.com http://node.example.com/ 51b8d414-a8fa-44f9-8613-f7819255d2eb' I was able to figure that out after changing this: except: print main.__doc__ return 0 to this: except Exception, e: print e Why is the exception not printed? Getting this output would have saved my a lot of debugging time I feel :(. It looks like my version of vdsm from rhn: vdsm-4.9-112.6.el6_2.x86_64 is too old for my ovirt which is at version ovirt-engine-3.1.0_0001-1.8.el6.x86_64 built from source. Note, that I used the following answers file to install ovirt: [general] OVERRIDE_IPTABLES=no HTTP_PORT=8080 HTTPS_PORT=8443 MAC_RANGE=00:1A:4A:A8:7A:00-00:1A:4A:A8:7A:FF ORG_NAME=example.com http://example.com DC_TYPE=NFS CONFIG_NFS=no NFS_MP= ISO_DOMAIN_NAME= DB_REMOTE_INSTALL=local #DB_HOST=localhost #DB_PORT=5432 HOST_FQDN=mgmt.example.com http://mgmt.example.com AUTH_PASS=password DB_LOCAL_PASS=password On Thu, Apr 26, 2012 at 5:31 PM, Andrey F. ma3ox...@gmail.com mailto:ma3ox...@gmail.com wrote: I am attempting to add the first host to a newly setup oVirt. Here is the error message that I am getting: 2012-04-27 00:09:23,485 ERROR [org.ovirt.engine.core.bll.VdsInstaller] (pool-5-thread-50) [57283fb3] Installation of node.example.com http://node.example.com. No meaningful response recieved from Host. (Stage: Running first installation script on Host) The following shows up in engine log before hand or if I try to run the script manually on the oVirt node: /tmp/vds_installer_9b9fdf2c-d3e0-425d-bd05-e4e4e53b6602.py -c 'ssl=true;management_port=54321' -O 'example.com http://example.com' -t 2012-04-27T00:09:22 -f /tmp/firewall.conf.9b9fdf2c-d3e0-425d-bd05-e4e4e53b6602 -p 8080 -b -v http://mgmt.example.com:8080/Components/vds/ http://mgmt.example.com:8080/Components/vds/ node.example.com http://node.example.com 9b9fdf2c-d3e0-425d-bd05-e4e4e53b6602 False BSTRAP component='INSTALLER' status='OK' message='Test platform succeeded'/ BSTRAP component='INSTALLER LIB' status='OK' message='Install library already exists'/ BSTRAP component='INSTALLER' status='OK' message='vds_bootstrap.py already exist'/ Usage: vds_compat.py [-r rev_num] [-O organizationName] [-t systemTime] [-n netconsole_host:port] [-u (seProductRepo) true|false ] [-f firewall_rules_file ] url subject random_num What can I do to figure what could be wrong? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users -- Shu Mingshum...@linux.vnet.ibm.com IBM China Systems and Technology Laboratory ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Unable to add fresh oVirt host
Are some more digging. I have discovered the following. If provision a vdsm node exactly the same way and add it to an old, working ovirt of mine, it works. I've reprovisioned the new ovirt again, the same exact way as before and hit the same problem. Here is what I found on the node logs: # cat vds_installer.283838.log Fri, 27 Apr 2012 03:14:11 DEBUG Start VDS Installation Fri, 27 Apr 2012 03:14:11 DEBUGget_id_line: read line Red Hat Enterprise Linux Server release 6.2 (Santiago). Fri, 27 Apr 2012 03:14:11 DEBUGlsb_release: input line Red Hat Enterprise Linux Server release 6.2 (Santiago). Fri, 27 Apr 2012 03:14:11 DEBUGlsb_release: return: RedHatEnterpriseServer. Fri, 27 Apr 2012 03:14:11 DEBUGBSTRAP component='INSTALLER' status='OK' message='Test platform succeeded'/ Fri, 27 Apr 2012 03:14:11 DEBUGtrying to fetch deployUtil.py script cmd = '/usr/bin/curl -s -k -w %{http_code} -o /tmp/deployUtil.py http://mgmt.example.com:8080/Components/vds/deployUtil.py' Fri, 27 Apr 2012 03:14:12 DEBUGBSTRAP component='INSTALLER LIB' status='OK' message='deployUtil.py download succeeded'/ Fri, 27 Apr 2012 03:14:12 DEBUGtrying to fetch vds_bootstrap.py script cmd = '/usr/bin/curl -s -k -w %{http_code} -o /tmp/vds_bootstrap_51b8d414-a8fa-44f9-8613-f7819255d2eb.py http://mgmt.example.com:8080/Components/vds/vds_bootstrap.py' Fri, 27 Apr 2012 03:14:12 DEBUGBSTRAP component='INSTALLER' status='OK' message='vds_bootstrap.py download succeeded'/ Fri, 27 Apr 2012 03:14:12 DEBUGtrying to run /tmp/vds_bootstrap_51b8d414-a8fa-44f9-8613-f7819255d2eb.py script cmd = '/tmp/vds_bootstrap_51b8d414-a8fa-44f9-8613-f7819255d2eb.py -v -O salesforce.com -t 2012-04-27T03:12:27 http://mgmt.example.com:8080/Components/vds/ node.example.com51b8d414-a8fa-44f9-8613-f7819255d2eb' There is no output after this. vds_boostrap log is empty. if I run the bootstrap command as specified in the log file, I get this as the only failure: BSTRAP component='REQ PACKAGES' status='FAIL' result='SDL.x86_64' message='Setting up Install Process No package SDL.x86_64 available. Error: Nothing to do '/ BSTRAP component='RHEV_INSTALL' status='FAIL'/ After installing the package, I got this: BSTRAP component='SetNetworking' status='FAIL' message='addNetwork error trying to add rhevm bridge'/ BSTRAP component='SetSSHAccess' status='FAIL' message='Failed to retrieve server SSH key.'/ BSTRAP component='RHEV_INSTALL' status='FAIL'/ Finally, I looked at the bootstrap log and found the details: Fri, 27 Apr 2012 03:33:19 DEBUGBridge rhevm not found, need to create it. Fri, 27 Apr 2012 03:33:19 DEBUGgetAddress Entry. url=script Fri, 27 Apr 2012 03:33:19 DEBUGgetAddress return. address=script port=None Fri, 27 Apr 2012 03:33:19 DEBUGmakeBridge begin. Fri, 27 Apr 2012 03:33:19 DEBUG_getMGTIface: read vdc_host_name: script Fri, 27 Apr 2012 03:33:19 DEBUG_getMGTIface: error trying to figure out VDC's IP Fri, 27 Apr 2012 03:33:19 DEBUG_getMGTIface: using vdc_host_name script strVDCIP= None Fri, 27 Apr 2012 03:33:19 DEBUG_getMGTIface VDC IP=None strIface=None Fri, 27 Apr 2012 03:33:19 DEBUGmakeBridge got mgtIface None. This is a routing or resolution issue. Fri, 27 Apr 2012 03:33:19 ERRORmakeBridge errored: out= err=None ret=None Fri, 27 Apr 2012 03:33:19 DEBUGmakeBridge return. Fri, 27 Apr 2012 03:33:19 ERRORaddNetwork error trying to add rhevm bridge Fri, 27 Apr 2012 03:33:19 DEBUGBSTRAP component='SetNetworking' status='FAIL' message='addNetwork error trying to add rhevm bridge'/ Fri, 27 Apr 2012 03:33:19 DEBUGgetAddress Entry. url=script Fri, 27 Apr 2012 03:33:19 DEBUGgetAddress return. address=script port=None Fri, 27 Apr 2012 03:33:19 DEBUGgetRemoteFile start. IP = script port = None fileName = /rhevm.ssh.key.txt Fri, 27 Apr 2012 03:33:19 DEBUG/rhevm.ssh.key.txt failed in HTTPS. Retrying using HTTP. Traceback (most recent call last): File /tmp/deployUtil.py, line 1279, in getRemoteFile sock.connect((IP, nPort)) File string, line 1, in connect gaierror: [Errno -2] Name or service not known Fri, 27 Apr 2012 03:33:19 ERRORFailed to fetch /rhevm.ssh.key.txt using http. Traceback (most recent call last): File /tmp/deployUtil.py, line 1295, in getRemoteFile conn.request(GET, fileName) File /usr/lib64/python2.6/httplib.py, line 914, in request self._send_request(method, url, body, headers) File /usr/lib64/python2.6/httplib.py, line 951, in _send_request self.endheaders() File /usr/lib64/python2.6/httplib.py, line 908, in endheaders self._send_output() File /usr/lib64/python2.6/httplib.py, line 780, in _send_output self.send(msg) File /usr/lib64/python2.6/httplib.py, line 739, in send self.connect() File /usr/lib64/python2.6/httplib.py, line 720, in connect self.timeout) File /usr/lib64/python2.6/socket.py, line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Re: [Users] Unable to add fresh oVirt host
On Thu, Apr 26, 2012 at 8:56 PM, Andrey F. ma3ox...@gmail.com wrote: Are some more digging. I have discovered the following. It seems that ovirt is not able to create the bridge. What could be off?; could I have missed a configuration step or param somewhere?. Ugh...I've been over-debugging...I was running the script wrong. This was getting caught in my params: /tmp/vds_bootstrap_f9c3a003-b221-4f7e-ae14-5b53ce31ab72.py script cmd = ', hense why script was getting returned in this log line: Fri, 27 Apr 2012 03:33:19 DEBUGgetAddress Entry. url=script When I run the script correctly, I get the VDS compat output per my original post with nothing in the bootstrap log. is in vds_installer script. It passes -v to bootstrap script: Fri, 27 Apr 2012 03:14:12 DEBUGtrying to run /tmp/vds_bootstrap_51b8d414- a8fa-44f9-8613-f7819255d2eb.py script cmd = '/tmp/vds_bootstrap_51b8d414-a8fa-44f9-8613-f7819255d2eb.py -v -O salesforce.com -t 2012-04-27T03:12:27 http://mgmt.example.com:8080/Components/vds/ node.example.com51b8d414-a8fa-44f9-8613-f7819255d2eb' I was able to figure that out after changing this: except: print main.__doc__ return 0 to this: except Exception, e: print e Why is the exception not printed? Getting this output would have saved my a lot of debugging time I feel :(. It looks like my version of vdsm from rhn: vdsm-4.9-112.6.el6_2.x86_64 is too old for my ovirt which is at version ovirt-engine-3.1.0_0001-1.8.el6.x86_64 built from source. Note, that I used the following answers file to install ovirt: [general] OVERRIDE_IPTABLES=no HTTP_PORT=8080 HTTPS_PORT=8443 MAC_RANGE=00:1A:4A:A8:7A:00-00:1A:4A:A8:7A:FF ORG_NAME=example.com DC_TYPE=NFS CONFIG_NFS=no NFS_MP= ISO_DOMAIN_NAME= DB_REMOTE_INSTALL=local #DB_HOST=localhost #DB_PORT=5432 HOST_FQDN=mgmt.example.com AUTH_PASS=password DB_LOCAL_PASS=password On Thu, Apr 26, 2012 at 5:31 PM, Andrey F. ma3ox...@gmail.com wrote: I am attempting to add the first host to a newly setup oVirt. Here is the error message that I am getting: 2012-04-27 00:09:23,485 ERROR [org.ovirt.engine.core.bll.VdsInstaller] (pool-5-thread-50) [57283fb3] Installation of node.example.com. No meaningful response recieved from Host. (Stage: Running first installation script on Host) The following shows up in engine log before hand or if I try to run the script manually on the oVirt node: /tmp/vds_installer_9b9fdf2c-d3e0-425d-bd05-e4e4e53b6602.py -c 'ssl=true;management_port=54321' -O 'example.com' -t 2012-04-27T00:09:22 -f /tmp/firewall.conf.9b9fdf2c-d3e0-425d-bd05-e4e4e53b6602 -p 8080 -b -v http://mgmt.example.com:8080/Components/vds/ http://mgmt.example.com:8080/Components/vds/ node.example.com9b9fdf2c-d3e0-425d-bd05-e4e4e53b6602 False BSTRAP component='INSTALLER' status='OK' message='Test platform succeeded'/ BSTRAP component='INSTALLER LIB' status='OK' message='Install library already exists'/ BSTRAP component='INSTALLER' status='OK' message='vds_bootstrap.py already exist'/ Usage: vds_compat.py [-r rev_num] [-O organizationName] [-t systemTime] [-n netconsole_host:port] [-u (seProductRepo) true|false ] [-f firewall_rules_file ] url subject random_num What can I do to figure what could be wrong? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users