Comment 6 for bug 1510516

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Configuring the extra repository adds a new preference file that takes preference over the mos.pref file:
Package: *
Pin: release n=mos8.0,o=Mirantis,l=mos8.0,a=mos8.0
Pin-Priority: 1050

with the extra-0.pref file:
Package: *
Pin: release n=mos8.0,a=mos8.0,l=mos8.0
Pin-Priority: 1152

The problem is the pinning criteria are the same. The difference here is the origin. We should solve the repo pinning dilemma this way:
Add origin into the prefs file for each repo pref file. The new format should be as follows:
Package: *
Pin: release n=mos8.0,a=mos8.0,l=mos8.0
Pin: origin $hostname_or_ip_of_repository
Pin-Prority: $priority

And we should fix this in fuel-agent where this config is generated