Ticket #765 (closed defect: fixed)

Opened 5 weeks ago

Last modified 3 weeks ago

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.

Attachments

Change History

Changed 5 weeks ago by tcampbel

  • cc systems-unix-cfg@… added; systems-cfg-unix@… removed

Changed 3 weeks ago by desai

  • status changed from new to closed
  • resolution set to fixed

Fixed in [5517]. This will be included in 1.0.0rc2

Add/Change #765 (YUMng __init__ fails to properly set up repo when base system is RHEL5 updating from Satellite)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.