Bug 753571

Summary: [ovirt-node] deployutil.py - rhevm.ssh.key.txt should be changed to engine.ssh.key.txt (currently, hard-coded)
Product: [Retired] oVirt Reporter: Haim <hateya>
Component: vdsmAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, bazulay, danken, iheim, mgoldboi, srevivo, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-19 16:42:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 752464    

Description Haim 2011-11-13 14:02:48 UTC
Description of problem:

scenario:

host installation fails. 

reason:

in deployutil.py, REMOTE_SSH_KEY_FILE is set hard-coded to rhevm.ssh.key.txt, where in ovirt-node host installation, file name was changed to engine.ssh.key.txt

git://git.fedorahosted.org 


Determining IP information for rhevm... done.


Sun, 13 Nov 2011 13:26:02 DEBUG    makeBridge return.
Sun, 13 Nov 2011 13:26:02 DEBUG    waitRouteRestore Entry. maxCount=60 targetIP:http://10.16.144.104:8080
Sun, 13 Nov 2011 13:26:02 DEBUG    ['/usr/bin/curl', '-s', '--connect-timeout', '10', '--max-filesize', '10', 'http://10.16.144.104:8080']
Sun, 13 Nov 2011 13:26:02 DEBUG    
Sun, 13 Nov 2011 13:26:02 DEBUG    
Sun, 13 Nov 2011 13:26:02 DEBUG     count=0
out=
err=
ret=63
Sun, 13 Nov 2011 13:26:03 DEBUG    waitRouteRestore Return. fReturn=True
Sun, 13 Nov 2011 13:26:03 DEBUG    <BSTRAP component='SetNetworking' status='OK' message='Created rhevm bridge.'/>
Sun, 13 Nov 2011 13:26:03 DEBUG    getAddress Entry. url=http://10.16.144.104:8080/
Sun, 13 Nov 2011 13:26:03 DEBUG    getAddress return. address=10.16.144.104 port=8080
Sun, 13 Nov 2011 13:26:03 DEBUG    getRemoteFile start. IP = 10.16.144.104 port = 8080 fileName = "/rhevm.ssh.key.txt"
Sun, 13 Nov 2011 13:26:03 DEBUG    /rhevm.ssh.key.txt failed in HTTPS. Retrying using HTTP.
Traceback (most recent call last):
  File "/tmp/deployUtil.py", line 1288, in getRemoteFile
    conn.sock = getSSLSocket(sock, certPath)
  File "/tmp/deployUtil.py", line 1132, in getSSLSocket
    cert_reqs=ssl.CERT_REQUIRED)
  File "/usr/lib64/python2.7/ssl.py", line 372, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib64/python2.7/ssl.py", line 132, in __init__
    ciphers)
SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
Sun, 13 Nov 2011 13:26:03 ERROR    Failed to fetch /rhevm.ssh.key.txt status 404
Sun, 13 Nov 2011 13:26:03 DEBUG    getRemoteFile end.
Sun, 13 Nov 2011 13:26:03 DEBUG    <BSTRAP component='SetSSHAccess' status='FAIL' message='Failed to retrieve server SSH key.'/>
Sun, 13 Nov 2011 13:26:03 ERROR    setSSHAccess test failed
Sun, 13 Nov 2011 13:26:03 DEBUG    <BSTRAP component='RHEV_INSTALL' status='FAIL'/>
Sun, 13 Nov 2011 13:26:03 DEBUG    **** End VDS Validation ****

Comment 1 Douglas Schilling Landgraf 2011-11-23 12:36:19 UTC
Patch available at: http://gerrit.ovirt.org/#patch,sidebyside,311,2,vdsm_reg/deployUtil.py.in

or 

http://gerrit.ovirt.org/311