SSH client of switch stops working for the current session after executing Python script


Userlevel 7
The SSH client available on EXOS stops working for the current session after executing the Python script "mlag_config_check.py" (from https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/mlag_config_check). Logging out and then back in again resolves the issue.

The same happens after running the script "show_port_vid.py" (from https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/show_port_vid), so it seems to be a problem with running (Python) scripts, not with the individual script that first showed the problem.

Reported here as asked on https://github.com/extremenetworks/ExtremeScripting .

Observed on an X620-16t switch with EXOS version 21.1.1.4-patch1-2.

Log:
login: admin password: ExtremeXOS Copyright (C) 1996-2016 Extreme Networks. All rights reserved. This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts. ============================================================================== Press the or '?' key at any time for completions. Remember to save your configuration changes. X620-16t-PoC_01.1 # ssh2 10.255.255.12 admin@10.255.255.12's password: ExtremeXOS Copyright (C) 1996-2016 Extreme Networks. All rights reserved. This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts. ============================================================================== Press the or '?' key at any time for completions. Remember to save your configuration changes. X620-16t-PoC_02.1 # exit Connection to 10.255.255.12 closed. X620-16t-PoC_01.2 # ssh2 10.255.255.12 admin@10.255.255.12's password: ExtremeXOS Copyright (C) 1996-2016 Extreme Networks. All rights reserved. This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts. ============================================================================== Press the or '?' key at any time for completions. Remember to save your configuration changes. X620-16t-PoC_02.1 # exit Connection to 10.255.255.12 closed. X620-16t-PoC_01.2 # run script mlag_config_check ****mlag_config_check.py running on MLAG Peer X620-16t-PoC_02**** Local and remote FDB checksums match. MLAG config check completed. X620-16t-PoC_01.3 # ssh2 10.255.255.12 sh: ./ssh: Permission denied X620-16t-PoC_01.4 # exit login: admin password: ExtremeXOS Copyright (C) 1996-2016 Extreme Networks. All rights reserved. This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts. ============================================================================== Press the or '?' key at any time for completions. Remember to save your configuration changes. X620-16t-PoC_01.1 # ssh2 10.255.255.12 admin@10.255.255.12's password: ExtremeXOS Copyright (C) 1996-2016 Extreme Networks. All rights reserved. This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts. ============================================================================== Press the or '?' key at any time for completions. Remember to save your configuration changes. X620-16t-PoC_02.1 # exit Connection to 10.255.255.12 closed. X620-16t-PoC_01.2 # [/code]
Best regards,
Erik

6 replies

Userlevel 7
This happens with every python script, just tested with a python file containing just the statement "True":
X620-16t-PoC_01.4 # ls -rw-r--r-- 1 admin admin 5 Jun 16 13:17 a_script.py X620-16t-PoC_01.2 # run script a_script X620-16t-PoC_01.3 # ssh 10.255.255.12 sh: ./ssh: Permission denied
[/code]
I'll open a case...

Br,
Erik
Userlevel 7
Erik Auerswald wrote:

This happens with every python script, just tested with a python file containing just the statement "True":
X620-16t-PoC_01.4 # ls -rw-r--r-- 1 admin admin 5 Jun 16 13:17 a_script.py X620-16t-PoC_01.2 # run script a_script X620-16t-PoC_01.3 # ssh 10.255.255.12 sh: ./ssh: Permission denied
[/code]
I'll open a case...

Br,
Erik

Well that doesn't sound good. Opening a case is the right path for this one. Thanks Erik.
Userlevel 7
Erik Auerswald wrote:

This happens with every python script, just tested with a python file containing just the statement "True":
X620-16t-PoC_01.4 # ls -rw-r--r-- 1 admin admin 5 Jun 16 13:17 a_script.py X620-16t-PoC_01.2 # run script a_script X620-16t-PoC_01.3 # ssh 10.255.255.12 sh: ./ssh: Permission denied
[/code]
I'll open a case...

Br,
Erik

Hi Erik, I just took ownership of this case. I'll be reaching out shortly.
Userlevel 7
As an update for the community, CR xos0064706 was assigned for this issue. We are currently waiting for the fix to be scoped, but once it is I will follow up here to let everyone know where the fix will be included.
Userlevel 7
One more update for the community, the fix for this will be included in EXOS 22.1.1, EXOS 16.2.2, EXOS 16.1.4, and the September patch of EXOS 21.1.2.
Userlevel 7
Thanks for the update!

Reply