yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #71109
[Bug 1749175] [NEW] cloudinit crashes with ImportError: No module named 'urllib3'
Public bug reported:
>From an AWS instance system log:
harry-eualwaysonmaster1 login: [ 20.234818] cloud-init[1690]: Traceback (most recent call last):
[ 20.250690] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/packages/__init__.py", line 27, in <module>
[ 20.279621] cloud-init[1690]: from . import urllib3
[ 20.300075] cloud-init[1690]: ImportError: cannot import name 'urllib3'
[ 20.318154] cloud-init[1690]: During handling of the above exception, another exception occurred:
[ 20.329076] cloud-init[1690]: Traceback (most recent call last):
[ 20.335053] cloud-init[1690]: File "/usr/bin/cloud-init", line 9, in <module>
[ 20.356076] cloud-init[1690]: load_entry_point('cloud-init==17.1', 'console_scripts', 'cloud-init')()
[ 20.366432] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 572, in load_entry_point
[ 20.396778] cloud-init[1690]: return get_distribution(dist).load_entry_point(group, name)
[ 20.403109] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
[ 20.413496] cloud-init[1690]: return ep.load()
[ 20.419003] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2408, in load
[ 20.428216] cloud-init[1690]: return self.resolve()
[ 20.436023] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2414, in resolve
[ 20.447646] cloud-init[1690]: module = __import__(self.module_name, fromlist=['__name__'], level=0)
[ 20.473719] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 26, in <module>
[ 20.479026] cloud-init[1690]: from cloudinit import netinfo
[ 20.483099] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/netinfo.py", line 14, in <module>
[ 20.488680] cloud-init[1690]: from cloudinit import util
[ 20.495453] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 49, in <module>
[ 20.502470] cloud-init[1690]: from cloudinit import url_helper
[ 20.515276] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/url_helper.py", line 13, in <module>
[ 20.522356] cloud-init[1690]: import requests
[ 20.526771] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/__init__.py", line 58, in <module>
[ 20.547915] cloud-init[1690]: from . import utils
[ 20.552085] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/utils.py", line 26, in <module>
[ 20.575642] cloud-init[1690]: from .compat import parse_http_list as _parse_list_header
[ 20.580390] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/compat.py", line 7, in <module>
[ 20.597447] cloud-init[1690]: from .packages import chardet
[ 20.611936] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/packages/__init__.py", line 29, in <module>
[ 20.699963] cloud-init[1690]: import urllib3
[ 20.712813] cloud-init[1690]: ImportError: No module named 'urllib3'
No idea how it got itself into that state, other machines based on the
same image start fine...
** Affects: cloud-init
Importance: Undecided
Status: New
** Description changed:
From an AWS instance system log:
harry-eualwaysonmaster1 login: [ 20.234818] cloud-init[1690]: Traceback (most recent call last):
[ 20.250690] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/packages/__init__.py", line 27, in <module>
[ 20.279621] cloud-init[1690]: from . import urllib3
[ 20.300075] cloud-init[1690]: ImportError: cannot import name 'urllib3'
[ 20.318154] cloud-init[1690]: During handling of the above exception, another exception occurred:
[ 20.329076] cloud-init[1690]: Traceback (most recent call last):
[ 20.335053] cloud-init[1690]: File "/usr/bin/cloud-init", line 9, in <module>
[ 20.356076] cloud-init[1690]: load_entry_point('cloud-init==17.1', 'console_scripts', 'cloud-init')()
[ 20.366432] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 572, in load_entry_point
[ 20.396778] cloud-init[1690]: return get_distribution(dist).load_entry_point(group, name)
[ 20.403109] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
[ 20.413496] cloud-init[1690]: return ep.load()
[ 20.419003] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2408, in load
[ 20.428216] cloud-init[1690]: return self.resolve()
[ 20.436023] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2414, in resolve
[ 20.447646] cloud-init[1690]: module = __import__(self.module_name, fromlist=['__name__'], level=0)
[ 20.473719] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 26, in <module>
[ 20.479026] cloud-init[1690]: from cloudinit import netinfo
[ 20.483099] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/netinfo.py", line 14, in <module>
[ 20.488680] cloud-init[1690]: from cloudinit import util
[ 20.495453] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 49, in <module>
[ 20.502470] cloud-init[1690]: from cloudinit import url_helper
[ 20.515276] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/url_helper.py", line 13, in <module>
[ 20.522356] cloud-init[1690]: import requests
[ 20.526771] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/__init__.py", line 58, in <module>
[ 20.547915] cloud-init[1690]: from . import utils
[ 20.552085] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/utils.py", line 26, in <module>
[ 20.575642] cloud-init[1690]: from .compat import parse_http_list as _parse_list_header
[ 20.580390] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/compat.py", line 7, in <module>
[ 20.597447] cloud-init[1690]: from .packages import chardet
[ 20.611936] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/packages/__init__.py", line 29, in <module>
[ 20.699963] cloud-init[1690]: import urllib3
[ 20.712813] cloud-init[1690]: ImportError: No module named 'urllib3'
-
- No idea how it got itself into that state...
+ No idea how it got itself into that state, other machines based on the
+ same image start fine...
--
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/1749175
Title:
cloudinit crashes with ImportError: No module named 'urllib3'
Status in cloud-init:
New
Bug description:
From an AWS instance system log:
harry-eualwaysonmaster1 login: [ 20.234818] cloud-init[1690]: Traceback (most recent call last):
[ 20.250690] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/packages/__init__.py", line 27, in <module>
[ 20.279621] cloud-init[1690]: from . import urllib3
[ 20.300075] cloud-init[1690]: ImportError: cannot import name 'urllib3'
[ 20.318154] cloud-init[1690]: During handling of the above exception, another exception occurred:
[ 20.329076] cloud-init[1690]: Traceback (most recent call last):
[ 20.335053] cloud-init[1690]: File "/usr/bin/cloud-init", line 9, in <module>
[ 20.356076] cloud-init[1690]: load_entry_point('cloud-init==17.1', 'console_scripts', 'cloud-init')()
[ 20.366432] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 572, in load_entry_point
[ 20.396778] cloud-init[1690]: return get_distribution(dist).load_entry_point(group, name)
[ 20.403109] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
[ 20.413496] cloud-init[1690]: return ep.load()
[ 20.419003] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2408, in load
[ 20.428216] cloud-init[1690]: return self.resolve()
[ 20.436023] cloud-init[1690]: File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2414, in resolve
[ 20.447646] cloud-init[1690]: module = __import__(self.module_name, fromlist=['__name__'], level=0)
[ 20.473719] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 26, in <module>
[ 20.479026] cloud-init[1690]: from cloudinit import netinfo
[ 20.483099] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/netinfo.py", line 14, in <module>
[ 20.488680] cloud-init[1690]: from cloudinit import util
[ 20.495453] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 49, in <module>
[ 20.502470] cloud-init[1690]: from cloudinit import url_helper
[ 20.515276] cloud-init[1690]: File "/usr/lib/python3/dist-packages/cloudinit/url_helper.py", line 13, in <module>
[ 20.522356] cloud-init[1690]: import requests
[ 20.526771] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/__init__.py", line 58, in <module>
[ 20.547915] cloud-init[1690]: from . import utils
[ 20.552085] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/utils.py", line 26, in <module>
[ 20.575642] cloud-init[1690]: from .compat import parse_http_list as _parse_list_header
[ 20.580390] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/compat.py", line 7, in <module>
[ 20.597447] cloud-init[1690]: from .packages import chardet
[ 20.611936] cloud-init[1690]: File "/usr/lib/python3/dist-packages/requests/packages/__init__.py", line 29, in <module>
[ 20.699963] cloud-init[1690]: import urllib3
[ 20.712813] cloud-init[1690]: ImportError: No module named 'urllib3'
No idea how it got itself into that state, other machines based on the
same image start fine...
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1749175/+subscriptions
Follow ups