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 saltify driver to install a minion on a remote host. When there are issues with the SSH connection, salt-cloud initiated SSH process hangs indefinitely and I am also unable to pass a hard_timeout param. Tried passing it both like this __salt__['cloud.profile'](profile_name, minion_id, ssh_timeout=15, hard_timeout=900, show_deploy_args=False) and setting in the master opts and restarting the master.
Linked to #59901
Debug log at line:
2021-03-25 19:00:54,174 [salt.loaded.int.utils.cloud][DEBUG ] [5753] SSH command: 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -p 22 [email protected] rm -f '/tmp/.saltcloud-2fa59a3c-7546-422c-afb7-7d7aac22e746/deploy.sh''
[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]#
[root@cava-6-242-186 salt]# salt-run test.get_opts
[INFO ] Discovering API
[INFO ] Calling API api.get_versions
[INFO ] Calling API api.discover
[INFO ] Calling API ret.save_load
[INFO ] cache load: set item saltstack_enterprise_installer/20210325230233828536
__cli:
salt-run
__role:
master
allow_minion_key_revoke:
True
archive_jobs:
False
arg:
args_stdin:
False
async:
False
auth_events:
True
auth_mode:
1
auto_accept:
False
azurefs_update_interval:
60
cache:
localfs
cache_sreqs:
True
cachedir:
/var/cache/salt/master
clean_dynamic_modules:
True
cli_summary:
False
client_acl_verify:
True
cluster_mode:
False
con_cache:
False
conf_file:
/etc/salt/master
config_dir:
/etc/salt
cython_enable:
False
decrypt_pillar:
decrypt_pillar_default:
gpg
decrypt_pillar_delimiter:
:
decrypt_pillar_renderers:
- gpg
default_include:
master.d/*.conf
default_top:
base
discovery:
False
django_auth_path:
django_auth_settings:
doc:
False
drop_messages_signature_fail:
False
dummy_pub:
False
eauth:
eauth_acl_module:
eauth_tokens:
localfs
enable_gpu_grains:
False
enable_ssh_minions:
False
enforce_mine_cache:
False
engines:
|_
----------
sseapi:
----------
|_
----------
eventqueue:
----------
|_
----------
rpcqueue:
----------
|_
----------
jobcompletion:
----------
engines_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/engines
env_order:
event_match_type:
startswith
event_publisher_niceness:
None
event_return:
sseapi
event_return_blacklist:
event_return_niceness:
None
event_return_queue:
0
event_return_whitelist:
ext_job_cache:
ext_pillar:
|_
----------
sseapi:
----------
extension_modules:
/var/cache/salt/master/extmods
external_auth:
----------
extmod_blacklist:
----------
extmod_whitelist:
----------
failhard:
False
file_buffer_size:
1048576
file_client:
local
file_ignore_glob:
file_ignore_regex:
file_recv:
False
file_recv_max_size:
100
file_roots:
----------
base:
- /srv/salt
- /srv/spm/salt
fileserver_backend:
- sseapi
- roots
fileserver_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/fileserver
fileserver_followsymlinks:
True
fileserver_ignoresymlinks:
False
fileserver_limit_traversal:
False
fileserver_update_niceness:
None
fileserver_verify_config:
True
force_color:
False
fun:
test.get_opts
gather_job_timeout:
10
git_pillar_base:
master
git_pillar_branch:
master
git_pillar_env:
git_pillar_fallback:
git_pillar_global_lock:
True
git_pillar_includes:
True
git_pillar_insecure_auth:
False
git_pillar_passphrase:
git_pillar_password:
git_pillar_privkey:
git_pillar_pubkey:
git_pillar_refspecs:
- +refs/heads/*:refs/remotes/origin/*
- +refs/tags/*:refs/tags/*
git_pillar_root:
git_pillar_ssl_verify:
True
git_pillar_update_interval:
60
git_pillar_user:
git_pillar_verify_config:
True
gitfs_base:
master
gitfs_disable_saltenv_mapping:
False
gitfs_fallback:
gitfs_global_lock:
True
gitfs_insecure_auth:
False
gitfs_mountpoint:
gitfs_passphrase:
gitfs_password:
gitfs_privkey:
gitfs_pubkey:
gitfs_ref_types:
- branch
- tag
- sha
gitfs_refspecs:
- +refs/heads/*:refs/remotes/origin/*
- +refs/tags/*:refs/tags/*
gitfs_remotes:
gitfs_root:
gitfs_saltenv:
gitfs_saltenv_blacklist:
gitfs_saltenv_whitelist:
gitfs_ssl_verify:
True
gitfs_update_interval:
60
gitfs_user:
gpg_cache:
False
gpg_cache_backend:
disk
gpg_cache_ttl:
86400
hard_crash:
False
hard_timeout:
900
hash_type:
sha256
hgfs_base:
default
hgfs_branch_method:
branches
hgfs_mountpoint:
hgfs_remotes:
hgfs_root:
hgfs_saltenv_blacklist:
hgfs_saltenv_whitelist:
hgfs_update_interval:
60
http_connect_timeout:
20.0
http_max_body:
107374182400
http_request_timeout:
3600.0
id:
saltstack_enterprise_installer
interface:
127.0.0.1
ipc_mode:
ipc
ipc_write_buffer:
0
ipv6:
None
jinja_env:
----------
jinja_lstrip_blocks:
False
jinja_sls_env:
----------
jinja_trim_blocks:
False
job_cache:
True
job_cache_store_endtime:
False
keep_acl_in_token:
False
keep_jobs:
24
key_cache:
key_logfile:
/var/log/salt/key
key_pass:
None
keysize:
2048
local:
True
lock_saltenv:
False
log_datefmt:
%H:%M:%S
log_datefmt_console:
%H:%M:%S
log_datefmt_logfile:
%Y-%m-%d %H:%M:%S
log_file:
/var/log/salt/master
log_fmt_console:
[%(levelname)-8s] %(message)s
log_fmt_jid:
[JID: %(jid)s]
log_fmt_logfile:
%(asctime)s,%(msecs)03d [%(name)-17s][%(levelname)-8s] [%(process)d]-[%(thread)d]%(message)s
log_granular_levels:
----------
log_level:
info
log_level_logfile:
info
log_rotate_backup_count:
0
log_rotate_max_bytes:
0
loop_interval:
60
maintenance_niceness:
None
master_job_cache:
sseapi
master_pubkey_signature:
master_pubkey_signature
master_roots:
----------
base:
- /srv/salt-master
master_sign_key_name:
master_sign
master_sign_pubkey:
False
master_stats:
False
master_stats_event_iter:
60
master_tops:
----------
master_tops_first:
False
master_uri:
tcp://127.0.0.1:4506
master_use_pubkey_signature:
False
max_event_size:
1048576
max_minions:
0
max_open_files:
100000
memcache_debug:
False
memcache_expire_seconds:
0
memcache_full_cleanup:
False
memcache_max_items:
1024
min_extra_mods:
minion_data_cache:
True
minion_data_cache_events:
True
minionfs_blacklist:
minionfs_env:
base
minionfs_mountpoint:
minionfs_update_interval:
60
minionfs_whitelist:
mktoken:
False
module_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/modules
mworker_niceness:
None
mworker_queue_niceness:
None
netapi_allow_raw_shell:
False
no_color:
False
no_parse:
nodegroups:
----------
on_demand_ext_pillar:
- libvirt
- virtkey
open_mode:
False
optimization_order:
- 0
- 1
- 2
order_masters:
False
output_file_append:
False
outputter_dirs:
peer:
----------
permissive_acl:
False
permissive_pki_access:
False
pidfile:
/var/run/salt-master.pid
pillar_cache:
False
pillar_cache_backend:
disk
pillar_cache_ttl:
3600
pillar_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/pillar
pillar_includes_override_sls:
False
pillar_merge_lists:
False
pillar_opts:
False
pillar_roots:
----------
base:
- /srv/pillar
- /srv/spm/pillar
pillar_safe_render_error:
True
pillar_source_merging_strategy:
smart
pillar_version:
2
pillarenv:
None
ping_on_rotate:
False
pki_dir:
/etc/salt/pki/master
preserve_minion_cache:
False
profiling_enabled:
False
profiling_path:
/tmp/stats
proxy_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/proxy
pub_hwm:
1000
pub_server_niceness:
None
publish_port:
4505
publish_session:
86400
publisher_acl:
----------
publisher_acl_blacklist:
----------
python2_bin:
python2
python3_bin:
python3
queue_dirs:
quiet:
False
range_server:
range:80
reactor:
reactor_niceness:
None
reactor_refresh_interval:
60
reactor_worker_hwm:
10000
reactor_worker_threads:
10
regen_thin:
False
renderer:
jinja|yaml
renderer_blacklist:
renderer_whitelist:
req_server_niceness:
None
require_minion_sign_messages:
False
ret_port:
4506
returner_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/returners
root_dir:
/
roots_update_interval:
60
roster_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/roster
rotate_aes_key:
True
runner_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/runners
runner_returns:
True
s3fs_update_interval:
60
salt_cp_chunk_size:
98304
saltenv:
None
schedule:
----------
search:
selected_output_option:
state_output
serial:
msgpack
show_jid:
False
show_timeout:
True
sign_pub_messages:
True
signing_key_pass:
None
skip_grains:
False
sock_dir:
/var/run/salt/master
sock_pool_size:
1
sqlite_queue_dir:
/var/cache/salt/master/queues
sseapi_cluster_id:
salt
sseapi_command_age_limit:
0
sseapi_event_queue:
----------
age_limit:
86400
batch_limit:
2000
forward:
name:
sseapi-events
push_interval:
5
size_limit:
35000000
strategy:
never
vacuum_interval:
86400
vacuum_limit:
350000
sseapi_failover_master:
False
sseapi_local_cache:
----------
load:
3600
tgt:
300
sseapi_poll_interval:
10
sseapi_rpc_queue:
----------
age_limit:
3600
batch_limit:
500
name:
sseapi-rpc
push_interval:
5
size_limit:
360000
strategy:
never
vacuum_interval:
86400
vacuum_limit:
100000
sseapi_server:
https://localhost:8443
sseapi_ssl_validate_cert:
False
sseapi_timeout:
180
sseapi_update_interval:
60
ssh_config_file:
/root/.ssh/config
ssh_identities_only:
False
ssh_list_nodegroups:
----------
ssh_log_file:
/var/log/salt/ssh
ssh_passwd:
ssh_port:
22
ssh_priv_passwd:
ssh_scan_ports:
22
ssh_scan_timeout:
0.01
ssh_sudo:
False
ssh_sudo_user:
ssh_timeout:
60
ssh_use_home_key:
False
ssh_user:
root
ssl:
None
state_aggregate:
False
state_auto_order:
True
state_events:
False
state_output:
full
state_output_diff:
False
state_top:
top.sls
state_top_saltenv:
None
state_verbose:
True
states_dirs:
- /opt/saltstack/lib/python3.6/site-packages//sseape/states
sudo_acl:
False
svnfs_branches:
branches
svnfs_mountpoint:
svnfs_remotes:
svnfs_root:
svnfs_saltenv_blacklist:
svnfs_saltenv_whitelist:
svnfs_tags:
tags
svnfs_trunk:
trunk
svnfs_update_interval:
60
syndic_dir:
/var/cache/salt/master/syndics
syndic_event_forward_timeout:
0.5
syndic_failover:
random
syndic_forward_all_events:
False
syndic_jid_forward_cache_hwm:
100
syndic_log_file:
/var/log/salt/syndic
syndic_master:
masterofmasters
syndic_pidfile:
/var/run/salt-syndic.pid
syndic_wait:
5
tcp_keepalive:
True
tcp_keepalive_cnt:
-1
tcp_keepalive_idle:
300
tcp_keepalive_intvl:
-1
tcp_master_pub_port:
4512
tcp_master_publish_pull:
4514
tcp_master_pull_port:
4513
tcp_master_workers:
4515
test:
False
thin_extra_mods:
thorium_interval:
0.5
thorium_roots:
----------
base:
- /srv/thorium
thorium_top:
top.sls
thoriumenv:
None
timeout:
5
token_dir:
/var/cache/salt/master/tokens
token_expire:
43200
token_expire_user_override:
False
token_file:
/root/salt_token
top_file_merging_strategy:
merge
transport:
zeromq
unique_jid:
False
user:
root
utils_dirs:
- /var/cache/salt/master/extmods/utils
verify_env:
True
winrepo_branch:
master
winrepo_cachefile:
winrepo.p
winrepo_dir:
/srv/salt/win/repo
winrepo_dir_ng:
/srv/salt/win/repo-ng
winrepo_fallback:
winrepo_insecure_auth:
False
winrepo_passphrase:
winrepo_password:
winrepo_privkey:
winrepo_pubkey:
winrepo_refspecs:
- +refs/heads/*:refs/remotes/origin/*
- +refs/tags/*:refs/tags/*
winrepo_remotes:
- https://github.com/saltstack/salt-winrepo.git
winrepo_remotes_ng:
- https://github.com/saltstack/salt-winrepo-ng.git
winrepo_ssl_verify:
True
winrepo_user:
worker_threads:
5
zmq_backlog:
1000
zmq_filtering:
False
zmq_monitor:
False
[INFO ] Runner completed: 20210325230233828536
[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
dwoz commentedon May 19, 2021
This issue is related to #59903