Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup the prerequisites for running the unit tests #661

Closed
mkumatag opened this issue May 5, 2022 · 2 comments · Fixed by #667
Closed

Setup the prerequisites for running the unit tests #661

mkumatag opened this issue May 5, 2022 · 2 comments · Fixed by #667
Assignees
Labels
area/provider/ibmcloud Issues or PRs related to ibmcloud provider kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone

Comments

@mkumatag
Copy link
Member

mkumatag commented May 5, 2022

/kind bug
/area provider/ibmcloud

What steps did you take and what happened:
Hitting with following error while running the make test, which needs to be fixed by installing/configuring required prereqs as part of prereqs in the make file itself

Failure [0.040 seconds]
[BeforeSuite] BeforeSuite 
/Users/manjunath/clusterapi_ws/src/sigs.k8s.io/cluster-api-provider-ibmcloud/cloud/scope/suite_test.go:43

  Unexpected error:
      <*fmt.wrapError | 0xc000834080>: {
          msg: "unable to start control plane itself: failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory",
          err: <*fmt.wrapError | 0xc000834060>{
              msg: "failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory",
              err: <*fs.PathError | 0xc0000ae600>{
                  Op: "fork/exec",
                  Path: "/usr/local/kubebuilder/bin/etcd",
                  Err: <syscall.Errno>0x2,
              },
          },
      }
      unable to start control plane itself: failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory
  occurred

  /Users/manjunath/clusterapi_ws/src/sigs.k8s.io/cluster-api-provider-ibmcloud/cloud/scope/suite_test.go:53

What did you expect to happen:

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api version:
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. area/provider/ibmcloud Issues or PRs related to ibmcloud provider labels May 5, 2022
@mkumatag
Copy link
Member Author

mkumatag commented May 5, 2022

/assign @Amulyam24

@mkumatag
Copy link
Member Author

mkumatag commented May 5, 2022

workaround for this issue:

# set the KUBEBUILDER_ASSETS environment with proper directory which contains apiserver, etcd
$ KUBEBUILDER_ASSETS="/Users/manjunath/Library/Application Support/io.kubebuilder.envtest/k8s/1.23.3-darwin-amd64" make test

@mkumatag mkumatag added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label May 5, 2022
@mkumatag mkumatag added this to the 0.3 milestone May 5, 2022
@mkumatag mkumatag assigned Prajyot-Parab and unassigned Amulyam24 May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/ibmcloud Issues or PRs related to ibmcloud provider kind/bug Categorizes issue or PR as related to a bug. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants