Failed to create container if specify mem_limit

Bug #1557895 reported by Eli Qiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
High
Eli Qiao

Bug Description

magnum container-create --bay swarmbay --name test --image "10.238.157.49:5123/cirros" --command "ping -c 1000 10.248.2.5" --memory 512

seen error “mem_limit has been moved to host_config in API version 1.19” from m-cond and failed to create container

https://github.com/docker/docker-py/pull/644/commits/427e3a60232a5b8ba6c2b91005908321366a0113

Eli Qiao (taget-9)
Changed in magnum:
assignee: nobody → Eli Qiao (taget-9)
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/293288

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

Reviewed: https://review.openstack.org/293288
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=2dfaa2e92b04a5f10a869af07cd9a307d4d8748b
Submitter: Jenkins
Branch: master

commit 2dfaa2e92b04a5f10a869af07cd9a307d4d8748b
Author: Eli Qiao <email address hidden>
Date: Wed Mar 16 14:53:52 2016 +0800

    Pass host_config if docker api version >=1.19

    mem_limit and memswap_limit are moved to host_config in docker client
    api for API version >= 1.19

    https://github.com/docker/docker-py/pull/644/commits/427e3a60232a5b8ba6c2b91005908321366a0113

    Closes-Bug: #1557895
    Change-Id: I34e5e49ae650219f986a2b0032df65672c319ec6

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 2.0.0

This issue was fixed in the openstack/magnum 2.0.0 release.

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.