We already had one of these specifically for daemons. This commit
just adds the same but for all types of host metadata. Currently
the intended use is to call this when taking a host out of maintenace
mode as it's not just the daemons that could have been modified
while the host was in maintenance mode.
Signed-off-by: Adam King <adking@redhat.com>
self._kick_serve_loop()
+ def _invalidate_all_host_metadata_and_kick_serve(self, hostname: str) -> None:
+ # invalidates all metadata for a given host and kicks serve loop
+ self.cache.refresh_all_host_info(hostname)
+ self._kick_serve_loop()
+
@handle_orch_error
def describe_service(self, service_type: Optional[str] = None, service_name: Optional[str] = None,
refresh: bool = False) -> List[orchestrator.ServiceDescription]: