-
Notifications
You must be signed in to change notification settings - Fork 16
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
8ca9274
commit deb7448
Showing
132 changed files
with
1,948 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,29 @@ | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s (waiting for exactly 5 units, current : 3) | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [executing] active: | ||
mysql-k8s/1 [executing] active: | ||
mysql-k8s/2 [executing] active: Primary | ||
mysql-k8s/3 [executing] maintenance: Initialising mysqld | ||
mysql-k8s/4 [executing] maintenance: Initialising mysqld | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: | ||
mysql-k8s/1 [idle] active: | ||
mysql-k8s/2 [idle] active: Primary | ||
mysql-k8s/3 [executing] waiting: waiting to get cluster primary from peers | ||
mysql-k8s/4 [executing] maintenance: joining the cluster | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: | ||
mysql-k8s/1 [idle] active: | ||
mysql-k8s/2 [idle] active: Primary | ||
mysql-k8s/3 [idle] maintenance: joining the cluster | ||
mysql-k8s/4 [executing] active: | ||
[32mINFO [0m integration.test_charm:test_charm.py:164 Scale down to one unit | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s (waiting for exactly 1 units, current : 5) | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s (waiting for exactly 1 units, current : 5) | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s (waiting for exactly 1 units, current : 5) | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] 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,51 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/focal/charmed-osm-mongodb-k8s-29 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/focal/charmed-osm-zookeeper-k8s-37 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/focal/charmed-osm-kafka-k8s-21 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/focal/osm-pol-1 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying local:jammy/mysql-k8s-0 | ||
[33mWARNING [0m juju.model:model.py:1558 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [allocating] waiting: installing agent | ||
mysql-k8s/1 [allocating] waiting: installing agent | ||
mysql-k8s/2 [allocating] waiting: installing agent | ||
osm-kafka/0 [allocating] waiting: installing agent | ||
osm-mongodb/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [allocating] waiting: agent initialising | ||
mysql-k8s/1 [allocating] waiting: agent initialising | ||
mysql-k8s/2 [allocating] waiting: agent initialising | ||
osm-kafka/0 [allocating] waiting: installing agent | ||
osm-mongodb/0 [idle] active: ready | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [executing] maintenance: Initialising mysqld | ||
mysql-k8s/1 [executing] maintenance: Initialising mysqld | ||
mysql-k8s/2 [executing] maintenance: Initialising mysqld | ||
osm-kafka/0 [executing] waiting: Waiting for Zookeeper to be ready | ||
osm-mongodb/0 [idle] active: ready | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [executing] active: Primary | ||
mysql-k8s/1 [executing] waiting: waiting to get cluster primary from peers | ||
mysql-k8s/2 [executing] waiting: waiting to get cluster primary from peers | ||
osm-kafka/0 [idle] active: ready | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: Primary | ||
mysql-k8s/1 [executing] maintenance: joining the cluster | ||
mysql-k8s/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: Primary | ||
mysql-k8s/1 [idle] active: | ||
mysql-k8s/2 [idle] active: | ||
[33mWARNING [0m juju.model:model.py:1558 relate is deprecated and will be removed. Use integrate instead. | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: Primary | ||
mysql-k8s/1 [idle] active: | ||
mysql-k8s/2 [idle] active: | ||
osm-keystone/0 [executing] blocked: mysql relation is missing | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: Primary | ||
mysql-k8s/1 [idle] active: | ||
mysql-k8s/2 [idle] active: | ||
[33mWARNING [0m juju.model:model.py:1558 relate is deprecated and will be removed. Use integrate instead. | ||
[33mWARNING [0m juju.model:model.py:1558 relate is deprecated and will be removed. Use integrate instead. | ||
[33mWARNING [0m juju.model:model.py:1558 relate is deprecated and will be removed. Use integrate instead. |
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,73 @@ | ||
[32mINFO [0m integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:112 Get leader unit | ||
[32mINFO [0m integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:117 Run pre-upgrade-check action | ||
[32mINFO [0m integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:120 Refresh with previous charm | ||
[32mINFO [0m integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:127 Wait for upgrade to start | ||
[32mINFO [0m integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:134 Wait for upgrade to complete on first upgrading unit | ||
[32mINFO [0m integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:141 Resume upgrade | ||
[32mINFO [0m httpx:_client.py:1013 HTTP Request: GET https://10.1.0.106:16443/apis/apps/v1/namespaces/test/statefulsets/mysql-k8s "HTTP/1.1 200 OK" | ||
[32mINFO [0m httpx:_client.py:1013 HTTP Request: GET https://10.1.0.106:16443/apis/apps/v1/namespaces/test/statefulsets/mysql-k8s "HTTP/1.1 200 OK" | ||
[32mINFO [0m integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:154 Wait for application to recover | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:790 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.1.7 unsupported 01:32:58Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
mysql-k8s 8.0.34-0ubuntu0.22.04.1 waiting 3 mysql-k8s 1 10.152.183.134 no waiting for units to settle down | ||
|
||
Unit Workload Agent Address Ports Message | ||
mysql-k8s/0* active executing 10.1.125.145 | ||
mysql-k8s/1 active executing 10.1.125.144 | ||
mysql-k8s/2 active executing 10.1.125.143 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:796 Juju error logs: | ||
|
||
unit-mysql-k8s-2: 01:30:03 ERROR unit.mysql-k8s/2.juju-log Failed to flush [<MySQLTextLogs.ERROR: 'ERROR LOGS'>, <MySQLTextLogs.GENERAL: 'GENERAL LOGS'>, <MySQLTextLogs.SLOW: 'SLOW LOGS'>] logs. | ||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-mysql-k8s-2/charm/src/mysql_k8s_helpers.py", line 602, in _run_mysqlsh_script | ||
stdout, _ = process.wait_output() | ||
File "/var/lib/juju/agents/unit-mysql-k8s-2/charm/venv/ops/pebble.py", line 1540, in wait_output | ||
raise ExecError[AnyStr](self._command, exit_code, out_value, err_value) | ||
ops.pebble.ExecError: non-zero exit code 1 executing ['/usr/bin/mysqlsh', '--no-wizard', '--python', '--verbose=1', '-f', '/tmp/script.py', ';', 'rm', '/tmp/script.py'], stdout='', stderr='Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory\nverbose: 2024-05-16T01:30:01Z: Loading startup files...\nverbose: 2024-05-16T01:30:01Z: Loading plugins...\nverbose: 2024-05-16T01:30:01Z: Connecting to MySQL at: serverconfig@mysql-k8s-2.mysql-k8s-endpoints.test.svc.cluster.local\nTraceback (most recent call last):\n File "<string>", line 1, in <module>\nmysqlsh.DBError: MySQL Error (2013): Shell.connect: Lost connection to MySQL server at \'reading initial communication packet\', system error: 104\n' | ||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
File "/var/lib/juju/agents/unit-mysql-k8s-2/charm/lib/charms/mysql/v0/mysql.py", line 3089, in flush_mysql_logs | ||
self._run_mysqlsh_script("\n".join(flush_logs_commands), timeout=50) | ||
File "/var/lib/juju/agents/unit-mysql-k8s-2/charm/src/mysql_k8s_helpers.py", line 605, in _run_mysqlsh_script | ||
raise MySQLClientError(e.stderr) | ||
charms.mysql.v0.mysql.MySQLClientError: Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory | ||
verbose: 2024-05-16T01:30:01Z: Loading startup files... | ||
verbose: 2024-05-16T01:30:01Z: Loading plugins... | ||
verbose: 2024-05-16T01:30:01Z: Connecting to MySQL at: serverconfig@mysql-k8s-2.mysql-k8s-endpoints.test.svc.cluster.local | ||
Traceback (most recent call last): | ||
File "<string>", line 1, in <module> | ||
mysqlsh.DBError: MySQL Error (2013): Shell.connect: Lost connection to MySQL server at 'reading initial communication packet', system error: 104 | ||
|
||
unit-mysql-k8s-2: 01:30:26 ERROR unit.mysql-k8s/2.juju-log Unit failed to rejoin the cluster after upgrade | ||
unit-mysql-k8s-2: 01:30:26 CRITICAL unit.mysql-k8s/2.juju-log Upgrade failed, follow the instructions below to rollback: | ||
1 - Run `juju run mysql-k8s/leader pre-upgrade-check` to configure rollback | ||
2 - Run `juju refresh --revision <previous-revision> mysql-k8s` to initiate the rollback | ||
3 - Run `juju run mysql-k8s/leader resume-upgrade` to resume the rollback | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 Forgetting main... | ||
[1m[31mERROR [0m websockets.client:protocol.py:1015 data transfer failed | ||
Traceback (most recent call last): | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data | ||
message = await self.read_message() | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message | ||
frame = await self.read_data_frame(max_size=self.max_size) | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame | ||
frame = await self.read_frame(max_size) | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame | ||
frame = await Frame.read( | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read | ||
data = await reader(2) | ||
File "/usr/lib/python3.10/asyncio/streams.py", line 708, in readexactly | ||
await self._wait_for_data('readexactly') | ||
File "/usr/lib/python3.10/asyncio/streams.py", line 501, in _wait_for_data | ||
await self._waiter | ||
File "/usr/lib/python3.10/asyncio/selector_events.py", line 924, in write | ||
n = self._sock.send(data) | ||
OSError: [Errno 9] Bad file descriptor |
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,60 @@ | ||
[32mINFO [0m integration.high_availability.conftest:conftest.py:26 Clearing continuous writes | ||
[32mINFO [0m integration.high_availability.conftest:conftest.py:28 Starting continuous writes | ||
[32mINFO [0m httpx:_client.py:1013 HTTP Request: DELETE https://10.1.0.62:16443/api/v1/namespaces/test/pods/mysql-k8s-1 "HTTP/1.1 200 OK" | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: | ||
mysql-k8s/1 [idle] maintenance: offline | ||
mysql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: | ||
mysql-k8s/1 [idle] maintenance: offline | ||
mysql-k8s/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [executing] active: | ||
mysql-k8s/1 [idle] active: | ||
mysql-k8s/2 [executing] active: Primary | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: | ||
mysql-k8s/1 [idle] active: | ||
mysql-k8s/2 [idle] active: Primary | ||
[32mINFO [0m integration.high_availability.conftest:conftest.py:33 Clearing continuous writes | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:790 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.1.7 unsupported 01:39:07Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
mysql-k8s 8.0.36-0ubuntu0.22.04.1 active 3 mysql-k8s 0 10.152.183.166 no | ||
mysql-test-app 0.0.2 active 1 mysql-test-app latest/edge 37 10.152.183.193 no Last written value=20225 | ||
|
||
Unit Workload Agent Address Ports Message | ||
mysql-k8s/0 active idle 10.1.194.75 | ||
mysql-k8s/1* active idle 10.1.194.83 | ||
mysql-k8s/2 active idle 10.1.194.76 Primary | ||
mysql-test-app/0* active idle 10.1.194.78 Last written value=20225 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:796 Juju error logs: | ||
|
||
unit-mysql-k8s-1: 01:35:54 ERROR unit.mysql-k8s/1.juju-log Cluster upgrade failed, ensure pre-upgrade checks are ran first. | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 Forgetting main... | ||
[31m[1mERROR [0m websockets.client:protocol.py:1015 data transfer failed | ||
Traceback (most recent call last): | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 959, in transfer_data | ||
message = await self.read_message() | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1029, in read_message | ||
frame = await self.read_data_frame(max_size=self.max_size) | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1104, in read_data_frame | ||
frame = await self.read_frame(max_size) | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1161, in read_frame | ||
frame = await Frame.read( | ||
File "/home/runner/work/mysql-k8s-operator/mysql-k8s-operator/.tox/integration/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read | ||
data = await reader(2) | ||
File "/usr/lib/python3.10/asyncio/streams.py", line 708, in readexactly | ||
await self._wait_for_data('readexactly') | ||
File "/usr/lib/python3.10/asyncio/streams.py", line 501, in _wait_for_data | ||
await self._waiter | ||
File "/usr/lib/python3.10/asyncio/selector_events.py", line 924, in write | ||
n = self._sock.send(data) | ||
OSError: [Errno 9] Bad file descriptor | ||
[33mWARNING [0m juju.client.connection:connection.py:657 RPC: Connection closed, reconnecting |
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,44 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[32mINFO [0m integration.high_availability.test_async_replication:test_async_replication.py:76 Build mysql charm | ||
[32mINFO [0m integration.high_availability.test_async_replication:test_async_replication.py:82 Deploying mysql clusters | ||
[32mINFO [0m juju.model:model.py:2069 Deploying local:mysql-k8s-0 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying local:mysql-k8s-0 | ||
[32mINFO [0m integration.high_availability.test_async_replication:test_async_replication.py:101 Waiting for the applications to settle | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db1/0 [allocating] waiting: installing agent | ||
db1/1 [allocating] waiting: installing agent | ||
db1/2 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db2/0 [allocating] waiting: installing agent | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db1/0 [executing] maintenance: Initialising mysqld | ||
db1/1 [executing] maintenance: Initialising mysqld | ||
db1/2 [executing] maintenance: Initialising mysqld | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db2/0 [executing] maintenance: installing charm software | ||
db2/1 [executing] maintenance: installing charm software | ||
db2/2 [executing] maintenance: installing charm software | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db1/0 [executing] active: Primary | ||
db1/1 [idle] waiting: waiting to get cluster primary from peers | ||
db1/2 [idle] waiting: waiting to get cluster primary from peers | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db2/0 [executing] maintenance: Initialising mysqld | ||
db2/1 [executing] waiting: waiting to get cluster primary from peers | ||
db2/2 [executing] waiting: waiting to get cluster primary from peers | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db1/0 [idle] active: Primary | ||
db1/1 [executing] maintenance: joining the cluster | ||
db1/2 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db2/0 [executing] active: Primary | ||
db2/1 [idle] waiting: waiting to join the cluster | ||
db2/2 [idle] maintenance: joining the cluster | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db1/0 [idle] active: Primary | ||
db1/1 [idle] active: | ||
db1/2 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
db2/0 [idle] active: Primary | ||
db2/1 [idle] active: | ||
db2/2 [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,7 @@ | ||
[32mINFO [0m integration.high_availability.conftest:conftest.py:26 Clearing continuous writes | ||
[32mINFO [0m integration.high_availability.conftest:conftest.py:28 Starting continuous writes | ||
[32mINFO [0m integration.high_availability.test_async_replication:test_async_replication.py:208 Promoting standby cluster to primary | ||
[32mINFO [0m integration.high_availability.test_async_replication:test_async_replication.py:354 Testing data replication | ||
[32mINFO [0m integration.high_availability.test_async_replication:test_async_replication.py:361 Stopping continuous writes and wait (5s) for replication | ||
[32mINFO [0m integration.high_availability.test_async_replication:test_async_replication.py:368 Querying max value on all units | ||
[32mINFO [0m integration.high_availability.conftest:conftest.py:33 Clearing continuous writes |
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 integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:60 Get leader unit | ||
[32mINFO [0m integration.high_availability.test_upgrade_rollback_incompat:test_upgrade_rollback_incompat.py:64 Run pre-upgrade-check action |
Oops, something went wrong.