RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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 ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michael Mráka
QA Contact: Jiří Mikulka
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed: 2012-06-20 11:59:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0752 0 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
rhn-client-tools-1.0.0-73.el6.src.rpm

How reproducible:
always

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.

http://rhn.redhat.com/errata/RHBA-2012-0752.html


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