Bug 529460
Summary: | Disconnected satellite - certificate import through web interface not working | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Xixi <xdmoon> |
Component: | Server | Assignee: | Tomas Lestach <tlestach> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Minar <mminar> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 530 | CC: | cperry, mkoci, mminar, tlestach, xdmoon |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-10-28 14:46:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 487678 |
Description
Xixi
2009-10-16 22:24:59 UTC
From code: spacewalk-java-0.5.44/code/src/com/redhat/rhn/manager/satellite/ConfigureCertificateCommand.java: ... args.add("/usr/bin/rhn-satellite-activate"); args.add("--rhn-cert"); args.add(getCertificateFileName()); if (ConfigDefaults.get().isDisconnected()) { args.add("--disconnected"); } ... spacewalk-java-0.5.44/code/src/com/redhat/rhn/common/conf/ConfigDefaults.java: ... /** * Check if this Sat is disconnected or not * @return boolean if this sat is disconnected or not */ public boolean isDisconnected() { return (this.getString(SATELLITE_PARENT) != null); } ... This seems odd - it thinks it's a disconnected satellite if server.satellite.rhn_parent in rhn.conf is *empty*, which doesn't make sense. And this should probably be get DISCONNECTED and not SATELLITE_PARENT. Thank you for the correct patch. spacewalk.git: 5d4b81de2bda279872cf341cb750a4e397817b55 However, if a satellite is installed as disconnected, server.satellite.rhn_parent won't be set be the installer and it has to be entered manually, when activating the satellite (even via webui). # egrep '(\.rhn_parent|disconnected)' /etc/rhn/rhn.conf server.satellite.rhn_parent = disconnected=1 I uploaded the certificate both - via file and text - Certificate Update in both cases successful: "Certificate uploaded. RHN Satellite has been re-activated." STAGE VALIDATED on Satellite-5.4.0-RHEL5-re20101019.0 The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332 RHEA-2010:0803 - RHN Tools enhancement update https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333 RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334 RHEA-2010:0800 - RHN Satellite Server 5.4.0 https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335 Docs are available: http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html Regards, Clifford |