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 connect pg cluster error:sh: 1: Syntax error: ")" unexpected #5848

Closed
JashBook opened this issue Nov 15, 2023 · 0 comments · Fixed by #5862
Closed

[BUG] kbcli connect pg cluster error:sh: 1: Syntax error: ")" unexpected #5848

JashBook opened this issue Nov 15, 2023 · 0 comments · Fixed by #5862
Assignees
Labels
bug kind/bug Something isn't working
Milestone

Comments

@JashBook
Copy link
Collaborator

JashBook commented Nov 15, 2023

Describe the bug
kbcli connect pg cluster error:sh: 1: Syntax error: ")" unexpected.

Kubernetes: v1.26.3
KubeBlocks: 0.8.0-alpha.4
kbcli: 0.8.0-alpha.4

To Reproduce
Steps to reproduce the behavior:

  1. create pg cluster
kbcli cluster create  postgres-qnxihr             --termination-policy=WipeOut    --cluster-definition=postgresql --cluster-version=postgresql-12.14.1 --set cpu=100m,memory=0.5Gi,replicas=1,storage=3Gi  --namespace default
  1. See cluster
kubectl get cluster 
NAME              CLUSTER-DEFINITION   VERSION              TERMINATION-POLICY   STATUS    AGE
postgres-qnxihr   postgresql           postgresql-12.14.1   WipeOut              Running   10m
kbcli cluster describe postgres-qnxihr 
Name: postgres-qnxihr	 Created Time: Nov 15,2023 17:44 UTC+0800
NAMESPACE   CLUSTER-DEFINITION   VERSION              STATUS    TERMINATION-POLICY   
default     postgresql           postgresql-12.14.1   Running   WipeOut              

Endpoints:
COMPONENT    MODE        INTERNAL                                                    EXTERNAL   
postgresql   ReadWrite   postgres-qnxihr-postgresql.default.svc.cluster.local:5432   <none>     
                         postgres-qnxihr-postgresql.default.svc.cluster.local:6432              

Topology:
COMPONENT    INSTANCE                       ROLE      STATUS    AZ       NODE                    CREATED-TIME                 
postgresql   postgres-qnxihr-postgresql-0   primary   Running   <none>   minikube/192.168.49.2   Nov 15,2023 17:44 UTC+0800   

Resources Allocation:
COMPONENT    DEDICATED   CPU(REQUEST/LIMIT)   MEMORY(REQUEST/LIMIT)   STORAGE-SIZE   STORAGE-CLASS     
postgresql   false       100m / 100m          512Mi / 512Mi           data:3Gi       csi-hostpath-sc   

Images:
COMPONENT    TYPE         IMAGE                                                                                        
postgresql   postgresql   infracreate-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/spilo:12.14.1-pgvector-v0.5.0   

Data Protection:
BACKUP-REPO   AUTO-BACKUP   BACKUP-SCHEDULE   BACKUP-METHOD   BACKUP-RETENTION   

Show cluster events: kbcli cluster list-events -n default postgres-qnxihr
  1. See error
    kbcli connect errror
kbcli cluster connect postgres-qnxihr 
Connect to instance postgres-qnxihr-postgresql-0
sh: 1: Syntax error: ")" unexpected
command terminated with exit code 2

Expected behavior
kbcli connect success.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@JashBook JashBook added the kind/bug Something isn't working label Nov 15, 2023
@JashBook JashBook added this to the Release 0.8.0 milestone Nov 15, 2023
@JashBook JashBook linked a pull request Nov 21, 2023 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants