[ 
https://issues.apache.org/jira/browse/KNOX-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

J.Andreina updated KNOX-2958:
-----------------------------
    Description: 
*PROBLEM STATEMENT:*
Service API links via knox in knox homepage is incorrect 

*BUILDS:*
knox 2.0

*STEPS TO REPRODUCE:*
1. Create a topology1 with WEBHDFS,cm-api,OOZIE,RESOURCEMANAGER service 
2. Login to knox homepage 
3. go to topology1
4. Click on webhdfs api icon
5. Fetch the sample api links

*CURRENT BEHAVIOUR:*
1. cm api url is invalid on knox homepage
invalid url:

 Fetch all CM-managed clusters
curl -iv -X GET "https://knox-host:/gateway/topology1/cm-apiclusters";

Fetches HDFS service details from cluster named 'c1'
curl -iv -X GET 
"https://knox-host:/gateway/topology1/cm-apiclusters/c1/services/HDFS";

2. webhdfs api link is incorrect

incorrect url
curl -iv -X GET 
"https://knox-host:/gateway/topology1/webhdfsv1/testPath?op=LISTSTATUS";


3. Oozie api link is incorrect . Should have "/" after oozie

incorrect url
 curl -iv -X GET "https://knox-host:/gateway/topology1/oozieoozie/versions";


4. Resource manager api link is invalid . Should not have ws in the url

incorrect url
curl -iv -X GET 
"https://knox-host:/gateway/topology1/resourcemanagerws/v1/cluster/metrics";


*EXPECTED BEHAVIOUR:*
correct urls as follows

1. cm valid url : should have "/" after webhdfs in the url as below
curl -iv -X GET "https://knox-host:/gateway/topology1/cm-api/v40/clusters";

2. webhdfs valid url :
valid url : should have "/" after webhdfs in the url as below
curl -iv -X GET 
"https://knox-host:/gateway/topology1/webhdfs/v1/testPath?op=LISTSTATUS";

3. oozie url:
curl -iku hrt_qa:Password@123 -X GET 
"https://knox-host:/gateway/topology1/oozie/oozie/versions";

4. RM url :
curl -iv -X GET 
"https://knox-host:/gateway/topology1/resourcemanager/v1/cluster/metrics";


*OCCURRENCE:*
Reproducible

*IMPACT:*
Not pointing to the appropriate api link , which causes the user to unable to 
access the service api via knox.


  was:
*PROBLEM STATEMENT:*
Service API links via knox in knox homepage is incorrect 

*BUILDS:*
knox 2.0

*STEPS TO REPRODUCE:*
1. Create a topology1 with WEBHDFS,cm-api,OOZIE,RESOURCEMANAGER service 
2. Login to knox homepage 
3. go to topology1
4. Click on webhdfs api icon
5. Fetch the sample api links

*CURRENT BEHAVIOUR:*
1. cm api url is invalid on knox homepage
invalid url:

 Fetch all CM-managed clusters
curl -iv -X GET "https://knox-host:/gateway/topology1/cm-apiclusters";

Fetches HDFS service details from cluster named 'c1'
curl -iv -X GET 
"https://knox-host:/gateway/topology1/cm-apiclusters/c1/services/HDFS";

2. webhdfs api link is incorrect

incorrect url
curl -iv -X GET 
"https://knox-host:/gateway/topology1/webhdfsv1/testPath?op=LISTSTATUS";


3. Oozie api link is incorrect . Should have "/" after oozie

incorrect url
 curl -iv -X GET "https://knox-host:/gateway/topology1/oozieoozie/versions";


4. Resource manager api link is invalid . Should not have ws in the url

incorrect url
curl -iv -X GET 
"https://knox-host:/gateway/topology1/resourcemanagerws/v1/cluster/metrics";


*EXPECTED BEHAVIOUR:*
correct urls as follows

1. cm valid url : should have "/" after webhdfs in the url as below
curl -iv -X GET "https://knox-host:/gateway/topology1/cm-api/v40/clusters";

2. webhdfs valid url :
valid url : should have "/" after webhdfs in the url as below
curl -iv -X GET 
"https://knox-og2u7n-gateway.knox-og2.l2ov-m7vs.int.cldr.work:443/knox-og2u7n/cdp-proxy-token/webhdfs/v1/testPath?op=LISTSTATUS";

3. oozie url:
curl -iku hrt_qa:Password@123 -X GET 
"https://knox-g0w85p-gateway.knox-og2.l2ov-m7vs.int.cldr.work:443/knox-g0w85p/cdp-proxy-api/oozie/oozie/versions";

4. RM url :
curl -iv -X GET 
"https://knox-g0w85p-gateway.knox-og2.l2ov-m7vs.int.cldr.work:443/knox-g0w85p/cdp-proxy-token/resourcemanager/v1/cluster/metrics";



*REPRODUCIBLE ENVIRONMENT:*
https://knox-og2u7n-gateway.knox-og2.l2ov-m7vs.int.cldr.work/knox-og2u7n/homepage/home/?profile=token%3F&topologies=cdp-proxy-token

*OCCURRENCE:*
Reproducible

*IMPACT:*
Not pointing to the appropriate api link , which causes the user to unable to 
access the service api via knox.



> Few Service's API links for a topology on knox home page is incorrect
> ---------------------------------------------------------------------
>
>                 Key: KNOX-2958
>                 URL: https://issues.apache.org/jira/browse/KNOX-2958
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Homepage
>    Affects Versions: 2.0.0
>            Reporter: J.Andreina
>            Priority: Major
>
> *PROBLEM STATEMENT:*
> Service API links via knox in knox homepage is incorrect 
> *BUILDS:*
> knox 2.0
> *STEPS TO REPRODUCE:*
> 1. Create a topology1 with WEBHDFS,cm-api,OOZIE,RESOURCEMANAGER service 
> 2. Login to knox homepage 
> 3. go to topology1
> 4. Click on webhdfs api icon
> 5. Fetch the sample api links
> *CURRENT BEHAVIOUR:*
> 1. cm api url is invalid on knox homepage
> invalid url:
>  Fetch all CM-managed clusters
> curl -iv -X GET "https://knox-host:/gateway/topology1/cm-apiclusters";
> Fetches HDFS service details from cluster named 'c1'
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/cm-apiclusters/c1/services/HDFS";
> 2. webhdfs api link is incorrect
> incorrect url
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/webhdfsv1/testPath?op=LISTSTATUS";
> 3. Oozie api link is incorrect . Should have "/" after oozie
> incorrect url
>  curl -iv -X GET "https://knox-host:/gateway/topology1/oozieoozie/versions";
> 4. Resource manager api link is invalid . Should not have ws in the url
> incorrect url
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/resourcemanagerws/v1/cluster/metrics";
> *EXPECTED BEHAVIOUR:*
> correct urls as follows
> 1. cm valid url : should have "/" after webhdfs in the url as below
> curl -iv -X GET "https://knox-host:/gateway/topology1/cm-api/v40/clusters";
> 2. webhdfs valid url :
> valid url : should have "/" after webhdfs in the url as below
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/webhdfs/v1/testPath?op=LISTSTATUS";
> 3. oozie url:
> curl -iku hrt_qa:Password@123 -X GET 
> "https://knox-host:/gateway/topology1/oozie/oozie/versions";
> 4. RM url :
> curl -iv -X GET 
> "https://knox-host:/gateway/topology1/resourcemanager/v1/cluster/metrics";
> *OCCURRENCE:*
> Reproducible
> *IMPACT:*
> Not pointing to the appropriate api link , which causes the user to unable to 
> access the service api via knox.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to