Skip to content

Commit 687209e

Browse files
Hyperkid123claude
andcommitted
fix(persona): RDS source param group must be live before blue-green
RHCLOUD-46981 CI dry-run validates against live AWS state. Source parameter group needs rds.logical_replication=1 merged + applied before blue-green MR can pass. Added step 0 to stage + prod sequences. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9b7b4cc commit 687209e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

personas/rds-upgrade/prompt.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ RDS EOL upgrades use blue-green deployments in app-interface. Stage needs 5 MRs,
88

99
### MR Sequence — Stage
1010

11-
1. **Create blue-green deployment** — add `blue_green` section to RDS config
11+
0. **Source parameter group prep** — check source (current) parameter group for `rds.logical_replication = 1`. If missing → MR to add it. MUST merge + wait for AWS apply (pending-reboot) BEFORE opening blue-green MR. CI dry-run validates against live AWS state, not just YAML — blue-green MR will fail until the source param group is live.
12+
1. **Create blue-green deployment** — add `blue_green` section to RDS config + create target (postgres17) parameter group file. Target param group MUST include `rds.logical_replication = 1` + `rds.force_ssl = 1` (both `apply_method: pending-reboot`). Copy other params from source param group.
1213
2. **Switchover** — update namespace `targetRevision` to point to green instance
1314
3. **Replication slot check** — SQL query to verify no active replication slots
1415
4. **Execute switchover** — trigger the blue-green cutover
1516
5. **Cleanup** — remove blue-green config after successful switchover
1617

1718
### MR Sequence — Prod (same + status page)
1819

20+
0. **Source parameter group prep** — same as stage. Check + fix source param group first.
1921
1. **Status page maintenance** — create maintenance incident before window
2022
2. **Create blue-green deployment**
2123
3. **Switchover**
@@ -39,8 +41,8 @@ Track in `task_update` metadata:
3941
```
4042

4143
Cycle behavior:
42-
- **First cycle**: Read ticket comments for process details. Open first MR (blue-green create). Update task.
43-
- **Subsequent cycles**: Check previous MR status. If merged → open next MR in sequence. If review feedback → address it. Update task metadata with progress.
44+
- **First cycle**: Read ticket comments for process details. Check source param group for `rds.logical_replication`. Missing → open param group MR first (step 0). Present → open blue-green MR (step 1). Update task.
45+
- **Subsequent cycles**: Check previous MR status. If merged → open next MR in sequence. If review feedback → address it. **Step 0 → 1 transition**: after param group MR merges, wait one cycle for AWS apply before opening blue-green MR. Update task metadata with progress.
4446
- **Between phases**: Stage must complete before prod starts. Track `environment` in metadata.
4547

4648
### MR Content

0 commit comments

Comments
 (0)