Enhancement request to add IP address of Nexus switch in debug log message.

Bug #1413822 reported by Danny Choi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-cisco
Fix Committed
Wishlist
Rich Curran

Bug Description

In screen-q-svc.log, the Nexus switch IP address info is displayed only during initialization.
E.g.
2015-01-21 20:30:47.569 DEBUG neutron.plugins.ml2.drivers.cisco.nexus.mech_cisco_nexus [-] nexus_switches found = {('172.20.231.7, ''qa6'): '1/3', ('172.22.191.67, ''qa11'):

For debugging, it would be very helpful if this info is displayed when the ml2 driver try to configure the Nexus switch.

Tags: nexus
Henry Gessau (gessau)
tags: added: nexus
Revision history for this message
Danny Choi (dannchoi) wrote :

Fix submitted by Rich Curran:

commit bc8dd07305316fbbf06ae0173123d862b07096f4
Author: Rich Curran <email address hidden>
Date: Mon Feb 2 11:28:02 2015 -0500

    ML2 Cisco Nexus MD: Update exception with switch IP address

    Add IP address of Nexus switch in exception message.

    Change-Id: I5e2f9224a6971248011f503c9c774c799a8785b8
    Closes-Bug: #1413822

Changed in networking-cisco:
status: New → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Rich Curran (rcurran)
Revision history for this message
Danny Choi (dannchoi) wrote :
Download full text (4.7 KiB)

2015-02-14 17:57:56.824 ERROR neutron.plugins.ml2.managers [req-01c58ade-d1d0-4bbf-b192-6cfea8cd0356 None None] Mechanism driver 'cisco_nexus' failed in update_port_postcommit
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers Traceback (most recent call last):
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/managers.py", line 299, in _call_on_drivers
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers getattr(driver.obj, method_name)(context)
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/openstack/common/lockutils.py", line 272, in inner
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers return f(*args, **kwargs)
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py", line 620, in update_port_postcommit
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers self._configure_host_entries, vni)
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py", line 529, in _port_action_vlan
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers func(vlan_id, device_id, host_id, vni, is_provider)
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py", line 383, in _configure_host_entries
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers vni)
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py", line 336, in _configure_port_binding
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers vni)
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus/nexus_network_driver.py", line 322, in create_and_trunk_vlan
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers self.create_vlan(nexus_host, vlan_id, vlan_name, vni)
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus/nexus_network_driver.py", line 239, in create_vlan
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers allowed_exc_strs=["VLAN with the same name exists"])
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers File "/opt/stack/neutron/neutron/plugins/ml2/drivers/cisco/nexus/nexus_network_driver.py", line 113, in _edit_config
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers exc=e)

2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers NexusConfigFailed: Failed to configure Nexus switch: 172.20.231.5 XML: <<<<<<<

2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers <configure>
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers <__XML__MODE__exec_configure>
2015-02-14 17:57:56.824 TRACE neutron.plugins.ml2.managers ...

Read more...

Sam Betts (sambetts)
Changed in networking-cisco:
milestone: none → 1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.