You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The option -o ConnectTimeout=None is invalid an results in the output
command-line line 0: invalid time value.
uncommenting the timeout option in the terraform file and running terraform apply fixes the issue.
Expected behavior
When not specifying a timeout, the command should not add a timeout option or fall back to a default value.
Citing from man 5 ssh_config:
ConnectTimeout
Specifies the timeout (in seconds) used when connecting to the SSH server, instead of using the default system TCP timeout.
This timeout is applied both to establishing the connection and to
performing the initial SSH protocol handshake and key exchange.
None is definitively not a valid value here.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
$ salt-ssh --versions-reportSalt Version:
Salt: 3006.0Python Version:
Python: 3.8.10 (default, Mar 13 2023, 10:26:41)Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: 2.7.3docker-py: 4.1.0gitdb: Not Installedgitpython: Not InstalledJinja2: 2.11.3libgit2: Not Installedlooseversion: 1.1.2M2Crypto: Not InstalledMako: 1.1.0msgpack: 0.6.2msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 23.1pycparser: Not Installedpycrypto: Not Installedpycryptodome: 3.12.0pygit2: Not Installedpython-gnupg: Not InstalledPyYAML: 5.3.1PyZMQ: 25.0.2relenv: Not Installedsmmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: ubuntu 20.04.5 focallocale: utf-8machine: x86_64release: 5.15.0-10060-tuxedosystem: Linuxversion: Ubuntu 20.04.5 focal
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Description
Using
salt-ssh
with theterraform
roster results in invalid ssh command.Setup
Saltfile:
salt/etc/master:
infra_servers.tf:
This terraform state creates a roster entry for the Server, with a minion ID and an IPv6 address to connect to.
Steps to Reproduce the behavior
Running test.ping with this server results in the following output:
When I look at the debug output with
salt-ssh '*' -i test.ping -v -l trace
the followingssh
command is executed:The option
-o ConnectTimeout=None
is invalid an results in the outputuncommenting the timeout option in the terraform file and running
terraform apply
fixes the issue.Expected behavior
When not specifying a timeout, the command should not add a timeout option or fall back to a default value.
Citing from
man 5 ssh_config
:None
is definitively not a valid value here.Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: