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
We're trying to get salt reports uploaded to foreman and hitting an hang/kill issue in the script. I added some print commands to each of the functions. Looks like it gets to the run block where it appears to want to read /etc/salt/master config:
def run(*args, **kwargs):
print("run")
__opts__ = salt.config.master_config(
os.environ.get('SALT_MASTER_CONFIG', '/etc/salt/master'))
#print(__opts__)
runner = salt.runner.Runner(__opts__)
#print(runner)
with io.open(os.devnull, 'w') as f:
print("io open block")
print(f)
stdout_bak, sys.stdout = sys.stdout, f
print("stdout block")
try:
ret = runner.cmd(*args, **kwargs)
#print(ret)
finally:
sys.stdout = stdout_bak
return ret['data'] if 'data' in ret else ret
Here is what that looks like when I run it:
[root@10-222-76-237 salt]# /usr/sbin/upload-salt-reports
get_lock
upload(jobs)
salt_config
jobs_to_upload
run
io open block
f is <_io.TextIOWrapper name='/dev/null' mode='w' encoding='UTF-8'>
Killed
Any idea what is going on here? I know that most of our salt config lives in /etc/salt/master.d/<confs> is this the issue?
The text was updated successfully, but these errors were encountered:
We're trying to get salt reports uploaded to foreman and hitting an hang/kill issue in the script. I added some
print
commands to each of the functions. Looks like it gets to the run block where it appears to want to read/etc/salt/master
config:Here is what that looks like when I run it:
Any idea what is going on here? I know that most of our salt config lives in
/etc/salt/master.d/<confs>
is this the issue?The text was updated successfully, but these errors were encountered: