Bug 1391270 - need docker-py 1.8.0 or later in order to use cpuset_cpus option in the docker_container ansible module
Summary: need docker-py 1.8.0 or later in order to use cpuset_cpus option in the docke...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-docker-py
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Tomecek
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-02 22:18 UTC by Robert Li
Modified: 2019-12-16 07:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-11 11:49:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Robert Li 2016-11-02 22:18:12 UTC
Description of problem:
with rhel7.2 running on the host being provisioned, using cpuset_cpus option in the docker_container ansible module causes error indicating the option is not supported.

docker-py 1.7.2 comes with rhel7.2, and it doesn't support the option cpuset_cpus. docker-py 1.8.0 and later supports it. 

we need this support in OSP8 that is packaged with rhel7.2.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. create a ansible playbook that uses docker_container module with the option cpuset_cpus that pins the container to certain CPUs.
2. running the playbook to provision a node where rhel7.2 is installed
2. 
3.

Actual results:
ansible reports error indicating the option is not supported.

Expected results:
ansible should successfully create the container on the target machine which is pined to the designated cpus that is provided by the cpuset_cpus option.

Additional info:
Found https://bugzilla.redhat.com/show_bug.cgi?id=1374058 that adds docker-py 1.9.0 to rhel7.3.

Comment 2 Tomas Tomecek 2016-11-03 14:17:24 UTC
Hello, I'm sorry for the issue this is causing.


It's true that we are updating python-docker-py to 1.9.0 in Red Hat Enterprise Linux 7.3 (which should be available very very soon, since the mentioned bug is in RELEASE_PENDING).


Do you think that the update will resolve your issue?

Comment 5 Tomas Tomecek 2016-11-11 11:49:14 UTC
Per my previous comment, this issue is resolved with latest 7.3 update: you can pull python-docker-py in version 1.9 from there.


Note You need to log in before you can comment on or make changes to this bug.