nephos
nephos copied to clipboard
Failed to create new connection: context deadline exceeded on pytest integration on MacOS Minikube
Hi, I have trouble when i try to execute integration test on minikube cluster on mac os. It failed during the test:
kubectl exec peer1-hlf-peer-66bdfc4657-wmmfs -n peers -- peer channel list
The error from the peer:
[grpc] HandleSubConnStateChange -> DEBU 039 pickfirstBalancer: HandleSubConnStateChange: 0xc42001a390, CONNECTING
Error: error getting endorser client for channel: endorser client failed to connect to peer1-hlf-peer:7051: failed to create new connection: context deadline exceeded
command terminated with exit code 1
The connection failed because there is an incorrect value set in CORE_PEER_ADDRESS
:
root@peer1-hlf-peer-66bdfc4657-wmmfs:/# env | grep CORE_PEER_ADD
CORE_PEER_ADDRESSAUTODETECT=true
CORE_PEER_ADDRESS=peer1-hlf-peer:7051
My test environment : Mac OS 10.13.6 Minikube
⇒ kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.2", GitCommit:"cff46ab41ff0bb44d8584413b598ad8360ec1def", GitTreeState:"clean", BuildDate:"2019-01-10T23:28:14Z", GoVersion:"go1.11.4", Compiler:"gc", Platform:"linux/amd64"}
⇒ helm version
Client: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.3", GitCommit:"eecf22f77df5f65c823aacd2dbd30ae6c65f186e", GitTreeState:"clean"}
Can you help me ? How can i remove this variable it's not necessary because CORE_PEER_ADDRESSAUTODETECT=true
?