Actions
Bug #51564
closedDashboard URL address is incorrect after bootstrap with IPV6 address
Status:
Duplicate
Priority:
High
Assignee:
-
Category:
ceph-mgr
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Description of problem:
After cephadm bootstrap with IPV6 address as mon ip gives the dashboard url which is incorrect,
It got missed square brackets
[ceph: root@magna081 /]# ceph mgr services { "dashboard": "https://2620:52:0:880:225:90ff:fefc:2536:8443/", "prometheus": "http://2620:52:0:880:225:90ff:fefc:2536:9283/" } [root@magna081 ~]# curl -k https://2620:52:0:880:225:90ff:fefc:2536:8443/ curl: (3) Port number ended with ':'
working URL
[root@magna081 ~]# curl -k https://[2620:52:0:880:225:90ff:fefc:2536]:8443/ <!doctype html> <html lang="en-US"> <head> <meta charset="utf-8"> <title>Red Hat Ceph Storage</title> <script> document.write('<base href="' + document.location+ '" />'); </script> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" type="image/x-icon" id="cdFavicon" href="assets/RedHat_favicon_0319.svg"> <link rel="stylesheet" href="styles.ba0e881c90a69f89b28e.css"></head> <body> <noscript> <div class="noscript container" ng-if="false"> <div class="jumbotron alert alert-danger"> <h2 i18n>JavaScript required!</h2> <p i18n>A browser with JavaScript enabled is required in order to use this service.</p> <p i18n>When using Internet Explorer, please check your security settings and add this address to your trusted sites.</p> </div> </div> </noscript> <cd-root></cd-root> <script src="runtime.15da3e1803be577b1f00.js" defer></script><script src="polyfills.b66d1515aae6fe3887b1.js" defer></script><script src="scripts.6bda3fa7e09a87cd4228.js" defer></script><script src="main.b310ff35ff1005ba4a64.js" defer></script></body> </html>
Steps to Reproduce:
- Bootstrap with IPV6 address as --mon-ip
- Get dashboard URL using `ceph mgr services`
- try to login to dashboard
Updated by Sebastian Wagner almost 3 years ago
- Project changed from Orchestrator to mgr
- Category set to ceph-mgr
i think this is a bug in the C++ code of the MGR not able to handle IPv6 addresses when generating URLs
Updated by Sebastian Wagner over 2 years ago
- Is duplicate of Bug #52117: mgr/dashboard: redirect to active mgr ipv6 lacks [], fails added
Updated by Sebastian Wagner over 2 years ago
- Status changed from New to Duplicate
Actions