AttributeError: module 'collections' has no attribute 'Iterable'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
High
|
James Falcon |
Bug Description
Description of problem:
cloud-init crashes with AttributeError: module 'collections' has no attribute 'Iterable'
Version-Release number of selected component (if applicable):
cloud-init-
How reproducible:
always
Steps to Reproduce:
1. /usr/bin/cloud-init init
Actual results:
><fs> cat /var/log/
failed run of stage init-local
-------
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
logging.
File "/usr/lib/
elif isinstance(a_cfg, (collections.
AttributeError: module 'collections' has no attribute 'Iterable'
-------
failed run of stage init
-------
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
logging.
File "/usr/lib/
elif isinstance(a_cfg, (collections.
AttributeError: module 'collections' has no attribute 'Iterable'
-------
failed run of stage modules-config
-------
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
logging.
File "/usr/lib/
elif isinstance(a_cfg, (collections.
AttributeError: module 'collections' has no attribute 'Iterable'
-------
failed run of stage modules-final
-------
Traceback (most recent call last):
File "/usr/lib/
ret = functor(name, args)
File "/usr/lib/
logging.
File "/usr/lib/
elif isinstance(a_cfg, (collections.
AttributeError: module 'collections' has no attribute 'Iterable'
-------
Expected results:
cloud-init doesn't crash
Additional info:
https:/
Changed in cloud-init: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → James Falcon (falcojr) |
Changed in cloud-init: | |
status: | Triaged → Fix Committed |
Thanks for the bug report. I put a PR up at https:/ /github. com/canonical/ cloud-init/ pull/922/ files .
I didn't include the try/except because this has been supported/ deprecated since 3.3, and cloud-init supports back to 3.5