First, thank you all for the excellent job you're doing.
I an expecting my problem to be a typical "ID-10-T" error since I still am rather new with salt and jinja is a bit like Klingon to me.
I'm trying to automate the most possible, and thus salting salt seems like a good idea.
The new salt candidates are newly installed Debian 10 vms with only the base system and ssh installed. I've added sudo and made my default user (called user by the way) full rights sudo with no password. (that will be corrected later with salt)
The pillar is very simple, i just started to config the stuff ...
The minion is not installed when salting the target machine.
salt@Salt-Master:/srv/salt$ salt-ssh '*1' state.sls salt test=true -l debug
[DEBUG ] Missing configuration file: /etc/salt/master
[DEBUG ] Including configuration from '/etc/salt/master.d/engine.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/engine.conf
[DEBUG ] Including configuration from '/etc/salt/master.d/f_defaults.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/f_defaults.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/file_roots.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/file_roots.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/formulas.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/formulas.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/pillar_roots.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/pillar_roots.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/state_output.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/state_output.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/state_verbose.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/state_verbose.conf
[DEBUG ] Including configuration from '/etc/salt/master.d/include.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/include.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/file_roots.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/file_roots.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/formulas.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/formulas.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/pillar_roots.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/pillar_roots.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/state_output.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/state_output.conf
[DEBUG ] Including configuration from '/srv/salt/master/config/state_verbose.conf'
[DEBUG ] Reading configuration from /srv/salt/master/config/state_verbose.conf
[DEBUG ] Including configuration from '/etc/salt/master.d/lxc_profiles.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/lxc_profiles.conf
[DEBUG ] Including configuration from '/etc/salt/master.d/reactor.conf'
[DEBUG ] Reading configuration from /etc/salt/master.d/reactor.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: Salt-Master.fr.mpitech.com
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Override __grains__: <module 'salt.loaded.int.log_handlers.sentry_mod' from '/usr/lib/python3/dist-packages/salt/log/handlers/sentry_mod.py'>
[DEBUG ] Configuration file path: /etc/salt/master
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded flat.targets
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] compile template: /etc/salt/roster
[DEBUG ] Jinja search path: ['/var/cache/salt/master/files/base']
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded roots.envs
[DEBUG ] Popen(['git', 'version'], cwd=/srv/salt, universal_newlines=False, shell=None)
[DEBUG ] Popen(['git', 'version'], cwd=/srv/salt, universal_newlines=False, shell=None)
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available.
[DEBUG ] Updating roots fileserver cache
[PROFILE ] Time (in seconds) to render '/etc/salt/roster' using 'jinja' renderer: 0.07324552536010742
[DEBUG ] Rendered data from file: /etc/salt/roster:
# Sample salt-ssh config file
#web1:
# host: 192.168.42.1 # The IP addr or DNS hostname
# user: fred # Remote executions will be executed as user fred
# passwd: foobarbaz # The password to use for login, if omitted, keys are used
# sudo: True # Whether to sudo to root, not enabled by default
#web2:
# host: 192.168.42.2
gluster1:
host: gluster1
user: user
passwd: ** hidden **
sudo: True
gluster2:
host: gluster2
user: user
passwd: ** hidden **
sudo: True
gluster3:
host: gluster3
user: user
passwd: ** hidden **
sudo: True
[DEBUG ] Results of YAML rendering:
OrderedDict([('gluster1', OrderedDict([('host', 'gluster1'), ('user', 'user'), ('passwd', 'user'), ('sudo', True)])), ('gluster2', OrderedDict([('host', 'gluster2'), ('user', 'user'), ('passwd', 'user'), ('sudo', True)])), ('gluster3', OrderedDict([('host', 'gluster3'), ('user', 'user'), ('passwd', 'user'), ('sudo', True)]))])
[PROFILE ] Time (in seconds) to render '/etc/salt/roster' using 'yaml' renderer: 0.0007090568542480469
[DEBUG ] LazyLoaded roster_matcher.targets
[DEBUG ] Matched minions: {'gluster1': {'host': 'gluster1', 'user': 'user', 'passwd': 'user', 'sudo': True}}
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded roots.envs
[DEBUG ] Could not LazyLoad roots.init: 'roots.init' is not available.
[DEBUG ] Updating roots fileserver cache
[DEBUG ] LazyLoaded local_cache.prep_jid
[DEBUG ] Adding minions for job 20211105123812567267: ['gluster1']
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded state.sls
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Performing shimmed, blocking command as follows:
test.opts_pkg
[DEBUG ] Executed SHIM command. Command logged to TRACE
[DEBUG ] Child Forked! PID: 74870 STDOUT_FD: 13 STDERR_FD: 15
[DEBUG ] VT: Salt-SSH SHIM Terminal Command executed. Logged to TRACE
[DEBUG ] RETCODE gluster1: 0
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] compile template: /srv/salt/master/base/pillars/top.sls
[DEBUG ] Jinja search path: ['/srv/salt/master/base/pillars/']
[DEBUG ] Using pkg_resources to load entry points
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/top.sls' using 'jinja' renderer: 0.0094451904296875
[DEBUG ] Rendered data from file: /srv/salt/master/base/pillars/top.sls:
base:
'*':
- Salt
[DEBUG ] Results of YAML rendering:
OrderedDict([('base', OrderedDict([('*', ['Salt'])]))])
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/top.sls' using 'yaml' renderer: 0.00042057037353515625
[DEBUG ] LazyLoaded confirm_top.confirm_top
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded compound_match.match
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] compound_match: gluster1 ? *
[DEBUG ] LazyLoaded glob_match.match
[DEBUG ] compound_match gluster1 ? "*" => "True"
[DEBUG ] compile template: /srv/salt/master/base/pillars/Salt/init.sls
[DEBUG ] Jinja search path: ['/srv/salt/master/base/pillars/']
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/init.sls' using 'jinja' renderer: 0.0007846355438232422
[DEBUG ] Rendered data from file: /srv/salt/master/base/pillars/Salt/init.sls:
include:
- .Config
- .minion
[DEBUG ] Results of YAML rendering:
OrderedDict([('include', ['.Config', '.minion'])])
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/init.sls' using 'yaml' renderer: 0.0002570152282714844
[DEBUG ] compile template: /srv/salt/master/base/pillars/Salt/Config.sls
[DEBUG ] Jinja search path: ['/srv/salt/master/base/pillars/']
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/Config.sls' using 'jinja' renderer: 0.0007488727569580078
[DEBUG ] Rendered data from file: /srv/salt/master/base/pillars/Salt/Config.sls:
salt:
install_packages: true
py_ver: 'py3'
version: 3003.3
release: '3003.3'
[DEBUG ] Results of YAML rendering:
OrderedDict([('salt', OrderedDict([('install_packages', True), ('py_ver', 'py3'), ('version', 3003.3), ('release', '3003.3')]))])
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/Config.sls' using 'yaml' renderer: 0.0003197193145751953
[DEBUG ] compile template: /srv/salt/master/base/pillars/Salt/minion.sls
[DEBUG ] Jinja search path: ['/srv/salt/master/base/pillars/']
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/minion.sls' using 'jinja' renderer: 0.0007302761077880859
[DEBUG ] Rendered data from file: /srv/salt/master/base/pillars/Salt/minion.sls:
salt:
minion:
master: Salt-Master
[DEBUG ] Results of YAML rendering:
OrderedDict([('salt', OrderedDict([('minion', OrderedDict([('master', 'Salt-Master')]))]))])
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/minion.sls' using 'yaml' renderer: 0.00024962425231933594
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded state.sls
[DEBUG ] Gathering pillar data for state run
[DEBUG ] Determining pillar cache
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] compile template: /srv/salt/master/base/pillars/top.sls
[DEBUG ] Jinja search path: ['/srv/salt/master/base/pillars/']
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/top.sls' using 'jinja' renderer: 0.0007965564727783203
[DEBUG ] Rendered data from file: /srv/salt/master/base/pillars/top.sls:
base:
'*':
- Salt
[DEBUG ] Results of YAML rendering:
OrderedDict([('base', OrderedDict([('*', ['Salt'])]))])
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/top.sls' using 'yaml' renderer: 0.00027632713317871094
[DEBUG ] LazyLoaded confirm_top.confirm_top
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded compound_match.match
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] compound_match: gluster1 ? *
[DEBUG ] LazyLoaded glob_match.match
[DEBUG ] compound_match gluster1 ? "*" => "True"
[DEBUG ] compile template: /srv/salt/master/base/pillars/Salt/init.sls
[DEBUG ] Jinja search path: ['/srv/salt/master/base/pillars/']
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/init.sls' using 'jinja' renderer: 0.0007259845733642578
[DEBUG ] Rendered data from file: /srv/salt/master/base/pillars/Salt/init.sls:
include:
- .Config
- .minion
[DEBUG ] Results of YAML rendering:
OrderedDict([('include', ['.Config', '.minion'])])
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/init.sls' using 'yaml' renderer: 0.00026869773864746094
[DEBUG ] compile template: /srv/salt/master/base/pillars/Salt/Config.sls
[DEBUG ] Jinja search path: ['/srv/salt/master/base/pillars/']
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/Config.sls' using 'jinja' renderer: 0.0007317066192626953
[DEBUG ] Rendered data from file: /srv/salt/master/base/pillars/Salt/Config.sls:
salt:
install_packages: true
py_ver: 'py3'
version: 3003.3
release: '3003.3'
[DEBUG ] Results of YAML rendering:
OrderedDict([('salt', OrderedDict([('install_packages', True), ('py_ver', 'py3'), ('version', 3003.3), ('release', '3003.3')]))])
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/Config.sls' using 'yaml' renderer: 0.00030350685119628906
[DEBUG ] compile template: /srv/salt/master/base/pillars/Salt/minion.sls
[DEBUG ] Jinja search path: ['/srv/salt/master/base/pillars/']
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/minion.sls' using 'jinja' renderer: 0.0007348060607910156
[DEBUG ] Rendered data from file: /srv/salt/master/base/pillars/Salt/minion.sls:
salt:
minion:
master: Salt-Master
[DEBUG ] Results of YAML rendering:
OrderedDict([('salt', OrderedDict([('minion', OrderedDict([('master', 'Salt-Master')]))]))])
[PROFILE ] Time (in seconds) to render '/srv/salt/master/base/pillars/Salt/minion.sls' using 'yaml' renderer: 0.0002732276916503906
[DEBUG ] Finished gathering pillar data for state run
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] Returning file list from cache: age=2 cache_time=20 /var/cache/salt/master/file_lists/roots/base.p
[DEBUG ] Could not find file 'salt://salt.sls' in saltenv 'base'
[DEBUG ] In saltenv 'base', looking at rel_path 'salt/init.sls' to resolve 'salt://salt/init.sls'
[DEBUG ] In saltenv 'base', ** considering ** path '/var/tmp/.user_5e4df7_salt/running_data/var/cache/salt/minion/files/base/salt/init.sls' to resolve 'salt://salt/init.sls'
[DEBUG ] compile template: /var/tmp/.user_5e4df7_salt/running_data/var/cache/salt/minion/files/base/salt/init.sls
[DEBUG ] Jinja search path: ['/var/tmp/.user_5e4df7_salt/running_data/var/cache/salt/minion/files/base']
[DEBUG ] Jinja Error
[DEBUG ] Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 500, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
return __context.call(__obj, *args, **kwargs)
TypeError: get() missing 1 required positional argument: 'default'
[DEBUG ] Out:
[DEBUG ] Line: 6
[DEBUG ] TmplStr: # -*- coding: utf-8 -*-
# vim: ft=sls
include:
- salt.pkgrepo
{%- if salt.config.get('salt_formulas:list') %}
- salt.formulas
{%- endif %}
{%- if salt.config.get('salt:master')|length > 1 and grains.kernel != 'Windows' %}
- salt.master
{%- endif %}
{%- if salt.config.get('salt:cloud')|length > 1 %}
- salt.cloud
{%- endif %}
{%- if salt.config.get('salt:ssh_roster') %}
- salt.ssh
{%- endif %}
{%- if salt.config.get('salt:minion')|length > 1 %}
{%- if salt.config.get('salt:minion:master_type') %}
- salt.minion
{%- else %}
- salt.standalone
{%- endif %}
{%- endif %}
{%- if salt.config.get('salt:api') %}
- salt.api
{%- endif %}
{%- if salt.config.get('salt:syndic') %}
- salt.syndic
{%- endif %}
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 500, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
return __context.call(__obj, *args, **kwargs)
TypeError: get() missing 1 required positional argument: 'default'
[DEBUG ] TraceStr: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 500, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
return __context.call(__obj, *args, **kwargs)
TypeError: get() missing 1 required positional argument: 'default'
[ERROR ] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 500, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
return __context.call(__obj, *args, **kwargs)
TypeError: get() missing 1 required positional argument: 'default'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 262, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 546, in render_jinja_tmpl
"Jinja error: {}{}".format(exc, out), line, tmplstr, trace=tracestr
salt.exceptions.SaltRenderError: Jinja error: get() missing 1 required positional argument: 'default'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 500, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
return __context.call(__obj, *args, **kwargs)
TypeError: get() missing 1 required positional argument: 'default'
; line 6
---
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- salt.pkgrepo
{%- if salt.config.get('salt_formulas:list') %} <======================
- salt.formulas
{%- endif %}
{%- if salt.config.get('salt:master')|length > 1 and grains.kernel != 'Windows' %}
- salt.master
{%- endif %}
[...]
---
[CRITICAL] Rendering SLS 'base:salt' failed: Jinja error: get() missing 1 required positional argument: 'default'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 500, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
return __context.call(__obj, *args, **kwargs)
TypeError: get() missing 1 required positional argument: 'default'
; line 6
---
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- salt.pkgrepo
{%- if salt.config.get('salt_formulas:list') %} <======================
- salt.formulas
{%- endif %}
{%- if salt.config.get('salt:master')|length > 1 and grains.kernel != 'Windows' %}
- salt.master
{%- endif %}
[...]
---
[DEBUG ] Using pkg_resources to load entry points
[DEBUG ] LazyLoaded nested.output
gluster1:
- Rendering SLS 'base:salt' failed: Jinja error: get() missing 1 required positional argument: 'default'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 500, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 6, in top-level template code
File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
return __context.call(__obj, *args, **kwargs)
TypeError: get() missing 1 required positional argument: 'default'
; line 6
---
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- salt.pkgrepo
{%- if salt.config.get('salt_formulas:list') %} <======================
- salt.formulas
{%- endif %}
{%- if salt.config.get('salt:master')|length > 1 and grains.kernel != 'Windows' %}
- salt.master
{%- endif %}
[...]
---
[DEBUG ] Sending event: tag = salt/job/20211105123812567267/ret/gluster1; data = {'return': ['Rendering SLS \'base:salt\' failed: Jinja error: get() missing 1 required positional argument: \'default\'\nTraceback (most recent call last):\n File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 500, in render_jinja_tmpl\n output = template.render(**decoded_context)\n File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py",
line 76, in render\n return original_render(self, *args, **kwargs)\n File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render\n return self.environment.handle_exception(exc_info, True)\n File
"/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception\n reraise(exc_type, exc_value, tb)\n File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise\n raise value.with_traceback(tb)\n File "<template>", line 6, in top-level template code\n File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call\n return __context.call(__obj, *args, **kwargs)\nTypeError: get() missing 1 required positional argument: \'default\'\n\n; line 6\n\n---\n# -*- coding: utf-8 -*-\n# vim: ft=sls\n\ninclude:\n - salt.pkgrepo\n {%- if salt.config.get(\'salt_formulas:list\') %} <======================\n - salt.formulas\n {%- endif %}\n {%- if salt.config.get(\'salt:master\')|length > 1 and grains.kernel != \'Windows\' %}\n - salt.master\n {%- endif %}\n[...]\n---'], 'id': 'gluster1', 'fun': 'state.sls', 'jid': '20211105123812567267', '_stamp': '2021-11-05T12:38:14.085967'}
[DEBUG ] Closing IPCMessageClient instance
salt@Salt-Master:/srv/salt$
Hello,
First, thank you all for the excellent job you're doing.
I an expecting my problem to be a typical "ID-10-T" error since I still am rather new with salt and jinja is a bit like Klingon to me.
Anyway,
I'm trying to automate the most possible, and thus salting salt seems like a good idea.
The new salt candidates are newly installed Debian 10 vms with only the base system and ssh installed. I've added sudo and made my default user (called user by the way) full rights sudo with no password. (that will be corrected later with salt)
Using salt-ssh, the test.ping works so I have connectivity
When i try to salt salt, it looks like this :
Your setup
Formula commit hash / release tag
I just re-pulled the repo this morning
Versions reports (master & minion)
Since there is no minion (i want to install it) only the master
Pillar / config used
The pillar is very simple, i just started to config the stuff ...
top.sls
Salt/init.sls
Salt/Config.sls
Salt/minion.sls
Bug details
Describe the bug
The minion is not installed when salting the target machine.
Steps to reproduce the bug
just try salt-ssh again
Expected behaviour
I would expect the minion to be successfully installed
Attempts to fix the bug
none
Additional context
and here is the full debug: