From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: Systems registered to our satellite server during kickstart come up with a profile name of localhost.localdomain. We need the profile names to be the DNS FQDN. This specific instance is for kickstarts with WS 3.0 beta 2. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.As stated above 2. 3. Additional info:
Did you use rhnreg_ks? Did you call it in the %post section of the kickstart file, or was it run after the fact? If hostname returns localhost.localdomain, then there is not much one can do about it. Can you confirm hostname returns valid data?
It was run in the %post of the kickstart - isn't that where it should run according to our Satellite documentation on how to use RHEL Satellite in a KickStart script? At that point, hostname is still localhost. We documented this in the install guide and rhnreg_ks needs to be using the DNS lookup of the IP address it has. Otherwise, if a company is deploying 500 new systems, they will all be localhost and no one knows which system is which. If we can't add the hostname properly into the Satellite at that point, we should have another app we can run later that changes the profile name in the Satellite.
We should consider documenting a workaround for this issue. At the point in the %post section in which rhnreg_ks runs, it should be possible to determine the intended hostname, even if "hostname" itself returns localhost at this point. Then use the intended hostname as the profile name, using rhnreg_ks's --profilename switch. Would this solve the customer's issue?
yes it would
rhn_register-2.8.39 "trys harder" to get a real hostname/ip if folks could try it and tell me if it tries hard enough, I'd appreciate it.
er, sorry, wrong branch... 2.8.39 doesnt have it yet, pushing it to fedora as part of say up2date-4.1.6 or higher if it works, something similar will probabaly land in rhn_register 2.8.40 or so for rhel2.1 as well
so, whats a good way to hide the hostname to make sure rhnreg_ks tries harder. aka testplan.
Any updates...
Do we have any updates on this. Need to update the customer... Thanks Mahesh
Hi RHN, Any update on this one? Dreamworks is now an RHN Beta customer of ours so would like to update them on this versus having them chase us for it... Please advise of an eta?