← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1868327] [NEW] RuntimeError: dictionary keys changed during iteration

 

Public bug reported:

Forwarded from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954276

This appears to be a python 3.8 incompatibility.

| 2020-03-19 14:31:48,840 - util.py[DEBUG]: Running module disk_setup (<module 'cloudinit.config.cc_disk_setup' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py'>) failed
| Traceback (most recent call last):
|   File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 848, in _run_modules
|     ran, _r = cc.run(run_name, mod.handle, func_args,
|   File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 54, in run
|     return self._runners.run(name, functor, args, freq, clear_on_fail)
|   File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 185, in run
|     results = functor(*args)
|   File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 129, in handle
|     update_disk_setup_devices(disk_setup, cloud.device_name_to_device)
|   File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 166, in update_disk_setup_devices
|     for origname in disk_setup.keys():
| RuntimeError: dictionary keys changed during iteration

I've attached a small patch that implements a minimal fix for this
issue.

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Patch added: "cloud-init-python-3.8.patch"
   https://bugs.launchpad.net/bugs/1868327/+attachment/5339495/+files/cloud-init-python-3.8.patch

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1868327

Title:
  RuntimeError: dictionary keys changed during iteration

Status in cloud-init:
  New

Bug description:
  Forwarded from https://bugs.debian.org/cgi-
  bin/bugreport.cgi?bug=954276

  This appears to be a python 3.8 incompatibility.

  | 2020-03-19 14:31:48,840 - util.py[DEBUG]: Running module disk_setup (<module 'cloudinit.config.cc_disk_setup' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py'>) failed
  | Traceback (most recent call last):
  |   File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 848, in _run_modules
  |     ran, _r = cc.run(run_name, mod.handle, func_args,
  |   File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 54, in run
  |     return self._runners.run(name, functor, args, freq, clear_on_fail)
  |   File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 185, in run
  |     results = functor(*args)
  |   File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 129, in handle
  |     update_disk_setup_devices(disk_setup, cloud.device_name_to_device)
  |   File "/usr/lib/python3/dist-packages/cloudinit/config/cc_disk_setup.py", line 166, in update_disk_setup_devices
  |     for origname in disk_setup.keys():
  | RuntimeError: dictionary keys changed during iteration

  I've attached a small patch that implements a minimal fix for this
  issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1868327/+subscriptions


Follow ups