CCI-MOC / esi

Elastic Secure Infrastructure project
6 stars 12 forks source link

We have occasional issues when network-runner tries to reset a port #527

Closed tzumainn closed 1 month ago

tzumainn commented 3 months ago

Example error:

TASK [network-runner : dellemc.os9: reset interface to default (no switchport and shutdown)] ***
 ^[[0;31mfatal: [MOC-R4PAC10-SW-TORS-A]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "command": "default interface twe\
ntyfivegige 1/6/2", "msg": "default interface twentyfivegige 1/6/2\r\n\r\n% Error: Tf 1/6/2 Port is part of a non-default VLAN.\r\nMOC-R4PAC10-SW-TORS-A(conf)#", "rc": -32603}^[[0m

This error went away after the port was manually defaulted on the switch.

Weirdly, the port had been attached to the provisioning network using ESI CLI commands successfully.

tzumainn commented 3 months ago

This may be an issue with the switch itself; Hakan ran into something similar while running switch commands directly:

" I can’t reproduce it now but I tried defaulting a range of interfaces on the ESIDEV switch today and got the message Port is part of a non-default. I tried configuring the ports again and defaulted the same range and it worked. It also just worked again if I ran the same command again after the error. I know this isn’t a firmware issue because the switch the NERC esi nodes are running the latest firmware "

hakasapl commented 1 month ago

This appears to be fixed. I will reopen if we find it is not fixed