Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'ClientConnection' object has no attribute 'open' #1207

Open
freyes opened this issue Nov 22, 2024 · 0 comments
Open

AttributeError: 'ClientConnection' object has no attribute 'open' #1207

freyes opened this issue Nov 22, 2024 · 0 comments
Labels
kind/bug indicates a bug in the project

Comments

@freyes
Copy link
Contributor

freyes commented Nov 22, 2024

Description

When trying to use zaza with juju 2.9 and a latest version of websockets the following exception is raised due to changes in the library.

Traceback (most recent call last):                                                                                                                                             
  File "/home/ubuntu/charms/charm-mysql-innodb-cluster/src/.tox/func-target/lib/python3.10/site-packages/juju/client/connection.py", line 834, in _connect_with_login
    result = (await self.login())['response']                                                                                                                                  
  File "/home/ubuntu/charms/charm-mysql-innodb-cluster/src/.tox/func-target/lib/python3.10/site-packages/juju/client/connection.py", line 923, in login
    return await self.rpc({                                                                                                                                                    
  File "/home/ubuntu/charms/charm-mysql-innodb-cluster/src/.tox/func-target/lib/python3.10/site-packages/juju/client/connection.py", line 606, in rpc
    if self.monitor.status == Monitor.DISCONNECTED:                                                                                                                            
  File "/home/ubuntu/charms/charm-mysql-innodb-cluster/src/.tox/func-target/lib/python3.10/site-packages/juju/client/connection.py", line 212, in status
    if stopped or not connection._ws.open:                                                                                                                                     
AttributeError: 'ClientConnection' object has no attribute 'open'

Urgency

Annoying bug in our test suite

Python-libjuju version

2.9.49

Juju version

2.9.49

Reproduce / Test

git clone https://opendev.org/openstack/charm-mysql-innodb-cluster.git
cd charm-mysql-innodb-cluster
tox -e func-target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug indicates a bug in the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant