Just ran the command “rhn-profile-sync” and the Hostname returned to the wrong value.
# hostname OK
# cat /etc/hosts OK
# cat /etc/sysconfig/network OK
But now the “System info” box in the Detail tab contains the wrong hostname.
Someone knows how rhn-profile-sync grabs the hostname?
I personally don’t know enough python to figure it out.
From: spacewalk-list-bounces redhat com [mailto:spacewalk-list-bounces redhat com]
On Behalf Of Matthew Madey
Ah yeah, I was thinking System Name. You can update that hostname field by running rhn-profile-sync on the client. Which should set it to whatever the output of the hostname command returns on the client.
On Fri, Feb 13, 2015 at 10:09 AM, Francoeur, Louis <Louis_Francoeur silanis com> wrote:
The “System Name” in the “Edit System Details” is not the same as the “Hostname” in the “System Info”.
The /etc/sysconfig/network always been with the proper name.
You can just click on the server in the Spacewalk GUI, then the properties tab. Here you can update the System Name here rather than having to change tables in the database manually.
On Thu, Feb 12, 2015 at 3:09 PM, Francoeur, Louis <Louis_Francoeur silanis com> wrote:
The bad hostname at some point was in the hosts file but under 127.0.1.1.
Even after cleaning up the hosts and rebooted the server. Still same thing.
I got tired of running around and went into the database and did the rename in the table rhnservernetwork:
update rhnservernetwork set hostname = propername' where server_id = '1000000000';
I will keep an eye on it to see if it gets reset to the badname again.
OK – perhaps we’re looking at the wrong server in this equation.
Verify what the DNS “on the spacewalk server” thinks server “whatever” is.
If you’re reusing IPs you could simply have old data on the spacewalk box, not the node.
You can attach png or jpg files and show us in detail what you are seeing, should this not be helpful.
This e-mail is private and may be confidential and is for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. We use reasonable measures to virus scan all E-mails leaving UNICOM Global but no warranty is given that this E-mail and any attachments are virus free. You should ensure you have adequate measures in place for your own virus checking.
spacewalk-list-bounces redhat com [mailto:spacewalk-list-bounces redhat com]
On Behalf Of Matthew Madey
When I do rhnreg_ks I specify the profile name as the fully qualified domain name, like this:
rhnreg_ks --serverUrl=https://spacewalk/XMLRPC --profilename=`hostname -f` --activationkey=1-blabla
On Wed, Feb 11, 2015 at 5:03 PM, Brian Kinney <brian kinney memeo-inc com> wrote: