Actions
Cleanup #61548
closedAdd function to check if a host is unreachable by the hostname
% Done:
0%
Tags:
backport_processed
Backport:
reef, quincy
Reviewed:
Affected Versions:
Pull request ID:
Description
Currently, there's a ton of spots in the cephadm code where we do something like
if 'host1' not in [h.hostname for h in cephadm_module.cache.get_unreachable_hosts()]
Given the amount of times we have to do that same list compression to get all the hostnames for unreachable hosts just to check if a particular host is unreachable, it would be preferable to add a new function that takes a hostname and just returns a bool telling you if it is unreachable or not.
Actions