Bug 830574 - [rhevm] rhev-h 6.3 registration fails as it tries to fetch rhevm.ssh.key.txt while installer generates only engine.ssh.key.txt
Summary: [rhevm] rhev-h 6.3 registration fails as it tries to fetch rhevm.ssh.key.txt ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.1.0
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
: 808876 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-10 17:47 UTC by Haim
Modified: 2016-02-10 19:21 UTC (History)
8 users (show)

Fixed In Version: si6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 20:00:14 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Haim 2012-06-10 17:47:28 UTC
Description of problem:

trying to register RHEV-H 6.3 node to RHEVM and it fails with the following log:


MainThread::DEBUG::2012-06-10 21:01:32,930::deployUtil::1265::root::getRemoteFile start. IP = 10.35.97.65 port = 80 fileName = "/rhevm.ssh.key.txt"
MainThread::DEBUG::2012-06-10 21:01:32,932::deployUtil::1285::root::/rhevm.ssh.key.txt failed in HTTPS. Retrying using HTTP.
Traceback (most recent call last):
  File "/usr/share/vdsm-reg/deployUtil.py", line 1280, in getRemoteFile
  File "/usr/share/vdsm-reg/deployUtil.py", line 1124, in getSSLSocket
  File "/usr/lib64/python2.6/ssl.py", line 338, in wrap_socket
  File "/usr/lib64/python2.6/ssl.py", line 120, in __init__
  File "/usr/lib64/python2.6/ssl.py", line 279, in do_handshake
SSLError: [Errno 1] _ssl.c:490: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
MainThread::ERROR::2012-06-10 21:01:32,936::deployUtil::1310::root::Failed to fetch /rhevm.ssh.key.txt status 404

as you can see, it tries to download rhevm.ssh.key.txt and fails on 404 (file not found).

on rhevm machine, the only ssh key file that gets generated during installation is:

engine.ssh.key.txt

under:

/usr/share/ovirt-engine/resources/jboss/ROOT.war/engine.ssh.key.txt

for sure, its RHEVM bug (installer) since, we support both 3.0 and 3.1 hosts, also, deployUtil is set to accept the following dict:

REMOTE_SSH_KEY_FILE = ('/engine.ssh.key.txt', '/rhevm.ssh.key.txt')

Comment 2 Itamar Heim 2012-06-10 19:59:48 UTC
I'd say we are missing a symbolic link, but it won't do anyway...

Comment 3 Juan Hernández 2012-06-11 08:37:36 UTC
I think this was solved with the changes introduced for Fedora 17, as the server accepts both URLs now. See the following commit:

http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blobdiff;f=backend/manager/modules/root/src/main/webapp/WEB-INF/web.xml;h=1bfc6f9b6b782b84db98c6efd2deabfe86a27522;hp=68e0c4f8c52b6e79bbbdebc3f63a3cdde11d8ad7;hb=22032921e004c69eded531503e5b314bc8f87366;hpb=40d531204023b4c5233c20196fea2f5209f4d111

Take into account that there is still one file only, engine.ssh.key.txt, but the server understands both URLs. To verify it type these URLs in your browser, both should give exactly the same result:

http://rhevm.example.com:8080/engine.ssh.key.txt
http://rhevm.example.com:8080/rhevm.ssh.key.txt

Comment 4 Alex Lourie 2012-07-09 15:01:15 UTC
*** Bug 808876 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.