You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/02/02 08:36:00 UTC
[jira] [Commented] (YUNIKORN-2377) fix "kubectl: executable file not found in $PATH" for e2e
[ https://issues.apache.org/jira/browse/YUNIKORN-2377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17813562#comment-17813562 ]
Chia-Ping Tsai commented on YUNIKORN-2377:
------------------------------------------
It seems there are 3 approaches.
# check kubectl command in script to make sure the node has installed kubectl
# export the pre-download kubectl (in the k8shim tools) to $PATH
# re-write the code to replace the "shell command" by k8s go APIs.
I prefer the option 2 as it is most transparent.
> fix "kubectl: executable file not found in $PATH" for e2e
> ---------------------------------------------------------
>
> Key: YUNIKORN-2377
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2377
> Project: Apache YuniKorn
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Priority: Minor
>
> {code:java}
> Logging yk fullstatedump, spec: Test_With_Spark_Jobs
> Created log file: /home/chia7712/project/yunikorn-k8shim/build/e2e/spark_jobs_scheduling/Test_With_Spark_Jobs_ykFullStateDump.json
> Handling connection for 9080
> Logging k8s cluster info, spec: Test_With_Spark_Jobs
> Created log file: /home/chia7712/project/yunikorn-k8shim/build/e2e/spark_jobs_scheduling/Test_With_Spark_Jobs_k8sClusterInfo.txt
> Failed to log namespace info, ns:spark-qlje7ea5p1, err: exec: "kubectl": executable file not found in $PATH {code}
> I observed the error message "kubectl: executable file not found in $PATH" from e2e test. In the e2e we call the "kubectl" command by shell ([https://github.com/apache/yunikorn-k8shim/blob/master/test/e2e/framework/helpers/k8s/k8s_utils.go#L637]), and hence it will cause the error if the node running the e2e does not install the kubectl.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org