canonical / charm-microceph

Charm to deploy/manage microceph
Apache License 2.0
2 stars 9 forks source link

Get default route to find local ip address #34

Closed gboutry closed 9 months ago

gboutry commented 9 months ago

Looking at netifaces.gateways()["default"] does not always yield a result. In this instances, _get_local_ip_by_default_route will fail, and microceph will not be able to get a working IP Address.

This is actually old sunbeam code, that has been replace since then with a new method:

Finding default route, then infer iface (and address) from this default route.

gboutry commented 9 months ago

Fixed in another way by @UtkarshBhatthere, closing this one.