Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2958

Few Service's API links for a topology on knox home page is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Homepage
    • None

    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

          Activity

            People

              smolnar Sandor Molnar
              andreina J.Andreina
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m