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

[BUG]kbcli cluster connect mongo failed #6186

Closed
ahjing99 opened this issue Dec 21, 2023 · 0 comments · Fixed by #6190
Closed

[BUG]kbcli cluster connect mongo failed #6186

ahjing99 opened this issue Dec 21, 2023 · 0 comments · Fixed by #6190
Assignees
Labels
kind/bug Something isn't working severity/major Great chance user will encounter the same problem
Milestone

Comments

@ahjing99
Copy link
Collaborator

➜ ~ kbcli version
Kubernetes: v1.27.3-gke.100
KubeBlocks: 0.8.0-beta.13
kbcli: 0.8.0-beta.13

  `kbcli cluster create  mongo-vizyhq --termination-policy=Halt --monitoring-interval=0 --cluster-definition=mongodb --enable-all-logs=false --cluster-version=mongodb-5.0 --set cpu=100m,memory=0.5Gi,replicas=1,storage=3Gi  --namespace default `

Cluster mongo-vizyhq created

➜  ~ kbcli cluster connect mongo-vizyhq
Connect to instance mongo-vizyhq-mongodb-0
Current Mongosh Log ID:	6583b2b529775cca3afdd317
Connecting to:		mongodb://<credentials>@$KB_POD_FQDN:27017/admin?replicaSet=%24KB_CLUSTER_COMP_NAME&appName=mongosh+1.6.2
MongoNetworkError: getaddrinfo ENOTFOUND $kb_pod_fqdn
command terminated with exit code 1

➜  ~ kbcli report cluster mongo-vizyhq  --with-logs --all-containers
reporting cluster information to report-cluster-mongo-vizyhq-2023-12-21-11-37-02.zip
processing manifests                               OK
processing events                                  OK
process pod logs                                   OK
➜  ~ kbcli report kubeblocks --with-logs --all-containers --output yaml

reporting KubeBlocks information to report-kubeblocks-2023-12-21-11-37-15.zip
processing manifests                               OK
processing events                                  OK
process pod logs                                   OK
➜  ~

report-kubeblocks-2023-12-21-11-37-15.zip
report-cluster-mongo-vizyhq-2023-12-21-11-37-02.zip

@ahjing99 ahjing99 added kind/bug Something isn't working severity/major Great chance user will encounter the same problem labels Dec 21, 2023
@ahjing99 ahjing99 added this to the Release 0.8.0 milestone Dec 21, 2023
@xuriwuyun xuriwuyun linked a pull request Dec 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working severity/major Great chance user will encounter the same problem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants