Bug 2345267 - [GSS] Ceph API returns empty ceph version field on api/host request
Summary: [GSS] Ceph API returns empty ceph version field on api/host request
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 6.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 8.1
Assignee: Afreen
QA Contact: Vinayak Papnoi
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks: 2357853 2357854 2357889
TreeView+ depends on / blocked
 
Reported: 2025-02-12 15:37 UTC by Rodrigo Capa
Modified: 2025-04-16 06:35 UTC (History)
11 users (show)

Fixed In Version: ceph-19.2.1-113.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2357853 2357854 2357889 (view as bug list)
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 70821 0 None None None 2025-04-07 19:11:31 UTC
Github ceph ceph pull 62716 0 None open mgr/dashboard: Fix empty ceph version in GET api/hosts 2025-04-07 19:11:31 UTC
Red Hat Issue Tracker RHCEPH-10602 0 None None None 2025-02-12 15:39:27 UTC
Red Hat Issue Tracker RHCSDASH-1946 0 None None None 2025-03-10 15:38:55 UTC
Red Hat Knowledge Base (Solution) 7115287 0 None None None 2025-04-11 01:53:02 UTC

Description Rodrigo Capa 2025-02-12 15:37:12 UTC
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:


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