Bug 2007371
| Summary: | [DR] [RFE] Ability to support dynamically named stateful sets generated PVC with ODF DR (e.g CrunchDB postgres operator) | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | Jean-Charles Lopez <jelopez> |
| Component: | odf-dr | Assignee: | Shyamsundar <srangana> |
| odf-dr sub component: | ramen | QA Contact: | Elad <ebenahar> |
| Status: | CLOSED NEXTRELEASE | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | aclewett, bmekhiss, jespy, jmishra, kseeger, madam, mbukatov, muagarwa, ocs-bugs, odf-bz-bot, rcyriac, srangana |
| Version: | 4.9 | Keywords: | FutureFeature |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-06-29 14:32:09 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jean-Charles Lopez
2021-09-23 17:11:38 UTC
After looking at the crunchy postgresql operator code, it looks like the operator generates a unique PVC name if a PVC resource is not found. The first time the app is deployed, the PVC resource is created with a name in this format: "STS.Name + -pgdata". Where the STS.Name changes every time the app is restarted. When the app is restarted, the operator will find the PVC object already created (using labels and selectors for a match) and it uses the same name to bind to an existing PV. If it doesn't find a PVC resource (which is what happens in a failover) then, it recreates the PVC resource with a new name (according to the format above) which would be different from the original name. That will end up recreating the PV because the PV cliamRef will not match. We have few ideas on how to handle this unstable naming of PVCs. We'll look at them in the next few days and we'll come up with a recommendation. Can we please create a Jira epic for this, if it doesn't exist already? |