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.
Attachments
Issue Links
- links to