Created
December 11, 2017 19:36
-
-
Save anonymous/2eeb0baa451e8dfa2363c16ec5459787 to your computer and use it in GitHub Desktop.
Upgrade ran aground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt --versions-report | |
Salt Version: | |
Salt: 2017.7.2 | |
Dependency Versions: | |
cffi: 1.9.1 | |
cherrypy: Not Installed | |
dateutil: 2.1 | |
docker-py: Not Installed | |
gitdb: Not Installed | |
gitpython: Not Installed | |
ioflo: Not Installed | |
Jinja2: 2.9.6 | |
libgit2: 0.25.1 | |
libnacl: Not Installed | |
M2Crypto: Not Installed | |
Mako: Not Installed | |
msgpack-pure: Not Installed | |
msgpack-python: 0.4.6 | |
mysql-python: Not Installed | |
pycparser: 2.17 | |
pycrypto: 2.6.1 | |
pycryptodome: Not Installed | |
pygit2: 0.25.1 | |
Python: 2.7.12 (default, Sep 1 2016, 22:14:00) | |
python-gnupg: 0.4.1 | |
PyYAML: 3.10 | |
PyZMQ: 14.5.0 | |
RAET: Not Installed | |
smmap: Not Installed | |
timelib: Not Installed | |
Tornado: 4.2.1 | |
ZMQ: 4.0.5 | |
System Versions: | |
dist: | |
locale: UTF-8 | |
machine: x86_64 | |
release: 4.9.27-14.31.amzn1.x86_64 | |
system: Linux | |
version: Not Installed | |
##################### | |
salt 'OTCMVM0000' state.apply salt.master | |
OTCMVM0000: | |
Data failed to compile: | |
---------- | |
Rendering SLS 'base:salt.master' failed: Jinja error: coercing to Unicode: need string or buffer, int found | |
/var/cache/salt/minion/files/base/salt/map.jinja(43): | |
--- | |
[...] | |
{## | |
Setup variable using grains['os_family'] based logic, only add key:values here | |
that differ from whats in defaults.yaml | |
##} | |
{% set osrelease = salt['grains.get']('osrelease') %} | |
{% set os_family_map = salt['grains.filter_by']({ <====================== | |
'Debian': { | |
'pkgrepo': 'deb http://repo.saltstack.com/apt/' + | |
salt['grains.get']('os')|lower + '/' + salt['grains.get']('osmajorrelease', osrelease) + '/amd64/latest ' + salt['grains.get']('oscodename') + ' main', | |
'key_url': 'https://repo.saltstack.com/apt/' + salt['grains.get']('os')|lower + '/' + salt['grains.get']('osmajorrelease', osrelease) + '/amd64/latest/SALTSTACK-GPG-KEY.pub', | |
'libgit2': 'libgit2-22', | |
[...] | |
--- | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/utils/templates.py", line 413, in render_jinja_tmpl | |
output = template.render(**decoded_context) | |
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 1008, in render | |
return self.environment.handle_exception(exc_info, True) | |
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 780, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "<template>", line 1, in top-level template code | |
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 1073, in make_module | |
return TemplateModule(self, self.new_context(vars, shared, locals)) | |
File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 1152, in __init__ | |
body_stream = list(template.root_render_func(context)) | |
File "/var/cache/salt/minion/files/base/salt/map.jinja", line 43, in top-level template code | |
{% set os_family_map = salt['grains.filter_by']({ | |
TypeError: coercing to Unicode: need string or buffer, int found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment