Description of problem: Answer to https://<node>:8443/api/host request has changed, and the ceph_version field for every service is empty. This doesn't allow client applications recognize to which Ceph version are connecting Version-Release number of selected component (if applicable): Returns empty value on 17.2.6-246.el9cp / 6.1.8 Returns empty value on 18.2.1-229.el9cp / 7.1.1 Returns empty value on 19.2.0-55.el9cp / 8.0.1 Returns the expected value on 16.2.10-248.el8cp / 5.3.6 How reproducible: Send a GET request for https://<node>:8443/api/host Steps to Reproduce: Note: in this example localhost is the MGR node 1 - Create a valid token by a api/auth request # curl -k -X POST "https://localhost:8443/api/auth" -H "Accept: application/vnd.ceph.api.v1.0+json" -H "Content-Type: application/json" -d '{"username": "admin_user", "password": "admin_password"}' 2 - Use the "token" field to create a GET request for api/host #curl -k -H "Accept: application/vnd.ceph.api.v1.0+json" -H "Authorization: Bearer <value_of_the_token_field>" -X GET 'https://localhost:8443/api/host' Actual results: Every "ceph_version" field for each service is empty [{"ceph_version": "", "services": [], "sources": {"ceph": false, "orchestrator": true}, "hostname": "mgmt-0.lab.upshift.rdu2.redhat.com", "addr": "10.0.94.184", "labels": ["_admin", "mon", "mgr"], "status": "", "service_instances": [{"type": "mon", "count": 1}, {"type": "mgr", "count": 1}, {"type": "ceph-exporter", "count": 1}, {"type": "crash", "count": 1}, {"type": "node-exporter", "count": 1}, {"type": "alertmanager", "count": 1}, {"type": "grafana", "count": 1}, {"type": "prometheus", "count": 1}]}, {"ceph_version": "", "services": [], "sources": {"ceph": false, "orchestrator": true}, "hostname": "mons-0.rodrdu7.lab.upshift.rdu2.redhat.com", "addr": "10.0.90.215", "labels": ["mon", "mgr"], "status": "", "service_instances": [{"type": "ceph-exporter", "count": 1}, {"type": "crash", "count": 1}, {"type": "node-exporter", "count": 1}]}, {"ceph_version": "", "services": [], "sources": {"ceph": false, "orchestrator": true}, "hostname": "osds-0.rodrdu7.lab.upshift.rdu2.redhat.com", "addr": "10.0.89.111", "labels": ["osd"], "status": "", "service_instances": [{"type": "ceph-exporter", "count": 1}, {"type": "crash", "count": 1}, {"type": "node-exporter", "count": 1}, {"type": "mon", "count": 1}, {"type": "osd", "count": 3}]}, {"ceph_version": "", "services": [], "sources": {"ceph": false, "orchestrator": true}, "hostname": "osds-1.rodrdu7.lab.upshift.rdu2.redhat.com", "addr": "10.0.92.90", "labels": ["osd"], "status": "", "service_instances": [{"type": "ceph-exporter", "count": 1}, {"type": "crash", "count": 1}, {"type": "node-exporter", "count": 1}, {"type": "mgr", "count": 1}, {"type": "osd", "count": 3}]}, {"ceph_version": "", "services": [], "sources": {"ceph": false, "orchestrator": true}, "hostname": "osds-2.rodrdu7.lab.upshift.rdu2.redhat.com", "addr": "10.0.93.182", "labels": ["osd"], "status": "", "service_instances": [{"type": "ceph-exporter", "count": 1}, {"type": "crash", "count": 1}, {"type": "node-exporter", "count": 1}, {"type": "mon", "count": 1}, {"type": "osd", "count": 3}]}] Expected results: This is from Ceph 5.3.6 [{"hostname": "mgmt-0.lab.psi.pnq2.redhat.com", "services": [{"type": "mgr", "id": "mgmt-0.lab.psi.pnq2.redhat.com.jbumlh", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "mon", "id": "mgmt-0.lab.psi.pnq2.redhat.com", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}], "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)", "addr": "10.74.213.116", "labels": ["_admin", "mgr", "mon"], "sources": {"ceph": true, "orchestrator": true}, "status": ""}, {"hostname": "mons-0.lab.psi.pnq2.redhat.com", "services": [{"type": "mgr", "id": "mons-0.dilebn", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "mon", "id": "mons-0", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}], "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)", "addr": "10.74.215.54", "labels": ["mgr", "mon"], "sources": {"ceph": true, "orchestrator": true}, "status": ""}, {"hostname": "osds-0.lab.psi.pnq2.redhat.com", "services": [{"type": "mon", "id": "osds-0", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "11", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "2", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "7", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}], "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)", "addr": "10.74.209.114", "labels": ["osd"], "sources": {"ceph": true, "orchestrator": true}, "status": ""}, {"hostname": "osds-1.lab.psi.pnq2.redhat.com", "services": [{"type": "mon", "id": "osds-1", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "13", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "3", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "8", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}], "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)", "addr": "10.74.208.182", "labels": ["osd"], "sources": {"ceph": true, "orchestrator": true}, "status": ""}, {"hostname": "osds-2.lab.psi.pnq2.redhat.com", "services": [{"type": "mon", "id": "osds-2", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "1", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "12", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "6", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}], "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)", "addr": "10.74.213.194", "labels": ["osd"], "sources": {"ceph": true, "orchestrator": true}, "status": ""}, {"hostname": "osds-3.lab.psi.pnq2.redhat.com", "services": [{"type": "osd", "id": "0", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "10", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "5", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}], "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)", "addr": "10.74.212.233", "labels": ["osd"], "sources": {"ceph": true, "orchestrator": true}, "status": ""}, {"hostname": "osds-4.lab.psi.pnq2.redhat.com", "services": [{"type": "osd", "id": "14", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "4", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}, {"type": "osd", "id": "9", "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)"}], "ceph_version": "ceph version 16.2.10-248.el8cp (0edb63afd9bd3edb333364f2e0031b77e62f4896) pacific (stable)", "addr": "10.74.214.131", "labels": ["osd"], "sources": {"ceph": true, "orchestrator": true}, "status": ""}] Additional info:
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 (Important: Red Hat Ceph Storage 8.1 security, bug fix, and enhancement updates), 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-2025:9775