Can't reduce replicaset size with delete psmdb and cluster re-creation

Description

Percona Kubernetes Operator for PSMDB removes all pods at once:

after deleting psmdb resource, the user can reduce replicaset size down to 1 & allowUnsafeConfigurations: true.
As a result the cluster can't transit to the PRIMARY state.

The problem could be reproduced with both replicaset-only and sharded configuration.

Suggested fix:
always start with the "before shutdown" number of nodes or terminate replica set nodes one by one.

Environment

None

AFFECTED CS IDs

CS0020860

Smart Checklist

Activity

Slava Sarzhan March 3, 2022 at 3:17 PM

The issue was fixed.

Lalit Choudhary October 14, 2021 at 12:19 PM

Hi

Thank you for the report.

Done

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Smart Checklist

Created September 16, 2021 at 5:56 AM
Updated March 5, 2024 at 4:47 PM
Resolved May 5, 2022 at 3:51 PM