Closed uniquejava closed 4 weeks ago
From the log, we can see that the reason why milvus cannot start is that it cannot connect to etcd.
[2024/06/19 02:37:06.433 +00:00] [DEBUG] [config/etcd_source.go:50] ["init etcd source"] [etcdInfo="{\"UseEmbed\":false,\"EnableAuth\":false,\"UserName\":\"\",\"PassWord\":\"\",\"UseSSL\":false,\"Endpoints\":[\"my-milvus-etcd:2379\"],\"KeyPrefix\":\"by-dev\",\"CertFile\":\"/path/to/etcd-client.pem\",\"KeyFile\":\"/path/to/etcd-client-key.pem\",\"CaCertFile\":\"/path/to/ca.pem\",\"MinVersion\":\"1.3\",\"RefreshInterval\":5000000000}"]
[2024/06/19 02:37:06.434 +00:00] [INFO] [etcd/etcd_util.go:49] ["create etcd client"] [useEmbedEtcd=false] [useSSL=false] [endpoints="[my-milvus-etcd:2379]"] [minVersion=1.3]
[2024/06/19 02:37:11.435 +00:00] [INFO] [paramtable/base_table.go:209] ["init with etcd failed"] [error="context deadline exceeded"]
milvus is really nice, I am able to run it locally with docker, and integrate it with Spring AI (RAG) successfully, however when deploy to cluster environment, milvus standalone cannot start up. I am planning to migrate qdrant. Thus pod my-qdrant is running there
From the log, we can see that the reason why milvus cannot start is that it cannot connect to etcd.
[2024/06/19 02:37:06.433 +00:00] [DEBUG] [config/etcd_source.go:50] ["init etcd source"] [etcdInfo="{\"UseEmbed\":false,\"EnableAuth\":false,\"UserName\":\"\",\"PassWord\":\"\",\"UseSSL\":false,\"Endpoints\":[\"my-milvus-etcd:2379\"],\"KeyPrefix\":\"by-dev\",\"CertFile\":\"/path/to/etcd-client.pem\",\"KeyFile\":\"/path/to/etcd-client-key.pem\",\"CaCertFile\":\"/path/to/ca.pem\",\"MinVersion\":\"1.3\",\"RefreshInterval\":5000000000}"] [2024/06/19 02:37:06.434 +00:00] [INFO] [etcd/etcd_util.go:49] ["create etcd client"] [useEmbedEtcd=false] [useSSL=false] [endpoints="[my-milvus-etcd:2379]"] [minVersion=1.3] [2024/06/19 02:37:11.435 +00:00] [INFO] [paramtable/base_table.go:209] ["init with etcd failed"] [error="context deadline exceeded"]
Yes, I can see that. I use default settings for everything. How can I debug etcd's connectivity within cluster. I should be able to step into pod with
oc debug pod/pod_id
ChatGPTing...
etcd logs
etcd 02:26:04.72 Welcome to the Bitnami etcd container
etcd 02:26:04.72 Subscribe to project updates by watching https://github.com/bitnami/containers
etcd 02:26:04.72 Submit issues and feature requests at https://github.com/bitnami/containers/issues
etcd 02:26:04.72
etcd 02:26:04.72 INFO ==> ** Starting etcd setup **
etcd 02:26:04.74 INFO ==> Validating settings in ETCD_* env vars..
etcd 02:26:04.74 WARN ==> You set the environment variable ALLOW_NONE_AUTHENTICATION=yes. For safety reasons, do not use this flag in a production environment.
etcd 02:26:04.74 INFO ==> Initializing etcd
etcd 02:26:04.75 INFO ==> Generating etcd config file using env variables
etcd 02:26:04.77 WARN ==> cluster size < 1
etcd 02:26:04.77 INFO ==> get_etcd_active_endpoints:
etcd 02:26:04.78 INFO ==> There is no data from previous deployments
etcd 02:26:04.78 INFO ==> ** etcd setup finished! **
etcd 02:26:04.80 INFO ==> ** Starting etcd **
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_ADVERTISE_CLIENT_URLS","variable-value":"http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2379"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_AUTO_COMPACTION_MODE","variable-value":"revision"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_AUTO_COMPACTION_RETENTION","variable-value":"1000"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_AUTO_TLS","variable-value":"false"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_CLIENT_CERT_AUTH","variable-value":"false"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_DATA_DIR","variable-value":"/bitnami/etcd/data"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_ELECTION_TIMEOUT","variable-value":"2500"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_HEARTBEAT_INTERVAL","variable-value":"500"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_INITIAL_ADVERTISE_PEER_URLS","variable-value":"http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_LISTEN_CLIENT_URLS","variable-value":"http://0.0.0.0:2379"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_LISTEN_PEER_URLS","variable-value":"http://0.0.0.0:2380"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_LOG_LEVEL","variable-value":"info"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_NAME","variable-value":"my-milvus-etcd-0"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_PEER_AUTO_TLS","variable-value":"false"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:113","msg":"recognized and used environment variable","variable-name":"ETCD_QUOTA_BACKEND_BYTES","variable-value":"4294967296"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_TRUSTED_CA_FILE="}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_CONF_FILE=/opt/bitnami/etcd/conf/etcd.yaml"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_ON_K8S=yes"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_SNAPSHOTS_DIR=/snapshots"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_BIN_DIR=/opt/bitnami/etcd/bin"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_VOLUME_DIR=/bitnami/etcd"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_INITIAL_CLUSTER_TOKEN="}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_CLUSTER_DOMAIN="}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_DISASTER_RECOVERY=no"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_KEY_FILE="}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_CONF_DIR=/opt/bitnami/etcd/conf"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_DAEMON_GROUP=etcd"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_START_FROM_SNAPSHOT=no"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_INIT_SNAPSHOT_FILENAME="}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_INIT_SNAPSHOTS_DIR=/init-snapshot"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_TMP_DIR=/opt/bitnami/etcd/tmp"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_INITIAL_CLUSTER_STATE="}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_BASE_DIR=/opt/bitnami/etcd"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_INITIAL_CLUSTER="}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_CERT_FILE="}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_NEW_MEMBERS_ENV_FILE=/bitnami/etcd/data/new_member_envs"}
{"level":"warn","ts":"2024-06-19T02:26:04.827Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_DAEMON_USER=etcd"}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"etcdmain/etcd.go:73","msg":"Running: ","args":["etcd"]}
{"level":"info","ts":"2024-06-19T02:26:04.827Z","caller":"embed/etcd.go:124","msg":"configuring peer listeners","listen-peer-urls":["http://0.0.0.0:2380"]}
{"level":"info","ts":"2024-06-19T02:26:04.828Z","caller":"embed/etcd.go:132","msg":"configuring client listeners","listen-client-urls":["http://0.0.0.0:2379"]}
{"level":"info","ts":"2024-06-19T02:26:04.828Z","caller":"embed/etcd.go:306","msg":"starting an etcd server","etcd-version":"3.5.5","git-sha":"19002cfc6","go-version":"go1.16.15","go-os":"linux","go-arch":"amd64","max-cpu-set":4,"max-cpu-available":4,"member-initialized":false,"name":"my-milvus-etcd-0","data-dir":"/bitnami/etcd/data","wal-dir":"","wal-dir-dedicated":"","member-dir":"/bitnami/etcd/data/member","force-new-cluster":false,"heartbeat-interval":"500ms","election-timeout":"2.5s","initial-election-tick-advance":true,"snapshot-count":100000,"snapshot-catchup-entries":5000,"initial-advertise-peer-urls":["http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380"],"listen-peer-urls":["http://0.0.0.0:2380"],"advertise-client-urls":["http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2379"],"listen-client-urls":["http://0.0.0.0:2379"],"listen-metrics-urls":[],"cors":["*"],"host-whitelist":["*"],"initial-cluster":"my-milvus-etcd-0=http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380","initial-cluster-state":"new","initial-cluster-token":"etcd-cluster","quota-backend-bytes":4294967296,"max-request-bytes":1572864,"max-concurrent-streams":4294967295,"pre-vote":true,"initial-corrupt-check":false,"corrupt-check-time-interval":"0s","compact-check-time-enabled":false,"compact-check-time-interval":"1m0s","auto-compaction-mode":"revision","auto-compaction-retention":"1µs","auto-compaction-interval":"1µs","discovery-url":"","discovery-proxy":"","downgrade-check-interval":"5s"}
{"level":"info","ts":"2024-06-19T02:26:04.852Z","caller":"etcdserver/backend.go:81","msg":"opened backend db","path":"/bitnami/etcd/data/member/snap/db","took":"22.976605ms"}
{"level":"info","ts":"2024-06-19T02:26:04.852Z","caller":"netutil/netutil.go:112","msg":"resolved URL Host","url":"http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380","host":"my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380","resolved-addr":"172.17.86.136:2380"}
{"level":"info","ts":"2024-06-19T02:26:04.853Z","caller":"netutil/netutil.go:112","msg":"resolved URL Host","url":"http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380","host":"my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380","resolved-addr":"172.17.86.136:2380"}
{"level":"info","ts":"2024-06-19T02:26:04.861Z","caller":"etcdserver/raft.go:494","msg":"starting local member","local-member-id":"e82ac3abef7cecf1","cluster-id":"e409097717fa8cc0"}
{"level":"info","ts":"2024-06-19T02:26:04.861Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 switched to configuration voters=()"}
{"level":"info","ts":"2024-06-19T02:26:04.861Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 became follower at term 0"}
{"level":"info","ts":"2024-06-19T02:26:04.861Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"newRaft e82ac3abef7cecf1 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]"}
{"level":"info","ts":"2024-06-19T02:26:04.861Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 became follower at term 1"}
{"level":"info","ts":"2024-06-19T02:26:04.861Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 switched to configuration voters=(16729398909045894385)"}
{"level":"warn","ts":"2024-06-19T02:26:04.864Z","caller":"auth/store.go:1233","msg":"simple token is not cryptographically signed"}
{"level":"info","ts":"2024-06-19T02:26:04.875Z","caller":"mvcc/kvstore.go:393","msg":"kvstore restored","current-rev":1}
{"level":"info","ts":"2024-06-19T02:26:04.876Z","caller":"etcdserver/quota.go:117","msg":"enabled backend quota","quota-name":"v3-applier","quota-size-bytes":4294967296,"quota-size":"4.3 GB"}
{"level":"info","ts":"2024-06-19T02:26:04.877Z","caller":"etcdserver/server.go:854","msg":"starting etcd server","local-member-id":"e82ac3abef7cecf1","local-server-version":"3.5.5","cluster-version":"to_be_decided"}
{"level":"info","ts":"2024-06-19T02:26:04.878Z","caller":"etcdserver/server.go:738","msg":"started as single-node; fast-forwarding election ticks","local-member-id":"e82ac3abef7cecf1","forward-ticks":4,"forward-duration":"2s","election-ticks":5,"election-timeout":"2.5s"}
{"level":"info","ts":"2024-06-19T02:26:04.879Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 switched to configuration voters=(16729398909045894385)"}
{"level":"info","ts":"2024-06-19T02:26:04.879Z","caller":"membership/cluster.go:421","msg":"added member","cluster-id":"e409097717fa8cc0","local-member-id":"e82ac3abef7cecf1","added-peer-id":"e82ac3abef7cecf1","added-peer-peer-urls":["http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380"]}
{"level":"info","ts":"2024-06-19T02:26:04.879Z","caller":"embed/etcd.go:275","msg":"now serving peer/client/metrics","local-member-id":"e82ac3abef7cecf1","initial-advertise-peer-urls":["http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2380"],"listen-peer-urls":["http://0.0.0.0:2380"],"advertise-client-urls":["http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2379"],"listen-client-urls":["http://0.0.0.0:2379"],"listen-metrics-urls":[]}
{"level":"info","ts":"2024-06-19T02:26:04.879Z","caller":"embed/etcd.go:584","msg":"serving peer traffic","address":"[::]:2380"}
{"level":"info","ts":"2024-06-19T02:26:04.879Z","caller":"embed/etcd.go:556","msg":"cmux::serve","address":"[::]:2380"}
{"level":"info","ts":"2024-06-19T02:26:05.862Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 is starting a new election at term 1"}
{"level":"info","ts":"2024-06-19T02:26:05.862Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 became pre-candidate at term 1"}
{"level":"info","ts":"2024-06-19T02:26:05.863Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 received MsgPreVoteResp from e82ac3abef7cecf1 at term 1"}
{"level":"info","ts":"2024-06-19T02:26:05.863Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 became candidate at term 2"}
{"level":"info","ts":"2024-06-19T02:26:05.863Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 received MsgVoteResp from e82ac3abef7cecf1 at term 2"}
{"level":"info","ts":"2024-06-19T02:26:05.863Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"e82ac3abef7cecf1 became leader at term 2"}
{"level":"info","ts":"2024-06-19T02:26:05.863Z","logger":"raft","caller":"etcdserver/zap_raft.go:77","msg":"raft.node: e82ac3abef7cecf1 elected leader e82ac3abef7cecf1 at term 2"}
{"level":"info","ts":"2024-06-19T02:26:05.864Z","caller":"etcdserver/server.go:2563","msg":"setting up initial cluster version using v2 API","cluster-version":"3.5"}
{"level":"info","ts":"2024-06-19T02:26:05.865Z","caller":"etcdserver/server.go:2054","msg":"published local member to cluster through raft","local-member-id":"e82ac3abef7cecf1","local-member-attributes":"{Name:my-milvus-etcd-0 ClientURLs:[http://my-milvus-etcd-0.my-milvus-etcd-headless.smbc-mobile-devops.svc.cluster.local:2379]}","request-path":"/0/members/e82ac3abef7cecf1/attributes","cluster-id":"e409097717fa8cc0","publish-timeout":"10s"}
{"level":"info","ts":"2024-06-19T02:26:05.865Z","caller":"embed/serve.go:100","msg":"ready to serve client requests"}
{"level":"info","ts":"2024-06-19T02:26:05.866Z","caller":"etcdmain/main.go:44","msg":"notifying init daemon"}
{"level":"info","ts":"2024-06-19T02:26:05.866Z","caller":"etcdmain/main.go:50","msg":"successfully notified init daemon"}
{"level":"info","ts":"2024-06-19T02:26:05.866Z","caller":"embed/serve.go:146","msg":"serving client traffic insecurely; this is strongly discouraged!","address":"[::]:2379"}
{"level":"info","ts":"2024-06-19T02:26:05.867Z","caller":"membership/cluster.go:584","msg":"set initial cluster version","cluster-id":"e409097717fa8cc0","local-member-id":"e82ac3abef7cecf1","cluster-version":"3.5"}
{"level":"info","ts":"2024-06-19T02:26:05.867Z","caller":"api/capability.go:75","msg":"enabled capabilities for version","cluster-version":"3.5"}
{"level":"info","ts":"2024-06-19T02:26:05.867Z","caller":"etcdserver/server.go:2587","msg":"cluster version is updated","cluster-version":"3.5"}
seems that etcd is working, you can try to connect to etcd from milvus pod see fi the network is connected
@uniquejava Is there any networkpolicies
setup in your cluster which will prevent service access? Could you try to try to deploy a pod(for example a ubuntu pod) in the same namespace to detect whether it can access etcd through the service name port like this:
nc -zv my-milvus-etcd:2379
Thank you, I can confirm it's etcd issue~, I tried all kinds of commands.
# debug etcd
$ oc debug pod/my-milvus-etcd-0
> etcdctl --endpoints=my-milvus-etcd:2379 member list
{"level":"warn","ts":"2024-06-19T03:00:58.628Z","logger":"etcd-client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0000dc1c0/my-milvus-etcd:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
> etcdctl --endpoints=http://my-milvus-etcd-headless:2379 endpoint health
{"level":"warn","ts":"2024-06-19T05:25:56.679Z","logger":"client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0004421c0/my-milvus-etcd:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
http://my-milvus-etcd:2379 is unhealthy: failed to commit proposal: context deadline exceeded
Error: unhealthy cluster
oc run curl-1 --image=radial/busyboxplus:curl -i --tty --rm
> curl http://172.17.86.136:2379/health
> nslookup my-milvus-etcd
Server: 172.21.0.10
Address 1: 172.21.0.10 dns-default.openshift-dns.svc.cluster.local
Name: my-milvus-etcd
Address 1: 172.21.30.159 my-milvus-etcd.smbc-mobile-devops.svc.cluster.local
curl --connect-timeout 3 -i http://my-milvus-etcd:2379
Failed to connect to ... after 3004 ms: Timeout was reached
I see from the etcd pod yaml seLinux
is enabled, maybe I will have to disable SELinux or firewalld for the etcd pod.
The default securiytContext in OpenShift is complex, https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
If only there is a tutorial for running milvus hello world on OpenShift :( I will investigate this the day after tomorrow, for now, let me switch to qdrant, we have a LLM chat (with RAG) demo tomorrow afternoon~. Feel free to close this issue.
@LoveEachDay
AFAI, network policies only control services in different namespaces. I have one. but I think it's not relevant
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-all-pods
spec:
# https://stackoverflow.com/questions/71647338/kubernetes-networkpolicy-multiple-match-labels
podSelector: { } # This selects all pods in the namespace
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
projectName: some-other-project
seems that etcd is working, you can try to connect to etcd from milvus pod see fi the network is connected
Ah, I may need to login inside milvus pod, not etcd pod
😅 Turns out to be NetworkPolicy issue.
Is there an existing issue for this?
Environment
Current Behavior
milvus-standalone cannot conntect to etcd and failed to start
Expected Behavior
milvus standalone should be able to connect to running etcd
Steps To Reproduce
Note that
oc
is equivalent tokubectl
Milvus Log
Anything else?