All repositories added to CentOS environment are used with the same priority

Bug #1440074 reported by Artem Panchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Ihor Kalnytskyi

Bug Description

Fuel version (6.1 build #260): http://paste.openstack.org/show/198051/

If user adds some extra repositories to CentOS environment and assigns lower (than mos-* for repos) priority to them, he expects that packages which exist in mos repos won't be fetched from extra repos. But currently we don't install 'yum-plugin-priorities' on slaves, so yum use all repositories with the same priority.

Steps to reproduce:

1. Enable experimental mode in nailgun
2. Create CentOS environment, add some nodes.
3. Go to 'settings' tab and add 2 repositories with 30 and 35 priorities:
rmpforge http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/ 30
rmpforge_extra http://apt.sw.be/redhat/el6/en/x86_64/extras/ 35
For mos repo leave 20 priority
4. Deploy changes

Expected result:

- cluster successfully deployed, all packages need for deployment are installed from mos repo

Actual:

- deployment fails, because puppet unable to run memcached which is installed from rpmforge_extra repository

Priorities are set properly in yum configs:

http://paste.openstack.org/show/198058/

After I installed 'yum-plugin-priorities' on slaves yum installed 'memcached' from mos repo:

http://paste.openstack.org/show/198057/

Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Igor Kalnitsky (ikalnitsky)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-main (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/171614

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/171686

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/171687

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-main (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/171688

Dmitry Pyzhov (dpyzhov)
tags: added: feature-remote-repos
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/171614
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=6cb5e1f089f2eba5d2799af6d2be8e859cb3a2c3
Submitter: Jenkins
Branch: master

commit 6cb5e1f089f2eba5d2799af6d2be8e859cb3a2c3
Author: Igor Kalnitsky <email address hidden>
Date: Wed Apr 8 16:06:48 2015 +0300

    Add 'yum-plugin-priorities' package

    Since Fuel 6.1 we are able to work with custom set of repos with custom
    priorities. By default, yum is unable to work with them, but it could be
    fixed by installing 'yum-plugin-priorities'.

    Change-Id: Ic41d306b4899c8ee1830f580418f812539fc22d1
    Related-Bug: #1440074

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/171688
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=af8737575118dd8fbc4c55b2daaab464c57cee6d
Submitter: Jenkins
Branch: master

commit af8737575118dd8fbc4c55b2daaab464c57cee6d
Author: Igor Kalnitsky <email address hidden>
Date: Wed Apr 8 18:08:36 2015 +0300

    Install 'yum-plugin-priorities' on all slaves

    Since Fuel 6.1 we are able to work with custom set of repos with custom
    priorities. By default, yum is unable to work with them, but it could be
    fixed by installing 'yum-plugin-priorities'.

    Change-Id: I6b36c79caf0d853c8979f87b8526c71699a75fe4
    Related-Bug: #1440074

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/171686
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=79764af1a045ab67c355f08083c81a2f24231500
Submitter: Jenkins
Branch: master

commit 79764af1a045ab67c355f08083c81a2f24231500
Author: Igor Kalnitsky <email address hidden>
Date: Wed Apr 8 18:00:20 2015 +0300

    Install 'yum-plugin-priorities' on master node

    Since we can deal with several repos at once, it's a good idea to add
    possibility to set different priorities for them.

    Change-Id: I0942bdc3233c5bf4f5aff60599fcaa78cc00cc63
    Related-Bug: #1440074

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/171687
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=9c6b5a3c615b8388f3cdcb435467f0d64ae5e7ae
Submitter: Jenkins
Branch: master

commit 9c6b5a3c615b8388f3cdcb435467f0d64ae5e7ae
Author: Igor Kalnitsky <email address hidden>
Date: Wed Apr 8 18:04:55 2015 +0300

    Install 'yum-plugin-priorities' on all slaves

    Since Fuel 6.1 we are able to work with custom set of repos with custom
    priorities. By default, yum is unable to work with them, but it could be
    fixed by installing 'yum-plugin-priorities'.

    Change-Id: I3f5a95abcae18dbca5b3c39b0949a8c46cb7ef69
    Related-Bug: #1440074

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-main (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/175499

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/175499
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=ddd8736b42e4c195ded9f1ecbd476be646325976
Submitter: Jenkins
Branch: master

commit ddd8736b42e4c195ded9f1ecbd476be646325976
Author: Matthew Mosesohn <email address hidden>
Date: Mon Apr 20 20:12:16 2015 +0300

    Add yum-plugin-priorities on install

    Adds yum-plugin-priorities to kickstart of Fuel
    Master and to fuel/centos base Docker image.

    Change-Id: I4f7dfe915790a78fbf37e011225365d4bd10755c
    Related-Bug: #1440074

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.