DBaaS: Cannot create exposed psmdb cluster

Description

User impact:

Exposed psmdb cluster does not successfully create and stays on 9/9 Processing forever

Steps to reproduce:

Register EKS in dbaas
Try to create exposed psmdb cluster (expose and internet facing option enabled)

Actual result:

Cluster in initializing

Expected result:

Exposed cluster successfully created

Workaround:

 

Details:

apiVersion: v1 items: - apiVersion: psmdb.percona.com/v1   kind: PerconaServerMongoDB   metadata:     annotations:       dbaas.percona.com/managed-by: pmm     creationTimestamp: "2023-03-10T15:54:10Z"     generation: 1     name: meweow     namespace: default     ownerReferences:     - apiVersion: dbaas.percona.com/v1       blockOwnerDeletion: true       controller: true       kind: DatabaseCluster       name: meweow       uid: feb4d34c-f1bf-4beb-bfae-efbbd70f2fb1     resourceVersion: "1006803"     uid: 0002fc35-ada9-407b-b5db-37bed6fb7261   spec:     backup:       enabled: true       image: percona/percona-server-mongodb-operator:1.11.0-backup       pitr: {}       resources: {}     crVersion: 1.11.0     image: percona/percona-server-mongodb:4.4.10-11     mongod:       net:         port: 27017       operationProfiling:         mode: slowOp         rateLimit: 100         slowOpThresholdMs: 100       security:         enableEncryption: true         encryptionCipherMode: AES256-CBC         encryptionKeySecret: meweow-mongodb-encryption-key       setParameter:         ttlMonitorSleepSecs: 60       storage:         engine: wiredTiger         mmapv1:           nsSize: 16         wiredTiger:           collectionConfig:             blockCompressor: snappy           engineConfig:             journalCompressor: snappy           indexConfig:             prefixCompression: true     multiCluster:       enabled: false     pmm:       enabled: true       image: perconalab/pmm-client-fb:PR-3055-33e68ba       resources:         limits:           cpu: 500m           memory: 300M       serverHost: 192.168.0.107     replsets:     - affinity:         antiAffinityTopologyKey: kubernetes.io/hostname       arbiter:         enabled: false         resources: {}         size: 0       configuration: |2              operationProfiling:                 mode: slowOp       expose:         enabled: false       name: rs0       nonvoting:         enabled: false         resources: {}         size: 0       podDisruptionBudget:         maxUnavailable: 1       resources:         limits:           cpu: "1"           memory: 2G       size: 3       volumeSpec:         persistentVolumeClaim:           resources:             requests:               storage: 25G           storageClassName: gp2     secrets:       users: dbaas-meweow-psmdb-secrets     sharding:       configsvrReplSet:         affinity:           antiAffinityTopologyKey: kubernetes.io/hostname         arbiter:           affinity:             antiAffinityTopologyKey: kubernetes.io/hostname           enabled: false           resources: {}           size: 0         expose:           enabled: false         nonvoting:           enabled: false           resources: {}           size: 0         resources: {}         size: 3         volumeSpec:           persistentVolumeClaim:             resources:               requests:                 storage: 25G             storageClassName: gp2       enabled: true       mongos:         affinity:           antiAffinityTopologyKey: kubernetes.io/hostname         expose:           exposeType: LoadBalancer           loadBalancerSourceRanges:           - 1.1.1.2/16           serviceAnnotations:             service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip             service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing             service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: preserve_client_ip.enabled=true             service.beta.kubernetes.io/aws-load-balancer-type: external         resources: {}         size: 3     updateStrategy: SmartUpdate     upgradeOptions:       apply: disabled       schedule: 0 4 * * *   status:     conditions:     - lastTransitionTime: "2023-03-10T15:54:13Z"       status: "True"       type: initializing     - lastTransitionTime: "2023-03-10T15:54:13Z"       reason: MongosReady       status: "True"       type: ready     - lastTransitionTime: "2023-03-10T15:54:13Z"       status: "True"       type: initializing     - lastTransitionTime: "2023-03-10T15:55:41Z"       message: 'rs0: ready'       reason: RSReady       status: "True"       type: ready     - lastTransitionTime: "2023-03-10T15:55:41Z"       status: "True"       type: initializing     - lastTransitionTime: "2023-03-10T15:55:56Z"       reason: MongosReady       status: "True"       type: ready     - lastTransitionTime: "2023-03-10T15:55:56Z"       status: "True"       type: initializing     mongos:       ready: 3       size: 3       status: ready     observedGeneration: 1     ready: 9     replsets:       cfg:         initialized: true         ready: 3         size: 3         status: ready       rs0:         added_as_shard: true         initialized: true         ready: 3         size: 3         status: ready     size: 9     state: initializing kind: List metadata:   resourceVersion: ""

How to test

None

How to document

None

Attachments

1
  • 10 Apr 2023, 06:58 AM

Activity

Show:

Yusaf Awan April 10, 2023 at 6:59 AM

If we try to edit an existing PSMDB cluster (not exposed) and expose it, it won't expose and will be stuck at processing.

Won't Do

Details

Assignee

Reporter

Priority

Labels

Needs QA

Yes

Needs Doc

No

Affects versions

Smart Checklist

Created March 10, 2023 at 3:59 PM
Updated October 3, 2024 at 11:03 AM
Resolved October 3, 2024 at 11:03 AM

Flag notifications