Dmytro Shkvyra created AMBARI-2988:
--------------------------------------
Summary: It's misleading to say "NOTE: Restart Ambari Server to
apply changes" when ambari-server setup-https fails
Key: AMBARI-2988
URL: https://issues.apache.org/jira/browse/AMBARI-2988
Project: Ambari
Issue Type: Bug
Components: controller
Affects Versions: 1.4.0
Reporter: Dmytro Shkvyra
Assignee: Dmytro Shkvyra
Fix For: 1.4.1
Ran "ambari-server setup-https" but typed the wrong password for the private
key.
The command showed "NOTE: Restart Ambari Server to apply changes". This
implies success, but the command actually failed.
The error is in the line above, but sometimes the user pays most attention to
the last line printed and if this indicates a successful operation, then the
user might incorrectly assume things went OK.
{code}
[root@c6401 ambari-server]# ambari-server setup-https
Using python /usr/bin/python2.6
Setting up HTTPS properties...
Do you want to disable HTTPS [y/n] (n)?
SSL port [88443] ? 8442
Enter path to Certificate: server.crt
Enter path to Private Key: server.key
Please enter password for Private Key:
ERROR: Could not import Certificate and Private Key.
SSL error on exporting keystore: unable to load private key.
Please ensure that provided Private Key password is correct and re-import
Certificate.
Setup of HTTPS failed. Exiting.
NOTE: Restart Ambari Server to apply changes ("ambari-server
restart|stop|start")
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira