Bug 1836369

Summary: [FFU] overcloud ceph-upgrade run failed when using "ceph::profile::params::osds: {}" in ExtraConfig
Product: Red Hat OpenStack Reporter: MD Sufiyan <msufiyan>
Component: openstack-tripleo-commonAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: fpantano, gfidente, mburns, slinaber
Target Milestone: z13Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-common-8.7.1-23.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-28 18:23:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description MD Sufiyan 2020-05-15 17:48:17 UTC
Description of problem:

overcloud ceph-upgrade run failed when using "ceph::profile::params::osds: {}" in ExttraConfig:

~~~
engine.log:2020-05-15 11:45:05.573 1728 INFO workflow_trace [req-b1c27f8c-d313-4c62-82c2-16528d92617a 97d5c028d50a4d7780ddf042fabf1cc0 72e26db738aa46e08719b9b17fe2d7e4 - default
default] Task 'ceph_base_ansible_workflow' (eb6ee5b2-785d-4220-a624-413abc1ff616) [RUNNING -> ERROR, msg=Ceph deployment stopped, puppet-ceph hieradata found. Convert it into ceph-ansible variables. [u'ceph::profile::params::osds']] (execution_id=252a055a-932e-4edc-9d4c-d6fc17786e4e)
~~~

~~~
$.keys().flatten().select(regex('^ceph::profile::params::osds$').search($)).where($ != null)
~~~

>> It is failing due to "{}" which is an empty hash thus not being considered as a null value and returns as if there were devices still defined.

This change seems to be recommended via doc bug as per BZ[1] but it seems to code for same is not working

[1]https://bugzilla.redhat.com/show_bug.cgi?id=1738592


Version-Release number of selected component (if applicable):
OSP13

Actual results:
overcloud ceph-upgrade run is failing

Expected results:
overcloud ceph-upgrade should pass

Comment 17 errata-xmlrpc 2020-10-28 18:23:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 13.0 director bug fix advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4388