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.
Description of problem:
satellite-change-hostname still uses to 'capsule-installer'
Version-Release number of selected component (if applicable):
Red Hat Satellite 6.12
How reproducible:
[root@old-capsule]# satellite-change-hostname capsule.example.com --username redhat --password redhat --certs-tar /root/capsule.exampe.com-certs.tar
Checking for certs tarball
Checking hostname validity
***WARNING*** This script will modify your system.
You will need to re-register any capsule clients registered to this system after script completion.
Have you taken the necessary precautions (backups, snapshots, etc...)?
Proceed with changing your hostname? [y/n]
y
Precheck passed
updating hostname in /etc/hostname
setting hostname
checking if hostname was changed
stopping services
removing old cert rpms
No packages marked for removal.
deleting old certs
backed up /var/www/html/pub to /var/www/html/pub/old-capsule.example.com-20230602162832.backup
updating hostname in /etc/hosts
updating hostname in foreman installer scenarios
backing up last_scenario.yaml
removing last_scenario.yaml
re-running the installer
capsule-installer --scenario capsule -v --disable-system-checks --foreman-proxy-register-in-foreman false --certs-tar-file /root/capsule.example.com-certs.tar
restoring last_scenario.yaml
cleaning up temporary files
ERROR: capsule-installer is no longer used. Please use 'satellite-installer --scenario capsule'.
For more information on available options, include '--help'.
Something went wrong with the Capsule installer.
Please check the above output and the corresponding logs.
Once the issue is resolved you may complete the hostname change by running: 'capsule-installer --scenario capsule -v --disable-system-checks'
and completing the following steps:
You will have to update the Name and URL of the Smart Proxy in Capsule to the new hostname.
Failed 'capsule-installer --scenario capsule -v --disable-system-checks --foreman-proxy-register-in-foreman false --certs-tar-file /root/capsule.example.com-certs.tar' with exit code 1
[root@capsule ~]
Need to run the command manually to complete the process.
root@old-capsule ~]# satellite-installer --scenario capsule --disable-system-checks --foreman-proxy-register-in-foreman false --certs-tar-file /root/capsule.example.com-certs.tar
2023-06-02 16:31:09 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-06-02 16:31:21 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-06-02 16:31:21 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-06-02 16:31:23 [WARN ] [pre] Skipping system checks.
2023-06-02 16:31:23 [WARN ] [pre] Skipping system checks.
2023-06-02 16:31:32 [NOTICE] [configure] Starting system configuration.
2023-06-02 16:31:47 [NOTICE] [configure] 250 configuration steps out of 2064 steps complete.
2023-06-02 16:31:47 [NOTICE] [configure] 500 configuration steps out of 2064 steps complete.
2023-06-02 16:31:47 [NOTICE] [configure] 750 configuration steps out of 2064 steps complete.
2023-06-02 16:31:48 [NOTICE] [configure] 1000 configuration steps out of 2064 steps complete.
2023-06-02 16:31:55 [NOTICE] [configure] 1250 configuration steps out of 2066 steps complete.
2023-06-02 16:31:58 [NOTICE] [configure] 1500 configuration steps out of 2071 steps complete.
2023-06-02 16:31:59 [NOTICE] [configure] 1750 configuration steps out of 2075 steps complete.
2023-06-02 16:32:13 [NOTICE] [configure] 2000 configuration steps out of 2077 steps complete.
2023-06-02 16:32:20 [NOTICE] [configure] System configuration has finished.
Success!
* Capsule is running at https://capsule.example.com:9090
The full log is at /var/log/foreman-installer/capsule.log
What is the business impact? Please also provide timeframe information.
Need to rename server as the name is too long for Active Directory naming. Unable to use capsule in this state.
Description of problem: satellite-change-hostname still uses to 'capsule-installer' Version-Release number of selected component (if applicable): Red Hat Satellite 6.12 How reproducible: [root@old-capsule]# satellite-change-hostname capsule.example.com --username redhat --password redhat --certs-tar /root/capsule.exampe.com-certs.tar Checking for certs tarball Checking hostname validity ***WARNING*** This script will modify your system. You will need to re-register any capsule clients registered to this system after script completion. Have you taken the necessary precautions (backups, snapshots, etc...)? Proceed with changing your hostname? [y/n] y Precheck passed updating hostname in /etc/hostname setting hostname checking if hostname was changed stopping services removing old cert rpms No packages marked for removal. deleting old certs backed up /var/www/html/pub to /var/www/html/pub/old-capsule.example.com-20230602162832.backup updating hostname in /etc/hosts updating hostname in foreman installer scenarios backing up last_scenario.yaml removing last_scenario.yaml re-running the installer capsule-installer --scenario capsule -v --disable-system-checks --foreman-proxy-register-in-foreman false --certs-tar-file /root/capsule.example.com-certs.tar restoring last_scenario.yaml cleaning up temporary files ERROR: capsule-installer is no longer used. Please use 'satellite-installer --scenario capsule'. For more information on available options, include '--help'. Something went wrong with the Capsule installer. Please check the above output and the corresponding logs. Once the issue is resolved you may complete the hostname change by running: 'capsule-installer --scenario capsule -v --disable-system-checks' and completing the following steps: You will have to update the Name and URL of the Smart Proxy in Capsule to the new hostname. Failed 'capsule-installer --scenario capsule -v --disable-system-checks --foreman-proxy-register-in-foreman false --certs-tar-file /root/capsule.example.com-certs.tar' with exit code 1 [root@capsule ~] Need to run the command manually to complete the process. root@old-capsule ~]# satellite-installer --scenario capsule --disable-system-checks --foreman-proxy-register-in-foreman false --certs-tar-file /root/capsule.example.com-certs.tar 2023-06-02 16:31:09 [NOTICE] [root] Loading installer configuration. This will take some time. 2023-06-02 16:31:21 [NOTICE] [root] Running installer with log based terminal output at level NOTICE. 2023-06-02 16:31:21 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions. 2023-06-02 16:31:23 [WARN ] [pre] Skipping system checks. 2023-06-02 16:31:23 [WARN ] [pre] Skipping system checks. 2023-06-02 16:31:32 [NOTICE] [configure] Starting system configuration. 2023-06-02 16:31:47 [NOTICE] [configure] 250 configuration steps out of 2064 steps complete. 2023-06-02 16:31:47 [NOTICE] [configure] 500 configuration steps out of 2064 steps complete. 2023-06-02 16:31:47 [NOTICE] [configure] 750 configuration steps out of 2064 steps complete. 2023-06-02 16:31:48 [NOTICE] [configure] 1000 configuration steps out of 2064 steps complete. 2023-06-02 16:31:55 [NOTICE] [configure] 1250 configuration steps out of 2066 steps complete. 2023-06-02 16:31:58 [NOTICE] [configure] 1500 configuration steps out of 2071 steps complete. 2023-06-02 16:31:59 [NOTICE] [configure] 1750 configuration steps out of 2075 steps complete. 2023-06-02 16:32:13 [NOTICE] [configure] 2000 configuration steps out of 2077 steps complete. 2023-06-02 16:32:20 [NOTICE] [configure] System configuration has finished. Success! * Capsule is running at https://capsule.example.com:9090 The full log is at /var/log/foreman-installer/capsule.log What is the business impact? Please also provide timeframe information. Need to rename server as the name is too long for Active Directory naming. Unable to use capsule in this state.