How to change default SSH port for Packstack?
I'm trying install OpenStack on multiple nodes using packstack. Due to a technical requirement all my nodes are running SSH server on port 4444 instead of port 22. I have configured it in sshd_config file as default SSH port for all hosts. When I tried to generate the answer file on one of the nodes using the command,
packstack --gen-answer-file=/root/ocata-answer.txt
I get the error,
Parameter CONFIG_CONTROLLER_HOST failed validation: Given host does not listen on port 22: XX.XX.XXX.XX
ERROR : Failed handling answer file: Given host does not listen on port 22: XX.XX.XXX.XX
Please check log file /var/tmp/packstack/20170606-111657-cEfbAS/openstack-setup.log for more information
The contents of the log file are,
2017-06-06 11:16:57::ERROR::run_setup::445::root:: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 424, in _handleAnswerFileParams
_loadParamFromFile(fconf, "general", param.CONF_NAME)
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 388, in _loadParamFromFile
validate_param_value(param, value)
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 288, in validate_param_value
val_func(value, opt_list)
File "/usr/lib/python2.7/site-packages/packstack/installer/validators.py", line 277, in validate_ssh
raise ParamValidationError(msg % param)
ParamValidationError: Given host does not listen on port 22: XX.XX.XXX.XX
2017-06-06 11:16:57::ERROR::run_setup::1027::root:: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 994, in main
_handleParams(answerfilepath)
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 539, in _handleParams
_handleAnswerFileParams(configFile)
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 446, in _handleAnswerFileParams
raise Exception(output_messages.ERR_EXP_HANDLE_ANSWER_FILE % (e))
Exception: Failed handling answer file: Given host does not listen on port 22: XX.XX.XXX.XX
Is there way that I can specify packstack configuration that my SSH server is running on a different port than 22? Is running the SSH server on port 22 is the only solution to get packstack working?