kolla-toolbox module fails when using 'docker==5.0.1'

Bug #1942346 reported by dalekseev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Unassigned

Bug Description

kolla-toolbox module fails when trying to create database user

kolla-ansible: train
os: centos 8.4.2105
docker: 20.10.8

bootstrap servers task installs latest python docker sdk (docker==5.0.1)
maybe we have to limit package version to docker<=5.0.0 (works for me)

Revision history for this message
dalekseev (dalekseev) wrote :
Download full text (4.0 KiB)

TASK [Creating haproxy mysql user] ********************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: __init__() got an unexpected keyword argument 'disable_buffering'

fatal: [HOSTNAME]: FAILED! => {"changed": false, "module_stderr": "Shared connection to HOSTNAME closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1630507194.618876-798078-231659925386343/AnsiballZ_kolla_toolbox.py\", line 102, in <module>\r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1630507194.618876-798078-231659925386343/AnsiballZ_kolla_toolbox.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1630507194.618876-798078-231659925386343/AnsiballZ_kolla_toolbox.py\", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.kolla_toolbox', init_globals=None, run_name='__main__', alter_sys=True)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\r\n exec(code, run_globals)\r\n File \"/tmp/ansible_kolla_toolbox_payload_651wl9r_/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py\", line 234, in <module>\r\n File \"/tmp/ansible_kolla_toolbox_payload_651wl9r_/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py\", line 171, in main\r\n File \"/usr/local/lib/python3.6/site-packages/docker/utils/decorators.py\", line 19, in wrapped\r\n return f(self, resource_id, *args, **kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/docker/api/exec_api.py\", line 161, in exec_start\r\n stream=True\r\n File \"/usr/local/lib/python3.6/site-packages/docker/api/client.py\", line 296, in _post_json\r\n return self._post(url, data=json.dumps(data2), **kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/docker/utils/decorators.py\", line 46, in inner\r\n return f(self, *args, **kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/docker/api/client.py\", line 233, in _post\r\n return self.post(url, **self._set_request_timeout(kwargs))\r\n File \"/usr/local/lib/python3.6/site-packages/requests/sessions.py\", line 590, in post\r\n return self.request('POST', url, data=data, json=json, **kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/requests/sessions.py\", line 542, in request\r\n resp = self.send(prep, **send_kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/requests/sessions.py\", line 655, in send\r\n r = adapter.send(request, **kwargs)\r\n File \"/usr/local/lib/python3.6/site-packages/requests/adapters.py\", line 449, in send\r\n timeout=timeout\r\n File \"/usr/local/lib/python3.6/site-packages/urllib3/connectionpool....

Read more...

Revision history for this message
Mark Goddard (mgoddard) wrote :

There is a new docker 5.0.2 release - could you try it?

Revision history for this message
dalekseev (dalekseev) wrote :

5.0.2 works fine, thanks for your attention :)

Mark Goddard (mgoddard)
Changed in kolla-ansible:
status: New → 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.