Skip to content

Instantly share code, notes, and snippets.

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
🦐/c/operator (populate-state-from-metadata)> tox -e py3.10-unit -- -k asjklasdkjl
py3.10-unit: venv> /Users/dima/.local/share/uv/tools/tox/bin/uv venv -p cpython3.10 --allow-existing --python-preference system /code/operator/.tox/py3.10-unit
py3.10-unit: install_dependency-groups> /Users/dima/.local/share/uv/tools/tox/bin/uv pip install 'eval-type-backport~=0.2; python_version < "3.10"' 'jsonpatch~=1.33' 'ops[testing,tracing]' 'pydantic~=2.10' 'pytest-xdist~=3.6' 'pytest~=8.0'
py3.10-unit: commands[0]> pytest -n auto --ignore=test/smoke --ignore=test/integration --ignore=test/benchmark --ignore=testing/tests/benchmark --ignore=tracing/test/ --ignore=examples/ -v --tb native -W 'ignore:Harness is deprecated:PendingDeprecationWarning' -k asjklasdkjl
================================================================================================================================================= test session starts ====================================================================================================
⋊> dima@bb ⋊> ~ coredumpctl debug 3836963 13:51:34
PID: 3836963 (python3)
UID: 1000 (dima)
GID: 1000 (dima)
Signal: 11 (SEGV)
Timestamp: Wed 2025-06-04 07:03:35 JST (6h ago)
Command Line: /code/operator-xdist-3.7/.venv/bin/python3 -u -c $'import sys;exec(eval(sys.stdin.readline()))'
Executable: /home/dima/3.13-dev/python/install/bin/python3.13d
Control Group: /user.slice/user-1000.slice/[email protected]/tmux-spawn-f92e4ddc-4a2d-4bf7-a7e2-58abbd1ec088.scope
Unit: [email protected]

System behaved weird...

root@tracing-integration-tester-0:/var/lib/juju# curl -v --data '{"a":42}' localhost:41293
* Host localhost:41293 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:41293...
* Connected to localhost (::1) port 41293
> POST / HTTP/1.1
Fatal Python error: Segmentation fault
Thread 0x0000730aa34916c0 (most recent call first):
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 534 in read
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 567 in from_io
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 1160 in _thread_receiver
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 341 in run
File "/code/operator-xdist-3.6.1/.tox/unit/lib/python3.9/site-packages/execnet/gateway_base.py", line 411 in _perform_spawn
Current thread 0x0000730aa5f0e740 (most recent call first):
[2469010.901237] traps: python[2468223] general protection fault ip:78e1eff33c00 sp:7ffff5600ef8 error:0 in libpython3.8.so.1.0[333c00,78e1efd78000+c97000]
Fatal Python error: Segmentation fault
Thread 0x0000704b0f63f6c0 (most recent call first):
File "/home/dima/.local/share/uv/python/cpython-3.9.22-linux-x86_64-gnu/lib/python3.9/threading.py", line 316 in wait
File "/code/operator/.tox/unit/lib/python3.9/site-packages/opentelemetry/sdk/trace/export/__init__.py", line 258 in worker
File "/home/dima/.local/share/uv/python/cpython-3.9.22-linux-x86_64-gnu/lib/python3.9/threading.py", line 917 in run
File "/home/dima/.local/share/uv/python/cpython-3.9.22-linux-x86_64-gnu/lib/python3.9/threading.py", line 980 in _bootstrap_inner
File "/home/dima/.local/share/uv/python/cpython-3.9.22-linux-x86_64-gnu/lib/python3.9/threading.py", line 937 in _bootstrap
Thread 0x0000704b160516c0 (most recent call first):
Hi peacekeepers, PTAL@ https://github.com/juju/python-libjuju/issues/1263
Juju 3.6.1.1, CK8s, they hit a timeout trying to deploy a locally-built charm, presumably immediately after model has been created.
Feel free to move the issue to juju/juju or bounce it to k8s people.
│ 2025-05-05T21:16:52.400Z [pebble] HTTP API server listening on ":38812". │
│ 2025-05-05T21:16:52.400Z [pebble] Started daemon. │
│ 2025-05-05T21:16:52.419Z [pebble] POST /v1/services 17.917425ms 202 │
│ 2025-05-05T21:16:52.422Z [pebble] Service "container-agent" starting: /charm/bin/containeragent unit --data-dir /var/lib/juju --append-env "PATH=$PATH:/charm/bin" --show-log --charm-modified-version 0 │
│ 2025-05-05T21:16:52.437Z [container-agent] 2025-05
│ 2025-03-13T22:54:50.612Z [container-agent] 2025-03-13 22:54:50 ERROR juju-log Uncaught exception while in charm code: │
│ 2025-03-13T22:54:50.612Z [container-agent] Traceback (most recent call last): │
│ 2025-03-13T22:54:50.612Z [container-agent] File "/var/lib/juju/agents/unit-hexanator-0/charm/venv/ops/model.py", line 3373, in _run │
│ 2025-03-13T22:54:50.612Z [container-agent] result = subprocess.run(args, **kwargs) # type: ig