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.
Updated by Backport Bot 10 months ago
- Copied to Backport #61964: reef: Add function to check if a host is unreachable by the hostname added
Updated by Backport Bot 10 months ago
- Copied to Backport #61965: quincy: Add function to check if a host is unreachable by the hostname added
Updated by Adam King about 2 months ago
- Status changed from Pending Backport to Resolved
Actions