kfctl icon indicating copy to clipboard operation
kfctl copied to clipboard

Get the wrong cache directory on kfctl apply

Open isaacyuenhk01 opened this issue 4 years ago • 3 comments

When I pull the version bf67bc61 on master branch and run kfctl apply -V -f ./kfctl_aws.v1.1.0.yaml, .cache is created in .cache/manifests/manifests-1.1-branch, but the kfctl is still trying to find files in 2020/09/17 19:39:03 absolute path error in '/Users/user/Desktop/kubernetes/manifests/kfdef/.cache/manifests/manifests-master/namespaces/base' : evalsymlink failure on '/Users/user/Desktop/kubernetes/manifests/kfdef/.cache/manifests/manifests-master/namespaces/base' : lstat /Users/user/Desktop/kubernetes/manifests/kfdef/.cache/manifests/manifests-master: no such file or directory. But when I run kfctl apply -V -f ./kfctl_aws.yaml, it will try to find the files in manifests-1.1-branch folder.

As a result, kfctl can't create CRD and any resources to create a Kubeflow cluster.

kubectl version Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.15", GitCommit:"2adc8d7091e89b6e3ca8d048140618ec89b39369", GitTreeState:"clean", BuildDate:"2020-09-02T11:40:00Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.13-eks-2ba888", GitCommit:"2ba888155c7f8093a1bc06e3336333fbdb27b3da", GitTreeState:"clean", BuildDate:"2020-07-17T18:48:53Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

kfctl version kfctl v1.1.0-0-g9a3621e

isaacyuenhk01 avatar Sep 17 '20 11:09 isaacyuenhk01

Issue-Label Bot is automatically applying the labels:

Label Probability
area/kfctl 0.95
kind/bug 0.80

Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Sep 17 '20 11:09 issue-label-bot[bot]

Facing the same issue while both building and applying.

INFO[0000] No name specified in KfDef.Metadata.Name; defaulting to kubeflow based on location of config file: k8s.yaml.  filename="coordinator/coordinator.go:202"
INFO[0000] Creating directory .cache                     filename="kfconfig/types.go:450"
INFO[0000] Fetching https://github.com/kubeflow/manifests/archive/v1.1-branch.tar.gz to .cache/manifests  filename="kfconfig/types.go:498"
INFO[0001] Updating localPath to .cache/manifests/manifests-1.1-branch  filename="kfconfig/types.go:565"
INFO[0001] Fetch succeeded; LocalPath .cache/manifests/manifests-1.1-branch  filename="kfconfig/types.go:586"
INFO[0001] Processing application: namespaces            filename="kustomize/kustomize.go:515"
WARN[0001] Cannot get kustomization from kustomize/namespaces/base: open kustomize/namespaces/base/kustomization.yaml: no such file or directory  filename="kustomize/kustomize.go:734"

akshatgit avatar Sep 18 '20 18:09 akshatgit

When I pull the version bf67bc61 on master branch

Let's avoid using master branch, you're encouraged to follow AWS installation guidance https://www.kubeflow.org/docs/aws/deploy/install-kubeflow/

PatrickXYS avatar Nov 25 '20 04:11 PatrickXYS