Ticket #765 (closed defect: fixed)
YUMng __init__ fails to properly set up repo when base system is RHEL5 updating from Satellite
Reported by: | tcampbel | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.0.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: | [email protected]… |
Description
RHEL5 systems use yum to get their updates. When a RHEL5 system is configured to use Satellite instead of a classic yum repository, yum runs a plugin to translate Satellite into yumspeak.
Unfortunately, it appears that the default yum/init__.py:doGenericSetup specifically disables the instantiation of plugins. Because YUMng.py:init calls doGenericSetup as part of the init of the yum repo for querying if it finds that the system supports the doGenericSetup attribute, yum basically self-configures with the Satellite plugin disabled.
I'm not sure what the correct work around is at this point. Commenting out the doGenericSetup call does the "right" thing but I don't know if it's the correct thing.
I test this with doGenericSetup in a default uncommented state by twiddling the self._getConfig(init_plugins=False) in yum/init.py to be true and version checking began working.
Attachments
Change History
comment:2 Changed 13 years ago by desai
- Status changed from new to closed
- Resolution set to fixed
Fixed in [c07c12e5311ae21c4d28bab11b846f71b47f64d7] (SVN r5517). This will be included in 1.0.0rc2