Bug 1584743
Summary: | katello-change-hostname does not update db.event_listeners | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Michal Dekan <mdekan> |
Component: | Documentation | Assignee: | csherrar |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Vlada Grosu <vgrosu> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 6.2.14 | CC: | adahms, jomitsch, mdekan, vgrosu |
Target Milestone: | Unspecified | Keywords: | Reopened |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-09-03 13:56:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michal Dekan
2018-05-31 14:23:49 UTC
You shouldn't change your hostname (via hostnamectl or other means) before running katello-change-hostname since the script relies on grabbing the old hostname for search/replace and other operations. If this isn't clear in the documentation, please file a docs bug. Does event_listeners not get updated if you use katello-change-hostname without changing things via hostnamectl first? I'm curious if the bug can be reproduced when using k-c-h as intended. When the hostname is changed with hostnamectl before running katello-change hostname it fails. If hostname was never changed and only katello-change-hostname was used to change the hosntame, its working fine, event_listeners gets updated with a new hostname. My intention here was to handle the described scenario on the code level, since customers are sometimes changing hostname with hostnamectl first and then continue with katello-change-hostname, which fails. Assigning to Clifton for review. Clifton - see the above comments for the request. These changes are live on the customer portal, see https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/administering_red_hat_satellite/index#sect-Red_Hat_Satellite-Administering_Red_Hat_Satellite-Renaming_a_Server Hello, reopening this BZ as katello-change-hostname (satellite 6.2 tool) is mentioned in doc for satellite 6.3. Can be a bit confusing. https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/administering_red_hat_satellite/chap-red_hat_satellite-administering_red_hat_satellite-backup_and_disaster_recovery#sect-Red_Hat_Satellite-Administering_Red_Hat_Satellite-Renaming_a_Server ======== Warning Do not change the system host name of your Satellite Server before running the **katello-change-hostname** script. If the system host name has been changed before running this script, the script will fail when searching for the old host name. ======== https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/administering_red_hat_satellite/chap-red_hat_satellite-administering_red_hat_satellite-backup_and_disaster_recovery#sect-Red_Hat_Satellite-Administering_Red_Hat_Satellite-Renaming_a_Satellite_Server ======== Ensure the system host name has not been changed before running the **katello-change-hostname** script. If the system host name has been changed, you must revert it to the original host name by using the hostnamectl set-hostname command. ======== (In reply to Michal Dekan from comment #27) > Hello, > > reopening this BZ as katello-change-hostname (satellite 6.2 tool) is > mentioned in doc for satellite 6.3. Can be a bit confusing. Hi Michal, Thank you for reopening this ticket and point out that these changes were only intended for the 6.2 Server Administration Guide. That's now been done. Kind regards, Vlada These changes are live on the customer portal, see https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html-single/server_administration_guide/#sect-Red_Hat_Satellite-Server_Administration_Guide-Renaming_a_Server |