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 2085082 - satellite-change-hostname on capsule runs deprecated capsule-installer
Summary: satellite-change-hostname on capsule runs deprecated capsule-installer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: satellite-change-hostname
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.10.6
Assignee: Evgeni Golov
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-12 18:36 UTC by Brad Buckingham
Modified: 2022-09-01 20:44 UTC (History)
2 users (show)

Fixed In Version: katello-4.1.1-4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2084106
Environment:
Last Closed: 2022-05-31 15:19:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 34896 0 Normal Ready For Testing satellite-change-hostname on capsule runs deprecated capsule-installer 2022-05-12 18:36:15 UTC
Red Hat Product Errata RHBA-2022:4850 0 None None None 2022-05-31 15:19:49 UTC

Comment 2 Bryan Kearney 2022-05-13 16:05:00 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34896 has been resolved.

Comment 4 Lukas Pramuk 2022-05-18 12:09:46 UTC
VERIFIED.

@Satellite 6.10.6 Snap2
katello-common-4.1.1-4.el7sat.noarch

by the following manual reproducer:

1) @Satellite: Generate capsule certs for the new hostname and copy it to capsule

# capsule-certs-generate --foreman-proxy-fqdn new-capsule.example.com --certs-tar new-capsule.example.com-certs.tar 

# scp new-capsule.example.com-certs.tar capsule.example.com:/root


2) @Capsule: Create /etc/hosts record and run satellite-change-hostname

# echo 127.0.0.1 new-capsule.example.com > /etc/hosts

# satellite-change-hostname new-capsule.example.com -u admin -p changeme -c /root/new-capsule.example.com-certs.tar -y
Checking for certs tarball

Checking hostname validity
updating hostname in /etc/hostname
setting hostname
checking if hostname was changed
stopping services
removing old cert rpms
No Match for argument: capsule.example.com-foreman-client*
No Match for argument: capsule.example.com-qpid-broker*
No Match for argument: capsule.example.com-qpid-client-cert*
No Match for argument: capsule.example.com-tomcat*
Warning: RPMDB altered outside of yum.
deleting old certs
backed up /var/www/html/pub to /var/www/html/pub/capsule.example.com-20220518074833.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
foreman-installer --scenario capsule -v --disable-system-checks --foreman-proxy-register-in-foreman false --certs-tar-file /root/new-capsule.example.com-certs.tar
cleaning up temporary files
2022-05-18 07:48:46 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-05-18 07:48:51 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-05-18 07:48:51 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-05-18 07:48:58 [WARN  ] [pre] Skipping system checks.
2022-05-18 07:48:58 [WARN  ] [pre] Skipping system checks.
2022-05-18 07:49:03 [NOTICE] [configure] Starting system configuration.
2022-05-18 07:49:21 [NOTICE] [configure] 250 configuration steps out of 1755 steps complete.
2022-05-18 07:49:23 [NOTICE] [configure] 500 configuration steps out of 1756 steps complete.
2022-05-18 07:49:28 [NOTICE] [configure] 750 configuration steps out of 1760 steps complete.
2022-05-18 07:49:48 [NOTICE] [configure] 1000 configuration steps out of 1764 steps complete.
2022-05-18 07:49:48 [NOTICE] [configure] 1250 configuration steps out of 1764 steps complete.
2022-05-18 07:49:53 [NOTICE] [configure] 1500 configuration steps out of 2637 steps complete.
2022-05-18 07:49:53 [NOTICE] [configure] 1750 configuration steps out of 2637 steps complete.
2022-05-18 07:49:54 [NOTICE] [configure] 2000 configuration steps out of 2637 steps complete.
2022-05-18 07:50:14 [NOTICE] [configure] 2250 configuration steps out of 2637 steps complete.
2022-05-18 07:50:34 [NOTICE] [configure] 2500 configuration steps out of 2637 steps complete.
2022-05-18 07:50:57 [NOTICE] [configure] System configuration has finished.
  Success!
  * Capsule is running at https://new-capsule.example.com:9090

  The full log is at /var/log/foreman-installer/capsule.log
Restarting puppet services
**** Hostname change complete! ****
IMPORTANT:
You will have to update the Name and URL of the Smart Proxy in Foreman to the new hostname.

>>> satellite-change-hostname on capsule runs correct installer script (foreman-installer)

Comment 9 errata-xmlrpc 2022-05-31 15:19:38 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 (Satellite 6.10.6 Async Bug Fix Update), 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-2022:4850


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