Wilfred Spiegelenburg created YUNIKORN-1562:
-----------------------------------------------

             Summary: plugin mode: remove status update completely
                 Key: YUNIKORN-1562
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1562
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: shim - kubernetes
            Reporter: Wilfred Spiegelenburg
            Assignee: Wilfred Spiegelenburg


The k8shim in plugin mode only updates the pod status to move the pod from the 
_unschedulablePods_ structure to the activeQ. This caused an issue in the way 
we did it before YUNIKORN-1547 as we could leave a pod in a custom state that 
K8s does not know.

After YUNIKORN-1547 we used the pending state. There could still be cases that 
the state set by the plugin showed up and not the state that the pod was really 
in. A pod could be fully scheduled and running while still showing pending as 
set by the plugin.

The state change was added to the plugin code based on an incorrect assumption 
that it would trigger a move between the _unschedulablePods_ and {_}activeQ{_}. 
However the scheduler explicitly excluded pod status when checking for updates. 
We should thus not set the status of the pod to limit side effects and impact.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: dev-h...@yunikorn.apache.org

Reply via email to