[Bug 1796163] Re: py3 failure cfg.py - dictionary changed size during iteration

OpenStack Infra 1796163 at bugs.launchpad.net
Tue Oct 23 11:15:22 UTC 2018


Reviewed:  https://review.openstack.org/608235
Committed: https://git.openstack.org/cgit/openstack/oslo.config/commit/?id=1884c307a9502393d275e0d5c5b2e56343792908
Submitter: Zuul
Branch:    stable/rocky

commit 1884c307a9502393d275e0d5c5b2e56343792908
Author: Corey Bryant <corey.bryant at canonical.com>
Date:   Thu Oct 4 15:29:36 2018 -0400

    python3: Ensure ConfigOpts __iter__ uses list(d.keys())
    
    d.keys() no longer returns a copy of the keys in Python 3.
    This is part of PEP 3106.
    
    Change-Id: Ie4897109c87d6dc2952c2eb35b83fe368fb31803
    Closes-Bug: #1796163


** Tags added: in-stable-rocky

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-oslo.config in Ubuntu.
https://bugs.launchpad.net/bugs/1796163

Title:
  py3 failure cfg.py - dictionary changed size during iteration

Status in oslo.config:
  Fix Released
Status in python-oslo.config package in Ubuntu:
  Fix Released
Status in python-oslo.config source package in Cosmic:
  Fix Released

Bug description:
  We came across the following issue while function testing keystone
  with py3: https://paste.ubuntu.com/p/d7s6KKPQDG/

    File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2652, in __iter__
      for key in itertools.chain(self._opts.keys(), self._groups.keys()):
  RuntimeError: dictionary changed size during iteration

To manage notifications about this bug go to:
https://bugs.launchpad.net/oslo.config/+bug/1796163/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list