leapp/SOURCES/0004-Document-workaround-for-the-broken-snactor.patch
2023-01-28 01:34:31 +00:00

36 lines
1.4 KiB
Diff

From 18f6055615320d721c3ee5f1237a02d31540b03b Mon Sep 17 00:00:00 2001
From: Jakub Jelen <jjelen@redhat.com>
Date: Thu, 6 Oct 2022 19:21:14 +0200
Subject: [PATCH 04/16] Document workaround for the broken snactor
prefer having this documented instead answering everyone questions why it does not work when it is in documentation. At least until it is fixed.
---
docs/source/el7toel8/actor-rhel7-to-rhel8.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docs/source/el7toel8/actor-rhel7-to-rhel8.md b/docs/source/el7toel8/actor-rhel7-to-rhel8.md
index 4157cfb..b7c1e5c 100644
--- a/docs/source/el7toel8/actor-rhel7-to-rhel8.md
+++ b/docs/source/el7toel8/actor-rhel7-to-rhel8.md
@@ -327,6 +327,17 @@ data is stored in the database for the current session:
```shell
snactor run --save-output IPUWorkflowConfig
```
+Since the leapp supports several upgrade paths, the `snactor` needs to know target system and upgrade flavor specification for correct execution.
+If you see similar errors when running `snactor`
+```
+leapp.models.fields.ModelViolationError: The value of "target" field is None, but this is not allowed
+```
+please, set the following environment variables (adjust the `LEAPP_UPGRADE_PATH_TARGET_RELEASE` as needed):
+```
+export LEAPP_UPGRADE_PATH_TARGET_RELEASE=8.6
+export LEAPP_UPGRADE_PATH_FLAVOUR=default
+snactor run --save-output IPUWorkflowConfig
+```
### Executing the whole upgrade workflow with the new actor
--
2.39.0