Bug 2274457 - [cee/sd][ceph-dashboard] Unable to access dashboard when enabling the "url_prefix" in RHCS 7 dashboard configuration [NEEDINFO]
Summary: [cee/sd][ceph-dashboard] Unable to access dashboard when enabling the "url_pr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 7.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 8.1z4
Assignee: Aashish sharma
QA Contact: Vinayak Papnoi
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-11 07:23 UTC by Lijo Stephen Thomas
Modified: 2025-11-12 02:38 UTC (History)
6 users (show)

Fixed In Version: ceph-19.2.1-286
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-11-12 02:38:18 UTC
Embargoed:
lithomas: needinfo? (nia)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-8794 0 None None None 2024-04-11 07:28:24 UTC
Red Hat Issue Tracker RHCSDASH-1360 0 None None None 2024-04-11 07:28:27 UTC
Red Hat Knowledge Base (Solution) 7016136 0 None None None 2024-04-11 07:24:31 UTC
Red Hat Product Errata RHSA-2025:21068 0 None None None 2025-11-12 02:38:21 UTC

Description Lijo Stephen Thomas 2024-04-11 07:23:55 UTC
Description of problem:
-----------------------
Unable to access dashboard when enabling the "url_prefix" in RHCS 7 dashboard configuration.


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHCS 7.0/7.0z1 


How reproducible:
-----------------

Steps to Reproduce:
1. Deploy RHCS 7.0/7.0z1 
2. Set the preferred url_prefix using below command:
    # ceph config set mgr mgr/dashboard/url_prefix /<preferred url>
3. Disable and enable the dashboard module:
    # ceph mgr module disable dashboard
    # ceph mgr module enable dashboard
4. Check the dashboard url and access the dashboard via browser.
   # ceph mgr services


Ref: https://access.redhat.com/solutions/7016136


Actual results:
---------------
Dashboard page is not accessible and is showing blank page.


Expected results:
-----------------
Dashboard should be visible with new prefix_url.


Additional info:
----------------
This method is working fine in RHCS 4, working in RHCS 5.3z4 ( or above) and 6.1 ( or above)

Old related bugs: 
https://bugzilla.redhat.com/show_bug.cgi?id=2210212
https://bugzilla.redhat.com/show_bug.cgi?id=2129861

Comment 1 Lijo Stephen Thomas 2024-04-11 07:30:04 UTC
Reproducer Info:
----------------

Reproduced in both - 7.0/7.0z1

1. Verify the current setup:
~~~
[ceph: root@rhcs7node1 /]# ceph versions
{
    "mon": {
        "ceph version 18.2.0-153.el9cp (76e5b5a44ec041903b3169062ab564a70ba60652) reef (stable)": 3
    },
    "mgr": {
        "ceph version 18.2.0-153.el9cp (76e5b5a44ec041903b3169062ab564a70ba60652) reef (stable)": 3
    },
    "osd": {
        "ceph version 18.2.0-153.el9cp (76e5b5a44ec041903b3169062ab564a70ba60652) reef (stable)": 3
    },
    "overall": {
        "ceph version 18.2.0-153.el9cp (76e5b5a44ec041903b3169062ab564a70ba60652) reef (stable)": 9
    }
}

[root@rhcs7node1 ~]# ceph mgr services
{
    "dashboard": "https://192.168.122.89:8443/",
    "prometheus": "http://192.168.122.89:9283/"
}

[root@rhcs7node1 ~]# ceph orch host ls
HOST         ADDR             LABELS                 STATUS  
rhcs7client  192.168.122.140  grafana                        
rhcs7node1   192.168.122.89   _admin,mons,mgrs,osds          
rhcs7node2   192.168.122.34   mons,mgrs,osds,_admin          
rhcs7node3   192.168.122.111  mons,mgrs,osds                 
4 hosts in cluster
~~~

2. Set the url_prefix using the below method and re-enable dashboard module:
~~~
[root@rhcs7node1 ~]# ceph config get mgr mgr/dashboard/url_prefix

[root@rhcs7node1 ~]# ceph config set mgr mgr/dashboard/url_prefix /dashboard
[root@rhcs7node1 ~]# ceph config get mgr mgr/dashboard/url_prefix
/dashboard
[root@rhcs7node1 ~]# 
[root@rhcs7node1 ~]# ceph mgr module disable dashboard
[root@rhcs7node1 ~]# ceph mgr module enable dashboard
[root@rhcs7node1 ~]# ceph mgr services
{
    "dashboard": "https://192.168.122.89:8443/dashboard/",
    "prometheus": "http://192.168.122.89:9283/"
}
~~~

3. While accessing the dashboard url - https://192.168.122.89:8443/dashboard/, getting a blank page.

4. While checking the active mgr logs, I can see the below errors while accessing the dashboard:

~~~
[root@rhcs7node1 ~]# journalctl -f -u ceph-e91f0238-dc6d-11ee-ab15-525400251b44.lcjcex.service

[...]

Apr 10 13:24:05 rhcs7node1 ceph-mgr[1608]: [dashboard INFO request] [::ffff:192.168.122.1:58680] [GET] [200] [0.187s] [4.3K] [db1ed3e9-302d-447e-b343-2d8969866ab8] /dashboard/
Apr 10 13:24:05 rhcs7node1 ceph-mgr[1608]: [dashboard INFO request] [::ffff:192.168.122.1:58680] [GET] [404] [0.002s] [154.0B] [16c3dde6-d723-4a67-aed8-6d3209858264] /runtime.6dd36b45e5d46ae1.js
Apr 10 13:24:05 rhcs7node1 ceph-mgr[1608]: [dashboard INFO request] [::ffff:192.168.122.1:58692] [GET] [404] [0.003s] [157.0B] [f37562f3-2776-4d00-90a8-848cf5f81670] /polyfills.374f1f989f34e1be.js
Apr 10 13:24:05 rhcs7node1 ceph-mgr[1608]: [dashboard INFO request] [::ffff:192.168.122.1:58700] [GET] [404] [0.003s] [154.0B] [a9a5a4ee-f15a-491e-9dc4-e53c6ba926bc] /styles.ed181c65984e0be3.css
Apr 10 13:24:05 rhcs7node1 ceph-mgr[1608]: [dashboard INFO request] [::ffff:192.168.122.1:58680] [GET] [404] [0.006s] [155.0B] [a538f38f-71f8-4c31-b49f-bd15ca2af579] /scripts.177a7ad3f45b4499.js
Apr 10 13:24:05 rhcs7node1 ceph-mgr[1608]: [dashboard INFO request] [::ffff:192.168.122.1:58704] [GET] [404] [0.001s] [152.0B] [82ccff4a-fe27-447f-8f37-847840add2b3] /main.2fe13b7975b5181f.js
Apr 10 13:24:05 rhcs7node1 ceph-mgr[1608]: [dashboard INFO request] [::ffff:192.168.122.1:58680] [GET] [404] [0.002s] [158.0B] [be10528e-94ab-4f9f-bd06-76e93af3a6f0] /assets/RedHat_favicon_0319.svg
Apr 10 13:24:06 rhcs7node1 ceph-mgr[1608]: [dashboard INFO request] [::ffff:192.168.122.1:58692] [GET] [404] [0.002s] [141.0B] [f8efa8a3-5e7e-437b-acdf-67363adf2e9d] /en-US.js
~~~

Let me know if you need more info.

Regards,
Lijo Thomas
RHCS support.

Comment 6 errata-xmlrpc 2025-11-12 02:38:18 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 (Important: Red Hat Ceph Storage 8.1 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-2025:21068


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