canonical / charm-microceph

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

Charm is failing when trying to retrieve IP Addresses from an unconfigured interface #38

Closed gboutry closed 5 months ago

gboutry commented 5 months ago

The charm is trying to get ip addresses from every interfaces to match mon hosts, but one of my interface is unconfigured (it's needed to setup compute network later in sunbeam)

File "/var/lib/juju/agents/unit-microceph-0/charm/./src/charm.py", line 232, in _lookup_system_interfaces
    for addr in addrs[netifaces.AF_INET]:
KeyError: 2
UtkarshBhatthere commented 5 months ago

Thanks for the quick test and patch @gboutry