Risk is hard to predict when use the tenant list in orchestrator

Bug #1520068 reported by Yu Zhiguo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudkitty
Fix Released
Critical
Yu Zhiguo

Bug Description

There is the same issue like bug 1512560 exist in orchestrator when get the tenant list that will be rated. The process method in orchestrator include the following processing logic: modify (remove some items) the sequence (self._tenants) being iterated over in the loop, which may cause unpredictable result.

Yu Zhiguo (yuzg)
Changed in cloudkitty:
assignee: nobody → Yu Zhiguo (yuzg)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cloudkitty (master)

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

Changed in cloudkitty:
status: New → In Progress
Changed in cloudkitty:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cloudkitty (master)

Reviewed: https://review.openstack.org/250172
Committed: https://git.openstack.org/cgit/openstack/cloudkitty/commit/?id=819e89f306433b7d80a3fd46f0b542b37b619b85
Submitter: Jenkins
Branch: master

commit 819e89f306433b7d80a3fd46f0b542b37b619b85
Author: Yu Zhiguo <email address hidden>
Date: Thu Nov 26 21:21:19 2015 +0800

    The result of tenant list may be unpredictable

    A problem like bug 1512560 existed in orchestrator when determinate
    which tenants will be rated in the next period:
    The process method in orchestrator include the following processing
    logic: modify (remove some items) the sequence (self._tenants) being
    iterated over in the loop, which may cause unpredictable result.
    This patch fixed this problem as the same way as solving bug 1512560.

    Change-Id: Id148c5a0a1ab0290cfff02d9121badcb7f4e6ac7
    Closes-Bug: #1520068

Changed in cloudkitty:
status: In Progress → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/cloudkitty 0.5.0

This issue was fixed in the openstack/cloudkitty 0.5.0 release.

Changed in cloudkitty:
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.