Docker plugin name conflict with docker library
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Invalid
|
Undecided
|
Chmouel Boudjnah |
Bug Description
The docker plugin is conflicting with the 'docker' library, that would not be a problem if the plugin wasn't used but while trying to fix bugs 1296758 since I needed to use docker.APIError, the unittests would fail as seen below, I would advise to rename the module to docker_plugin or something like that.
creating DockerContainer "Blog" Stack "test_stack" [e653e6fa-
Task create from DockerContainer "Blog" Stack "test_stack" [e653e6fa-
Task create from DockerContainer "Blog" Stack "test_stack" [e653e6fa-
Task create from DockerContainer "Blog" Stack "test_stack" [e653e6fa-
Task delete from DockerContainer "Blog" [epurnyslrtljry
Task delete from DockerContainer "Blog" [epurnyslrtljry
deleting DockerContainer "Blog" [epurnyslrtljry
Delete DockerContainer "Blog" [epurnyslrtljry
Traceback (most recent call last):
File "heat/engine/
handle_data = self.handle_
File "/opt/stack/
except docker.APIError:
AttributeError: 'module' object has no attribute 'APIError'
}}}
Traceback (most recent call last):
File "/opt/stack/
scheduler.
File "heat/engine/
self.
File "heat/engine/
self.step()
File "heat/engine/
next(
File "heat/engine/
raise failure
ResourceFailure: AttributeError: 'module' object has no attribute 'APIError'
Ran 5 tests in 0.805s
FAILED (id=0, failures=1)
error: testr failed (1)
ERROR: InvocationError: '/opt/stack/
_______
Changed in heat: | |
status: | In Progress → Invalid |
Fix proposed to branch: master /review. openstack. org/82730
Review: https:/