[Deepsea-users] Rolling Updates

Nathan Cutler ncutler at suse.cz
Wed Jul 11 06:07:33 MDT 2018


In my initial response below, I neglected to specify which machine to 
run the zypper command on. It should be run on the Salt Master.

Nathan

On 07/11/2018 12:45 PM, Nathan Cutler wrote:
> Looks like jq is not installed. Can the partner try installing it (as 
> root)?
> 
> # zypper ref ; zypper in jq
> 
> Does that help?
> 
> On 07/11/2018 12:21 PM, Robert Grosschopff wrote:
>> 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:~ #
>>
>> _______________________________________________
>> Deepsea-users mailing list
>> Deepsea-users at lists.suse.com
>> http://lists.suse.com/mailman/listinfo/deepsea-users
>>
> 

-- 
Nathan Cutler
Software Engineer Distributed Storage
SUSE LINUX, s.r.o.
Tel.: +420 284 084 037


More information about the Deepsea-users mailing list