kayobe physical network configure doesn't work with newer Arista eos_config modules

Bug #2058365 reported by Nathan Harper
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kayobe
Triaged
Medium
Unassigned

Bug Description

I have a fresh Kayobe deployment (2023.1) which has brought in arista.eos: 6.0.1 .

Trying to run kayobe physical network configure bombs out with:
```
TASK [arista-switch : Ensure Arista switches are configured] *********************************************************************************************************
Friday 15 March 2024 18:44:23 +0000 (0:00:00.853) 0:00:02.078 **********
fatal: [gbbrs-cl6-leaf3 -> localhost]: FAILED! => changed=false
  msg: Connection type local is not valid for this module
```
Manually running `ansible-galaxy collection install arista.eos:2.2.0` , the module works.

kayobe/ansible/roles/arista-switch/tasks/main.yml uses:
```
    module: eos_config
    provider: "{{ arista_switch_provider }}"
    src: arista-config.j2
```
but the `provider` config has been deprecated and removed from the Arista modules:
```
Deprecated
Starting with Ansible 2.5 we recommend using connection: network_cli.
Starting with Ansible 2.6 we recommend using connection: httpapi for eAPI.
This option will be removed in a release after 2022-06-01.
```

so it looks like either the arista.eos collection version must be pinned to an old one, or the `arista-switch` role needs to be updated to use network_cli.

Will Szumski (willjs)
Changed in kayobe:
importance: Undecided → Medium
status: New → Triaged
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.