Skip to content

Comments

Upgrade the replica db#122

Draft
dadiorchen wants to merge 1 commit intoGreenstand:masterfrom
dadiorchen:upgrade-database-replica
Draft

Upgrade the replica db#122
dadiorchen wants to merge 1 commit intoGreenstand:masterfrom
dadiorchen:upgrade-database-replica

Conversation

@dadiorchen
Copy link
Contributor

DONT MERGE THIS

After upgraded the replica read-only node for the DB, there are some problems in the terraform:

  1. The treetracker-postgres-read-replica has been, but the CLI failures with error shown below, but actually the readonly node has been created correctly (shows up in the panel), and if we execute plan/apply again, the terrforma will still try to create it but throws error when applying
  2. The two db: world_bank_backup, ckan_storage is already in the DB, but terrforma is trying to create it, but will fails when applying
│ Error: Error creating DatabaseReplica: POST https://api.digitalocean.com/v2/databases/45bface0-997a-49c4-98b2-b2
76e30eaf8a/replicas: 422 (request "b752095b-6950-49f2-85fc-11e55661cb63") cluster name is not available
│
│   with digitalocean_database_replica.treetracker-postgres-read-replica,
│   on database.tf line 48, in resource "digitalocean_database_replica" "treetracker-postgres-read-replica":
│   48: resource "digitalocean_database_replica" "treetracker-postgres-read-replica" {

@dadiorchen dadiorchen changed the title feat: add and comment out the replica readonly new db Upgrade the replica db Nov 23, 2022
@dadiorchen dadiorchen requested a review from ZavenArra November 23, 2022 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant