forked from canonical/mysql-router-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
732151d
commit e1d0826
Showing
78 changed files
with
1,220 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,2 @@ | ||
[32mINFO [0m integration.test_node_port:test_node_port.py:136 Assert TLS file exists | ||
[32mINFO [0m integration.test_node_port:test_node_port.py:142 Asserting connections after relation |
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,21 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:790 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.4.3 unsupported 02:13:27Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
mysql-k8s 8.0.37-0ubuntu0.22.04.3 active 1 mysql-k8s 8.0/edge 160 10.152.183.96 no | ||
mysql-router-k8s 8.0.37-0ubuntu0.22.04.3 waiting 3 mysql-router-k8s 8.0/edge 0 10.152.183.221 no installing agent | ||
mysql-test-app 0.0.2 active 1 mysql-test-app latest/edge 46 10.152.183.129 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
mysql-k8s/0* active idle 10.1.112.141 Primary | ||
mysql-router-k8s/0* active idle 10.1.112.137 Router 8.0.37 running (restart pending); Charmed operator 1.2+ee5d2ff | ||
mysql-router-k8s/1 active idle 10.1.112.139 Router 8.0.37 running (restart pending); Charmed operator 1.2+ee5d2ff | ||
mysql-router-k8s/2 blocked idle 10.1.112.142 Upgrade incompatible. Rollback to previous revision with `juju refresh` | ||
mysql-test-app/0* active idle 10.1.112.136 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:796 Juju error logs: | ||
|
||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:862 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,79 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[33mWARNING [0m juju.client.connection:connection.py:927 unexpected facade UserSecretsDrain received from the controller | ||
[33mWARNING [0m juju.client.connection:connection.py:927 unexpected facade UserSecretsManager received from the controller | ||
[32mINFO [0m integration.test_charm:test_charm.py:48 Deploying mysql, mysqlrouter and application | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/jammy/mysql-test-app-46 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/jammy/mysql-k8s-160 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying local:jammy/mysql-router-k8s-0 | ||
[32mINFO [0m integration.test_charm:test_charm.py:79 Waiting for mysqlrouter to be in BlockedStatus | ||
[32mINFO [0m integration.test_charm:test_charm.py:85 Relating mysql, mysqlrouter and application | ||
[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. | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/0 [executing] waiting: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/0 [idle] waiting: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/0 [idle] waiting: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [executing] active: | ||
mysql-k8s/1 [executing] active: Primary | ||
mysql-k8s/2 [executing] active: | ||
mysql-router-k8s/0 [idle] active: | ||
mysql-test-app/0 [idle] active: Last written value=866 | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s (waiting for exactly 2 units, current : 1) | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/0 [idle] active: | ||
mysql-router-k8s/1 [executing] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/1 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-test-app (waiting for exactly 2 units, current : 1) | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-test-app/0 [idle] active: | ||
mysql-test-app/1 [idle] active: | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:790 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.4.3 unsupported 02:09:55Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
mysql-k8s 8.0.37-0ubuntu0.22.04.3 active 3 mysql-k8s 8.0/edge 160 10.152.183.134 no | ||
mysql-router-k8s 8.0.36-0ubuntu0.22.04.1 active 2 mysql-router-k8s 0 10.152.183.145 no | ||
mysql-test-app 0.0.2 active 2 mysql-test-app latest/edge 46 10.152.183.75 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
mysql-k8s/0 active idle 10.1.73.141 | ||
mysql-k8s/1* active idle 10.1.73.143 Primary | ||
mysql-k8s/2 active idle 10.1.73.142 | ||
mysql-router-k8s/0* active idle 10.1.73.140 | ||
mysql-router-k8s/1 active idle 10.1.73.144 | ||
mysql-test-app/0* active idle 10.1.73.136 | ||
mysql-test-app/1 active idle 10.1.73.145 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:796 Juju error logs: | ||
|
||
|
||
[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-router-k8s-operator/mysql-router-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-router-k8s-operator/mysql-router-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-router-k8s-operator/mysql-router-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-router-k8s-operator/mysql-router-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-router-k8s-operator/mysql-router-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,36 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[33mWARNING [0m juju.client.connection:connection.py:927 unexpected facade UserSecretsDrain received from the controller | ||
[33mWARNING [0m juju.client.connection:connection.py:927 unexpected facade UserSecretsManager received from the controller | ||
[32mINFO [0m integration.test_exporter:test_exporter.py:55 Deploying all the applications | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/jammy/mysql-test-app-46 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/jammy/grafana-agent-k8s-45 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/jammy/mysql-k8s-160 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying local:jammy/mysql-router-k8s-0 | ||
[32mINFO [0m integration.test_exporter:test_exporter.py:94 Waiting for mysqlrouter to be in BlockedStatus | ||
[32mINFO [0m integration.test_exporter:test_exporter.py:100 Relating mysql, mysqlrouter and application | ||
[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. | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/0 [executing] maintenance: Waiting for container | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/0 [idle] waiting: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-router-k8s/0 [idle] active: | ||
[32mINFO [0m juju.model:model.py:2759 Waiting for model: | ||
mysql-k8s/0 [idle] active: Primary | ||
mysql-router-k8s/0 [idle] active: | ||
mysql-test-app/0 [idle] active: | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca86c68f0>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca86c5840>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca86c6770>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics | ||
[32mINFO [0m integration.test_exporter:test_exporter.py:134 Relating mysqlrouter with grafana agent | ||
[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. | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca3fdf6a0>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca3fde6e0>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca3fde0b0>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics | ||
[32mINFO [0m integration.test_exporter:test_exporter.py:160 Removing relation between mysqlrouter and grafana agent | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca4253cd0>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca3fdc490>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics | ||
[33mWARNING [0m urllib3.connectionpool:connectionpool.py:823 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ca3fddd50>: Failed to establish a new connection: [Errno 111] Connection refused')': /metrics |
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,59 @@ | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:675 Connecting to existing model microk8s-localhost:test on unspecified cloud | ||
[33mWARNING [0m juju.client.connection:connection.py:927 unexpected facade UserSecretsDrain received from the controller | ||
[33mWARNING [0m juju.client.connection:connection.py:927 unexpected facade UserSecretsManager received from the controller | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:49 Deploying mysql, mysqlrouter and application | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/jammy/mysql-test-app-46 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying ch:amd64/jammy/mysql-k8s-160 | ||
[32mINFO [0m juju.model:model.py:2069 Deploying local:jammy/mysql-router-k8s-0 | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:80 Waiting for mysqlrouter to be in BlockedStatus | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:86 Relating mysql, mysqlrouter and application | ||
[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. | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:107 Stopping the logrotate executor pebble service | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:110 Stopping any running logrotate jobs | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:113 Removing existing archive directory | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:120 Writing some data mysqlrouter log file | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:124 Ensuring only log files exist | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:133 Executing logrotate | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:136 Ensuring log files and archive directories exist | ||
[32mINFO [0m integration.test_log_rotation:test_log_rotation.py:147 Ensuring log files was rotated | ||
[32mINFO [0m pytest_operator.plugin:plugin.py:790 Model status: | ||
|
||
Model Controller Cloud/Region Version SLA Timestamp | ||
test microk8s-localhost microk8s/localhost 3.4.3 unsupported 02:10:48Z | ||
|
||
App Version Status Scale Charm Channel Rev Address Exposed Message | ||
mysql-k8s 8.0.37-0ubuntu0.22.04.3 active 3 mysql-k8s 8.0/edge 160 10.152.183.37 no | ||
mysql-router-k8s 8.0.36-0ubuntu0.22.04.1 active 1 mysql-router-k8s 0 10.152.183.246 no | ||
mysql-test-app 0.0.2 active 1 mysql-test-app latest/edge 46 10.152.183.238 no | ||
|
||
Unit Workload Agent Address Ports Message | ||
mysql-k8s/0* active idle 10.1.67.143 Primary | ||
mysql-k8s/1 active idle 10.1.67.141 | ||
mysql-k8s/2 active idle 10.1.67.142 | ||
mysql-router-k8s/0* active idle 10.1.67.140 | ||
mysql-test-app/0* active executing 10.1.67.136 | ||
|
||
[32mINFO [0m pytest_operator.plugin:plugin.py:796 Juju error logs: | ||
|
||
|
||
[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-router-k8s-operator/mysql-router-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-router-k8s-operator/mysql-router-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-router-k8s-operator/mysql-router-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-router-k8s-operator/mysql-router-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-router-k8s-operator/mysql-router-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 |
Oops, something went wrong.