Bug 748876 - rhnreg_ks accepts relative path to SSL Cert but also writes relative path to /etc/sysconfig/rhn/up2date
Summary: rhnreg_ks accepts relative path to SSL Cert but also writes relative path to ...
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Michael Mráka
QA Contact: Jiří Mikulka
Depends On:
TreeView+ depends on / blocked
Reported: 2011-10-25 14:09 UTC by Jiří Mikulka
Modified: 2014-10-06 13:45 UTC (History)
4 users (show)

Fixed In Version: rhn-client-tools-1.0.0-76.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-06-20 11:59:44 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0752 normal SHIPPED_LIVE rhn-client-tools and yum-rhn-plugin bug fix and enhancement update 2012-06-19 19:31:17 UTC

Description Jiří Mikulka 2011-10-25 14:09:15 UTC
Description of problem:
I tried to register my system manually using `rhnreg_ks` command with specified --serverUrl, --username, --password and --sslCACert with relative path to the certificate. Registration was sucessful, but relative path to the certificate was written into the `/etc/sysconfig/rhn/up2date`, which led to failures when picking up events by `rhn_check -vv`.

Version-Release number of selected component (if applicable):
RHEL Server 6.1, x86_64

How reproducible:

Steps to Reproduce:
1. save the certificate in /path/to/ssl/cert
2. change directory to /path/to/ssl
   `cd /path/to/ssl/`
2. register machine to the Satellite using rhnreg_ks
   `rhnreg_ks --serverUrl=https://server.url/XMLRPC --sslCACert=./cert --username <username> --password <password>`
3. system should be registered (check in WebUI)
4. in WebUI plan some event (eg. errata installation)
5. pick up planned event
   `rhn_check -vv`
6. there should be SSL certificate problems while downloading/... packages/erratas from Satellite
Actual results:
`rhn_check -vv` fails

Expected results:
`rhn_check -vv` should pick up planned events correctly and install packages/...

Additional info:

Comment 1 Michael Mráka 2012-01-12 08:46:10 UTC
Fixed in Spacewalk master by
commit 3da9d23b1b96252db62f8c16b484fbcc5361fecc
    748876 - convert paths to absolute before saving
commit d10af2e339f9d432617c197d467b7a73247661a8
    748876 - simplify ConfigFile.save() loop

Comment 2 Michael Mráka 2012-01-12 08:48:17 UTC
Backported to CLIENT_RHEL-6 as
commit 44549e8d906b428c5c029fbe2bde41fe97b8c092
    748876 - convert paths to absolute before saving
commit 317ff51fe2bff45dd9d125e5c03dc32df8491127
    748876 - simplify ConfigFile.save() loop

Comment 6 errata-xmlrpc 2012-06-20 11:59:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.