Modify

Ticket #765 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years 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

comment:1 Changed 10 years ago by tcampbel

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

comment:2 Changed 10 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

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.