Bug #20568
closedthe dashboard uses absolute links for filesystems and clients
0%
Description
If ceph dashboard is accessed under a subpath (e.g. via kubernetes proxy), then some links are being rewritten correctly, but some are not.
Given ceph dashboard is served from `http://127.0.0.1:8001/api/v1/namespaces/ceph/services/ceph-mgr/proxy/health`,
cluster health points to: http://127.0.0.1:8001/api/v1/namespaces/ceph/services/ceph-mgr/proxy/health
servers points to http://127.0.0.1:8001/api/v1/namespaces/ceph/services/ceph-mgr/proxy/servers
but cephfs filesystem link points to http://127.0.0.1:8001/filesystem/1/ (incorrect absolute link)
within the filesystems page, client details points to http://127.0.0.1:8001/clients/1/ (incorrect absolute link)
Updated by John Spray over 6 years ago
The ones that aren't being rewritten are the ones that are populated dynamically (i.e. 'url' attributes of JSON objects coming from the backend). I suspect to make this work we'd need to make the module itself aware of it's prefix (which shouldn't be hard)
Updated by John Spray over 6 years ago
- Status changed from New to Fix Under Review
Updated by John Spray over 6 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to luminous
Updated by Nathan Cutler over 6 years ago
- Copied to Backport #21549: luminous: the dashboard uses absolute links for filesystems and clients added
Updated by Kefu Chai over 6 years ago
- Status changed from Pending Backport to Resolved