Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1335668 - satellite-installer --upgrade generates errors without --scenario or --force
Summary: satellite-installer --upgrade generates errors without --scenario or --force
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Martin Bacovsky
QA Contact: Sachin Ghai
URL:
Whiteboard:
: 1335732 (view as bug list)
Depends On:
Blocks: 1335807
TreeView+ depends on / blocked
 
Reported: 2016-05-12 19:54 UTC by Brad Buckingham
Modified: 2019-09-26 17:33 UTC (History)
3 users (show)

Fixed In Version: satellite-installer-6.2.0.3-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:32:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Brad Buckingham 2016-05-12 19:54:39 UTC
Description of problem:

Attempting to perform an upgrade of Satellite using satellite-installer requires both --scenario and --force in order to execute.

Version-Release number of selected component (if applicable):
Satellite 6.2 Snap 11

How reproducible:
Always

Steps to Reproduce:

1. install Satellite 6.1

2. satellite-installer --upgrade
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

Note: with the prior foreman-installer --upgrade appeared to default to katello (satellite)

3. satellite-installer --scenario satellite --upgrade
[ INFO 2016-05-12 18:53:23 verbose] Executing hooks in group pre_migrations
[ INFO 2016-05-12 18:53:23 verbose] All hooks in group pre_migrations finished
[ERROR 2016-05-12 18:53:23 verbose] You are trying to replace existing installation with different scenario. This may lead to unpredictable states. Use --force to override. You can use --compare-scenarios to see the differences
[ INFO 2016-05-12 18:53:23 verbose] Log was be written to /var/log/foreman-installer/satellite.log
[ INFO 2016-05-12 18:53:23 verbose] Logs flushed


Additional info:

Including --force will allow the upgrade to proceed; however, there are other issues during foreman_migrate to be addressed separately.

Comment 2 Brad Buckingham 2016-05-16 12:38:11 UTC
*** Bug 1335732 has been marked as a duplicate of this bug. ***

Comment 4 Sachin Ghai 2016-05-26 08:25:13 UTC
Verified with upgrade from sat6.1.9 -> sat6.2 snap13.1

Lists possible scenarios:
=========================
~]# satellite-installer --list-scenarios
Available scenarios
  Capsule (use: --scenario capsule)
        Install a stand-alone Capsule.
  Satellite (INSTALLED)
        Install Satelite server


Ran installer without --force option.
======================================
 ~]# satellite-installer --scenario satellite --upgrade
Upgrading...
Upgrade Step: stop_services...

subsequent upgrade without --scenario
====================================

~]# satellite-installer --upgrade
Upgrading...
Upgrade Step: stop_services...


Installer with invalid option:
==============================

 ~]# satellite-installer --test
ERROR: Unrecognised option '--test'

See: 'satellite-installer --help'


Installer with --help option
~]# satellite-installer --help
Usage:
    satellite-installer [OPTIONS]

Options:

= Generic:
    --reset                       This option will drop the Katello database and clear all subsequent backend data stores.You will lose all data! Unfortunately we
                                  can't detect a failure at the moment so you should verify the success
                                  manually. e.g. dropping can fail when DB is currently in use. (default: false)


Looks like reported issue is fixed. Moving this to verified. thanks

Comment 5 Bryan Kearney 2016-07-27 11:32:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501


Note You need to log in before you can comment on or make changes to this bug.