[
https://issues.apache.org/jira/browse/KNOX-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zita Dombi updated KNOX-3012:
-----------------------------
Description:
In HDDS-9732 we changed the datanode links on the SCM UI in Ozone, which we
need to follow in Knox too.
>From this:
{code:java}
<a
href="{{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}"
target="_blank">{{typestat.hostname}}</a>
{code}
To this:
{code:java}
<a href="{{typestat.protocol}}://{{typestat.hostname}}:{{typestat.port}}"
target="_blank">{{typestat.hostname}}</a>
{code}
We didn't adjust this in Knox, it's still looking for the previous one:
{code:java}
<!-- outbound rule for the datanode links on SCM UI -->
<rule dir="OUT" name="OZONE-SCM/ozone-scm/outbound/datanode/address">
<match
pattern="{{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}"/>
<rewrite
template="{gateway.url}/ozone-scm/datanode/index.html?host={{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}
"/>
</rule>
{code}
was:
In HDDS-9732 we changed the datanode links on the SCM UI in Ozone, which we
need to follow in Knox too.
>From this:
{code:java}
<a
href="{{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}"
target="_blank">{{typestat.hostname}}</a>
{code}
To this:
{code:java}
<a href="{{typestat.protocol}}://{{typestat.hostname}}:{{typestat.port}}"
target="_blank">{{typestat.hostname}}</a>
{code}
We didn't adjust this in Knox, it's still looking for the previous one, check
[here|https://github.infra.cloudera.com/CDH/knox/blob/cdpd-master/gateway-service-definitions/src/main/resources/services/ozone-scm/1.2.0/rewrite.xml#L120]:
{code:java}
<!-- outbound rule for the datanode links on SCM UI -->
<rule dir="OUT" name="OZONE-SCM/ozone-scm/outbound/datanode/address">
<match
pattern="{{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}"/>
<rewrite
template="{gateway.url}/ozone-scm/datanode/index.html?host={{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}
"/>
</rule>
{code}
> Fix the DN links on the Ozone SCM UI
> ------------------------------------
>
> Key: KNOX-3012
> URL: https://issues.apache.org/jira/browse/KNOX-3012
> Project: Apache Knox
> Issue Type: Bug
> Reporter: Zita Dombi
> Assignee: Zita Dombi
> Priority: Major
>
> In HDDS-9732 we changed the datanode links on the SCM UI in Ozone, which we
> need to follow in Knox too.
> From this:
> {code:java}
> <a
> href="{{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}"
> target="_blank">{{typestat.hostname}}</a>
> {code}
> To this:
> {code:java}
> <a href="{{typestat.protocol}}://{{typestat.hostname}}:{{typestat.port}}"
> target="_blank">{{typestat.hostname}}</a>
> {code}
> We didn't adjust this in Knox, it's still looking for the previous one:
> {code:java}
> <!-- outbound rule for the datanode links on SCM UI -->
> <rule dir="OUT" name="OZONE-SCM/ozone-scm/outbound/datanode/address">
> <match
> pattern="{{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}"/>
> <rewrite
> template="{gateway.url}/ozone-scm/datanode/index.html?host={{typestat.portval.toLowerCase()}}://{{typestat.hostname}}:{{typestat.portno}}
> "/>
> </rule>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)