Bug 1391270

Summary: need docker-py 1.8.0 or later in order to use cpuset_cpus option in the docker_container ansible module
Product: Red Hat Enterprise Linux 7 Reporter: Robert Li <baoli>
Component: python-docker-pyAssignee: Tomas Tomecek <ttomecek>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: chhudson, cww, imcleod
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-11 11:49:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.