[
https://issues.apache.org/jira/browse/KNOX-2930?focusedWorklogId=867939&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-867939
]
ASF GitHub Bot logged work on KNOX-2930:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Jun/23 06:57
Start Date: 28/Jun/23 06:57
Worklog Time Spent: 10m
Work Description: dombizita opened a new pull request, #767:
URL: https://github.com/apache/knox/pull/767
## What changes were proposed in this pull request?
Previously if there were multiple OMs/SCMs in a cluster on the Knox UI if
you clicked on any of the OM/SCM UIs it was consistently showing one of the
OMs/SCMs UI, because `$serviceUrl[OZONE-SCM]` was picking the first URL from
the three in the `cdp-proxy.xml`.
In this fix I add a `?host={host}` to the ending of the URLs and used that
`{host}` later when rewriting the requests, so it will go to the correct host.
I added a separate route for the documentation to work in the UIs.
## How was this patch tested?
I tested it in a cluster.
Issue Time Tracking
-------------------
Worklog Id: (was: 867939)
Remaining Estimate: 0h
Time Spent: 10m
> Fix OM and SCM UIs to work in HA
> --------------------------------
>
> Key: KNOX-2930
> URL: https://issues.apache.org/jira/browse/KNOX-2930
> Project: Apache Knox
> Issue Type: Bug
> Reporter: Zita Dombi
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently if there are multiple OMs or SCMs in Ozone and on the Knox UI you
> click on any of the UIs it will show always one OM's or SCM's UI instead of
> the corresponding OM/SCM UI.
> This happens because it is using consistently the first OM/SCM host from the
> 3 in the cdp-proxy.xml, to fix this we need to construct the URLs with the
> correct host.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)