bhuvnesh chaudhary created AMBARI-13825:
-------------------------------------------

             Summary: Exchange of keys should be done during start phase (not 
during install)
                 Key: AMBARI-13825
                 URL: https://issues.apache.org/jira/browse/AMBARI-13825
             Project: Ambari
          Issue Type: Bug
          Components: stacks
            Reporter: bhuvnesh chaudhary
            Priority: Minor


ssh-exkeys is setup to be executed as part of installation for the service. 
There is no install time dependencies for HAWQ components, so if hawq master 
install is triggered first, it will execute ssh keys with slaves but incase if 
hawq segment install is not invoked by ambari yet, gpadmin user will not be 
present and hawq master install may fail during it while exchanging keys. 

We need to put exchange keys during start of master service and not install.
{noformat}
/usr/local/hawq/ext/python/lib/python2.6/getpass.py:79: GetPassWarning: Can not 
control echo on the terminal.
  passwd = fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
  *** Enter password for ip-10-32-39-31.ore1.vpc.pivotal.io: [STEP 1 of 5] 
create local ID and authorize on local host
  ... /home/gpadmin/.ssh/id_rsa file exists ... key generation skipped

[STEP 2 of 5] keyscan all hosts and update known_hosts file

[STEP 3 of 5] authorize current user on remote hosts
  ... send to ip-10-32-38-111.ore1.vpc.pivotal.io
  ... send to ip-10-32-39-12.ore1.vpc.pivotal.io
  ... send to ip-10-32-39-252.ore1.vpc.pivotal.io
  ... send to ip-10-32-39-31.ore1.vpc.pivotal.io
Traceback (most recent call last):
  File "/usr/local/hawq/./bin/gpssh-exkeys", line 753, in <module>
    send_local_id = h.sendLocalID(localID, GV.passwd, tempDir if isExistingHost 
else None)
  File "/usr/local/hawq/./bin/gpssh-exkeys", line 200, in sendLocalID
    pwd = getpass.getpass('  *** Enter password for %s: ' % (self.m_host), 
sys.stderr)
  File "/usr/local/hawq/ext/python/lib/python2.6/getpass.py", line 79, in 
unix_getpass
    passwd = fallback_getpass(prompt, stream)
  File "/usr/local/hawq/ext/python/lib/python2.6/getpass.py", line 114, in 
fallback_getpass
    return _raw_input(prompt, stream)
  File "/usr/local/hawq/ext/python/lib/python2.6/getpass.py", line 130, in 
_raw_input
    raise EOFError
EOFError
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to