[fuel-mirror] debian repository related bugs

Bug #1537391 reported by Bulat Gaifullin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Bulat Gaifullin
8.0.x
Fix Released
High
Bulat Gaifullin

Bug Description

There is some bugs in dependency resolving alrogirthm:
1. the deb package does not have 'obsoletes' section and 'replaces' does not mean obsoletes. [1]
     the debian driver interprets the 'replaces' as obsoletes. this should be fixed.
2. the VersionRange.has_intersection method does not work properly.
     the has_intersection returns false when one of edge is included to range and other is not included. for example:
    first range - '< 2.0.0' and second range '<= 2.0.0'. this ranges has intersection but method returns false. [2]

[1] https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces
[2] https://github.com/openstack/fuel-mirror/blob/master/packetary/objects/package_relation.py#L61-L94

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-mirror (master)

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

Changed in fuel:
status: New → In Progress
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 8.0 → 9.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-mirror (master)

Reviewed: https://review.openstack.org/271718
Committed: https://git.openstack.org/cgit/openstack/fuel-mirror/commit/?id=fdbcd571ab85d80fcca46ae3f94d4e3e55407220
Submitter: Jenkins
Branch: master

commit fdbcd571ab85d80fcca46ae3f94d4e3e55407220
Author: Bulat Gaifullin <email address hidden>
Date: Sat Jan 23 22:04:50 2016 +0300

    Backport deb driver fixes from packetary repository

    Fixed obsoletes detecting for deb package
    Fixed check intersection for range of versions

    Change-Id: Ia7f2e3e1b2c3f4adc26324b6267eea359c776ec0
    Closes-Bug: #1537391

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-mirror (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/273087

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-mirror (stable/8.0)

Reviewed: https://review.openstack.org/273087
Committed: https://git.openstack.org/cgit/openstack/fuel-mirror/commit/?id=351d568fa3b3e4dd062054b91d766aa54d379867
Submitter: Jenkins
Branch: stable/8.0

commit 351d568fa3b3e4dd062054b91d766aa54d379867
Author: Bulat Gaifullin <email address hidden>
Date: Sat Jan 23 22:04:50 2016 +0300

    Backport deb driver fixes from packetary repository

    Fixed obsoletes detecting for deb package
    Fixed check intersection for range of versions

    Change-Id: Ia7f2e3e1b2c3f4adc26324b6267eea359c776ec0
    Closes-Bug: #1537391
    (cherry picked from commit fdbcd571ab85d80fcca46ae3f94d4e3e55407220)

tags: added: team-enhancements
Changed in fuel:
status: Fix Committed → Fix Released
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.