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

YuniKorn does not emit FailedScheduling event to k8s if pod uses non-existing PVC

    XMLWordPrintableJSON

Details

    Description

      If a pod uses a non-existing PVC, the default-scheduler emit the following event to Kubernetes:

      Events:
        Type     Reason            Age   From               Message
        ----     ------            ----  ----               -------
        Warning  FailedScheduling  45s   default-scheduler  persistentvolumeclaim "ebs-claim-auto" not found
      

      YuniKorn does not emit such event, we only know what has happened by checking the logs:

      2020-04-10T00:09:06.620Z	DEBUG	cache/task.go:404	checking PVC	{"name": "non-existing-pvc"}
      2020-04-10T00:09:06.620Z	DEBUG	cache/application.go:277	task is not ready for scheduling	{"appID": "pod-with-non-existing-pvc", "taskID": "5c3961d1-7abf-11ea-b27d-02ea8179ac42", "error": "persistentvolumeclaim \"non-existing-pvc\" not found"}
      

      Attachments

        Issue Links

          Activity

            People

              adam.antal Adam Antal
              adam.antal Adam Antal
              Votes:
              0 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