Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-230

Incorrect application state returned for "ws/v1/apps" REST call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10
    • core - scheduler
    • None

    Description

       Yunikorn image latest

        yunikorn-scheduler-web:
          Container ID:   docker://e649fb4db6a3b822bb2a6bc5e4bf607e5848548df7eb57f24dbe37550ec87ec3
          Image:          apache/yunikorn:web-0.9.0
          Image ID:       docker-pullable://apache/yunikorn@sha256:52e5cfc8823e38d50249f2c3fcd50b0f2755ffb79534482e0d9d67f8b8e604f3 

      Steps to reproduce:

      • Deploy the job
      • Check the status
      kubectl get pods -n development                                                                           
      NAME       READY   STATUS    RESTARTS   AGE
      sleepjob   1/1     Running   0          26s 
      • Verify the API response, it still shows as starting..
      [
          {
              "allocations": [
                  {
                      "allocationKey": "11fc645b-b0c7-11ea-aeee-0e65480c53e2",
                      "allocationTags": null,
                      "applicationId": "abcd",
                      "nodeId": "ip-10-192-172-176.ca-central-1.compute.internal",
                      "partition": "default",
                      "priority": "<nil>",
                      "queueName": "root.development",
                      "resource": "[memory:50 vcore:100]",
                      "uuid": "5a35de0b-b0d4-4434-9f17-3618faa0e247"
                  }
              ],
              "applicationID": "abcd",
              "applicationState": "Starting",
              "partition": "[mycluster]default",
              "queueName": "root.development",
              "submissionTime": 1592417964439019878,
              "usedResource": "[memory:50 vcore:100]"
          }
      ] 
      • Job completed
        kubectl get pods -n development                                                                           
        NAME       READY   STATUS      RESTARTS   AGE
        sleepjob   0/1     Completed   0          60s 
      • Still API response shows the status as STARTING
        [
            {
                "allocations": null,
                "applicationID": "abcd",
                "applicationState": "Starting",
                "partition": "[mycluster]default",
                "queueName": "root.development",
                "submissionTime": 1592417964439019878,
                "usedResource": "[memory:0 vcore:0]"
            }
        ] 

      Attachments

        Issue Links

          Activity

            People

              wilfreds Wilfred Spiegelenburg
              ayubpathan Ayub Pathan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: