tripleo-quickstart creating redundant repositories

Bug #1711006 reported by John Fulton on 2017-08-16
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
John Fulton

Bug Description

Quickstart creates additional yum repository files [0] which point to the same online repository with a name that matches case insensitively [1]. Even if the redundant repositories are disabled, attempts to install packages from these repositories result in the package not being found and warning:

 Repository $FOO is listed more than once in the configuration

This was seen recently in TripleO CI [2][3][4][5] and can be reproduced
by setting up the same files in /etc/yum.repos.d and attempting to install
a package found in both the enabled an disabled repository.

[0] https://github.com/openstack/tripleo-quickstart/blob/master/config/release/tripleo-ci/consistent-master.yml#L38-L79

[1]
[root@4ed2422bb531 yum.repos.d]# ls | sort -f
CentOS-Base.repo
centos-base.repo
CentOS-Ceph-Jewel.repo
centos-ceph-jewel.repo
CentOS-CR.repo
CentOS-Debuginfo.repo
centos-extras.repo
CentOS-fasttrack.repo
CentOS-Media.repo
centos-opstools.repo
centos-qemu.repo
CentOS-Sources.repo
centos-updates.repo
CentOS-Vault.repo
delorean-current.repo
delorean-pike-testing.repo
delorean.repo
gating.repo
[root@4ed2422bb531 yum.repos.d]#

[2]
[root@4ed2422bb531 ~]# yum install ceph-ansible
Loaded plugins: fastestmirror, ovl
Repository centos-ceph-jewel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
No package ceph-ansible available.
Error: Nothing to do
[root@4ed2422bb531 ~]#

[3] http://logs.openstack.org/88/479288/32/check/gate-tripleo-ci-centos-7-scenario001-multinode-oooq-container/2dd0e52/logs/undercloud/etc/yum.repos.d/

[4] http://logs.openstack.org/88/479288/32/check/gate-tripleo-ci-centos-7-scenario001-multinode-oooq-container/2dd0e52/logs/undercloud/etc/yum.repos.d/CentOS-Ceph-Jewel.repo.txt.gz

[5] http://logs.openstack.org/88/479288/32/check/gate-tripleo-ci-centos-7-scenario001-multinode-oooq-container/2dd0e52/logs/undercloud/etc/yum.repos.d/centos-ceph-jewel.repo.txt.gz

Fix proposed to branch: master
Review: https://review.openstack.org/494056

Changed in tripleo:
status: Triaged → In Progress

Reviewed: https://review.openstack.org/494056
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=5389b4c44b1e2c1dc30848359f8a415481cc86d1
Submitter: Jenkins
Branch: master

commit 5389b4c44b1e2c1dc30848359f8a415481cc86d1
Author: John Fulton <email address hidden>
Date: Tue Aug 15 22:29:54 2017 -0400

    Rename centos repositories created by quickstart

    Quickstart disables the existing CentOS repositories without
    local mirrors provided by infra and creates a similarly named
    mirrored repository to replace it. This change renames those
    mirrored repositories, so they do not conflict with the existing
    CentOS repositories, by prefacing them with "quickstart-".

    Change-Id: I99a9b73eaf1a32193adf0f719f205e004f4e233d
    Related-Bug: #1709327
    Closes-Bug: #1711006

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

Other bug subscribers