Red Hat Bugzilla – Bug 848906
rhn-channel fails on a freshly installed rhel6.3 VM
Last modified: 2014-09-29 11:01:12 EDT
Description of problem:
[root@relcito6 aldyh]# rhn-channel -u rhn-engineering-aldyh -l
Unable to locate SystemId file. Is this system registered?
But system is already registered. If I try "rhn_register", the GUI responds with "Warning. This system has already been registered...".
On the other hand, if I try rhn-channel -L, I get a different error:
[root@relcito6 aldyh]# rhn-channel -u rhn-engineering-aldyh -L
An error has occurred:
See /var/log/up2date for more information
This is a freshly installed RHEL 6.3 Workstation running on a VM.
I even yum updated my system, to no avail.
Version-Release number of selected component (if applicable):
[root@relcito6 aldyh]# rpm -qf /usr/sbin/rhn-channel
[root@relcito6 aldyh]# cat /etc/issue
Red Hat Enterprise Linux Workstation release 6.3 (Santiago)
Kernel \r on an \m
Steps to Reproduce:
1. install system
2. rhn-channel ...
Couple of questions:
* Does the file /etc/sysconfig/rhn/systemid exist?
* What does /etc/sysconfig/rhn/up2date contain?
* What /var/log/up2date show when you run rhn-channel -L ?
I am unable to reproduce.
Steps I took:
1) install fresh RHEL 6.3 Workstation in a vm
2) register the system to my Satellite using rhnreg_ks
3) run rhn-channel ...
rhn-channel appears to be working correctly in all cases. Since this has been NEEDINFO for over a month with no response, and we cannot reproduce the issue, I recommend that we close this bug.
I actually encountered something very similar while doing testing something completely different. I:
1) registered the server to my spacewalk server
2) ran rhn-channel, received error above
Error recorded in /var/log/up2date:
[Thu Sep 27 09:09:23 2012] up2date successfully retrieved authentication token from up2date server
[Thu Sep 27 09:09:24 2012] up2date Updating package profile
[Thu Sep 27 09:12:28 2012] up2date
Traceback (most recent call last):
File "/sbin/rhn-channel", line 161, in <module>
File "/sbin/rhn-channel", line 152, in main
channels = get_available_channels(OPTIONS.user, OPTIONS.password)
File "/sbin/rhn-channel", line 95, in get_available_channels
modified_servers.append(urlparse.urlunsplit(scheme, netloc, '/rpc/api', query, fragment))
<type 'exceptions.TypeError'>: urlunsplit() takes exactly 1 argument (5 given)
It may be that the expected input for urlunsplit has changed in newer versions of python.
Aldy, can you tell us what the output of 'rpm -q python' is and if you see the error above in /var/log/up2date?
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.