Closed thatITguy2000 closed 2 years ago
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 saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
whats the verbose output of salt call run
whats the verbose output of salt call run
salt-call -l debug state.sls ub_autofs_configure [DEBUG ] Reading configuration from /etc/salt/minion [DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf' [DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf [DEBUG ] Using cached minion ID from /etc/salt/minion_id: myhost.mydomain.com [WARNING ] Insecure logging configuration detected! Sensitive data may be logged. [DEBUG ] Configuration file path: /etc/salt/minion [DEBUG ] Grains refresh requested. Refreshing grains. [DEBUG ] Reading configuration from /etc/salt/minion [DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf' [DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf [DEBUG ] The functions from module 'core' are being loaded by dir() on the loaded module [DEBUG ] The functions from module 'disks' are being loaded by dir() on the loaded module [DEBUG ] The functions from module 'extra' are being loaded by dir() on the loaded module [DEBUG ] The functions from module 'lvm' are being loaded by dir() on the loaded module [DEBUG ] The functions from module 'mdadm' are being loaded by dir() on the loaded module [DEBUG ] The functions from module 'minion_process' are being loaded by dir() on the loaded module [DEBUG ] The functions from module 'opts' are being loaded by dir() on the loaded module [DEBUG ] Override utils: <module 'salt.loaded.int.grains.zfs' from '/usr/lib/python3/dist-packages/salt/grains/zfs.py'> [DEBUG ] The functions from module 'zfs' are being loaded by dir() on the loaded module [DEBUG ] Elapsed time getting FQDNs: 0.03057575225830078 seconds [DEBUG ] Loading static grains from /etc/salt/grains [DEBUG ] The functions from module 'zfs' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded zfs.is_supported [DEBUG ] Connecting to master. Attempt 1 of 1 [DEBUG ] "mymaster.mydomain.com" Not an IP address? Assuming it is a hostname. [DEBUG ] Master URI: tcp://obfuscated:4506 [DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'myhost.mydomain.com', 'tcp://obfuscated:4506') [DEBUG ] Generated random reconnect delay between '1000ms' and '11000ms' (6303) [DEBUG ] Setting zmq_reconnect_ivl to '6303ms' [DEBUG ] Setting zmq_reconnect_ivl_max to '11000ms' [DEBUG ] salt.crypt.get_rsa_key: Loading private key [DEBUG ] salt.crypt._get_key_with_evict: Loading private key [DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem [DEBUG ] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_4748522595_pub.ipc [DEBUG ] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_4748522595_pull.ipc [DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key [DEBUG ] Decrypting the current master AES key [DEBUG ] salt.crypt.get_rsa_key: Loading private key [DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem [DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key [DEBUG ] salt.crypt.verify_signature: Loading public key [DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key [DEBUG ] salt.crypt.verify_signature: Verifying signature [DEBUG ] <salt.crypt.AsyncAuth object at 0x7f095c45b0d0> Got new master aes key. [DEBUG ] Closing AsyncReqChannel instance [DEBUG ] Connecting the Minion to the Master publish port, using the URI: tcp://obfuscated:4505 [DEBUG ] <salt.transport.zeromq.PublishClient object at 0x7f095c45b220> connecting to tcp://obfuscated:4505 [DEBUG ] Sending event: tag = master_connected; data = {'master': 'mymaster.mydomain.com', '_stamp': '2022-09-08T18:29:51.573960'} [DEBUG ] salt.crypt.get_rsa_key: Loading private key [DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem [DEBUG ] Closing IPCMessageClient instance [DEBUG ] Determining pillar cache [DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'myhost.mydomain.com', 'tcp://obfuscated:4506') [DEBUG ] salt.crypt.get_rsa_key: Loading private key [DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem [DEBUG ] salt.crypt.verify_signature: Loading public key [DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key [DEBUG ] salt.crypt.verify_signature: Verifying signature [DEBUG ] Closing AsyncReqChannel instance [DEBUG ] The functions from module 'jinja' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded jinja.render [DEBUG ] The functions from module 'yaml' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded yaml.render [DEBUG ] The functions from module 'state' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded state.sls [DEBUG ] The functions from module 'direct_call' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded direct_call.execute [DEBUG ] The functions from module 'saltutil' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded saltutil.is_running [DEBUG ] Override grains__: <module 'salt.loaded.int.module.grains' from '/usr/lib/python3/dist-packages/salt/modules/grains.py'> [DEBUG ] The functions from module 'grains' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded grains.get [DEBUG ] The functions from module 'config' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded config.get [DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'myhost.mydomain.com', 'tcp://obfuscated:4506') [DEBUG ] Gathering pillar data for state run [DEBUG ] Finished gathering pillar data for state run [INFO ] Loading fresh modules for state activity [DEBUG ] The functions from module 'jinja' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded jinja.render [DEBUG ] The functions from module 'yaml' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded yaml.render [DEBUG ] In saltenv 'base', looking at rel_path 'ub_autofs_configure.sls' to resolve 'salt://ub_autofs_configure.sls' [DEBUG ] In saltenv 'base', considering path '/var/cache/salt/minion/files/base/ub_autofs_configure.sls' to resolve 'salt://ub_autofs_configure.sls' [DEBUG ] Fetching file from saltenv 'base', attempting 'salt://ub_autofs_configure.sls' [DEBUG ] No dest file found [INFO ] Fetching file from saltenv 'base', done 'ub_autofs_configure.sls' [DEBUG ] compile template: /var/cache/salt/minion/files/base/ub_autofs_configure.sls [DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] [DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'myhost.mydomain.com', 'tcp://obfuscated:4506') [DEBUG ] The functions from module 'cmd' are being loaded by dir() on the loaded module [DEBUG ] LazyLoaded cmd.shell [INFO ] Executing command 'nslookup' in directory '/root' [DEBUG ] stdout: lab [DEBUG ] output: lab [PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/ub_autofs_configure.sls' using 'jinja' renderer: 0.039565324783325195 [DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/ub_autofs_configure.sls:
#
ub_install_autofs_X_Domain: pkg.installed:
ID: ub_install_autofs_X_Domain
Function: pkg.installed
Result: True
Comment: All specified packages are already installed
Started: 13:29:54.367727
Duration: 31.123 ms
Changes:
ID: ub-/etc/auto.master_X_Domain
Function: file.managed
Name: /etc/auto.master
Result: True
Comment: File /etc/auto.master is in the correct state
Started: 13:29:54.400765
Duration: 19.371 ms
Changes:
ID: ub-/etc/nsswitch.conf_X_Domain
Function: file.managed
Name: /etc/nsswitch.conf
Result: True
Comment: File /etc/nsswitch.conf is in the correct state
Started: 13:29:54.420232
Duration: 14.818 ms
Changes:
Total states run: 3 Total run time: 65.312 ms
this is weird syntax
pkg.installed:
- pkgs:
- autofs
try
pkg.installed:
- name: autofs
also can try "salt-call xxxx -t 600" timeout 10min
PyZMQ: 18.1.1
Duplicates #62550. Fix has already been released.
Description of Issue
salt-call hangs on ubuntu 20.04 when a state contains pkg.installed and fails to return to the shell when using 3005.1 master and minion
Setup
Any .sls tested with
salt-call state.sls
on ubuntu 20.04Steps to Reproduce Issue
Update Ubuntu 20.04 to 3005.1 and perform a salt-call state.sls of any state containing pkg.installed
Versions Report
Salt Version: Salt: 3005
Dependency Versions: cffi: Not Installed cherrypy: Not Installed dateutil: 2.7.3 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.10.1 libgit2: Not Installed M2Crypto: Not Installed Mako: 1.1.0 msgpack: 0.6.2 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: Not Installed pycrypto: 2.6.1 pycryptodome: 3.6.1 pygit2: Not Installed Python: 3.8.10 (default, Jun 22 2022, 20:18:18) python-gnupg: 0.4.5 PyYAML: 5.3.1 PyZMQ: 18.1.1 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.2
System Versions: dist: ubuntu 20.04 focal locale: utf-8 machine: x86_64 release: 5.15.0-46-generic system: Linux version: Ubuntu 20.04 focal