Package renames are not honoured in package updates(role-modify-image)

Bug #1813533 reported by yatin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Bogdan Dobrelya

Bug Description

Detected while testing deps update(networkx bump from 1.10-1 to 2.2-3) in https://review.rdoproject.org/r/#/c/18516/
networkx 2.2-3 is being renamed to python2-networkx(provides python-networkx), ansible-role-modify-image[1], does not consider this scenario(package renames), currently it checks common to installed vs available[2]

As per [1], available packages are only(python2-networkx, python2-pydot):- $ repoquery --repofrompath=tmp,https://logs.rdoproject.org/16/18516/3/check/legacy-validate-buildsys-tags/a3293ab/buildset/repos/cloud7-openstack-stein-testing/ --disablerepo='*' --enablerepo=tmp --qf %{NAME} -a

python2-networkx
python2-pydot

Installed packages contains(python-networkx).

$ rpm -qp --provides https://cbs.centos.org/kojifiles/packages/python-networkx/1.10/1.el7/noarch/python-networkx-1.10-1.el7.noarch.rpm
python-networkx = 1.10-1.el7
$ rpm -qp --provides https://cbs.centos.org/kojifiles/packages/python-networkx/2.2/3.el7/noarch/python2-networkx-2.2-3.el7.noarch.rpm
python-networkx = 2.2-3.el7
python-networkx-core = 2.2-3.el7
python-networkx-drawing = 2.2-3.el7
python-networkx-geo = 2.2-3.el7
python2-networkx = 2.2-3.el7
python2-networkx-core = 2.2-3.el7
python2-networkx-drawing = 2.2-3.el7
python2-networkx-geo = 2.2-3.el7

[1] https://github.com/openstack/ansible-role-tripleo-modify-image/blob/master/files/yum_update.sh#L8
[2] https://github.com/openstack/ansible-role-tripleo-modify-image/blob/master/files/yum_update.sh#L9

Expected:- networkx should be updated to 2.2-3

Actual:- networkx didn't update to 2.2-3

Tags: ci
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Note, we use this only for CI, not part of the product

tags: added: ci
Changed in tripleo:
milestone: none → stein-3
assignee: nobody → Bogdan Dobrelya (bogdando)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-role-tripleo-modify-image (master)

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

Changed in tripleo:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-role-tripleo-modify-image (master)

Reviewed: https://review.openstack.org/633484
Committed: https://git.openstack.org/cgit/openstack/ansible-role-tripleo-modify-image/commit/?id=8b82f78e359b016a76eba6331b5b27cdf8fd6c68
Submitter: Zuul
Branch: master

commit 8b82f78e359b016a76eba6331b5b27cdf8fd6c68
Author: Bogdan Dobrelya <email address hidden>
Date: Mon Jan 28 12:53:14 2019 +0100

    Track obsoleted packages replacements for updates

    Co-authored-by: Yatin Karel <email address hidden>
    Change-Id: I5dfe91238898208aedfeb6623c62b97a9398cecb
    Closes-bug: #1813533
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ansible-role-tripleo-modify-image 1.1.0

This issue was fixed in the openstack/ansible-role-tripleo-modify-image 1.1.0 release.

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.