Description of problem: I initiated upgrade from sat618 -> 6.2 snap11.0 using cmd: satellite-installer --scenario satellite --upgrade and it failed with error: [qe-sat6-upgrade-rhel7.satqe.lab.eng.rdu2.redhat.com] out: [ERROR 2016-05-13 02:26:07 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 On checking installer help, I got another error. At first place with --help, user shouldn't get any error, it could be a generic message. ~]# satellite-installer --help 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@qe-sat6-upgrade-rhel7 ~]# satellite-installer --list-scenarios Available scenarios Capsule (use: --scenario capsule) Install a stand-alone Capsule. Satellite (use: --scenario satellite) Install Satelite server I enabled the scenario explicitly and still getting: ----------------------------------------------------- ~]# satellite-installer --enable-scenario satellite Scenario satellite was enabled [root@qe-sat6-upgrade-rhel7 ~]# satellite-installer --help 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. Again initiated upgrade: ========================= # satellite-installer --scenario satellite --upgrade [ INFO 2016-05-13 02:35:48 verbose] Executing hooks in group pre_migrations [ INFO 2016-05-13 02:35:48 verbose] All hooks in group pre_migrations finished [ERROR 2016-05-13 02:35:48 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-13 02:35:48 verbose] Log was be written to /var/log/foreman-installer/satellite.log [ INFO 2016-05-13 02:35:48 verbose] Logs flushed As per satellite log: ======================= [DEBUG 2016-05-13 02:35:48 main] Exit with status code: 27 (signal was scenario_error) [DEBUG 2016-05-13 02:35:48 main] Cleaning /tmp/default_values.yaml [DEBUG 2016-05-13 02:35:48 main] Exit with status code: 27 (signal was 27) [DEBUG 2016-05-13 02:35:48 main] Cleaning /tmp/default_values.yaml Version-Release number of selected component (if applicable): upgrade sat6.1.8 to sat6.2 snap11.0 How reproducible: Steps to Reproduce: 1. perform upgrade from Sat6.1.8 to sat6.2 snap11.0 2. 3. Actual results: couldn't proceed with upgrade and error out: 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-13 02:35:48 verbose] Log was be written to /var/log/foreman-installer/satellite.log Expected results: user should be able to perform upgrade with satellite-installer and it should be friendly enough to provide help options. Additional info:
If I don't use --scenario option then again same result: # 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.
Please make a note, I can proceed with upgrade with --force option: # satellite-installer --scenario satellite --upgrade --force But upgrade *shouldn't* be run only with --force option. Couple of things needs to be fixed: 1) user should be able to perform upgrade with any of these cmds: a) satellite-installer --scenario satellite --upgrade b) satellite-installer --upgrade 2) User shouldn't get error: You are trying to replace existing installation with different scenario. we may raise this as generic message. 3) satellite-installer --help 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. user should be able to see all installer options with "--help" Since all issues are related, so I'm combining all issues in one bz. However, If you would like separate bz's, just ping here and I'll be happy to do that.
Note: Since I was able to proceed with upgrade using --force option but it failed at migration step. I'll file another issue for that.
*** This bug has been marked as a duplicate of bug 1335668 ***