[Spacewalk-list] Kickstart related error -- need help debugging

2012-10-08 Thread Boyd, Robert
I'm getting emails sent to root on my spacewalk 1.7 server.   It looks like 
there's something going on with kickstarts, even though I'm not really using 
kickstart explicitly currently.  There's a lot of output - where should I send 
this kind of error output to have someone look through it for clues?

Here is the first part of one of these messages:

Exception reported from rhqengbld03.corp.peopleclick.com
Time: Mon Oct  8 13:03:49 2012
Exception type type 'exceptions.IOError'
Exception while handling function repodata
Request object information:
URI: /XMLRPC/GET-REQ/rhel-x86_64-server-5/repodata/comps.xml
Remote Host:  sanitized client name
Server Name: spacewalk-server:80
Headers passed in:
Accept-Encoding: identity
Connection: close
DOCUMENT_ROOT: /var/www/html
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT_ENCODING: identity
HTTP_CONNECTION: close
HTTP_HOST: spacewalk-server
HTTP_PRAGMA: no-cache
HTTP_USER_AGENT: rhn.rpclib.py/$Revision$
HTTP_X_RHN_AUTH: 2cnQ5FDMfiI4HfZb6EH1wA==
HTTP_X_RHN_AUTH_EXPIRE_OFFSET: 3600.0
HTTP_X_RHN_AUTH_SERVER_TIME: 1349712229.44
HTTP_X_RHN_AUTH_USER_ID:
HTTP_X_RHN_SERVER_ID: 110223
HTTP_X_RHN_TRANSPORT_CAPABILITY: follow-redirects=3
Host: spacewalk-server
PATH_INFO: /GET-REQ/rhel-x86_64-server-5/repodata/comps.xml
PATH_TRANSLATED: 
/var/www/html/GET-REQ/rhel-x86_64-server-5/repodata/comps.xml
Pragma: no-cache
QUERY_STRING:
REMOTE_ADDR: ip address deleted
REMOTE_PORT: 50434
REQUEST_METHOD: GET
REQUEST_URI: /XMLRPC/GET-REQ/rhel-x86_64-server-5/repodata/comps.xml
SCRIPT_FILENAME: /usr/share/rhn/wsgi/xmlrpc.py
   SCRIPT_NAME: /XMLRPC
SCRIPT_URI: 
http://spacewalk-server/XMLRPC/GET-REQ/rhel-x86_64-server-5/repodata/comps.xml
SCRIPT_URL: /XMLRPC/GET-REQ/rhel-x86_64-server-5/repodata/comps.xml
SERVER_ADDR: ip address deleted
SERVER_ADMIN: root@localhost
SERVER_NAME: spacewalk-server
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE: addressApache Server at spacewalk-server Port 
80/address

SERVER_SOFTWARE: Apache
User-Agent: rhn.rpclib.py/$Revision$
X-RHN-Auth: 2cnQ5FDMfiI4HfZb6EH1wA==
X-RHN-Auth-Expire-Offset: 3600.0
X-RHN-Auth-Server-Time: 1349712229.44
X-RHN-Auth-User-Id:
X-RHN-Server-Id: 110223
X-RHN-Transport-Capability: follow-redirects=3
mod_wsgi.application_group: spacewalk-server|/xmlrpc
mod_wsgi.callable_object: application
mod_wsgi.handler_script:
mod_wsgi.input_chunked: 0
mod_wsgi.listener_host:
mod_wsgi.listener_port: 80
mod_wsgi.process_group:
mod_wsgi.request_handler: wsgi-script
mod_wsgi.script_reloading: 1
mod_wsgi.version: (3, 2)
wsgi.errors: mod_wsgi.Log object at 0x7fd1fddbdfb0
wsgi.file_wrapper: built-in method file_wrapper of mod_wsgi.Adapter 
object at 0x7fd1fe0103f0
wsgi.input: mod_wsgi.Input object at 0x7fd216f23b30
wsgi.multiprocess: True
wsgi.multithread: False
wsgi.run_once: False
wsgi.url_scheme: http
wsgi.version: (1, 1)

Exception Handler Information
Traceback (most recent call last):
  File /usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py, 
line 122, in call_function
response = apply(func, params)
  File /usr/lib/python2.6/site-packages/spacewalk/server/rhnRepository.py, 
line 252, in repodata
return self._repodata_taskomatic(file_name)
  File /usr/lib/python2.6/site-packages/spacewalk/server/rhnRepository.py, 
line 221, in _repodata_taskomatic
return self._repodata_python(file_name)
  File /usr/lib/python2.6/site-packages/spacewalk/server/rhnRepository.py, 
line 196, in _repodata_python
output = repo.get_comps_file()
  File 
/usr/lib/python2.6/site-packages/spacewalk/server/repomd/repository.py, line 
165, in get_comps_file
return comps_view.get_file()
  File /usr/lib/python2.6/site-packages/spacewalk/server/repomd/view.py, line 
347, in get_file
comps_file = open(self.comps.filename)
IOError: [Errno 2] No such file or directory: 
'/var/satellite/rhn/kickstart/ks-rhel-x86_64-server-5/Server/repodata/comps-rhel5-server-core.xml'


I'm not sure why anything is looking for something under kickstart at all ... 
if someone is willing to look at it, I can send the rest of the error output.

Thanks,

Robert Boyd
Senior Systems Engineer
Phone: 919-645-2972
Mobile: 919-306-4681
Peoplefluent
434 Fayetteville Street
Raleigh, NC  27601

robert.b...@peoplefluent.commailto:michael.dileona...@peoplefluent.com

[cid:image001.png@01CDA55D.63E13EA0]



This email message is for the sole use of the intended recipient(s) and may 
contain confidential information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are 

Re: [Spacewalk-list] Use gensystemid to create systemid, then mrepo to download RHEL6 repositories

2012-10-08 Thread fnwsa
Hi Robert,

The new script is working well in making system ID under RHEL6. Thanks a lot 
again for your help! 

nz




 From: Boyd, Robert robert.b...@peoplefluent.com
To: fn...@yahoo.com fn...@yahoo.com; spacewalk-list@redhat.com 
spacewalk-list@redhat.com 
Sent: Friday, October 5, 2012 4:16:14 PM
Subject: RE: [Spacewalk-list] Use gensystemid to create systemid, then mrepo to 
download RHEL6 repositories
 

You need an update to the lookup table for release names.   I have the updated 
table on my spacewalk server.   I will send you something afterwhile – I can’t 
get to it right now.
 
Robert
 
From:spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of fn...@yahoo.com
Sent: Friday, October 05, 2012 3:45 PM
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] Use gensystemid to create systemid, then mrepo to 
download RHEL6 repositories
 
Hi, This should be a common issue, but I haven't found the solution yet.
 
# gensystemid -u rhnusername -p rhnpassword --release=6server --arch=x86_64 
/mrepo/rhel_6_server-x86_64
gensystemid: Release name 6server is not a known RHN release.
 
# gensystemid -h | grep rhnrelease
  -r, --release=rhnrelease specify rhn release {2.1,3,4}{AS,ES,WS,Desktop} 
5{Server,Client}
 
The question is how to use gensystemid to create systemid and then mrepo to 
download RHEL6 repositories?
 
Thank you in advance!
 
nz___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

[Spacewalk-list] 'rhncfg-client get' downloading all config files

2012-10-08 Thread Mullis, Josh (CCI-Atlanta)
Hello all,

Which file needs to be modified to change the get function of rhncfg-client 
to require a --all flag or something similar?
When rhncfg-client get is run, it grabs all files in all config channels 
which in my opinion can be dangerous.

I've seen admins accidentally run this not meaning to download all files, but 
simply looking for a syntax help screen.


Thanks
-josh
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] 'rhncfg-client get' downloading all config files

2012-10-08 Thread Matthew Patton
On Mon, 08 Oct 2012 18:48:27 -0400, Mullis, Josh (CCI-Atlanta)  
josh.mul...@cox.com wrote:


Which file needs to be modified to change the get function of  
rhncfg-client to require a --all flag or something similar?
When rhncfg-client get is run, it grabs all files in all config  
channels which in my opinion can be dangerous.


Come now, this is Linux. We design systems to deliberately allow dangerous  
functionality and when you get bit by our unsafe designs, we laugh and  
point at you and cluck our tongues at your noob misfortune. /sarc


rhn-actions-control --disable-deploy

is the closest thing but it doesn't stop anything but the SCHEDULED  
deployment of files which is a different animal. 'rhncfg-client' should be  
handled with extreme care, much like glicerin and 'rm -fr'.


--
Cloud Services Architect, Senior System Administrator
InfoRelay Online Systems (www.inforelay.com)

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list