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

Infinite resizing of pvc with alternative postfix #1826

Open
71g3pf4c3 opened this issue Sep 23, 2024 · 0 comments
Open

Infinite resizing of pvc with alternative postfix #1826

71g3pf4c3 opened this issue Sep 23, 2024 · 0 comments
Labels

Comments

@71g3pf4c3
Copy link

Report

Operator stucks in infinite resize loop if pvc statis.capacity.storage postfix in status doesnt match spec.resources.requests.storage. Attached generated pvc.

More about the problem

Operator logs:

2024-09-23T13:33:53.188703141Z 2024-09-23T13:33:53.186Z    INFO    PVCResize    Resizing PVCs    {"controller": "pxc-controller", "namespace": "default", "name": "cluster1", "reconcileID": "e58e597e-705
0-47d1-bf30-84117a0ab4a1", "sts": "cluster1-pxc", "requested": "6Gi", "actual": "6G", "pvcList": "datadir-cluster1-pxc-0"}
2024-09-23T13:33:53.188986855Z 2024-09-23T13:33:53.188Z    INFO    PVCResize    Resizing PVC    {"controller": "pxc-controller", "namespace": "default", "name": "cluster1", "reconcileID": "e58e597e-7050
-47d1-bf30-84117a0ab4a1", "sts": "cluster1-pxc", "name": "datadir-cluster1-pxc-0", "actual": "6G", "requested": "6Gi"}
2024-09-23T13:33:53.202821554Z 2024-09-23T13:33:53.202Z    INFO    PVCResize    PVC resize started    {"controller": "pxc-controller", "namespace": "default", "name": "cluster1", "reconcileID": "e58e597
e-7050-47d1-bf30-84117a0ab4a1", "sts": "cluster1-pxc", "pvc": "datadir-cluster1-pxc-0", "requested": "6Gi"}
2024-09-23T13:33:53.241311610Z 2024-09-23T13:33:53.241Z    INFO    PVCResize    PVC resize in progress    {"controller": "pxc-controller", "namespace": "default", "name": "cluster1", "reconcileID": "53a
52c26-567a-4723-b1b2-bca590c97be0", "sts": "cluster1-pxc", "updated": 0, "remaining": 1}
2024-09-23T13:33:53.264343083Z 2024-09-23T13:33:53.264Z    INFO    PVCResize    Resizing PVCs    {"controller": "pxc-controller", "namespace": "default", "name": "cluster1", "reconcileID": "53a52c26-567
a-4723-b1b2-bca590c97be0", "sts": "cluster1-pxc", "requested": "6Gi", "actual": "6G", "pvcList": "datadir-cluster1-pxc-0"}
2024-09-23T13:33:53.264363501Z 2024-09-23T13:33:53.264Z    INFO    PVCResize    Resizing PVC    {"controller": "pxc-controller", "namespace": "default", "name": "cluster1", "reconcileID": "53a52c26-567a
-4723-b1b2-bca590c97be0", "sts": "cluster1-pxc", "name": "datadir-cluster1-pxc-0", "actual": "6G", "requested": "6Gi"}
2024-09-23T13:33:53.267154581Z 2024-09-23T13:33:53.267Z    INFO    PVCResize    PVC resize started    {"controller": "pxc-controller", "namespace": "default", "name": "cluster1", "reconcileID": "53a52c2
6-567a-4723-b1b2-bca590c97be0", "sts": "cluster1-pxc", "pvc": "datadir-cluster1-pxc-0", "requested": "6Gi"}

PVC manifets:

# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  annotations:
    pv.kubernetes.io/bind-completed: "yes"
    pv.kubernetes.io/bound-by-controller: "yes"
    volume.beta.kubernetes.io/storage-provisioner: rancher.io/local-path
    volume.kubernetes.io/selected-node: percona-control-plane
    volume.kubernetes.io/storage-provisioner: rancher.io/local-path
  creationTimestamp: "2024-09-23T11:41:39Z"
  finalizers:
  - kubernetes.io/pvc-protection
  labels:
    app.kubernetes.io/component: pxc
    app.kubernetes.io/instance: cluster1
    app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
    app.kubernetes.io/name: percona-xtradb-cluster
    app.kubernetes.io/part-of: percona-xtradb-cluster
  name: datadir-cluster1-pxc-0
  namespace: default
  resourceVersion: "4593"
  uid: 85a9a31a-f225-4e96-9044-b166d6b0088a
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 6Gi
  storageClassName: standard
  volumeMode: Filesystem
  volumeName: pvc-85a9a31a-f225-4e96-9044-b166d6b0088a
status:
  accessModes:
  - ReadWriteOnce
  capacity:
    storage: 6G
  phase: Bound

Perconaxtradbcluster was installed directly by applying https://github.com/percona/percona-xtradb-cluster-operator/blob/v1.15.0/deploy/cr-minimal.yaml

Steps to reproduce

  1. Install kind
  2. Install pxc-operator
  3. Apply https://github.com/percona/percona-xtradb-cluster-operator/blob/v1.15.0/deploy/cr-minimal.yaml

Versions

  1. Kubernetes 1.29.2 (kind)
  2. Operator 1.15.0
  3. Database percona/percona-xtradb-cluster:8.0.36-28.1

Anything else?

No response

@71g3pf4c3 71g3pf4c3 added the bug label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant