Bug 1322025 - Add ability to enable/disable scenarios to foreman-installer
Summary: Add ability to enable/disable scenarios to foreman-installer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: Martin Bacovsky
QA Contact: Sanket Jagtap
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1323708
TreeView+ depends on / blocked
 
Reported: 2016-03-29 15:14 UTC by Martin Bacovsky
Modified: 2019-09-26 17:34 UTC (History)
5 users (show)

Fixed In Version: rubygem-kafo-0.7.3-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:16:17 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14373 0 None None None 2016-04-22 16:34:10 UTC

Description Martin Bacovsky 2016-03-29 15:14:35 UTC
Description of problem:
In some cases it is useful to disable scenario (e.g. when it was replaced with new one) but not delete it. Disabled scenario should be hidden from scenario list and prevented from running but it should stay on the system to make migration to new scenario possible.


Actual results:
not possible

Expected results:
After 'foreman-installer --disable-scenario old_scenario' the old_scenario is not listed in --list-scenarios and is not possible to install.

Comment 2 Martin Bacovsky 2016-03-29 15:24:54 UTC
Created redmine issue http://projects.theforeman.org/issues/14373 from this bug

Comment 4 Bryan Kearney 2016-03-31 16:14:22 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14373 has been closed
-------------
Martin Bacovsky
Applied in changeset commit:a0651adff0e32c54fdac822a0f9a863a38a1dd73.

Comment 5 Sanket Jagtap 2016-05-10 14:23:42 UTC
foreman-installer --list-scenarios
Available scenarios
  Capsule (use: --scenario capsule)
        Install a stand-alone Capsule.
  Katello (use: --scenario katello)
        Install Satellite server with Integrated Capsule
[root@sjagtap-sat6 ~]# foreman-installer --disable-scenario capsule
Scenario capsule was disabled
[root@sjagtap-sat6 ~]# foreman-installer --list-scenarios
Available scenarios
  Katello (use: --scenario katello)
        Install Satellite server with Integrated Capsule
[root@sjagtap-sat6 ~]# foreman-installer -S capsule
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.
[root@sjagtap-sat6 ~]# foreman-installer --enable-scenario capsule
Scenario capsule was enabled
[root@sjagtap-sat6 ~]# oreman-installer --list-scenarios
-bash: oreman-installer: command not found
[root@sjagtap-sat6 ~]# foreman-installer --list-scenarios
Available scenarios
  Capsule (use: --scenario capsule)
        Install a stand-alone Capsule.
  Katello (use: --scenario katello)
        Install Satellite server with Integrated Capsule

Comment 6 Bryan Kearney 2016-07-27 11:16:17 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.