Move `pgsql_tier` subnet to the new Virtual Network from jenkins-infra/azure-net
lemeurherve opened this issue · 3 comments
lemeurherve commented
dduportal commented
There are a some requirements and consequences:
- Most probably, changing the subnet of a managed pgsql instance requires to.. recreate the instance. if it is the case, better to migrate the DB content to a freshly created new one in the new subnet.
- If we can migrate the subnet, then we'lkl have to ensure there is a network peering with the former public network, to allow
prodpublick8s
to communicate with the instance
dduportal commented
Current error on the build, due to infra.ci being in the "new private" network with no peering to the "old public" where the DB is hosted for now
[2023-01-19T18:08:42.577Z] Error: error detecting capabilities: error PostgreSQL version: dial tcp: lookup public.postgres.database.azure.com on <redacted>:53: no such host
[2023-01-19T18:08:42.577Z]
[2023-01-19T18:08:42.577Z] with postgresql_role.keycloak,
[2023-01-19T18:08:42.577Z] on keycloak.jenkins.io.tf line 7, in resource "postgresql_role" "keycloak":
[2023-01-19T18:08:42.577Z] 7: resource "postgresql_role" "keycloak" {
[2023-01-19T18:08:42.577Z]
[2023-01-19T18:08:42.577Z]
[2023-01-19T18:08:42.577Z] Error: error detecting capabilities: error PostgreSQL version: dial tcp: lookup public.postgres.database.azure.com on <redacted>:53: no such host
[2023-01-19T18:08:42.577Z]
[2023-01-19T18:08:42.577Z] with postgresql_role.plugin_health,
[2023-01-19T18:08:42.577Z] on plugin-health.jenkins.io.tf line 12, in resource "postgresql_role" "plugin_health":
[2023-01-19T18:08:42.577Z] 12: resource "postgresql_role" "plugin_health" {
[2023-01-19T18:08:42.577Z]
[2023-01-19T18:08:42.577Z]
[2023-01-19T18:08:42.577Z] Error: error detecting capabilities: error PostgreSQL version: dial tcp: lookup public.postgres.database.azure.com on <redacted>:53: no such host
[2023-01-19T18:08:42.577Z]
[2023-01-19T18:08:42.577Z] with postgresql_role.rating,
[2023-01-19T18:08:42.577Z] on rating.jenkins.io.tf line 12, in resource "postgresql_role" "rating":
[2023-01-19T18:08:42.577Z] 12: resource "postgresql_role" "rating" {