Red Hat Bugzilla – Bug 642599
Used $http_server instead of $redhat_management_server
Last modified: 2015-01-04 16:58:01 EST
Description of problem:
In the scopes of implementing Duplicate System Profiles (I think so) there was produced a part of script in kickstart file:
client = xmlrpclib.Server("http://<$http_server>/rpc/api")
key = client.system.obtain_reactivation_key(open(old_system_id).read())
f = open("/mnt/sysimage/tmp/key","w")
Due to another bug (BZ#555212) seems that for clients it is common to use external KS tree through http, thus defining $http_server kickstart variable.
And in this case the process check wrongly will refer to (probably) not existing satellite call and will fail the logic.
Version-Release number of selected component (if applicable):
current sat540 iso: Satellite-5.4.0-RHEL5-re20101001.1
always when specified $http_server in the kickstart variables
Steps to Reproduce:
1. prepare a kickstart profile
2. define http_server=<some-server> in the Variables of the kickstart (https://<sfqn>/rhn/kickstart/EditVariables.do?ksid=181)
in kickstart file there is written $http_server on that part of the script (see above)
$redhat_managemeny_server should be used IMO
The following package(s) fixing the issue:
The scenario in comment#0 now works correctly - and fills with $redhat_managemeny_server value.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Kickstart variables have been updated, and correctly use the "$redhat_management_server" variable instead of "$http_server".