diff --git a/sysinv/sysinv/sysinv/sysinv/agent/manager.py b/sysinv/sysinv/sysinv/sysinv/agent/manager.py index c562ad76cc..c2677aafcf 100644 --- a/sysinv/sysinv/sysinv/sysinv/agent/manager.py +++ b/sysinv/sysinv/sysinv/sysinv/agent/manager.py @@ -1380,8 +1380,9 @@ class AgentManager(service.PeriodicService): self._update_config_applied(iconfig_uuid) self._report_config_applied(context) - def _retry_on_missing_mgmt_ip(self, exception): - return isinstance(exception, exception.LocalManagementIpNotFound) + def _retry_on_missing_mgmt_ip(ex): + LOG.info('Caught exception. Retrying... Exception: {}'.format(ex)) + return isinstance(ex, exception.LocalManagementIpNotFound) @retrying.retry(wait_fixed=15 * 1000, stop_max_delay=300 * 1000, retry_on_exception=_retry_on_missing_mgmt_ip) diff --git a/sysinv/sysinv/sysinv/sysinv/common/exception.py b/sysinv/sysinv/sysinv/sysinv/common/exception.py index 8bb17e0c27..034f3b3e88 100644 --- a/sysinv/sysinv/sysinv/sysinv/common/exception.py +++ b/sysinv/sysinv/sysinv/sysinv/common/exception.py @@ -1287,8 +1287,8 @@ class InvalidHelmNamespace(Invalid): class LocalManagementIpNotFound(NotFound): message = _("Local management IP not found: " - "config_uuid=%(config_uuid), config_dict=%(config_dict), " - "host_personality=%(host_personality)") + "config_uuid=%(config_uuid)s, config_dict=%(config_dict)s, " + "host_personality=%(host_personality)s") class InvalidHelmDockerImageSource(Invalid):