Bug #21402
openRunning migrations on disabled scenario produces errors in %post script
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1499861
Description of problem:
Upgrading from snap 18 to satellite-6.3.0-20.0.beta.el7sat.noarch: %post(foreman-installer-1:1.15.5-1.el7sat.noarch) scriptlet failed, exit status 27
Version-Release number of selected component (if applicable):
satellite-6.3.0-20.0.beta.el7sat.noarch
foreman-installer-1.15.5-1.el7sat.noarch
How reproducible:
1 of 1
Steps to Reproduce:
1. Install 6.3.0 snap 18 and configure repos to latest nightly
2. # yum upgrade
Actual results:
[...]
Updating : 1:foreman-installer-1.15.5-1.el7sat.noarch 31/64
warning: %post(foreman-installer-1:1.15.5-1.el7sat.noarch) scriptlet failed, exit status 27
Non-fatal POSTIN scriptlet failure in rpm package 1:foreman-installer-1.15.5-1.el7sat.noarch
Updating : katello-client-bootstrap-1.4.2-1.el7sat.noarch
[...]
Expected results:
There should not be any failure in scriptlets
Additional info:
Maybe the problem is only in that "foreman" vs. "satellite"?
- rpm -q --scripts foreman-installer
postinstall scriptlet (using /bin/sh):
foreman-installer --scenario foreman --migrations-only > /dev/null - foreman-installer --scenario foreman --migrations-only
ERROR: Selected scenario is DISABLED, can not continue.
Use --list-scenarios to list available options.
You can also --enable-scenario SCENARIO to make the selected scenario available. - foreman-installer --scenario satellite --migrations-only
- echo $?
0
Updated by Martin Bacovsky over 7 years ago
- Project changed from Foreman to Installer
- Subject changed from upgrading from snap 18 to satellite-6.3.0-20.0.beta.el7sat.noarch: %post(foreman-installer-1:1.15.5-1.el7sat.noarch) scriptlet failed, exit status 27 to Running migrations on disabled scenario produces errors in %post script
- Category set to foreman-installer script
- Target version set to 227