Project

General

Profile

Actions

Bug #41797

closed

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

Added by Lenz Grimmer over 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
General - Back-end
Target version:
% Done:

0%

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

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 1 (0 open1 closed)

Copied to Dashboard - Backport #42150: nautilus: mgr/dashboard: Configuring an URL prefix does not work as expectedResolvedTiago MeloActions
Actions #1

Updated by Volker Theile over 4 years ago

  • Assignee set to Volker Theile
Actions #2

Updated by Volker Theile over 4 years ago

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

Updated by Lenz Grimmer over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Nathan Cutler over 4 years ago

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

Updated by Nathan Cutler over 4 years 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".

Actions #6

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 146 to General - Back-end
Actions

Also available in: Atom PDF