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
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