ansible-networking-collections
ansible-networking-collections copied to clipboard
GRPC Connection error with newer dependencies
I am trying to use the grpc collection, but to no avail.
protobuf=3.20.3 -> is the latest version available that works according to another task. grpcio=1.49.1 -> I can not go lower, I am getting an installation error, with lower versions of grpcio.
With my setup running on NixOS:
Python 3.11.8 Poetry 1.7.1 Ansible 8.7.0 (Ansible Core 2.15)
I am getting this error:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'Connection' object has no attribute 'nonetype'
fatal: [10.0.11.2]: FAILED! => {"msg": "Unexpected failure during module execution: 'Connection' object has no attribute 'nonetype'"}
I am trying this on a SONiC VS switch that supports GNMI.
---
ansible_user: admin
ansible_password: YourPaSsWoRd
ansible_become_pass: YourPaSsWoRd
ansible_port: 8080
ansible_connection: nokia.grpc.gnmi
ansible_gnmi_encoding: JSON
Well it seems this fixes it for me for this particular problem-> https://github.com/nokia/ansible-networking-collections/pull/29/files