EMC-POC: Nexus plugin: enhancement request to have the replay code run in multi threads
Bug #1468843 reported by
Danny Choi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-cisco |
New
|
Undecided
|
Unassigned |
Bug Description
Currently the replay code runs in single thread. As such, with multiple switches, it will replay config serially.
For example, both Nexus switches reboot. The first switch comes online will get the replay config served. Until all the config is replayed successfully, then the plugin will move onto the second switch.
If for some reason the replay for the first switch fails during the replay process, it will wait till the timeout expires (switch_
tags: | added: cisco ml2 nexus |
To post a comment you must log in.
Example
Replay fails at 13:18:24.572 at switch #1.
30 seconds later, at 13:18:54.984, it establishes connection with switch #2.
2015-06-25 13:18:24.571 38580 ERROR neutron. plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus [-] Nexus Driver cisco_nexus failed in replay _configure_ port_binding plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus Traceback (most recent call last): plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus File "/usr/lib/ python2. 7/site- packages/ neutron/ plugins/ ml2/drivers/ cisco/nexus/ mech_cisco_ nexus.py" , line 526, in configure_ switch_ entries plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus port.vni) plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus File "/usr/lib/ python2. 7/site- packages/ neutron/ plugins/ ml2/drivers/ cisco/nexus/ mech_cisco_ nexus.py" , line 434, in _configure_ port_binding plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus vni) plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus File "/usr/lib/ python2. 7/site- packages/ neutron/ plugins/ ml2/drivers/ cisco/nexus/ nexus_network_ driver. py", line 334, in create_ and_trunk_ vlan plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus nexus_port) plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus File "/usr/lib/ python2. 7/site- packages/ neutron/ plugins/ ml2/drivers/ cisco/nexus/ nexus_network_ driver. py", line 297, in enable_ vlan_on_ trunk_int plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus intf_type, interface) plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus File "/usr/lib/ python2. 7/site- packages/ neutron/ plugins/ ml2/drivers/ cisco/nexus/ nexus_network_ driver. py", line 188, in get_interface_ switch_ trunk_allowed plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus response = self._get_ config( nexus_host, confstr) plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus File "/usr/lib/ python2. 7/site- packages/ neutron/ plugins/ ml2/drivers/ cisco/nexus/ nexus_network_ driver. py", line 78, in _get_config plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus exc=e) plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus NexusConfigFailed: Failed to configure Nexus switch: 10.86.1.128 XML: plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus <cmd>show running-config interface ethernet 1/22</cmd> plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus . Reason: . plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus plugins. ml2.drivers. cisco.nexus. mech_cisco_ nexus [-] Failed to configure port binding for switch 10.86.1.128, vlan 540 ...
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.571 38580 TRACE neutron.
2015-06-25 13:18:24.572 38580 ERROR neutron.