PDA

View Full Version : How to configure EPEL7 (xz compression not available)



KuntienTiera
18-Jun-2015, 13:00
Hi,

I'm trying to add an EPEL7 channel in SUSE Manager 2.1 for CentOS 7 hosts that I'll maintain. We have Suse Manager Expanded Support for Red Hat / CentOS support.

I added the channel and repository as usual, but syncing fails because of xz compression.

/var/log/rhn/reposync/epel7-x86_64.log has

['/usr/bin/spacewalk-repo-sync', '--channel', 'epel7-x86_64', '--type', 'yum', '--non-interactive', '']
Unexpected error: <class 'yum.Errors.MiscError'>
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", line 173, in sync
self.updateChannelChecksumType(plugin.get_md_check sum_type())
File "/usr/lib64/python2.6/site-packages/spacewalk/satellite_tools/repo_plugins/yum_src.py", line 189,
in get_md_checksum_type
if 'primary' in self.repo.repoXML.repoData:
File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 1461, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 1452, in _getRepoXML
self._loadRepoXML(text=self)
File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 1442, in _loadRepoXML
return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 1418, in _groupLoadRepoXML
self._commonRetrieveDataMD(mdtypes)
File "/usr/lib64/python2.6/site-packages/yum/yumRepo.py", line 1402, in _commonRetrieveDataMD
local = misc.decompress(dl_local)
File "/usr/lib64/python2.6/site-packages/yum/misc.py", line 1096, in decompress
_decompress_chunked(filename, out, ztype)
File "/usr/lib64/python2.6/site-packages/yum/misc.py", line 742, in _decompress_chunked
raise Errors.MiscError, msg
MiscError: xz compression not available


Is there some trick to fix it or is EPEL7 unsupported in SUSE Manager 2.1? I only found this thread https://www.redhat.com/archives/spacewalk-list/2014-July/msg00142.htmlabout getting EPEL 7 working on Spacewalk 2.1, but I couldn't find a matching pyliblzma package.

With best regards,
Cristian Seres

kwk
19-Jun-2015, 07:09
... but I couldn't find a matching pyliblzma package.


That package is the culprit and will be available in the SUSE Manager Update channel shortly.