From 45a7dd70f120e134fc298f5ac3ac7c5c464d5ffb Mon Sep 17 00:00:00 2001 From: Petr Stodulka Date: Wed, 24 Jul 2019 09:58:24 +0200 Subject: [PATCH] Fix: Undefined Model "ReportReference" We are able to hit the issue only on some machines (not sure why just on some machines) during the scan of the repository. The issue happens during the loading workflow modules. Modified snippet of the err: ...leapp.repository.common: Loading workflow modules ...leapp.repository.system_upgrade_el7toel8: Loading workflow modules Error: Undefined Model "ReportReference" To fix that, import leapp.reporting inside the leapp.cli.upgrade module to enure the Report model reference is loaded. --- leapp/cli/upgrade/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/leapp/cli/upgrade/__init__.py b/leapp/cli/upgrade/__init__.py index 66e01db99..97d7bd09c 100644 --- a/leapp/cli/upgrade/__init__.py +++ b/leapp/cli/upgrade/__init__.py @@ -16,6 +16,7 @@ from leapp.utils.clicmd import command, command_opt from leapp.utils.output import report_errors, report_info, beautify_actor_exception from leapp.utils.report import fetch_upgrade_report_raw +import leapp.reporting def archive_logfiles():