sapcc / asr1k-neutron-l3

Cisco ASR 1000 Neutron L3 driver
Apache License 2.0
4 stars 1 forks source link

Make sure eventlet is patched on ncc connect #58

Closed sebageek closed 3 years ago

sebageek commented 3 years ago

With Neutron Ussuri we sometimes get a RuntimeError from eventlet that suggests a double read on a socket is happening by different threads. We want to make sure that when we use ncclient that eventlet is patched. Therefore as a possible mitigation call again eventlet.monkey_patch(), just if the asr1k driver was not used by first importing the asr1k_l3_agent or asr1k_ml2_agent.

sebageek commented 3 years ago

monkey_patch() can be called multiple times to the patch shouldn't change anything in case it's already patched.