Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-592

Proxy user cannot view its session log

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.0
    • Component/s: Server
    • Labels:
      None
    • Environment:
      Docker running on Kubernetes

      Description

      Here is how to reproduce the issue.

      --------------------------------------------------------------------------------------------

      root@storage-0-0:~# kinit admin

      Password for admin@AZDATA.LOCAL:

      Warning: Your password will expire in 41 days on Tue Jun 11 08:35:19 2019

      root@storage-0-0:~#

      root@storage-0-0:~# curl -k -X POST --negotiate -u : --data '{"kind": "pyspark", "proxyUser": "admin"}' -H "Content-Type: application/json" 'https://gateway-0.azdata.local:8443/gateway/default/livy/v1/sessions'

      {"id":0,"name":null,"appId":null,"owner":"knox","proxyUser":"admin","state":"starting","kind":"pyspark","appInfo":\{"driverLogUrl":null,"sparkUiUrl":null}

      ,"log":[]}

       

      root@storage-0-0:~# curl -k --negotiate -u : 'https://gateway-0.azdata.local:8443/gateway/default/livy/v1/sessions'

      {"from":0,"total":2,"sessions":[{"id":0,"name":null,"appId":"application_1556613676830_0001","owner":"knox","proxyUser":"admin","state":"starting","kind":"pyspark","appInfo":

      {"driverLogUrl":"[http://storage-0-0.storage-0-svc.test.svc.cluster.local:8042/node/containerlogs/container_1556613676830_0001_01_000001/admin]","sparkUiUrl":"[http://master-0.azdata.local:8088/proxy/application_1556613676830_0001/]"}

      ,"log":[]},{"id":1,"name":null,"appId":null,"owner":"knox","proxyUser":"bob","state":"starting","kind":"pyspark","appInfo":

      {"driverLogUrl":null,"sparkUiUrl":null}

      ,"log":[]}]}

      --------------------------------------------------------------------------------------------

      From the result, you can see that the user admin can not view the log of its own session. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yihengw Yiheng Wang
                Reporter:
                zixu Zikun Xu
              • Votes:
                1 Vote for this issue
                Watchers:
                3 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