Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Mac OS Monterey etcd error when running addon make test #2375

Open
1 of 10 tasks
12345lcr opened this issue May 13, 2022 · 0 comments
Open
1 of 10 tasks

Mac OS Monterey etcd error when running addon make test #2375

12345lcr opened this issue May 13, 2022 · 0 comments
Labels
area/addons kind/bug PR/Issue related to a bug

Comments

@12345lcr
Copy link
Contributor

Bug description
When running make test in addon folder on Mac OS Monterey, got the output below.

[BeforeSuite] BeforeSuite 
/Users/lchenrui/go/src/github.com/vmware-tanzu/tanzu-framework/addons/controllers/suite_test.go:105

  Unexpected error:
      <*fmt.wrapError | 0xc0000a2b60>: {
          msg: "unable to start control plane itself: failed to start the controlplane. retried 5 times: timeout waiting for process etcd to start successfully (it may have failed to start, or stopped unexpectedly before becoming ready)",
          err: <*fmt.wrapError | 0xc0000a2b40>{
              msg: "failed to start the controlplane. retried 5 times: timeout waiting for process etcd to start successfully (it may have failed to start, or stopped unexpectedly before becoming ready)",
              err: <*errors.errorString | 0xc000457700>{
                  s: "timeout waiting for process etcd to start successfully (it may have failed to start, or stopped unexpectedly before becoming ready)",
              },
          },
      }
      unable to start control plane itself: failed to start the controlplane. retried 5 times: timeout waiting for process etcd to start successfully (it may have failed to start, or stopped unexpectedly before becoming ready)
  occurred

When running etcd --version in hack/tools/bin/kubebuilder/bin, got the output below.

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x1bed3fa, 0x21)
        /usr/local/go/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff308 sp=0x7ff7bfeff2e8 pc=0x102a871
runtime.goenvs()
        /usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff338 sp=0x7ff7bfeff308 pc=0x10283f3
runtime.schedinit()
        /usr/local/go/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff3a0 sp=0x7ff7bfeff338 pc=0x102d166
runtime.rt0_go(0x7ff7bfeff3d0, 0x2, 0x7ff7bfeff3d0, 0x1000000, 0x2, 0x7ff7bfeff5e0, 0x7ff7bfeff5e5, 0x0, 0x7ff7bfeff5ef, 0x7ff7bfeff5fd, ...)
        /usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff3a8 sp=0x7ff7bfeff3a0 pc=0x1056474

This problem cannot be reproduced in my linux env.

Guessing this issue is related: golang/go#49425

If we are about to bump kubebuilders, be aware that above 3.0.0, kubebuilders starts only release its own binary and removed the other dependencies like etcd.

Affected product area (please put an X in all that apply)

  • APIs
  • Addons
  • CLI
  • Docs
  • IAM
  • Installation
  • Plugin
  • Security
  • Test and Release
  • User Experience

Expected behavior
Pass make test in Mac OS Monterey

Steps to reproduce the bug
Run make test in addon folder under Mac OS Monterey

Version (include the SHA if the version is not obvious)

Environment where the bug was observed (cloud, OS, etc)
Mac OS Monterey 12.3.1

Relevant Debug Output (Logs, manifests, etc)

@12345lcr 12345lcr added kind/bug PR/Issue related to a bug needs-triage Indicates an issue or PR needs to be triaged labels May 13, 2022
@maralavi maralavi added area/addons and removed needs-triage Indicates an issue or PR needs to be triaged labels Jul 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/addons kind/bug PR/Issue related to a bug
Projects
None yet
Development

No branches or pull requests

2 participants