-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0890972
commit 8a7655b
Showing
185 changed files
with
3,181 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[32mINFO [0m integration.test_charm:test_charm.py:105 connecting to the database host: 10.1.94.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2087 Deploying local:jammy/postgresql-k8s-0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database (waiting for exactly 1 units, current : 3) | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database (waiting for exactly 1 units, current : 3) | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [executing] active: Primary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2087 Deploying ch:amd64/jammy/postgresql-test-app-50 | ||
[32mINFO [0m juju.model:model.py:2087 Deploying ch:amd64/jammy/postgresql-k8s-177 | ||
[32mINFO [0m integration.ha_tests.test_upgrade_from_stable:test_upgrade_from_stable.py:50 Wait for applications to become active | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
postgresql-test-app/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [executing] maintenance: installing charm software | ||
postgresql-k8s/1 [executing] maintenance: installing charm software | ||
postgresql-k8s/2 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [executing] unknown: | ||
postgresql-k8s/1 [executing] unknown: | ||
postgresql-k8s/2 [executing] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [idle] unknown: | ||
postgresql-k8s/1 [idle] unknown: | ||
postgresql-k8s/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [executing] waiting: awaiting for cluster to start | ||
postgresql-k8s/1 [executing] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] maintenance: reconfiguring cluster | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/1 [idle] active: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[32mINFO [0m juju.model:model.py:2087 Deploying local:jammy/postgresql-k8s-3 | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
test-storage-postgresql-k8s/0 [allocating] waiting: agent initialising | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
test-storage-postgresql-k8s/0 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
test-storage-postgresql-k8s/0 [executing] active: | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:784 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.1.7 unsupported 02:02:46Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
postgresql-k8s 14.10 active 3 postgresql-k8s 2 10.152.183.146 no | ||
test-storage-postgresql-k8s 14.10 active 1 postgresql-k8s 3 10.152.183.223 no Primary | ||
|
||
Unit Workload Agent Address Ports Message | ||
postgresql-k8s/0 active idle 10.1.94.31 | ||
postgresql-k8s/1 active idle 10.1.94.32 | ||
postgresql-k8s/2* active idle 10.1.94.33 Primary | ||
test-storage-postgresql-k8s/0* active idle 10.1.94.35 Primary | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:790 Juju error logs: | ||
|
||
unit-postgresql-k8s-0: 01:32:34 ERROR unit.postgresql-k8s/0.juju-log Cluster upgrade failed, ensure pre-upgrade checks are ran first. | ||
unit-postgresql-k8s-1: 01:46:11 ERROR unit.postgresql-k8s/1.juju-log Cluster upgrade failed, ensure pre-upgrade checks are ran first. | ||
controller-0: 01:56:34 ERROR juju.worker.caasapplicationprovisioner.runner exited "postgresql-k8s": cannot scale dying application to 0: application "postgresql-k8s" not found | ||
unit-test-storage-postgresql-k8s-0: 02:01:53 ERROR unit.test-storage-postgresql-k8s/0.juju-log failed to change plugins: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/lib/charms/postgresql_k8s/v0/postgresql.py", line 300, in enable_disable_extensions | ||
with self._connect_to_database() as connection, connection.cursor() as cursor: | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/lib/charms/postgresql_k8s/v0/postgresql.py", line 127, in _connect_to_database | ||
connection = psycopg2.connect( | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/venv/psycopg2/__init__.py", line 122, in connect | ||
conn = _connect(dsn, connection_factory=connection_factory, **kwasync) | ||
psycopg2.OperationalError: connection to server at "test-storage-postgresql-k8s-primary.test.svc.cluster.local" (10.152.183.136), port 5432 failed: Connection refused | ||
Is the server running on that host and accepting TCP/IP connections? | ||
|
||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/./src/charm.py", line 488, in enable_disable_extensions | ||
self.postgresql.enable_disable_extensions(extensions, database) | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/lib/charms/postgresql_k8s/v0/postgresql.py", line 324, in enable_disable_extensions | ||
raise PostgreSQLEnableDisableExtensionError() | ||
charms.postgresql_k8s.v0.postgresql.PostgreSQLEnableDisableExtensionError | ||
unit-test-storage-postgresql-k8s-0: 02:02:04 ERROR unit.test-storage-postgresql-k8s/0.juju-log failed to change plugins: | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/lib/charms/postgresql_k8s/v0/postgresql.py", line 300, in enable_disable_extensions | ||
with self._connect_to_database() as connection, connection.cursor() as cursor: | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/lib/charms/postgresql_k8s/v0/postgresql.py", line 127, in _connect_to_database | ||
connection = psycopg2.connect( | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/venv/psycopg2/__init__.py", line 122, in connect | ||
conn = _connect(dsn, connection_factory=connection_factory, **kwasync) | ||
psycopg2.OperationalError: connection to server at "test-storage-postgresql-k8s-primary.test.svc.cluster.local" (10.152.183.136), port 5432 failed: Connection refused | ||
Is the server running on that host and accepting TCP/IP connections? | ||
|
||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/./src/charm.py", line 488, in enable_disable_extensions | ||
self.postgresql.enable_disable_extensions(extensions, database) | ||
File "/var/lib/juju/agents/unit-test-storage-postgresql-k8s-0/charm/lib/charms/postgresql_k8s/v0/postgresql.py", line 324, in enable_disable_extensions | ||
raise PostgreSQLEnableDisableExtensionError() | ||
charms.postgresql_k8s.v0.postgresql.PostgreSQLEnableDisableExtensionError | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:856 Forgetting main... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.1.12:16443/api/v1/namespaces/test/endpoints?labelSelector=app.juju.is%2Fcreated-by%3Dpostgresql-k8s "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.1.12:16443/api/v1/namespaces/test/services?labelSelector=app.juju.is%2Fcreated-by%3Dpostgresql-k8s "HTTP/1.1 200 OK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[32mINFO [0m integration.ha_tests.test_self_healing:test_self_healing.py:274 stopping database from postgresql-k8s/0 | ||
[32mINFO [0m integration.ha_tests.test_self_healing:test_self_healing.py:278 removing data from postgresql-k8s/0 | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m integration.ha_tests.test_self_healing:test_self_healing.py:296 checking whether a new primary was elected | ||
[32mINFO [0m integration.ha_tests.test_self_healing:test_self_healing.py:304 enabling WAL rotation on postgresql-k8s/0 | ||
[32mINFO [0m integration.ha_tests.test_self_healing:test_self_healing.py:304 enabling WAL rotation on postgresql-k8s/0 | ||
[32mINFO [0m integration.ha_tests.test_self_healing:test_self_healing.py:327 starting database on postgresql-k8s/0 | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1027 HTTP Request: GET https://10.1.0.23:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2087 Deploying ch:amd64/jammy/postgresql-test-app-50 | ||
[32mINFO [0m juju.model:model.py:2087 Deploying local:jammy/postgresql-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2087 Deploying local:jammy/postgresql-k8s-1 | ||
[33mWARNING [0m juju.model:model.py:1553 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [allocating] waiting: installing agent | ||
database/1 [allocating] waiting: installing agent | ||
database/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [allocating] waiting: agent initialising | ||
database/1 [allocating] waiting: agent initialising | ||
database/2 [allocating] waiting: agent initialising | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [executing] maintenance: installing charm software | ||
database/1 [executing] waiting: awaiting for cluster to start | ||
database/2 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [idle] unknown: | ||
database/1 [executing] waiting: awaiting for primary endpoint to be ready | ||
database/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [idle] unknown: | ||
database/1 [idle] active: | ||
database/2 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [executing] waiting: awaiting for cluster to start | ||
database/1 [idle] active: | ||
database/2 [executing] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [idle] waiting: awaiting for cluster to start | ||
database/1 [idle] active: | ||
database/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [idle] waiting: awaiting for member to start | ||
database/1 [executing] active: | ||
database/2 [idle] waiting: awaiting for cluster to start | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [idle] active: | ||
database/1 [idle] active: | ||
database/2 [idle] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
database/0 [idle] active: | ||
database/1 [idle] active: Primary | ||
database/2 [idle] active: | ||
[32mINFO [0m integration.new_relations.test_new_relations:test_new_relations.py:98 checking for secrets | ||
[32mINFO [0m httpx:_client.py:1758 HTTP Request: GET https://10.1.0.48:16443/api/v1/namespaces/test/services/database-primary "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1758 HTTP Request: GET https://10.1.0.48:16443/api/v1/namespaces/test/services/database-replicas "HTTP/1.1 200 OK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2087 Deploying local:jammy/postgresql-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [executing] waiting: awaiting for cluster to start | ||
postgresql-k8s/1 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [executing] waiting: awaiting for primary endpoint to be ready | ||
postgresql-k8s/1 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: awaiting for primary endpoint to be ready | ||
postgresql-k8s/1 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [executing] unknown: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [executing] active: | ||
postgresql-k8s/1 [idle] unknown: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] waiting: awaiting for member to start | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/1 [idle] active: | ||
[32mINFO [0m integration.test_plugins:test_plugins.py:169 checking that the plugins are disabled | ||
[32mINFO [0m integration.test_plugins:test_plugins.py:183 enabling the plugins | ||
[32mINFO [0m juju.model:model.py:2947 Waiting for model: | ||
postgresql-k8s/0 [idle] active: Primary | ||
postgresql-k8s/1 [idle] active: | ||
[32mINFO [0m integration.test_plugins:test_plugins.py:190 checking that the plugins are enabled | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:784 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.1.7 unsupported 01:31:29Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
postgresql-k8s 14.10 active 2 postgresql-k8s 0 10.152.183.74 no Primary | ||
|
||
Unit Workload Agent Address Ports Message | ||
postgresql-k8s/0* active idle 10.1.21.10 Primary | ||
postgresql-k8s/1 active idle 10.1.21.11 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:790 Juju error logs: | ||
|
||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:856 Forgetting main... |
Oops, something went wrong.