aruba / aoscx-ansible-collection

Ansible collections for AOS-CX switches 
48 stars 23 forks source link

401 Authentification error #121

Open willifehler opened 1 day ago

willifehler commented 1 day ago

Hello there,

has anybody seen the error that the switch does ask for an authentification again?

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: pyaoscx.exceptions.generic_op_error.GenericOperationError: 'GENERIC OPERATION ERROR: Unauthorized: Code: 401'

I'm using a loop to deploy interfaces. I've already increased the timeouts.

HTTPS Server Configuration
----------------------------
 VRF                     : mgmt

 REST Access Mode         : read-write

 Max sessions per user    : 8

 Session idle timeout     : 0

 Session absolute timeout : 480

My setup:

pyaoscx                2.6.0
arubanetworks.aoscx                      4.4.0
Python 3.12.7

Cheers - Willi

alagoutte commented 22 hours ago

Hi Willi,

What switch model and firmware version ?

do you are using local account or RBAC ? (RADIUS, MGMT ?)

What do you have on the switch log ?

what do you make on the playbook ?

willifehler commented 22 hours ago

Hi @alagoutte,

I'm using local accounts.

Vendor                 : Aruba
Product Name           : JL717C 8360-32Y4C v2 Switch
ArubaOS-CX Version     : LL.10.13.1040
sh logging

does not provide any hint. Shall I check another logfile?

My Playbook is quite simple, I'm configuring interfaces and lag interfaces.

Cheers - Willi

alagoutte commented 19 hours ago

Do you have try with

debug rest all

tchiapuziowong commented 18 hours ago

@willifehler how many interfaces are you configuring/looping through? Is there a certain amount of time that passes where this error occurs or is it random?

willifehler commented 6 hours ago

Hi,

thank you so much for your feedback. The error occurs pretty random. Sometimes even Ansible just hang.

I will execute debug rest all to check if I can see something.

Cheers - Willi