[uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.

Hello all, I've been trying to add several clients - centos 7 and leap 15.1 - to my 2020.05 Uyuni fresh implementation and I am getting on both errors using only ssh. It seems to be related to this https://github.com/saltstack/salt/issues/38458. Is there any workaround? I am trying to add a new server, bootstrap, using only ssh. Thanks a lot for your help. Nuno. Error log: 2020-06-08 14:25:39,503 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:83: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(static_pillar_filename)).read())) 2020-06-08 14:25:39,508 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:91: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(global_pillar_filename)).read())) 2020-06-08 14:25:39,753 [salt.utils.templates:180 ][ERROR ][3878] Rendering exception occurred Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 169, in render_tmpl output = render_str(tmplstr, context, tmplpath) File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 441, in render_jinja_tmpl trace=tracestr) salt.exceptions.SaltRenderError: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,754 [salt.state :3516][CRITICAL][3878] Rendering SLS 'base:certs' failed: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,757 [salt.client.ssh :1170][ERROR ][3878] An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'

Hello all, Any ideas regarding my issue? Thanks for your help! Nuno From: Nuno Higgs [mailto:suse@labs.nuneshiggs.com] Sent: 08 June 2020 15:31 To: uyuni-users@opensuse.org Subject: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hello all, I've been trying to add several clients - centos 7 and leap 15.1 - to my 2020.05 Uyuni fresh implementation and I am getting on both errors using only ssh. It seems to be related to this https://github.com/saltstack/salt/issues/38458. Is there any workaround? I am trying to add a new server, bootstrap, using only ssh. Thanks a lot for your help. Nuno. Error log: 2020-06-08 14:25:39,503 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:83: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(static_pillar_filename)).read())) 2020-06-08 14:25:39,508 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:91: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(global_pillar_filename)).read())) 2020-06-08 14:25:39,753 [salt.utils.templates:180 ][ERROR ][3878] Rendering exception occurred Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 169, in render_tmpl output = render_str(tmplstr, context, tmplpath) File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 441, in render_jinja_tmpl trace=tracestr) salt.exceptions.SaltRenderError: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,754 [salt.state :3516][CRITICAL][3878] Rendering SLS 'base:certs' failed: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,757 [salt.client.ssh :1170][ERROR ][3878] An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'

The issue got fixed. Maybe just update salt. sent from my mobile device -------- Originale Nachricht -------- Von: Nuno Higgs <suse@labs.nuneshiggs.com> Gesendet: Thu Jun 11 17:16:35 GMT+02:00 2020 An: uyuni-users@opensuse.org Cc: suse@labs.nuneshiggs.com Betreff: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hello all, Any ideas regarding my issue? Thanks for your help! Nuno From: Nuno Higgs [mailto:suse@labs.nuneshiggs.com] Sent: 08 June 2020 15:31 To: uyuni-users@opensuse.org Subject: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hello all, I've been trying to add several clients - centos 7 and leap 15.1 - to my 2020.05 Uyuni fresh implementation and I am getting on both errors using only ssh. It seems to be related to this https://github.com/saltstack/salt/issues/38458. Is there any workaround? I am trying to add a new server, bootstrap, using only ssh. Thanks a lot for your help. Nuno. Error log: 2020-06-08 14:25:39,503 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:83: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(static_pillar_filename)).read())) 2020-06-08 14:25:39,508 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:91: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(global_pillar_filename)).read())) 2020-06-08 14:25:39,753 [salt.utils.templates:180 ][ERROR ][3878] Rendering exception occurred Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 169, in render_tmpl output = render_str(tmplstr, context, tmplpath) File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 441, in render_jinja_tmpl trace=tracestr) salt.exceptions.SaltRenderError: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,754 [salt.state :3516][CRITICAL][3878] Rendering SLS 'base:certs' failed: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,757 [salt.client.ssh :1170][ERROR ][3878] An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org

I confirm that I am using Uyuni server 2020.05, and especially salt-ssh registration with all the OS, and no issue observed. Uyuni server is running 15.1 with the latest level of patches. Regards, Philippe. Philippe Bidault | Unix Engineer Getronics M. 34617301667 | E. Philippe.Bidault@Getronics.com | W. www.getronics.com Getronics CMC Service Desk Iberia S.L - VAT No:S.L.: B66686262. Registered Office - Getronics CMC Service Desk Iberia S.L, C/Rosselloi, Porcel, 21 planta 11, 08016 Barcelona, Spain. The information transmitted is intended only for use by the addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. Thank you. Legal disclaimer: http://www.getronics.com/legal/ -----Original Message----- From: Robert Paschedag <robert.paschedag@web.de> Sent: jueves, 11 de junio de 2020 17:31 To: Nuno Higgs <suse@labs.nuneshiggs.com> Cc: uyuni-users@opensuse.org Subject: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. The issue got fixed. Maybe just update salt. sent from my mobile device -------- Originale Nachricht -------- Von: Nuno Higgs <suse@labs.nuneshiggs.com> Gesendet: Thu Jun 11 17:16:35 GMT+02:00 2020 An: uyuni-users@opensuse.org Cc: suse@labs.nuneshiggs.com Betreff: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hello all, Any ideas regarding my issue? Thanks for your help! Nuno From: Nuno Higgs [mailto:suse@labs.nuneshiggs.com] Sent: 08 June 2020 15:31 To: uyuni-users@opensuse.org Subject: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hello all, I've been trying to add several clients - centos 7 and leap 15.1 - to my 2020.05 Uyuni fresh implementation and I am getting on both errors using only ssh. It seems to be related to this https://github.com/saltstack/salt/issues/38458. Is there any workaround? I am trying to add a new server, bootstrap, using only ssh. Thanks a lot for your help. Nuno. Error log: 2020-06-08 14:25:39,503 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:83: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(static_pillar_filename)).read())) 2020-06-08 14:25:39,508 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:91: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(global_pillar_filename)).read())) 2020-06-08 14:25:39,753 [salt.utils.templates:180 ][ERROR ][3878] Rendering exception occurred Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 169, in render_tmpl output = render_str(tmplstr, context, tmplpath) File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 441, in render_jinja_tmpl trace=tracestr) salt.exceptions.SaltRenderError: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,754 [salt.state :3516][CRITICAL][3878] Rendering SLS 'base:certs' failed: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,757 [salt.client.ssh :1170][ERROR ][3878] An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org

Hello, Thanks for your reply. Mine is a fresh leap install. The only salt components that exist, are the ones built-in to uyuni. Nothing else was installed. This happens when I try to add a new machine, using only ssh, thus being agentless. Does it ring any bells? Thanks.! Nuno -----Original Message----- From: Robert Paschedag [mailto:robert.paschedag@web.de] Sent: 11 June 2020 16:31 To: Nuno Higgs Cc: uyuni-users@opensuse.org Subject: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. The issue got fixed. Maybe just update salt. sent from my mobile device -------- Originale Nachricht -------- Von: Nuno Higgs <suse@labs.nuneshiggs.com> Gesendet: Thu Jun 11 17:16:35 GMT+02:00 2020 An: uyuni-users@opensuse.org Cc: suse@labs.nuneshiggs.com Betreff: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hello all, Any ideas regarding my issue? Thanks for your help! Nuno From: Nuno Higgs [mailto:suse@labs.nuneshiggs.com] Sent: 08 June 2020 15:31 To: uyuni-users@opensuse.org Subject: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hello all, I've been trying to add several clients - centos 7 and leap 15.1 - to my 2020.05 Uyuni fresh implementation and I am getting on both errors using only ssh. It seems to be related to this https://github.com/saltstack/salt/issues/38458. Is there any workaround? I am trying to add a new server, bootstrap, using only ssh. Thanks a lot for your help. Nuno. Error log: 2020-06-08 14:25:39,503 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:83: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(static_pillar_filename)).read())) 2020-06-08 14:25:39,508 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:91: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. ret.update(yaml.load(open('{0}.yml'.format(global_pillar_filename)).read())) 2020-06-08 14:25:39,753 [salt.utils.templates:180 ][ERROR ][3878] Rendering exception occurred Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 169, in render_tmpl output = render_str(tmplstr, context, tmplpath) File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 441, in render_jinja_tmpl trace=tracestr) salt.exceptions.SaltRenderError: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,754 [salt.state :3516][CRITICAL][3878] Rendering SLS 'base:certs' failed: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 8, in top-level template code File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke rv = self._func(*arguments) File "<template>", line 2, in template File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source self.check_cache(_template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache self.cache_file(template) File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file self.file_client().get_file(saltpath, '', True, self.saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file hash_server, stat_server = self.hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file hash_result = self.hash_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file return self.__hash_and_stat_file(path, saltenv) File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file return self.channel.send(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send return getattr(self.fs, cmd)(load) File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash return self.__file_hash_and_stat(load)[0] File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat return self.servers[fstr](load, fnd), stat_result File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash os.makedirs(cache_dir) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib64/python3.6/os.py", line 210, in makedirs makedirs(head, mode, exist_ok) [Previous line repeated 5 more times] File "/usr/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' ; line 2 --- {% macro includesls(osfullname, osrelease) -%} {% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <====================== {%- endmacro %} {% if grains['os_family'] == 'Suse' %} {% if grains['osfullname'] == 'openSUSE Tumbleweed' %} {% set sls = includesls('Tumbleweed', '') -%} {% else -%} [...] --- 2020-06-08 14:25:39,757 [salt.client.ssh :1170][ERROR ][3878] An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org

Hi Nuno, are you trying to bootstrap the system using "root" user or sudo? and which OS system are you trying to bootstrap? It looks like the cached Salt "thin" on the SSH minion, at "/var/tmp/.root_2c2911_salt/", has a wrong permissions, maybe due a previous bootstrap try. One thing you can try is to remove /var/tmp/.root_2c2911_salt/ directory on the system you want to bootstrap and try again. Hth! Regards, Pablo El 11/6/20 a las 20:12, Nuno Higgs escribió:
Hello,
Thanks for your reply. Mine is a fresh leap install. The only salt components that exist, are the ones built-in to uyuni. Nothing else was installed. This happens when I try to add a new machine, using only ssh, thus being agentless.
Does it ring any bells?
Thanks.! Nuno
-----Original Message----- From: Robert Paschedag [mailto:robert.paschedag@web.de] Sent: 11 June 2020 16:31 To: Nuno Higgs Cc: uyuni-users@opensuse.org Subject: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
The issue got fixed. Maybe just update salt.
sent from my mobile device
-------- Originale Nachricht -------- Von: Nuno Higgs <suse@labs.nuneshiggs.com> Gesendet: Thu Jun 11 17:16:35 GMT+02:00 2020 An: uyuni-users@opensuse.org Cc: suse@labs.nuneshiggs.com Betreff: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
Hello all,
Any ideas regarding my issue? Thanks for your help!
Nuno
From: Nuno Higgs [mailto:suse@labs.nuneshiggs.com] Sent: 08 June 2020 15:31 To: uyuni-users@opensuse.org Subject: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
Hello all,
I've been trying to add several clients - centos 7 and leap 15.1 - to my 2020.05 Uyuni fresh implementation and I am getting on both errors using only ssh.
It seems to be related to this https://github.com/saltstack/salt/issues/38458. Is there any workaround?
I am trying to add a new server, bootstrap, using only ssh.
Thanks a lot for your help. Nuno.
Error log:
2020-06-08 14:25:39,503 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:83: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
ret.update(yaml.load(open('{0}.yml'.format(static_pillar_filename)).read()))
2020-06-08 14:25:39,508 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:91: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
ret.update(yaml.load(open('{0}.yml'.format(global_pillar_filename)).read()))
2020-06-08 14:25:39,753 [salt.utils.templates:180 ][ERROR ][3878] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 169, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 441, in render_jinja_tmpl
trace=tracestr)
salt.exceptions.SaltRenderError: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
; line 2
{% macro includesls(osfullname, osrelease) -%}
{% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <======================
{%- endmacro %}
{% if grains['os_family'] == 'Suse' %}
{% if grains['osfullname'] == 'openSUSE Tumbleweed' %}
{% set sls = includesls('Tumbleweed', '') -%}
{% else -%}
[...]
2020-06-08 14:25:39,754 [salt.state :3516][CRITICAL][3878] Rendering SLS 'base:certs' failed: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
; line 2
{% macro includesls(osfullname, osrelease) -%}
{% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <======================
{%- endmacro %}
{% if grains['os_family'] == 'Suse' %}
{% if grains['osfullname'] == 'openSUSE Tumbleweed' %}
{% set sls = includesls('Tumbleweed', '') -%}
{% else -%}
[...]
2020-06-08 14:25:39,757 [salt.client.ssh :1170][ERROR ][3878] An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
-- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
-- Pablo Suárez Hernández - <psuarezhernandez@suse.de> SUSE Manager Development Team SUSE Linux GmbH, Maxfeldstr. 5, D-90409 Nürnberg - https://www.suse.com/ GF: Felix Imendörffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org

Hello Pablo, I am using root. Remove the directory and the issue persists. Can you help me? Thanks Nuno -----Original Message----- From: Pablo Suárez Hernández [mailto:psuarezhernandez@suse.de] Sent: 12 June 2020 10:22 To: uyuni-users@opensuse.org Subject: Re: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hi Nuno, are you trying to bootstrap the system using "root" user or sudo? and which OS system are you trying to bootstrap? It looks like the cached Salt "thin" on the SSH minion, at "/var/tmp/.root_2c2911_salt/", has a wrong permissions, maybe due a previous bootstrap try. One thing you can try is to remove /var/tmp/.root_2c2911_salt/ directory on the system you want to bootstrap and try again. Hth! Regards, Pablo El 11/6/20 a las 20:12, Nuno Higgs escribió:
Hello,
Thanks for your reply. Mine is a fresh leap install. The only salt components that exist, are the ones built-in to uyuni. Nothing else was installed. This happens when I try to add a new machine, using only ssh, thus being agentless.
Does it ring any bells?
Thanks.! Nuno
-----Original Message----- From: Robert Paschedag [mailto:robert.paschedag@web.de] Sent: 11 June 2020 16:31 To: Nuno Higgs Cc: uyuni-users@opensuse.org Subject: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
The issue got fixed. Maybe just update salt.
sent from my mobile device
-------- Originale Nachricht -------- Von: Nuno Higgs <suse@labs.nuneshiggs.com> Gesendet: Thu Jun 11 17:16:35 GMT+02:00 2020 An: uyuni-users@opensuse.org Cc: suse@labs.nuneshiggs.com Betreff: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
Hello all,
Any ideas regarding my issue? Thanks for your help!
Nuno
From: Nuno Higgs [mailto:suse@labs.nuneshiggs.com] Sent: 08 June 2020 15:31 To: uyuni-users@opensuse.org Subject: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
Hello all,
I've been trying to add several clients - centos 7 and leap 15.1 - to my 2020.05 Uyuni fresh implementation and I am getting on both errors using only ssh.
It seems to be related to this https://github.com/saltstack/salt/issues/38458. Is there any workaround?
I am trying to add a new server, bootstrap, using only ssh.
Thanks a lot for your help. Nuno.
Error log:
2020-06-08 14:25:39,503 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:83: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
ret.update(yaml.load(open('{0}.yml'.format(static_pillar_filename)).re ad()))
2020-06-08 14:25:39,508 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:91: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
ret.update(yaml.load(open('{0}.yml'.format(global_pillar_filename)).re ad()))
2020-06-08 14:25:39,753 [salt.utils.templates:180 ][ERROR ][3878] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 169, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 441, in render_jinja_tmpl
trace=tracestr)
salt.exceptions.SaltRenderError: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
; line 2
{% macro includesls(osfullname, osrelease) -%}
{% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <======================
{%- endmacro %}
{% if grains['os_family'] == 'Suse' %}
{% if grains['osfullname'] == 'openSUSE Tumbleweed' %}
{% set sls = includesls('Tumbleweed', '') -%}
{% else -%}
[...]
2020-06-08 14:25:39,754 [salt.state :3516][CRITICAL][3878] Rendering SLS 'base:certs' failed: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
; line 2
{% macro includesls(osfullname, osrelease) -%}
{% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <======================
{%- endmacro %}
{% if grains['os_family'] == 'Suse' %}
{% if grains['osfullname'] == 'openSUSE Tumbleweed' %}
{% set sls = includesls('Tumbleweed', '') -%}
{% else -%}
[...]
2020-06-08 14:25:39,757 [salt.client.ssh :1170][ERROR ][3878] An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
-- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
-- Pablo Suárez Hernández - <psuarezhernandez@suse.de> SUSE Manager Development Team SUSE Linux GmbH, Maxfeldstr. 5, D-90409 Nürnberg - https://www.suse.com/ GF: Felix Imendörffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org

So, I reinstalled my server. It went beautifully without any issue. I haven’t installed a single patch on my suse server. Today, I tried to add more servers - I had already added 20 - and the error appeared again, and now I cannot add any more servers again... rhn_taskomatic_daemon.log:2020-06-24 13:05:23,517 [DefaultQuartzScheduler_Worker-6] ERROR com.suse.manager.webui.services.SaltServerActionService - Error executing Salt call for action: Hardware List Refreshon minion xvpar6.net.xpto rhn_taskomatic_daemon.log:2020-06-24 13:43:44,089 [DefaultQuartzScheduler_Worker-18] ERROR com.suse.manager.webui.services.SaltServerActionService - Error executing Salt call for action: Apply states [certs, channels, channels.disablelocalrepos, packages]on minion lxcvpar19.net.xpto rhn_taskomatic_daemon.log:2020-06-24 14:12:17,143 [DefaultQuartzScheduler_Worker-1] ERROR com.suse.manager.utils.SaltUtils - JSON syntax error while decoding into a StateApplyResult: rhn_taskomatic_daemon.log:2020-06-24 14:12:17,144 [DefaultQuartzScheduler_Worker-1] ERROR com.suse.manager.utils.SaltUtils - "" rhn_taskomatic_daemon.log:2020-06-24 14:12:17,455 [DefaultQuartzScheduler_Worker-1] ERROR com.suse.manager.utils.SaltUtils - JSON syntax error while decoding into a StateApplyResult: rhn_taskomatic_daemon.log:2020-06-24 14:12:17,455 [DefaultQuartzScheduler_Worker-1] ERROR com.suse.manager.utils.SaltUtils - "" rhn_web_ui.log:2020-06-24 14:12:17,345 [salt-event-thread-6] WARN com.suse.manager.reactor.messaging.JobReturnEventMessageAction - Could not determine if packages changed in call to state.apply because of a parse error rhn_web_ui.log:2020-06-25 09:34:06,644 [ajp-nio-127.0.0.1-8009-exec-5] ERROR com.suse.manager.webui.controllers.utils.AbstractMinionBootstrapper - Error during bootstrap: An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' rhn_web_ui.log:2020-06-25 09:39:19,351 [salt-event-thread-3] WARN com.suse.manager.reactor.messaging.JobReturnEventMessageAction - Could not determine if packages changed in call to state.apply because of a parse error rhn_web_ui.log:2020-06-25 09:48:09,944 [ajp-nio-127.0.0.1-8009-exec-2] ERROR com.suse.manager.webui.controllers.utils.AbstractMinionBootstrapper - Error during bootstrap: An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' rhn_web_ui.log:2020-06-25 09:48:57,401 [ajp-nio-127.0.0.1-8009-exec-4] ERROR com.suse.manager.webui.controllers.utils.AbstractMinionBootstrapper - Error during bootstrap: An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' rhn_web_ui.log:2020-06-25 09:49:46,831 [ajp-nio-127.0.0.1-8009-exec-3] ERROR com.suse.manager.webui.controllers.utils.AbstractMinionBootstrapper - Error during bootstrap: An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' rhn_web_ui.log:2020-06-25 09:57:31,353 [ajp-nio-127.0.0.1-8009-exec-2] ERROR com.suse.manager.webui.controllers.utils.AbstractMinionBootstrapper - Error during bootstrap: An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' rhn_web_ui.log:2020-06-25 09:58:19,104 [ajp-nio-127.0.0.1-8009-exec-4] ERROR com.suse.manager.webui.controllers.utils.AbstractMinionBootstrapper - Error during bootstrap: An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data' It appears that somewhere happened a corruption. What can I do to fix it? Thanks, Nuno -----Original Message----- From: Nuno Higgs [mailto:suse@labs.nuneshiggs.com] Sent: 16 June 2020 08:41 To: 'Pablo Suárez Hernández'; uyuni-users@opensuse.org Subject: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hello Pablo, I am using root. Remove the directory and the issue persists. Can you help me? Thanks Nuno -----Original Message----- From: Pablo Suárez Hernández [mailto:psuarezhernandez@suse.de] Sent: 12 June 2020 10:22 To: uyuni-users@opensuse.org Subject: Re: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied. Hi Nuno, are you trying to bootstrap the system using "root" user or sudo? and which OS system are you trying to bootstrap? It looks like the cached Salt "thin" on the SSH minion, at "/var/tmp/.root_2c2911_salt/", has a wrong permissions, maybe due a previous bootstrap try. One thing you can try is to remove /var/tmp/.root_2c2911_salt/ directory on the system you want to bootstrap and try again. Hth! Regards, Pablo El 11/6/20 a las 20:12, Nuno Higgs escribió:
Hello,
Thanks for your reply. Mine is a fresh leap install. The only salt components that exist, are the ones built-in to uyuni. Nothing else was installed. This happens when I try to add a new machine, using only ssh, thus being agentless.
Does it ring any bells?
Thanks.! Nuno
-----Original Message----- From: Robert Paschedag [mailto:robert.paschedag@web.de] Sent: 11 June 2020 16:31 To: Nuno Higgs Cc: uyuni-users@opensuse.org Subject: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
The issue got fixed. Maybe just update salt.
sent from my mobile device
-------- Originale Nachricht -------- Von: Nuno Higgs <suse@labs.nuneshiggs.com> Gesendet: Thu Jun 11 17:16:35 GMT+02:00 2020 An: uyuni-users@opensuse.org Cc: suse@labs.nuneshiggs.com Betreff: RE: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
Hello all,
Any ideas regarding my issue? Thanks for your help!
Nuno
From: Nuno Higgs [mailto:suse@labs.nuneshiggs.com] Sent: 08 June 2020 15:31 To: uyuni-users@opensuse.org Subject: [uyuni-users] Issues Bootstrap Minions - Add with SSH failed with salt permission denied.
Hello all,
I've been trying to add several clients - centos 7 and leap 15.1 - to my 2020.05 Uyuni fresh implementation and I am getting on both errors using only ssh.
It seems to be related to this https://github.com/saltstack/salt/issues/38458. Is there any workaround?
I am trying to add a new server, bootstrap, using only ssh.
Thanks a lot for your help. Nuno.
Error log:
2020-06-08 14:25:39,503 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:83: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
ret.update(yaml.load(open('{0}.yml'.format(static_pillar_filename)).re ad()))
2020-06-08 14:25:39,508 [py.warnings :99 ][WARNING ][3878] /usr/share/susemanager/modules/pillar/suma_minion.py:91: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
ret.update(yaml.load(open('{0}.yml'.format(global_pillar_filename)).re ad()))
2020-06-08 14:25:39,753 [salt.utils.templates:180 ][ERROR ][3878] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 169, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 441, in render_jinja_tmpl
trace=tracestr)
salt.exceptions.SaltRenderError: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
; line 2
{% macro includesls(osfullname, osrelease) -%}
{% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <======================
{%- endmacro %}
{% if grains['os_family'] == 'Suse' %}
{% if grains['osfullname'] == 'openSUSE Tumbleweed' %}
{% set sls = includesls('Tumbleweed', '') -%}
{% else -%}
[...]
2020-06-08 14:25:39,754 [salt.state :3516][CRITICAL][3878] Rendering SLS 'base:certs' failed: Jinja error: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 8, in top-level template code
File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke
rv = self._func(*arguments)
File "<template>", line 2, in template
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 136, in get_source
self.check_cache(_template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 97, in check_cache
self.cache_file(template)
File "/usr/lib/python3.6/site-packages/salt/utils/jinja.py", line 90, in cache_file
self.file_client().get_file(saltpath, '', True, self.saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1053, in get_file
hash_server, stat_server = self.hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1312, in hash_and_stat_file
hash_result = self.hash_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1305, in hash_file
return self.__hash_and_stat_file(path, saltenv)
File "/usr/lib/python3.6/site-packages/salt/fileclient.py", line 1297, in __hash_and_stat_file
return self.channel.send(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 906, in send
return getattr(self.fs, cmd)(load)
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 681, in file_hash
return self.__file_hash_and_stat(load)[0]
File "/usr/lib/python3.6/site-packages/salt/fileserver/__init__.py", line 673, in __file_hash_and_stat
return self.servers[fstr](load, fnd), stat_result
File "/usr/lib/python3.6/site-packages/salt/fileserver/roots.py", line 280, in file_hash
os.makedirs(cache_dir)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
[Previous line repeated 5 more times]
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
; line 2
{% macro includesls(osfullname, osrelease) -%}
{% include 'certs/{0}.sls'.format(osfullname + osrelease.replace('.', '_')) ignore missing -%} <======================
{%- endmacro %}
{% if grains['os_family'] == 'Suse' %}
{% if grains['osfullname'] == 'openSUSE Tumbleweed' %}
{% set sls = includesls('Tumbleweed', '') -%}
{% else -%}
[...]
2020-06-08 14:25:39,757 [salt.client.ssh :1170][ERROR ][3878] An Exception occurred while executing state.apply: [Errno 13] Permission denied: '/var/tmp/.root_2c2911_salt/running_data'
-- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
-- Pablo Suárez Hernández - <psuarezhernandez@suse.de> SUSE Manager Development Team SUSE Linux GmbH, Maxfeldstr. 5, D-90409 Nürnberg - https://www.suse.com/ GF: Felix Imendörffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
participants (4)
-
Bidault, Philippe
-
Nuno Higgs
-
Pablo Suárez Hernández
-
Robert Paschedag