[Deepsea-users] Antw: Re: Rolling Updates
Martin Weiss
Martin.Weiss at suse.com
Wed Jul 11 23:53:47 MDT 2018
Thanks for this feedback!
Then I believe we have to have it in the spec of he deepsea rpm and we also have to ensure that stage.0 is „re-executed“ after upgrades and installed the package...
Martin
> Am 11.07.2018 um 20:55 schrieb Eric Jackson <ejackson at suse.com>:
>
> Hi Martin,
> The dependency did get added to /srv/salt/ceph/packages/common/default.sls
> with https://github.com/SUSE/DeepSea/pull/1117 for master and
> https://github.com/SUSE/DeepSea/pull/1161 for SES5. That change is in version
> 0.8.5.
> Adding it to the rpm does not resolve the issue for all the minions.
> Running
>
> # salt-run state.orch ceph.stage.0
>
> or more directly
>
> # salt '*' state.apply ceph.packages.common
>
> would you let you verify that jq is getting installed on all the minions. If
> that is not happening, then we might have a different issue.
>
> Eric
>
>> On Wednesday, July 11, 2018 11:06:52 AM EDT Martin Weiss wrote:
>> Hm - in case deepsea requires this package to be installed - could this be
>> added as a dependency to the deepsea rpm?
>>
>> Thanks
>> Martin
>>
>>
>>
>> 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 ] Altho>>>> 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/pytho>>>> 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
>
> <signature.asc>
> <Part.002>
More information about the Deepsea-users
mailing list