django32: RuntimeError: dictionary changed size during iteration

Bug #1944548 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Unassigned

Bug Description

trove-dashboard UT with Django 3.2 (and horizon master latest) fails with "RuntimeError: dictionary changed size during iteration"

Detail: https://paste.opendev.org/show/809491/

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

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/horizon/+/810388

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

Reviewed: https://review.opendev.org/c/openstack/horizon/+/810388
Committed: https://opendev.org/openstack/horizon/commit/a20c4f6f2218255597c719aa7505295f689abf9a
Submitter: "Zuul (22348)"
Branch: master

commit a20c4f6f2218255597c719aa7505295f689abf9a
Author: Akihiro Motoki <email address hidden>
Date: Wed Sep 22 19:37:44 2021 +0900

    workflow: Do not touch dict during iteration

    Django 3.2 stored the field information as dict instead OrderedDict
    because python 3.7+ ensure the field order of dict as the language spec.
    We cannot touch dict itself during iteration. We need to pass a list
    instead of a value from .items() itself to avoid the error.

    Change-Id: Ie22865995d14fa60c16cf2cea582aa0eec46b65d
    Closes-Bug: #1944548

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 20.1.0

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