Cannot import docker client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun |
Fix Released
|
Critical
|
hongbin |
Bug Description
Refer to this patch https:/
Docker-py has renamed client.client to client.
2017-05-25 14:01:31.608 CRITICAL zun [-] AttributeError: 'module' object has no attribute 'Client'
Following error threw when start zun-compute as devstack restarted and update docker-py to latest version:
2017-05-25 14:01:31.608 TRACE zun Traceback (most recent call last):
2017-05-25 14:01:31.608 TRACE zun File "/usr/bin/
2017-05-25 14:01:31.608 TRACE zun sys.exit(main())
2017-05-25 14:01:31.608 TRACE zun File "/opt/stack/
2017-05-25 14:01:31.608 TRACE zun compute_
2017-05-25 14:01:31.608 TRACE zun File "/opt/stack/
2017-05-25 14:01:31.608 TRACE zun self.driver = driver.
2017-05-25 14:01:31.608 TRACE zun File "/opt/stack/
2017-05-25 14:01:31.608 TRACE zun driver = importutils.
2017-05-25 14:01:31.608 TRACE zun File "/usr/lib/
2017-05-25 14:01:31.608 TRACE zun return import_
2017-05-25 14:01:31.608 TRACE zun File "/usr/lib/
2017-05-25 14:01:31.608 TRACE zun __import__(mod_str)
2017-05-25 14:01:31.608 TRACE zun File "/opt/stack/
2017-05-25 14:01:31.608 TRACE zun from zun.container.
2017-05-25 14:01:31.608 TRACE zun File "/opt/stack/
2017-05-25 14:01:31.608 TRACE zun from zun.container.
2017-05-25 14:01:31.608 TRACE zun File "/opt/stack/
2017-05-25 14:01:31.608 TRACE zun class DockerHTTPClien
2017-05-25 14:01:31.608 TRACE zun AttributeError: 'module' object has no attribute 'Client'
docker-py version as below:
bash-4.2$ pip show docker-py
Name: docker-py
Version: 1.10.6
Summary: Python client for Docker.
Home-page: https:/
Author: Joffrey F
Author-email: <email address hidden>
License: UNKNOWN
Location: /usr/lib/
Requires: websocket-client, backports.
Changed in zun: | |
assignee: | nobody → Shunli Zhou (shunliz) |
Changed in zun: | |
assignee: | Shunli Zhou (shunliz) → hongbin (hongbin034) |
status: | Invalid → In Progress |
Changed in zun: | |
importance: | Undecided → Critical |
Fix proposed to branch: master /review. openstack. org/467915
Review: https:/