juju.NewAPIConnection doesn't fall back to using UnresolvedAPIEndpoints when connecting

Bug #1566893 reported by Roger Peppe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned

Bug Description

This may be by design but it surprised me, hence this bug report.

The controller information caches both APIEndpoints and UnresolvedAPIEndpoints.
The unresolved endpoints are useful to keep because their respective
IP addresses might change - they're the primary source.

However the API connection code never falls back to using UnresolvedAPIEndpoints - it
will always use the resolved IP addresses acquired after the most recent
API connection which might now be wrong.

When writing code to set manually create a controller entry, it would seem logical
to put the (unresolved) API addresses into UnresolvedAPIEndpoints,
but this won't work - instead one must put the unresolved API addresses
into APIEndpoints. This seems wrong.

As a solution, I'd suggest falling back to using the unresolved addresses after
trying all the resolved addresses.

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
affects: juju-core → juju
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.