magnum container-execute failed

Bug #1454847 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Kai Qiang Wu(Kennan)

Bug Description

The error:

$ magnum container-execute --command "sleep 1" test-container
ERROR: exec_create() takes at most 6 arguments (7 given) (HTTP 500)

This is the conductor output:

2015-05-13 17:14:07.124 ERROR oslo_messaging.rpc.dispatcher [-] Exception during message handling: exec_create() takes at most 6 arguments (7 given)
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/magnum/magnum/conductor/handlers/docker_conductor.py", line 208, in container_execute
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher return {'output': docker.execute(docker_id, command)}
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 15, in wrapped
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher return f(self, resource_id, *args, **kwargs)
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 529, in execute
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher container, cmd, detach, stdout, stderr, tty
2015-05-13 17:14:07.124 TRACE oslo_messaging.rpc.dispatcher TypeError: exec_create() takes at most 6 arguments (7 given)

hongbin (hongbin034)
Changed in magnum:
assignee: nobody → hongbin (hongbin034)
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
hongbin (hongbin034) wrote :

Thanks Dims. I will check if there is a walk-around on Magnum side. If no, then we have to wait for the version upgrade of docker.

Changed in magnum:
assignee: hongbin (hongbin034) → Kai Qiang Wu(Kennan) (wkqwu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/186323

Changed in magnum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/186323
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=24948f8b472fe7d2d9a51b0166ba1527295ef278
Submitter: Jenkins
Branch: master

commit 24948f8b472fe7d2d9a51b0166ba1527295ef278
Author: Kai Qiang Wu(Kennan) <email address hidden>
Date: Thu May 28 16:44:46 2015 +0800

    Use new docker exec call

    Docker-py would soon deprecated the execute method, instead
    they suggest to use exec_start and exec_create

    refer: http://docker-py.readthedocs.org/en/1.2.2/change_log/#120

    Closes-Bug: #1454847
    Change-Id: Ie9c5ef41cc070acb11ef6b35e638a4bb68ec1bce

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.