Closed freyes closed 3 months ago
So there are two things going on here:
juju.errors.JujuAPIError: shared state watcher was stopped
This is out of scope for pylibjuju, it needs to be investigated on the Juju side.
AttributeError: 'NoneType' object has no attribute 'exception'
This is certainly a bug on pylibjuju, we should be able to trap that. We can fix this here soon 👍
One thing to note here, is that we're starting to actually deprecate the 2.9 support (on Juju, as well as in pylibjuju), we'll have a 2.9.47 release, but after that it'll be only essential security fixes. This particular issue is a small patch, so I'll fix in on 2.9 and forward-port, however, we'll soon be supporting only the 3.x moving forward.
Fixed with #1035
Description
libjuju crashes when the shared state watcher was stopped, libjuju tries to handle and fails with the following error:
AttributeError: 'NoneType' object has no attribute 'exception'
We are seeing this issue in our CI - https://github.com/openstack-charmers/zaza/actions/runs/7907308186/job/21769045812?pr=608
The full stacktrace is:
Urgency
Casually reporting
Python-libjuju version
2.9.46.1
Juju version
2.9.46
Reproduce / Test