Project

General

Profile

Actions

Bug #21402

open

Running migrations on disabled scenario produces errors in %post script

Added by Martin Bacovsky over 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
foreman-installer script
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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"?

  1. rpm -q --scripts foreman-installer
    postinstall scriptlet (using /bin/sh):
    foreman-installer --scenario foreman --migrations-only > /dev/null
  2. 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.
  3. foreman-installer --scenario satellite --migrations-only
  4. echo $?
    0
Actions #1

Updated by Martin Bacovsky over 6 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
Actions

Also available in: Atom PDF