Comment 219 for bug 1348818

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/229991
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=2e20e70e1430b1f05a98616ba47464829e764390
Submitter: Jenkins
Branch: master

commit 2e20e70e1430b1f05a98616ba47464829e764390
Author: Victor Stinner <email address hidden>
Date: Thu Oct 1 18:04:30 2015 +0200

    Fix volume throttling to Python 3

    BlkioCgroup._set_limits(): sort devices before iterating on them to
    have a reliable behaviour.

    The devs variable is a dictionary. On Python 3, the hash function is
    now randomized, so iterating on a dictionary gives items in a random
    order. Use sorted() to iterate on the list of sorted devices instead.

    tox.ini: add cinder.tests.unit.test_volume_throttling to Python 3.

    Blueprint cinder-python3
    Partial-Bug: #1348818
    Change-Id: Icf7141f772397c7ac08f0f1e21ad74cb86a06351