sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
201 stars 727 forks source link

Cannot add-topo due to request() got an unexpected keyword argument 'chunked' #8221

Open Pterosaur opened 1 year ago

Pterosaur commented 1 year ago

An Ad-hoc solution could follow: https://github.com/ansible-collections/community.docker/issues/611 to pin the packages version. I add following codes at the end of file: ansible/roles/vm_set/tasks/docker.yml to solve this issue.

- name: Install python packages
  pip: name=requests version=2.28.1 state=forcereinstall executable={{ pip_executable }}
  become: yes
  environment: "{{ proxy_env | default({}) }}"

- name: Install python packages
  pip: name=urllib3 version=1.26.15 state=forcereinstall executable={{ pip_executable }}
  become: yes
  environment: "{{ proxy_env | default({}) }}"
vperumal commented 1 year ago

Hi @Pterosaur, thanks for the clue, To add more to your suggestion - They have released a fix for https://github.com/docker/docker-py/issues/3113 - https://github.com/docker/docker-py/releases/tag/6.1.0. So after installing docker 6.1.0 - you can replace the version with 6.1.0 as below and it works now.