Project

General

Profile

Actions

Cleanup #61548

closed

Add function to check if a host is unreachable by the hostname

Added by Adam King 11 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% 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.


Related issues 2 (0 open2 closed)

Copied to Orchestrator - Backport #61964: reef: Add function to check if a host is unreachable by the hostnameResolvedAdam KingActions
Copied to Orchestrator - Backport #61965: quincy: Add function to check if a host is unreachable by the hostnameResolvedAdam KingActions
Actions #1

Updated by Adam King 11 months ago

  • Status changed from New to In Progress
  • Assignee set to Adam King
  • Backport set to reef, quincy
  • Pull request ID set to 51880
Actions #2

Updated by Adam King 10 months ago

  • Status changed from In Progress to Pending Backport
Actions #3

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
Actions #4

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
Actions #5

Updated by Backport Bot 10 months ago

  • Tags set to backport_processed
Actions #6

Updated by Adam King about 2 months ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF