Skip to content

[BUG] KB 1.2 kbcli error: cannot restore struct from: bool after reconfigure #10370

Description

@JashBook

Describe the bug
A clear and concise description of what the bug is.

kbcli version
Kubernetes: v1.30.4-vke.10
KubeBlocks: 1.2.0-alpha.2
kbcli: 1.0.2

To Reproduce
Steps to reproduce the behavior:

  1. create cluster
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: influxdb-xlvqgd
  namespace: default
spec:
  services:
    - name: influxdb
      serviceName: influxdb
      spec:
        type: ClusterIP
        ports:
          - port: 8086
            targetPort: 8086
  terminationPolicy: WipeOut
  componentSpecs:
    - name: influxdb
      componentDef: influxdb-1.2.0-alpha.0
      serviceVersion: 2.7.11
      tls: false
      replicas: 1
      resources:
        requests:
          cpu: 100m
          memory: 0.5Gi
        limits:
          cpu: 100m
          memory: 0.5Gi
      persistentVolumeClaimRetentionPolicy:
        whenDeleted: Delete
      volumeClaimTemplates:
        - name: data
          spec:
            storageClassName: 
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
      kbcli cluster list-instances influxdb-xlvqgd --namespace default 
    
NAME                         NAMESPACE   CLUSTER           COMPONENT   STATUS    ROLE     ACCESSMODE   AZ               CPU(REQUEST/LIMIT)   MEMORY(REQUEST/LIMIT)   STORAGE     NODE                          CREATED-TIME                 
influxdb-xlvqgd-influxdb-0   default     influxdb-xlvqgd   influxdb    Running   <none>                cn-guangzhou-a   100m / 100m          512Mi / 512Mi           data:20Gi   192.168.0.102/192.168.0.102   Jun 15,2026 11:17 UTC+0800   

  1. reconfigure
apiVersion: operations.kubeblocks.io/v1alpha1
kind: OpsRequest
metadata:
  generateName: influxdb-xlvqgd-reconfiguring-
  namespace: default
  
spec:
  type: Reconfiguring
  clusterName: influxdb-xlvqgd
  force: true
  reconfigures:
  - componentName: influxdb
    parameters:

        - key: http-idle-timeout
          value: '200000000000'
        - key: storage-compact-full-write-cold-duration
          value: '5h0m0s'
kubectl get cluster influxdb-xlvqgd 
NAME              CLUSTER-DEFINITION   TERMINATION-POLICY   STATUS    AGE
influxdb-xlvqgd                        WipeOut              Running   166m

kubectl get ops influxdb-xlvqgd-reconfiguring-9qkcj 
NAME                                  TYPE            CLUSTER           STATUS    PROGRESS   AGE
influxdb-xlvqgd-reconfiguring-9qkcj   Reconfiguring   influxdb-xlvqgd   Succeed   -/-        112m
  1. See error
kbcli cluster list-instances influxdb-xlvqgd
error: cannot restore struct from: bool
➜  ~ 
➜  ~ kbcli cluster delete influxdb-xlvqgd --auto-approve 
error: cannot restore struct from: bool

Expected behavior
A clear and concise description of what you expected to happen.

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.

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions