Comment 4 for bug 2002646

Revision history for this message
Adam Dyess (addyess) wrote :

upon further evaluation, adding the api loadbalancer ip to the list of hostnames in `juju model-config no-proxy` is probably the best work-around.

There aren't many python http client libraries that support cidr ranges, but only support a list of hostnames

In this SPECIFIC case, the client library used by the charm is httpx

Docs: https://www.python-httpx.org/environment_variables/#no_proxy

> Valid values: a comma-separated list of hostnames/urls

Notice that CIDR networks aren't supported here. Expanding the CIDR range here doesn't seem like a good idea, so I think that work-around is the best one to leave in place -- maybe even close the bug as a "Won't fix"

Reversion Patch: https://github.com/canonical/ops-lib-manifest/pull/14