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.
Reviewed: https:/ /review. openstack. org/229991 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=2e20e70e143 0b1f05a98616ba4 7464829e764390
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2e20e70e1430b1f 05a98616ba47464 829e764390
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 7ac08f0f1e21ad7 4cb86a06351
Partial-Bug: #1348818
Change-Id: Icf7141f772397c