forked from canonical/postgresql-k8s-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
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
dafb72c
commit 78d7843
Showing
282 changed files
with
3,130 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,136 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:734 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2097 Deploying local:jammy/postgresql-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s (waiting for exactly 3 units, current : 2) | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [allocating] waiting: installing agent | ||
postgresql-k8s/1 [allocating] waiting: installing agent | ||
postgresql-k8s/2 [allocating] waiting: installing agent |
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,97 @@ | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:158 starting continuous writes to the database | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:162 checking whether writes are increasing | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:165 Get leader unit | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:171 Run pre-upgrade-check action | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:171 Run pre-upgrade-check action | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:187 Inject dependency fault | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:192 Refresh the charm | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:195 Get first upgrading unit | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:199 Wait for upgrade to fail on first upgrading unit | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:206 Ensure continuous_writes while in failure state on remaining units | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-0 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:209 Re-run pre-upgrade-check action | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:213 Re-refresh the charm | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: other units upgrading first... | ||
postgresql-k8s/1 [idle] blocked: ready to rollback application | ||
postgresql-k8s/2 [idle] maintenance: upgrade completed | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: other units upgrading first... | ||
postgresql-k8s/1 [idle] blocked: ready to rollback application | ||
postgresql-k8s/2 [idle] maintenance: upgrade completed | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:224 Resume upgrade | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:228 Wait for application to recover | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: other units upgrading first... | ||
postgresql-k8s/1 [executing] maintenance: stopping charm software | ||
postgresql-k8s/2 [idle] maintenance: upgrade completed | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: other units upgrading first... | ||
postgresql-k8s/1 [executing] maintenance: upgrading unit | ||
postgresql-k8s/2 [idle] maintenance: upgrade completed | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: other units upgrading first... | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] maintenance: upgrade completed | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] waiting: other units upgrading first... | ||
postgresql-k8s/1 [idle] waiting: awaiting for cluster to start | ||
postgresql-k8s/2 [idle] maintenance: upgrade completed | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] maintenance: | ||
postgresql-k8s/1 [idle] maintenance: upgrade completed | ||
postgresql-k8s/2 [idle] maintenance: upgrade completed | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] waiting: awaiting for cluster to start | ||
postgresql-k8s/1 [idle] maintenance: upgrade completed | ||
postgresql-k8s/2 [idle] maintenance: upgrade completed | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [executing] maintenance: upgrade completed | ||
postgresql-k8s/1 [executing] maintenance: upgrade completed | ||
postgresql-k8s/2 [executing] maintenance: upgrade completed | ||
[32mINFO [0m juju.model:model.py:2971 Waiting for model: | ||
postgresql-k8s/0 [idle] active: | ||
postgresql-k8s/1 [idle] active: | ||
postgresql-k8s/2 [idle] active: | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:234 Ensure continuous_writes after rollback procedure | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m integration.ha_tests.test_upgrade:test_upgrade.py:239 Checking whether no writes were lost | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1026 HTTP Request: GET https://10.109.84.3:16443/api/v1/namespaces/test/pods/postgresql-k8s-2 "HTTP/1.1 200 OK" | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.1.8 unsupported 01:58:36Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
postgresql-k8s 14.11 active 3 postgresql-k8s 2 10.152.183.237 no | ||
postgresql-test-app active 1 postgresql-test-app latest/edge 172 10.152.183.33 no received database credentials of the first database | ||
|
||
Unit Workload Agent Address Ports Message | ||
postgresql-k8s/0 active idle 10.1.100.149 | ||
postgresql-k8s/1* active idle 10.1.100.148 | ||
postgresql-k8s/2 active idle 10.1.100.147 | ||
postgresql-test-app/0* active idle 10.1.100.136 received database credentials of the first database | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:868 Juju error logs: | ||
|
||
unit-postgresql-k8s-1: 01:49:24 ERROR unit.postgresql-k8s/1.juju-log charms.data_platform_libs.v0.upgrade.ClusterNotReadyError - {'message': 'postgresql-k8s/0 needs to be a synchronous standby in order to become the primary before the upgrade process can start - wait 30 seconds for postgresql-k8s/0 to become a synchronous standby and run this action again', 'cause': 'postgresql-k8s/0 needs to be a synchronous standby in order to become the primary before the upgrade process can start', 'resolution': 'wait 30 seconds for postgresql-k8s/0 to become a synchronous standby and run this action again'} | ||
unit-postgresql-k8s-2: 01:51:19 ERROR unit.postgresql-k8s/2.juju-log charms.data_platform_libs.v0.upgrade.VersionError - {'message': 'Versions incompatible, charm 1 can not be upgraded to 15.0', 'cause': 'Upgrades only supported for specific versions, charm versions satisfying requirement ^15', 'resolution': ''} | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:947 Forgetting model main... |
Oops, something went wrong.