Ceilometer arithmetic transformer bug: RuntimeError: dictionary changed size during iteration

Bug #1700875 reported by xiexianbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
xiexianbin

Bug Description

we want to meter memory_util for instance, ref:

Multi meter arithmetic transformer: https://review.openstack.org/#/c/106302/
https://specs.openstack.org/openstack/ceilometer-specs/specs/juno/arithmetic-transformer.html, and

and we get an "RuntimeError: dictionary changed size during iteration" for the RuntimeError: dictionary changed size during iteration.

xiexianbin (xianbin)
Changed in ceilometer:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

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

Changed in ceilometer:
assignee: nobody → xiexianbin (xianbin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/478352
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=91d11e7c7915fe8806af3e19064af0cd71b8fe76
Submitter: Jenkins
Branch: master

commit 91d11e7c7915fe8806af3e19064af0cd71b8fe76
Author: xianbin <email address hidden>
Date: Wed Jun 28 11:13:02 2017 +0800

    Fixed ceilometer arithmetic transformer bug

    For the arithmetic transformer, when some thread use method _update_cache()
    to update self.cache, and the same time the flush() method may be invoke
    self.cache.pop(res_id) and raise "RuntimeError: dictionary changed size
    during iteration"

    Change-Id: I3ea89c7d3bfbdb661770b5d478188f8723c17716
    Closes-bug: #1700875

Changed in ceilometer:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/489075

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/489076

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (stable/newton)

Reviewed: https://review.openstack.org/489076
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=00d2f6faf28645258f89b6858e243d6432a23887
Submitter: Jenkins
Branch: stable/newton

commit 00d2f6faf28645258f89b6858e243d6432a23887
Author: xianbin <email address hidden>
Date: Wed Jun 28 11:13:02 2017 +0800

    Fixed ceilometer arithmetic transformer bug

    For the arithmetic transformer, when some thread use method _update_cache()
    to update self.cache, and the same time the flush() method may be invoke
    self.cache.pop(res_id) and raise "RuntimeError: dictionary changed size
    during iteration"

    Change-Id: I3ea89c7d3bfbdb661770b5d478188f8723c17716
    Closes-bug: #1700875
    (cherry picked from commit 91d11e7c7915fe8806af3e19064af0cd71b8fe76)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (stable/ocata)

Reviewed: https://review.openstack.org/489075
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=40b36e0e2e075ff796603fd1f89a36524e8f616f
Submitter: Jenkins
Branch: stable/ocata

commit 40b36e0e2e075ff796603fd1f89a36524e8f616f
Author: xianbin <email address hidden>
Date: Wed Jun 28 11:13:02 2017 +0800

    Fixed ceilometer arithmetic transformer bug

    For the arithmetic transformer, when some thread use method _update_cache()
    to update self.cache, and the same time the flush() method may be invoke
    self.cache.pop(res_id) and raise "RuntimeError: dictionary changed size
    during iteration"

    Change-Id: I3ea89c7d3bfbdb661770b5d478188f8723c17716
    Closes-bug: #1700875
    (cherry picked from commit 91d11e7c7915fe8806af3e19064af0cd71b8fe76)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ceilometer 9.0.0

This issue was fixed in the openstack/ceilometer 9.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ceilometer 7.1.1

This issue was fixed in the openstack/ceilometer 7.1.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ceilometer 8.1.1

This issue was fixed in the openstack/ceilometer 8.1.1 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.