Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Upgrade the replica db #122

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant