[Deepsea-users] Rolling Updates
Robert Grosschopff
Robert.Grosschopff at suse.com
Wed Jul 11 04:21:18 MDT 2018
Hi *,
partner has set up SES5 a little while ago. Meanwhile new patches arrived and he wanted to do a rolling upgrade as described in the admin guide by executin 'salt-run state.orch ceph.stage.0'
He now keeps getting dmidecode warnings but also jinja errors flagged as CRITICAL.
Any hints what to look for in order to resolve this issue ?
Robert
sesadmin:~ # salt-run state.orch ceph.stage.0
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
deepsea_minions : valid
master_minion : valid
ceph_version : valid
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[ERROR ] Rendering exception occurred: Jinja error: Unable to
load json from /bin/sh: jq: command not found
Traceback (most recent call last):
File
"/usr/lib/python2.7/site-packages/salt/utils/templates.py",
line 368, in render_jinja_tmpl
output = template.render(**decoded_context)
File
"/usr/lib/python2.7/site-packages/jinja2/environment.py", line
989, in render
return self.environment.handle_exception(exc_info, True)
File
"/usr/lib/python2.7/site-packages/jinja2/environment.py", line
754, in handle_exception
reraise(exc_type, exc_value, tb)
File "<template>", line 26, in top-level template code
File "/usr/lib/python2.7/site-packages/salt/utils/jinja.py",
line 403, in load_json
'Unable to load json from {0}'.format(value))
TemplateRuntimeError: Unable to load json from /bin/sh: jq:
command not found
; line 26
---
[...]
wait until all active mds but one have stopped:
salt.state:
- tgt: {{ master }}
- sls: ceph.wait.mds.1-mds
{% set standbys = salt['saltutil.runner']('cmd.run', cmd='ceph
--format=json fs dump 2>/dev/null | jq -c [.standbys[].name]')
| load_json %} <======================
{% for standby in standbys %}
shutdown standby daemon {{ standby }}:
salt.state:
- tgt: {{ standby }}
- sls: ceph.mds.shutdown
[...]
---
[CRITICAL] Rendering SLS 'base:ceph.restart.mds.default-shrink'
failed: Jinja error: Unable to load json from /bin/sh: jq:
command not found
Traceback (most recent call last):
File
"/usr/lib/python2.7/site-packages/salt/utils/templates.py",
line 368, in render_jinja_tmpl
output = template.render(**decoded_context)
File
"/usr/lib/python2.7/site-packages/jinja2/environment.py", line
989, in render
return self.environment.handle_exception(exc_info, True)
File
"/usr/lib/python2.7/site-packages/jinja2/environment.py", line
754, in handle_exception
reraise(exc_type, exc_value, tb)
File "<template>", line 26, in top-level template code
File "/usr/lib/python2.7/site-packages/salt/utils/jinja.py",
line 403, in load_json
'Unable to load json from {0}'.format(value))
TemplateRuntimeError: Unable to load json from /bin/sh: jq:
command not found
; line 26
---
[...]
wait until all active mds but one have stopped:
salt.state:
- tgt: {{ master }}
- sls: ceph.wait.mds.1-mds
{% set standbys = salt['saltutil.runner']('cmd.run', cmd='ceph
--format=json fs dump 2>/dev/null | jq -c [.standbys[].name]')
| load_json %} <======================
{% for standby in standbys %}
shutdown standby daemon {{ standby }}:
salt.state:
- tgt: {{ standby }}
- sls: ceph.mds.shutdown
[...]
---
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
[WARNING ] Although 'dmidecode' was found in path, the current
user cannot execute it. Grains output might not be accurate.
sesadmin_master:
Data failed to compile:
----------
Rendering SLS 'base:ceph.restart.mds.default-shrink'
failed: Jinja error: Unable to load json from /bin/sh: jq:
command not found
Traceback (most recent call last):
File
"/usr/lib/python2.7/site-packages/salt/utils/templates.py",
line 368, in render_jinja_tmpl
output = template.render(**decoded_context)
File
"/usr/lib/python2.7/site-packages/jinja2/environment.py", line
989, in render
return self.environment.handle_exception(exc_info, True)
File
"/usr/lib/python2.7/site-packages/jinja2/environment.py", line
754, in handle_exception
reraise(exc_type, exc_value, tb)
File "<template>", line 26, in top-level template code
File "/usr/lib/python2.7/site-packages/salt/utils/jinja.py",
line 403, in load_json
'Unable to load json from {0}'.format(value))
TemplateRuntimeError: Unable to load json from /bin/sh: jq:
command not found
; line 26
---
[...]
wait until all active mds but one have stopped:
salt.state:
- tgt: {{ master }}
- sls: ceph.wait.mds.1-mds
{% set standbys = salt['saltutil.runner']('cmd.run', cmd='ceph
--format=json fs dump 2>/dev/null | jq -c [.standbys[].name]')
| load_json %} <======================
{% for standby in standbys %}
shutdown standby daemon {{ standby }}:
salt.state:
- tgt: {{ standby }}
- sls: ceph.mds.shutdown
[...]
---
sesadmin:~ #
More information about the Deepsea-users
mailing list