l2-k3d-multi icon indicating copy to clipboard operation
l2-k3d-multi copied to clipboard

Running on Mac

Open jblackburn21 opened this issue 3 years ago • 2 comments

Hi,

I was able to get the example running on mac using PR #3, but I'm seeing a failure on the link step.

the linkerd mc check command returns this

x remote cluster access credentials are valid
            * failed to connect to API for cluster: [west]: Get "https://172.18.0.6:6443/version?timeout=30s": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    see https://linkerd.io/checks/#l5d-smc-target-clusters-access for hints
W0511 09:19:44.728000   75418 transport.go:260] Unable to cancel request for promhttp.RoundTripperFunc

x clusters share trust anchors
    Problematic clusters:
    * west: unable to fetch anchors: Get "https://172.18.0.6:6443/api/v1/namespaces/linkerd/configmaps/linkerd-config?timeout=30s": context deadline exceeded
    see https://linkerd.io/checks/#l5d-multicluster-clusters-share-anchors for hints

I see this in the service-mirror logs

time="2021-05-11T15:17:40Z" level=info msg="Received: RepairEndpoints" apiAddress="https://172.18.0.6:6443" cluster=remote
time="2021-05-11T15:17:43Z" level=warning msg="Gateway returned unexpected status 503. Marking as unhealthy" probe-key=west

I'm able to curl between the clusters, so I'm not sure why there is a timeout. Do you have any ideas on what could be causing this?

jblackburn21 avatar May 11 '21 15:05 jblackburn21

Got same error on macOS after link:

➜ linkerd --context=k3d-west multicluster check
linkerd-multicluster
--------------------
√ Link CRD exists
√ Link resources are valid
	* east
× remote cluster access credentials are valid
            * failed to connect to API for cluster: [east]: Get "https://172.18.0.4:6443/version?timeout=30s": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    see https://linkerd.io/2.10/checks/#l5d-smc-target-clusters-access for hints
W0803 12:54:03.243432    8945 transport.go:260] Unable to cancel request for promhttp.RoundTripperFunc
× clusters share trust anchors
    Problematic clusters:
    * east: unable to fetch anchors: Get "https://172.18.0.4:6443/api/v1/namespaces/linkerd/configmaps/linkerd-config?timeout=30s": context deadline exceeded
    see https://linkerd.io/2.10/checks/#l5d-multicluster-clusters-share-anchors for hints
√ service mirror controller has required permissions
	* east
√ service mirror controllers are running
	* east

Status check results are ×

However, the demo can still run well.

hongbo-miao avatar Aug 03 '21 19:08 hongbo-miao

More info from @jblackburn21 regarding this issue is at https://linkerd.slack.com/archives/C89RTCWJF/p1621264019131700?thread_ts=1620836050.032800&cid=C89RTCWJF https://linkerd.slack.com/archives/C89RTCWJF/p1628029929120800?thread_ts=1620836050.032800&cid=C89RTCWJF for future reference.

hongbo-miao avatar Aug 04 '21 13:08 hongbo-miao