Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r315 - trunk/docs/developer_docs/rhn_yum_plugin_api.txt

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

svn commit: r315 - trunk/docs/developer_docs/rhn_yum_plugin_api.txt

Reply

Author jjneely
Full name Jack Neely
Date 2006-11-07 19:11:20 PST
Message Author: jjneely
Date: 2006-11-07 19:11:20-0800
New Revision: 315

Added:
   trunk/docs/developer​_docs/rhn_yum_plugin​_api.txt

Log:
Some notes on the RHN plugin that RH is using in the RHEL5 beta.


Added: trunk/docs/developer​_docs/rhn_yum_plugin​_api.txt
Url: http://current.tigri​s.org/source/browse/​current/trunk/docs/d​eveloper_docs/rhn_yu​m_plugin_api.txt?vie​w=auto&rev=315
====================​====================​====================​==================
--- (empty file)
+++ trunk/docs/developer​_docs/rhn_yum_plugin​_api.txt 2006-11-07 19:11:20-0800
@@ -0,0 +1,49 @@
+RHN Yum Plugin
+==============
+
+As of the RHEL 5 betas Red Hat is using an RHN plugin with Yum to support
+RHN with RHEL. No more up2date. This is a good thing.
+
+There are several bits of the RHN protocol that the RHN plugin does
+differently.
+
+HTTP Headers
+------------
+
+Rather than always use the headers up2date.login() returns in HTTP
+GET requests the RHN plugin knows a list of specific headers to use. This
+is handled in rhnplugin.py in setupRhnHttpHeaders(). These headers that
+the plugin will return to us are:
+
+ rhn_needed_headers = ['X-RHN-Server-Id',
+ 'X-RHN-Auth-User-Id',
+ 'X-RHN-Auth',
+ 'X-RHN-Auth-Server-Time',
+ 'X-RHN-Auth-Expire-Offset']
+
+Obviously, we must also supply these headers to the client in up2date.login().
+
+HTTP GET Request
+----------------
+
+URLGrabber that Yum uses to fetch stuff off the web and the RHN code do not
+like "$RHN" in the URLs. This has always been an arbitrary string anyway
+as far as I can tell. Its been replaced with "GET-REQ" producing URLs
+that look like:
+
+ https://current.linu​x.ncsu.edu/XMLRPC/GE​T-REQ/realmlinux-c-4​.91/repodata/repomd.​xml
+
+Repository Format
+-----------------
+
+Attempting to take the RHN protocol and morph it into something Yum can
+grok is just about impossible. The folks at Red Hat figured this out
+as I did. So, as you might guess from the URL above the directory for
+each channel (in the example 'realmlinux-c-4.91') now has a 'repodata'
+directory in it. This is very simple. You just run the 'createrepo'
+command on that directory and it litterally becomes a normal Yum
+repository with RHN's or Current's Apache access handler allowing or
+denying access based on the HTTP headers.
+
+Jack Neely
+November 7th, 2006

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r315 - trunk/docs/developer_docs/rhn_yum_plugin_api.txt jjneely Jack Neely 2006-11-07 19:11:20 PST
Messages per page: