Repository navigation
Closed
Labels
Salt-Cloudbugbroken, incorrect, or confusing behaviorbugfix-bckportwill be be back-ported to an older release branch by creating a PR against that branchseverity-high2nd top severity, seen by most users, causes major problems
Milestone
Description
Description
I am using salsify driver to install a minion on a remote host. When there are issues with the SSH connection, salt-cloud initiated SSH process hangs indefinitely. L1492 sets timeout instead of ssh_timetout in kwargs, when calling root_cmd in L1504 which expects ssh_timeout. So, ssh_timeout gets missed even though it is present.
Runner invocation in code:
__salt__['cloud.profile'](profile_name, minion_id, ssh_timeout=15, hard_timeout=900, show_deploy_args=False)
2021-03-25 13:32:26,838 [salt.loaded.int.utils.cloud][DEBUG ] [11739] SSH command: 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -p 22 [email protected] /tmp/.saltcloud-84bd4974-0c73-48f6-9783-7fdd3784b0fc/deploy.sh -c '/tmp/.saltcloud-84bd4974-0c73-48f6-9783-7fdd3784b0fc' -x python3 '
[root@cava-6-242-186 cloud.providers.d]# cat ssc_saltify_provider.conf
ssc_saltify_provider:
driver: saltify
[root@cava-6-242-186 cloud.profiles.d]# cat ssc_10.196.195.92_profile.conf
ssc_10.196.195.92_profile:
deploy: true
minion:
master: cava-6-242-186.eng.vmware.com
password: xxx
priv_key: ''
provider: ssc_saltify_provider
pub_key: ''
script_args: ' -x python3 '
ssh_host: 10.196.195.92
ssh_timeout: 15
ssh_username: root
[root@cava-6-242-186 cloud.profiles.d]#
Lines 1488 to 1495 in 3f30104
| ssh_kwargs = { | |
| "hostname": host, | |
| "port": port, | |
| "username": username, | |
| "timeout": ssh_timeout, | |
| "display_ssh_output": display_ssh_output, | |
| "sudo_password": sudo_password, | |
| "sftp": opts.get("use_sftp", False), |
Lines 1504 to 1510 in 3f30104
| if root_cmd( | |
| "test -e '{}'".format(tmp_dir), | |
| tty, | |
| sudo, | |
| allow_failure=True, | |
| **ssh_kwargs | |
| ): |
Lines 2427 to 2428 in 3f30104
| if "ssh_timeout" in kwargs: | |
| ssh_args.extend(["-oConnectTimeout={}".format(kwargs["ssh_timeout"])]) |
[root@cava-6-242-186 salt]# salt-master -V
Salt Version:
Salt: 3001.3
Dependency Versions:
cffi: 1.13.2
cherrypy: 18.5.0
dateutil: 2.8.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.10.3
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: 2.19
pycrypto: 2.6.1
pycryptodome: 3.9.8
pygit2: Not Installed
Python: 3.6.8 (default, Oct 5 2020, 17:12:01)
python-gnupg: 0.4.5
PyYAML: 5.2
PyZMQ: 18.1.1
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.2
System Versions:
dist: centos 7 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-1160.15.2.el7.x86_64
system: Linux
version: CentOS Linux 7 Core
[root@cava-6-242-186 salt]#
Metadata
Metadata
Assignees
Labels
Salt-Cloudbugbroken, incorrect, or confusing behaviorbugfix-bckportwill be be back-ported to an older release branch by creating a PR against that branchseverity-high2nd top severity, seen by most users, causes major problems
Activity
welcome commentedon Mar 25, 2021
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
sagetherage commentedon Mar 25, 2021
@cheburakshu Hey Sud! 3001.3 is vulnerable, you will want to update to the latest 3001.7 from the tag or from the package repo for v3001 latest, likely that will not resolve the issue but simply giving you this detail :)
cheburakshu commentedon Mar 25, 2021
Thanks @sagetherage for pointing it out, I will upgrade. You're right, the code hasn't changed much in the latest one too and this bug may likely be around.
dwoz commentedon May 19, 2021
This issue is related to #59903