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: | systems-unix-cfg@… |
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.