Project

General

Profile

Bug #41797

mgr/dashboard: Configuring an URL prefix does not work as expected

Added by Lenz Grimmer 5 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
dashboard/backend
Target version:
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

This was reported by Thomas on the ceph-users mailing list:

I have successfully configured Ceph dashboard following the this documentation.

According to the documentation you can configure a URL prefix with this command:

ceph config set mgr mgr/dashboard/url_prefix $PREFIX

However when I try to access the dashboard with this URL http://$IP:$PORT/$PREFIX/ I get an error:

{"status": "404 Not Found", "version": "8.9.1", "detail": "The path
'/dashboard' was not found.", "traceback": "Traceback (most recent call
last):\n  File
\"/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py\", line 670,
in respond\n    response.body = self.handler()\n  File
\"/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py\", line 220,
in __call__\n    self.body = self.oldhandler(*args, **kwargs)\n  File
\"/usr/lib/python2.7/dist-packages/cherrypy/_cperror.py\", line 415, in
__call__\n    raise self\nNotFound: (404, \"The path '/dashboard' was
not found.\")\n"}

A workaround for this error is to use this URL: http://$IP:$PORT/#/$PREFIX/

Using the # ensures that redirect to active MGR service is working.


Related issues

Copied to mgr - Backport #42150: nautilus: mgr/dashboard: Configuring an URL prefix does not work as expected Resolved

History

#1 Updated by Volker Theile 5 months ago

  • Assignee set to Volker Theile

#2 Updated by Volker Theile 5 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 30599

#3 Updated by Lenz Grimmer 5 months ago

  • Status changed from Fix Under Review to Pending Backport

#4 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #42150: nautilus: mgr/dashboard: Configuring an URL prefix does not work as expected added

#5 Updated by Nathan Cutler 3 months ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF