Greetings Peter,
When Michael and I reviewed this feature, we noticed that RHEL4 and
older installation environments did not have the necessary xmlrpclib
modules to communicate over xmlrpc. The alternative was to pass all
data back to the cobbler server using urllib.
We decided to go with using xmlrpc instead since it is more straight
forward for future distributions and we didn't want to build a CGI
handler for older distros.
If we want anamon fully supported for RHEL4 and older we could ...
1) Revert anamon.py to use urllib and create a CGI handler to the
existing server xmlrpc method. I think I'd only do this if we can add a
mod_python method to services.py that would provide urllib data upload.
Michael ... is this possible?
2) provide an updates.img (or instructions on building one) that
includes the missing RHEL4 libraries
3) Release note that it's not fully supported for RHEL4 and older?
Other thoughts?
I verified the updates.img solution. That works fine.
dd if=/dev/zero of=updates.img bs=1k count=1440
mke2fs updates.img
tmpdir=`mktemp -d`
mount -o loop updates.img $tmpdir
mkdir $tmpdir/cobbler
cp /usr/lib64/python2.3/xmlrpclib.* $tmpdir/cobbler
cp /usr/lib64/python2.3/xmllib.* $tmpdir/cobbler
cp /usr/lib64/python2.3/shlex.* $tmpdir/cobbler
cp /usr/lib64/python2.3/lib-dynload/operator.* $tmpdir/cobbler
umount $tmpdir
rmdir $tmpdir
Adjustment in anamon_pre:
PYTHONPATH=/tmp/updates/cobbler python /tmp/anamon.py --name "$name" --server
"$server" --port "$http_port"
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal
privilege. It should not be copied, disclosed to, retained or used by, any other party. If
you are not an intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.