Bug 2213766 - [CEE/sd][cephadm-ansible] Unable to get global configuration values via cephadm-ansible module ceph_config on RHCS 5.3z3
Summary: [CEE/sd][cephadm-ansible] Unable to get global configuration values via cepha...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RADOS
Version: 5.3
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: 7.1
Assignee: Sridhar Seshasayee
QA Contact: skanta
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2249017 2250161 2267614 2298578 2298579
TreeView+ depends on / blocked
 
Reported: 2023-06-09 09:17 UTC by Tridibesh Chakraborty
Modified: 2024-11-10 15:22 UTC (History)
15 users (show)

Fixed In Version: ceph-18.2.1-8.el9cp
Doc Type: Bug Fix
Doc Text:
.The `ceph config dump` command output is now consistent Previously, the `ceph config dump` command without the pretty print formatted output showed the localized option name and its value. An example of a normalized vs localized option is shown below: ---- Normalized: mgr/dashboard/ssl_server_port Localized: mgr/dashboard/x/ssl_server_port ---- However, the pretty-printed (for example, JSON) version of the command only showed the normalized option name as shown in the example above. The `ceph config dump` command result was inconsistent between with and without the pretty-print option. With this fix, the output is consistent and always shows the localized option name when using the `ceph config dump --format TYPE` command, with `TYPE` as the pretty-print type.
Clone Of:
: 2249017 2250161 (view as bug list)
Environment:
Last Closed: 2024-06-13 14:20:30 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 62379 0 None None None 2023-10-06 16:09:53 UTC
Github ceph ceph pull 52906 0 None Merged mon/ConfigMonitor: Show localized name in "config dump --format json" output 2023-11-29 22:38:07 UTC
Github ceph ceph pull 53886 0 None Merged quincy: mon/ConfigMonitor: Show localized name in "config dump --format json" output 2024-01-10 22:41:20 UTC
Github ceph ceph pull 53888 0 None open reef: mon/ConfigMonitor: Show localized name in "config dump --format json" output 2024-01-10 22:43:48 UTC
Red Hat Issue Tracker RHCEPH-6813 0 None None None 2023-06-09 14:17:40 UTC
Red Hat Product Errata RHSA-2024:3925 0 None None None 2024-06-13 14:20:52 UTC

Description Tridibesh Chakraborty 2023-06-09 09:17:01 UTC
Description of problem:

Unable to get Ceph configuration value via Cephadm ansible playbook using module ceph_config


Version-Release number of selected component (if applicable):
RHCS 5.3z3 (16.2.10-172.el8cp)

How reproducible:
It is happening all the time if we choose specific few ceph configuration parameters

Steps to Reproduce:
1. Write a cephadm-ansible playbook using ceph_config task
2. Try to get the value of a Ceph configuration (example, mgr/dashboard/<NODE_NAME>/server_addr)
3. The task fails to get the value, although same value can be retrieved via ceph config dump. 

Actual results:

It is failed to fetch the value

~~~
TASK [get the mgr/dashboard/<NODE_NAME>/server_addr configuration] ******************************************************************************************************************************************************
task path: /usr/share/cephadm-ansible/test.yml:7
ok: [rhcs5-admin] => changed=false 
  ansible_facts:
    discovered_interpreter_python: /usr/libexec/platform-python
  cmd:
  - cephadm
  - shell
  - ceph
  - config
  - dump
  - --format
  - json
  delta: '0:00:02.256076'
  end: '2023-06-07 18:02:25.640664'
  rc: 0
  start: '2023-06-07 18:02:23.384588'
  stderr: No value found for who=mgr option=mgr/dashboard/<NODE_NAME>/server_addr  <=== Unable to find the config parameter
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
~~~


Expected results:

It should be able to fetch the value


Additional info:

It is not happening for all the ceph configuration parameters, I have noticed it for the parameter mgr/dashboard/<NODE_NAME>/server_addr.

Comment 3 Scott Ostapovicz 2023-06-14 16:06:50 UTC
Missed the 5.3 z4 deadline.  Moving from z4 to z5.

Comment 40 errata-xmlrpc 2024-06-13 14:20:30 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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and bug fix update), 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/RHSA-2024:3925


Note You need to log in before you can comment on or make changes to this bug.