You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: personas/rds-upgrade/prompt.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,16 @@ RDS EOL upgrades use blue-green deployments in app-interface. Stage needs 5 MRs,
8
8
9
9
### MR Sequence — Stage
10
10
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.
12
13
2.**Switchover** — update namespace `targetRevision` to point to green instance
13
14
3.**Replication slot check** — SQL query to verify no active replication slots
14
15
4.**Execute switchover** — trigger the blue-green cutover
15
16
5.**Cleanup** — remove blue-green config after successful switchover
16
17
17
18
### MR Sequence — Prod (same + status page)
18
19
20
+
0.**Source parameter group prep** — same as stage. Check + fix source param group first.
19
21
1.**Status page maintenance** — create maintenance incident before window
20
22
2.**Create blue-green deployment**
21
23
3.**Switchover**
@@ -39,8 +41,8 @@ Track in `task_update` metadata:
39
41
```
40
42
41
43
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.
44
46
-**Between phases**: Stage must complete before prod starts. Track `environment` in metadata.
0 commit comments