In reviewing libjuju for it's readiness for use with Juju configured in high availability mode, it looks like there are some gaps.
|
endpoint = controller['api-endpoints'][0] |
The above implies that while libjuju receives a list of API endpoints it only uses the first endpoint. There's a TODO above this code that
Connection needs to be modified to accept a list of endpoints, rather than a single endpoint.
Expected behavior:
We would expect libjuju to consume the list of API endpoints and failover if the selected address fails to connect.
In reviewing libjuju for it's readiness for use with Juju configured in high availability mode, it looks like there are some gaps.
python-libjuju/juju/client/connector.py
Line 91 in 9e31ce1
The above implies that while libjuju receives a list of API endpoints it only uses the first endpoint. There's a TODO above this code that
Connectionneeds to be modified to accept a list of endpoints, rather than a single endpoint.Expected behavior:
We would expect libjuju to consume the list of API endpoints and failover if the selected address fails to connect.