cancel
Showing results for 
Search instead for 
Did you mean: 

ezspantree crashes when I run it

ezspantree crashes when I run it

James_A
Valued Contributor
I'm finally setting up my first EXOS switch, and while I think I have configured it with a single STP domain in MSTP with all VLANs and ports in it, I decided to enable ezspantree.py to be sure. However, when I run it, I get the following crash:
* jblockx.143 # run script ezspantree.py start
Spanning Tree Easy Setup
- Configures spanning tree s0 mode to MSTP/CIST
- Scans all VLANs
if a VLAN is not connected to spanning tree, it is added to s0
if a VLAN is already connected to spanning tree s0, it is updated
VLANs connected to spanning tree(s) other than s0 are not affected
- Starts a VLAN monitoring process for any new VLANS
newly created VLANS are automatically added to spanning tree s0

Do you wish to proceed? [y/N] y
Traceback (most recent call last):
File "/exos/tools/lib/python2.7/site-packages/./ezspantree.py", line 896, in
File "/exos/tools/lib/python2.7/site-packages/./ezspantree.py", line 289, in __call__
File "/exos/tools/lib/python2.7/site-packages/./ezspantree.py", line 405, in start_ezspantree
File "/exos/tools/lib/python2.7/site-packages/./ezspantree.py", line 454, in start_process
File "/exos/tools/lib/python2.7/site-packages/./ezspantree.py", line 412, in is_mstp_configured
TypeError: 'NoneType' object is not iterable

I tried to look at the source but it's some sort of binary.

Also is there a good way to test that STP is working? I tried plugging a cable into two ports on the same VLAN, but couldn't work out if it did anything.
7 REPLIES 7

Dave_Hammers
Extreme Employee
ezspantree is failing when it is trying to find 's0'. It was developed with the assumption that it would do the work of managing spanning tree participation.

Since you've configured spanning tree on your EXOS switch already, there is something about the configuration that isn't compatible with ezspantree.

if it's possible to reset the switch back to defaults
unconfig switchthen
run script ezspantree.py startit will take care of converting everything over to MSTP and add any new vlans as they are added to the switch.

run script ezspantree.py show will tell you if it is running or not.

X440-G2. I did a bit more testing, and running start then stop then start will have an error, but running start twice will work the second time.

Could I ask what switch model was running ezspantree.py when it crashed?
X620, X450-G2, X870 ...?

I'll have to look into what's going on. Thanks for posting the debug
GTM-P2G8KFN