[Spacewalk-list] Debian squeeze support

Mark Round mark.round at ahc.uk.com
Wed Jul 20 14:25:48 UTC 2011


Quick update. I worked out that python-xml is no longer present in Debian Squeeze, and has been folded into the main python package. So, I managed to hack the .dpkg up to install and start properly (like the rhnsd scripts, you have to replace #!/bin/sh with #!/bin/bash on Squeeze). For reference, here's how to do it :

aptitude install jabberpy
aptitude download osad
dpkg-deb -x osad_5.9.21-2_all.deb osad
dpkg-deb --control osad_5.9.21-2_all.deb osad/DEBIAN
sed -i 's#/bin/sh#/bin/bash#g' osad/etc/init.d/osad
sed -i 's#python-xml,##' osad/DEBIAN/control
dpkg -b osad osad_5.9.21-2_all-squeeze.deb
sudo dpkg -i osad_5.9.21-2_all-squeeze.deb

Now, starting OSAD works and the system shows up as being online and I can "ping" it from the Spacewalk Web UI. But trying to deploy a configuration file gives me the following error :

Client execution returned "Fatal error in Python code occured [[6]]" (code -1)

I know that Debian support is experimental, but has anyone got this working ? And is there any kind of roadmap for improved Debian support ? 

In the meantime, would it be a good idea to add this work-around to the wiki until such time as updated packages are built for Debian Squeeze ? There are a couple of other minor workarounds I made as well, like the Python "sha" import being deprecated in favour of "hashlib", and so on.


From: Mark Round 
Sent: 20 July 2011 12:02
To: 'spacewalk-list at redhat.com'
Subject: Debian squeeze support

Hi all,

I am trying to manage a Debian Squeeze system - ideally, I'd like to be able to update packages but I understand that repo-sync doesn't work yet with Debian repositories. As far as I understand though, I should be able to manage and update configuration files. I have a few issues with the Debian packages though, and wondered if anyone else had got these working under Debian Squeeze ?

Firstly, I have an issue with installing osad. I have added the http://miroslav.suchy.cz/spacewalk/debian repository, but attempting to install osad gives me the following error :

The following packages have unmet dependencies:
  osad: Depends: python-xml which is a virtual package.

And I can't proceed any further. Secondly, rhncfg-client seems broken, as when I try to run "rhncfg-client list", I get the following traceback :

/usr/share/rhn/config_common/utils.py:17: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
Traceback (most recent call last):
  File "/usr/bin/rhncfg-client", line 34, in <module>
    sys.exit(Main().main() or 0)
  File "/usr/share/rhn/config_common/rhn_main.py", line 160, in main
    repo_module = __import__(repo_module_name)
  File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 19, in <module>
    from config_common import local_config, cfg_exceptions, file_utils, \
  File "/usr/share/rhn/config_common/repository.py", line 39, in <module>
    import rpc_wrapper
  File "/usr/share/rhn/config_common/rpc_wrapper.py", line 20, in <module>
    from rhn_rpc import rpclib
  File "/usr/share/rhn/config_common/rhn_rpc.py", line 27, in <module>
    Fault = rpclib.Fault
AttributeError: 'module' object has no attribute 'Fault'

Anyone got any pointers ?

Thanks,
-Mark





More information about the Spacewalk-list mailing list