Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionAmar Huchchanavar
2020-06-12 15:56:50 UTC
Description of problem: capsule-certs-generate and satellite-installer fail immediately if any of the provided argument contains '-S'.
Example:
1]--server-ca-cert "/root/certs/A-STest.crt"
#capsule-certs-generate --foreman-proxy-fqdn "capsule.fqdn.here" --certs-tar "~/capsule-certs.tar" --server-cert "/root/ssl-build/capsule.fqdn.here/capsule_cert.pem" --server-key "/root/ssl-build/capsule.fqdn.here/capsule_cert_key.pem" --server-ca-cert "/root/certs/A-STest.crt"
ERROR: Scenario (/usr/share/foreman-installer/katello-certs/scenarios.d/Test.crt.yaml) was not found, can not continue
2] --certs-server-cert "/etc/pki/katello/certs/katello-S-apache.crt"
#satellite-installer --scenario satellite --certs-server-cert "/etc/pki/katello/certs/katello-S-apache.crt" --certs-server-key "/etc/pki/katello/private/katello-apache.key" --certs-server-ca-cert "/etc/pki/katello/certs/katello-server-ca.crt"
[ INFO 2020-06-12T21:13:23 verbose] Executing hooks in group pre_migrations
[ INFO 2020-06-12T21:13:23 verbose] All hooks in group pre_migrations finished
[ERROR 2020-06-12T21:13: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 2020-06-12T21:13:23 verbose] Log was be written to /var/log/foreman-installer/satellite.log
[ INFO 2020-06-12T21:13:23 verbose] Logs flushed
Version-Release number of selected component (if applicable):
Satellite 6.5/6.6/6.7
How reproducible:
Always
Steps to Reproduce:
1. #capsule-certs-generate --foreman-proxy-fqdn "capsule.fqdn.here" --certs-tar "~/capsule-certs.tar" --server-cert "/root/ssl-build/capsule.fqdn.here/capsule_cert.pem" --server-key "/root/ssl-build/capsule.fqdn.here/capsule_cert_key.pem" --server-ca-cert "/root/certs/A-STest.crt"
2.#satellite-installer --scenario satellite --certs-server-cert "/etc/pki/katello/certs/katello-S-apache.crt" --certs-server-key "/etc/pki/katello/private/katello-apache.key" --certs-server-ca-cert "/etc/pki/katello/certs/katello-server-ca.crt"
3.# satellite-installer --help |grep "-S"
grep: invalid option -- 'S'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:139:in `write': Broken pipe - <STDOUT> (Errno::EPIPE)
from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:139:in `puts'
from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:139:in `puts'
from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:139:in `rescue in run'
from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/kafo_configure.rb:162:in `run'
from /usr/sbin/satellite-installer:8:in `<main>'
Actual results:
Fails with the above-mentioned errors.
Expected results:
It should not fail.
Additional info:
#capsule-certs-generate --help
-S, --scenario SCENARIO Use installation scenario
#satellite-installer --help
-S, --scenario SCENARIO Use installation scenario
Comment 1Ewoud Kohl van Wijngaarden
2020-06-25 15:36:24 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 (Moderate: Satellite 6.9 Release), 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/RHSA-2021:1313
Description of problem: capsule-certs-generate and satellite-installer fail immediately if any of the provided argument contains '-S'. Example: 1]--server-ca-cert "/root/certs/A-STest.crt" #capsule-certs-generate --foreman-proxy-fqdn "capsule.fqdn.here" --certs-tar "~/capsule-certs.tar" --server-cert "/root/ssl-build/capsule.fqdn.here/capsule_cert.pem" --server-key "/root/ssl-build/capsule.fqdn.here/capsule_cert_key.pem" --server-ca-cert "/root/certs/A-STest.crt" ERROR: Scenario (/usr/share/foreman-installer/katello-certs/scenarios.d/Test.crt.yaml) was not found, can not continue 2] --certs-server-cert "/etc/pki/katello/certs/katello-S-apache.crt" #satellite-installer --scenario satellite --certs-server-cert "/etc/pki/katello/certs/katello-S-apache.crt" --certs-server-key "/etc/pki/katello/private/katello-apache.key" --certs-server-ca-cert "/etc/pki/katello/certs/katello-server-ca.crt" [ INFO 2020-06-12T21:13:23 verbose] Executing hooks in group pre_migrations [ INFO 2020-06-12T21:13:23 verbose] All hooks in group pre_migrations finished [ERROR 2020-06-12T21:13: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 2020-06-12T21:13:23 verbose] Log was be written to /var/log/foreman-installer/satellite.log [ INFO 2020-06-12T21:13:23 verbose] Logs flushed Version-Release number of selected component (if applicable): Satellite 6.5/6.6/6.7 How reproducible: Always Steps to Reproduce: 1. #capsule-certs-generate --foreman-proxy-fqdn "capsule.fqdn.here" --certs-tar "~/capsule-certs.tar" --server-cert "/root/ssl-build/capsule.fqdn.here/capsule_cert.pem" --server-key "/root/ssl-build/capsule.fqdn.here/capsule_cert_key.pem" --server-ca-cert "/root/certs/A-STest.crt" 2.#satellite-installer --scenario satellite --certs-server-cert "/etc/pki/katello/certs/katello-S-apache.crt" --certs-server-key "/etc/pki/katello/private/katello-apache.key" --certs-server-ca-cert "/etc/pki/katello/certs/katello-server-ca.crt" 3.# satellite-installer --help |grep "-S" grep: invalid option -- 'S' Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:139:in `write': Broken pipe - <STDOUT> (Errno::EPIPE) from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:139:in `puts' from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:139:in `puts' from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:139:in `rescue in run' from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/kafo_configure.rb:162:in `run' from /usr/sbin/satellite-installer:8:in `<main>' Actual results: Fails with the above-mentioned errors. Expected results: It should not fail. Additional info: #capsule-certs-generate --help -S, --scenario SCENARIO Use installation scenario #satellite-installer --help -S, --scenario SCENARIO Use installation scenario