[EVPN VXLAN] DM traceback while restarting DM

Bug #1732784 reported by chhandak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
Critical
Suresh Balineni
R4.1
Fix Committed
Critical
Suresh Balineni
Trunk
New
Critical
Suresh Balineni

Bug Description

Observed following DM traceback while restarting device-manager. DM is not pushing any config to MX

DM Traceback
-------------
11/16/2017 12:50:38 PM [contrail-device-manager]: Next Index: esi, index:(00:11:22:33:44:55:66:77:88:11, 127)
11/16/2017 12:50:38 PM [contrail-device-manager]: Next Index: esi, index:(00:11:22:33:44:55:66:77:88:99, 126)
11/16/2017 12:50:38 PM [contrail-device-manager]: ae_id_map={'00:11:22:33:44:55:66:77:88:11': 127L, '00:11:22:33:44:55:66:77:88:99': 126L}
11/16/2017 12:50:39 PM [contrail-device-manager]: Exception: 'str' object has no attribute 'export_xml'Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/device_manager/db.py", line 216, in nc_handler
    self.push_config()
  File "/usr/lib/python2.7/dist-packages/device_manager/db.py", line 521, in push_config
    config_size = self.config_manager.push_conf()
  File "/usr/lib/python2.7/dist-packages/device_manager/mx_conf.py", line 827, in push_conf
    return self.send_conf()
  File "/usr/lib/python2.7/dist-packages/device_manager/juniper_conf.py", line 313, in send_conf
    return self.device_send(conf, default_operation, operation)
  File "/usr/lib/python2.7/dist-packages/device_manager/juniper_conf.py", line 131, in device_send
    config_str = self.serialize(conf)
  File "/usr/lib/python2.7/dist-packages/device_manager/juniper_conf.py", line 291, in serialize
    config.export_xml(xml_data, 1)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 14382, in export_xml
    self.exportChildren(outfile, level + 1, namespace_, name_, pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 14400, in exportChildren
    self.configuration.export_xml(outfile, level, namespace_, name_='configuration', pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 14236, in export_xml
    self.exportChildren(outfile, level + 1, namespace_, name_, pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 14249, in exportChildren
    self.groups.export_xml(outfile, level, namespace_, name_='groups', pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 13797, in export_xml
    self.exportChildren(outfile, level + 1, namespace_, name_, pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 13824, in exportChildren
    self.protocols.export_xml(outfile, level, namespace_, name_='protocols', pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 6527, in export_xml
    self.exportChildren(outfile, level + 1, namespace_, name_, pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 6543, in exportChildren
    self.bgp.export_xml(outfile, level, namespace_, name_='bgp', pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 6356, in export_xml
    self.exportChildren(outfile, level + 1, namespace_, name_, pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 6371, in exportChildren
    group_.export_xml(outfile, level, namespace_, name_='group', pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 6099, in export_xml
    self.exportChildren(outfile, level + 1, namespace_, name_, pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 6133, in exportChildren
    self.family.export_xml(outfile, level, namespace_, name_='family', pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 1703, in export_xml
    self.exportChildren(outfile, level + 1, namespace_, name_, pretty_print=pretty_print)
  File "/usr/lib/python2.7/dist-packages/device_api/juniper_common_xsd.py", line 1716, in exportChildren
    self.inet.export_xml(outfile, level, namespace_, name_='inet', pretty_print=pretty_print)
AttributeError: 'str' object has no attribute 'export_xml'

chhandak (chhandak)
Changed in juniperopenstack:
importance: Undecided → Critical
assignee: nobody → Suresh Balineni (sbalineni)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37604
Submitter: Suresh Balineni (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37604
Committed: http://github.com/Juniper/contrail-controller/commit/61ffc2cf4996e0c41a3d791adcc2c5a5ef44a4b5
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 61ffc2cf4996e0c41a3d791adcc2c5a5ef44a4b5
Author: sbalineni <email address hidden>
Date: Thu Nov 16 15:04:20 2017 -0800

[DM]: Do not try to configure unsupported BGP Address families

- Configure only provisioned address families
- currently DM does not configure inet address family type
- Added support for inet address family:

<bgp>
<group>
<junos:comment>/* BGP Router: 5b10-mx80-2, UUID: d29e9958-7728-4288-b70b-6c129c6661a7 */</junos:comment>
<name>_contrail_asn-65000</name>
<type>internal</type>
<local-address>172.16.5.10</local-address>
<hold-time>90</hold-time>
<family>
<inet>
<unicast></unicast>
</inet>
<inet-vpn>
<unicast></unicast>
</inet-vpn>
<inet6-vpn>
<unicast></unicast>
</inet6-vpn>
<evpn>
<signaling></signaling>
</evpn>
<route-target></route-target>
</family>

Closes-Bug: #1732784

Change-Id: I84ed8eea8709b9c4d5ba99bc3a8cb85b40be0b10

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/37632
Submitter: Suresh Balineni (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37632
Committed: http://github.com/Juniper/contrail-controller/commit/a30bda7e01baa5160047fe84fbe1855c6d66a7f0
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit a30bda7e01baa5160047fe84fbe1855c6d66a7f0
Author: sbalineni <email address hidden>
Date: Thu Nov 16 15:04:20 2017 -0800

[DM]: Do not try to configure unsupported BGP Address families

- Configure only provisioned address families
- currently DM does not configure inet address family type
- Added support for inet address family:

<bgp>
<group>
<junos:comment>/* BGP Router: 5b10-mx80-2, UUID: d29e9958-7728-4288-b70b-6c129c6661a7 */</junos:comment>
<name>_contrail_asn-65000</name>
<type>internal</type>
<local-address>172.16.5.10</local-address>
<hold-time>90</hold-time>
<family>
<inet>
<unicast></unicast>
</inet>
<inet-vpn>
<unicast></unicast>
</inet-vpn>
<inet6-vpn>
<unicast></unicast>
</inet6-vpn>
<evpn>
<signaling></signaling>
</evpn>
<route-target></route-target>
</family>

Closes-Bug: #1732784

Change-Id: I84ed8eea8709b9c4d5ba99bc3a8cb85b40be0b10
(cherry picked from commit 61ffc2cf4996e0c41a3d791adcc2c5a5ef44a4b5)

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.