Helm deployment script fails for Ansible 2.6.0 due to docker module incompatibility

Bug #1779709 reported by Pawel Rusak on 2018-07-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
Medium
Steve Wilkerson
Trunk
Fix Committed
Medium
Steve Wilkerson

Bug Description

openstack-helm-infra deployment scripts fails on Ansible task "deploy-kubeadm-aio-common : performing deploy-kubelet action" with following stack trace:

Traceback (most recent call last):
  File "/tmp/ansible_hN2qBm/ansible_module_docker_container.py", line 2081, in <module>
    main()
  File "/tmp/ansible_hN2qBm/ansible_module_docker_container.py", line 2076, in main
    cm = ContainerManager(client)
  File "/tmp/ansible_hN2qBm/ansible_module_docker_container.py", line 1703, in __init__
    self.present(state)
  File "/tmp/ansible_hN2qBm/ansible_module_docker_container.py", line 1723, in present
    new_container = self.container_create(self.parameters.image, self.parameters.create_parameters)
  File "/tmp/ansible_hN2qBm/ansible_module_docker_container.py", line 825, in create_parameters
    host_config=self._host_config(),
  File "/tmp/ansible_hN2qBm/ansible_module_docker_container.py", line 931, in _host_config
    return self.client.create_host_config(**params)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 157, in create_host_config
    return utils.create_host_config(*args, **kwargs)
TypeError: create_host_config() got an unexpected keyword argument 'init'

Issue is related to this one: https://github.com/ansible/ansible/issues/42162

Upstream repository contain fix for this bug: https://github.com/openstack/openstack-helm-infra/commit/80c1ff4071314d19a8fb70dd35e44cf54bc29c2d

Pawel Rusak (rusakp) on 2018-07-02
Changed in juniperopenstack:
importance: Undecided → Medium

Review in progress for https://review.opencontrail.org/44281
Submitter: Pawel Rusak (<email address hidden>)

Pawel Rusak (rusakp) on 2018-07-02
information type: Proprietary → Public

Review in progress for https://review.opencontrail.org/44332
Submitter: Pawel Rusak (<email address hidden>)

OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/44332
Submitter: Prabhu Seshachellam (<email address hidden>)

Reviewed: https://review.opencontrail.org/44281
Committed: http://github.com/Juniper/openstack-helm-infra/commit/912ee821992e0670afc8bb130372b83628859e5a
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 912ee821992e0670afc8bb130372b83628859e5a
Author: Steve Wilkerson <email address hidden>
Date: Fri Jun 29 09:18:54 2018 -0500

Gate: Fix version of ansible deployed via dev-deploy

This pins the version of ansible deployed via the makefile
dev-deploy directives to the version used in zuul. This was
causing issues with docker, as make dev-deploy setup-host was
deploying ansible 2.6. Ansible 2.6 introduces a new flag to the
docker_container module (init) that is incompatible with our
current roles, which resulted in observed failures in osh-infra
and osh

Change-Id: I8f83fb65206ad2d3895d234b27193657d5d39c54
Closes-Bug: #1779709

OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/44332
Committed: http://github.com/Juniper/openstack-helm-infra/commit/ade680e71aa5c3f4caa1c1c299ca763ba578a01c
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit ade680e71aa5c3f4caa1c1c299ca763ba578a01c
Author: Steve Wilkerson <email address hidden>
Date: Fri Jun 29 09:18:54 2018 -0500

Gate: Fix version of ansible deployed via dev-deploy

This pins the version of ansible deployed via the makefile
dev-deploy directives to the version used in zuul. This was
causing issues with docker, as make dev-deploy setup-host was
deploying ansible 2.6. Ansible 2.6 introduces a new flag to the
docker_container module (init) that is incompatible with our
current roles, which resulted in observed failures in osh-infra
and osh

Change-Id: I8f83fb65206ad2d3895d234b27193657d5d39c54
Closes-Bug: #1779709

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers