Configuration & Administration

Expand all | Collapse all

Unable to model Juniper edge router

  • 1.  Unable to model Juniper edge router

    Posted 26 days ago
      |   view attached
    Hi,

    I was unable to model the Juniper Edge router, I've attached the logs as shown below. Request your support here.
    Also, I've performed the zenmodeler against the device, logs for this has been attached.

    2020-11-02 10:25:16,189 INFO zen.ZenModeler: Connecting to localhost:8789
    2020-11-02 10:25:16,234 INFO zen.ZenModeler: Connected to the zenhub/1 instance
    2020-11-02 10:25:16,235 INFO zen.ZenModeler: Getting configuration from ZenHub...
    2020-11-02 10:25:16,758 INFO zen.ZenModeler: Starting modeling in 0 seconds.
    2020-11-02 10:25:16,758 INFO zen.ZenModeler: Starting collector loop #001...
    2020-11-02 10:25:16,758 INFO zen.ZenModeler: Collecting for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:16,759 INFO zen.ZenModeler: Got 1 devices to be scanned during collector loop #001
    2020-11-02 10:25:17,436 INFO zen.ZenModeler: Filled collection slots for 1 of 1 devices during collector loop #001
    2020-11-02 10:25:17,436 INFO zen.ZenModeler: skipping WMI-based collection, PySamba zenpack not installed
    2020-11-02 10:25:17,436 INFO zen.ZenModeler: Collect on device sg1-edg-1a-r6-re1 for collector loop #001
    2020-11-02 10:25:17,567 INFO zen.ZenModeler: Python collection device sg1-edg-1a-r6-re1
    2020-11-02 10:25:17,567 INFO zen.ZenModeler: plugins: CTL.python.JuniperExpClusterMap, zenoss.snmp.ClientMACs, CTL.python.JuniperExpEnvMap
    2020-11-02 10:25:17,567 INFO zen.PythonClient: sg1-edg-1a-r6-re1: collecting data
    2020-11-02 10:25:19,967 ERROR zen.PythonClient: Error encountered during connection. Please check
    2020-11-02 10:25:19,967 INFO zen.PythonClient: sg1-edg-1a-r6-re1: collecting client MAC addresses
    2020-11-02 10:25:19,998 INFO zen.PythonClient: sg1-edg-1a-r6-re1: collecting data
    2020-11-02 10:25:22,730 ERROR zen.PythonClient: Error encountered during connection. Please check
    2020-11-02 10:25:22,732 INFO zen.ZenModeler: No command plugins found for sg1-edg-1a-r6-re1
    2020-11-02 10:25:22,735 INFO zen.ZenModeler: SNMP collection device sg1-edg-1a-r6-re1
    2020-11-02 10:25:22,735 INFO zen.ZenModeler: plugins: zenoss.snmp.NewDeviceMap, zenoss.snmp.DeviceMap, zenoss.snmp.InterfaceMap, zenoss.snmp.IpServiceMap, JuniperDeviceMap, JuniperFanMap, JuniperPowerSupplyMap, JuniperRoutingEngineMap, JuniperFPCMap, JuniperPICMap, JuniperBGPMap, JuniperIpSecNATMap, zenoss.snmp.HRFileSystemMap, CTL.snmp.JuniperExpClusterSessionMap, CTL.snmp.JuniperExpCompStateMap, CTL.snmp.JuniperExpIpSecVPNMap, CTL.snmp.JuniperExpNATPMap, CTL.snmp.JuniperExpNATRMap, CTL.snmp.JuniperExpRIMap, CTL.snmp.JuniperExpRedundancyMap, CTL.snmp.JuniperExpSPUMap, CTL.snmp.JuniperExpZoneMap, zenoss.snmp.CDPLLDPDiscover, CTL.snmp.JuniperExpProcessMap
    2020-11-02 10:25:22,738 INFO zen.ZenModeler: No portscan plugins found for sg1-edg-1a-r6-re1
    2020-11-02 10:25:22,739 INFO zen.ZenModeler: Running 2 clients
    2020-11-02 10:25:22,812 INFO zen.PythonClient: Python client finished collection for sg1-edg-1a-r6-re1
    2020-11-02 10:25:22,812 WARNING zen.ZenModeler: The plugin CTL.python.JuniperExpClusterMap returned no results.
    2020-11-02 10:25:22,812 WARNING zen.ZenModeler: The plugin CTL.python.JuniperExpEnvMap returned no results.
    2020-11-02 10:25:22,812 INFO zen.ZenModeler: sg1-edg-1a-r6-re1: processing client MAC addresses
    2020-11-02 10:25:22,812 INFO zen.ZenModeler: No change in configuration detected
    2020-11-02 10:25:22,812 INFO zen.ZenModeler: Finished processing client within collector loop #001
    2020-11-02 10:25:26,867 INFO zen.SnmpClient: snmp client finished collection for sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,868 INFO zen.ZenModeler: Processing zenoss.snmp.NewDeviceMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,868 INFO zen.ZenModeler: processing zenoss.snmp.DeviceMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,869 INFO zen.ZenModeler: Modeler zenoss.snmp.InterfaceMap processing data for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,869 WARNING zen.ZenModeler: Ignoring IP address with 0.0.0.0 netmask: fec0::a:0:0:5/0
    2020-11-02 10:25:26,870 INFO zen.ZenModeler: processing zenoss.snmp.IpServiceMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,870 INFO zen.ZenModeler: processing JuniperDeviceMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,871 INFO zen.ZenModeler: processing JuniperFanMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,871 INFO zen.ZenModeler: processing JuniperPowerSupplyMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,872 INFO zen.ZenModeler: processing JuniperRoutingEngineMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,873 INFO zen.ZenModeler: processing JuniperFPCMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,874 INFO zen.ZenModeler: processing JuniperPICMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,876 INFO zen.ZenModeler: processing JuniperBGPMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,876 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperBGPMap plugin
    2020-11-02 10:25:26,876 WARNING zen.ZenModeler: Data= {'jnxBgpM2PeerTable': {}}
    2020-11-02 10:25:26,877 INFO zen.ZenModeler: processing JuniperIpSecNATMap for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,877 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperIpSecNATMap plugin
    2020-11-02 10:25:26,877 WARNING zen.ZenModeler: Data= {'jnxJsSrcNatStatsTable': {}}
    2020-11-02 10:25:26,877 INFO zen.ZenModeler: Modeler zenoss.snmp.HRFileSystemMap processing data for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,878 INFO zen.ZenModeler: Skipping /dev/gpt/junos: root file system, mounted on: /.mount (flashMemory) as it matches zFileSystemMapIgnoreTypes.
    2020-11-02 10:25:26,878 INFO zen.ZenModeler: Skipping procfs: process file system, mounted on: /.mount/proc (virtualMemory) as it matches zFileSystemMapIgnoreTypes.
    2020-11-02 10:25:26,881 INFO zen.ZenModeler: processing Juniper cluster sessions State for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,881 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpClusterSessionMap plugin for cluster sessions
    2020-11-02 10:25:26,881 WARNING zen.ZenModeler: Data= {'jnxSPUClusterObjectsEntry': {}}
    2020-11-02 10:25:26,882 INFO zen.ZenModeler: processing Juniper Components for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,882 INFO zen.ZenModeler: processing Juniper VPNs for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,882 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpIpSecVPNMap plugin for VPNs
    2020-11-02 10:25:26,882 WARNING zen.ZenModeler: Data= {'jnxIpSecTunnelMonEntry': {}, 'jnxIkeTunnelMonEntry': {}}
    2020-11-02 10:25:26,882 INFO zen.ZenModeler: processing Juniper NAT Pools for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,882 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpNATPMap plugin for NAT Pools
    2020-11-02 10:25:26,882 WARNING zen.ZenModeler: Data= {'jnxJsNatPoolEntry': {}}
    2020-11-02 10:25:26,883 INFO zen.ZenModeler: processing Juniper NAT Rules for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,883 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpNATRMap plugin for NAT Rules
    2020-11-02 10:25:26,883 WARNING zen.ZenModeler: Data= {'jnxJsNatRuleEntry': {}}
    2020-11-02 10:25:26,883 INFO zen.ZenModeler: processing Juniper Routing Instances for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,883 INFO zen.ZenModeler: processing Juniper Redundancy State for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,884 INFO zen.ZenModeler: processing Juniper SPU for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,884 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpSPUMap plugin for SPUs
    2020-11-02 10:25:26,888 WARNING zen.ZenModeler: Data= {'jnxJsSPUMonitoringObjectsEntry': {}, 'jnxOperatingEntry': {'4.1.2.0': {'jnxDescr': 'Middle Fan'}, '7.2.0.0': {'jnxDescr': 'FPC @ 1/*/*'}, '7.3.0.0': {'jnxDescr': 'FPC @ 2/*/*'}, '9.1.0.0': {'jnxDescr': 'Routing Engine 0'}, '9.2.0.0': {'jnxDescr': 'Routing Engine 1'}, '2.4.0.0': {'jnxDescr': 'PEM 3'}, '2.3.0.0': {'jnxDescr': 'PEM 2'}, '12.2.0.0': {'jnxDescr': 'CB 1'}, '2.1.0.0': {'jnxDescr': 'PEM 0'}, '4.1.3.0': {'jnxDescr': 'Rear Fan'}, '4.1.0.0': {'jnxDescr': 'Left Fan Tray'}, '1.1.0.0': {'jnxDescr': 'midplane'}, '2.2.0.0': {'jnxDescr': 'PEM 1'}, '12.1.0.0': {'jnxDescr': 'CB 0'}, '4.1.1.0': {'jnxDescr': 'Front Fan'}}}
    2020-11-02 10:25:26,888 INFO zen.ZenModeler: processing Juniper zones for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,889 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpZoneMap plugin for zones list
    2020-11-02 10:25:26,889 WARNING zen.ZenModeler: Data= {'jnxJsPolicyEntry': {}}
    2020-11-02 10:25:26,889 INFO zen.ZenModeler: Modeler zenoss.snmp.CDPLLDPDiscover processing data for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:26,889 INFO zen.ZenModeler: processing Juniper application processes for device sg1-edg-1a-r6-re1
    2020-11-02 10:25:46,190 INFO zen.ZenModeler: Counter modeledDevicesCount, value 1
    2020-11-02 10:25:46,190 INFO zen.ZenModeler: Counter eventCount, value 7
    2020-11-02 10:25:57,175 ERROR zen.ZenModeler: : Traceback (most recent call last):
    File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 105, in inner
    return callable(*args, **kw)
    File "/opt/zenoss/Products/ZenHub/services/ModelerService.py", line 163, in remote_applyDataMaps
    if adm._applyDataMap(device, map, commit=False):
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 132, in _applyDataMap
    return self._applyDataMapImpl(device, datamap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 196, in _applyDataMapImpl
    changed = self._updateRelationship(tobj, datamap)
    File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.PythonCollector-1.10.1-py2.7.egg/ZenPacks/zenoss/PythonCollector/patches/platform.py", line 38, in _updateRelationship
    return original(self, device, relmap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 268, in _updateRelationship
    objchange, obj = self._createRelObject(device, objmap, rname)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 459, in _createRelObject
    up_changed = self._updateObject(remoteObj, objmap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 385, in _updateObject
    setter(*args)
    File "/opt/zenoss/Products/ZenModel/IpInterface.py", line 372, in setIpAddresses
    self.addIpAddress(ip)
    File "/opt/zenoss/Products/ZenModel/IpInterface.py", line 312, in addIpAddress
    ipobj = networks.createIp(ip, netmask)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 541, in createIp
    net_obj = self.createNet(ip, netmask)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 458, in createNet
    self.rebalance(parent_net, subnet)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 487, in rebalance
    netobjParent.moveOrganizer(netobjPath, same_level_subnets_ids)
    File "/opt/zenoss/Products/ZenModel/Organizer.py", line 311, in moveOrganizer
    self._delObject(organizerName)
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 129, in _delObject
    ObjectManager._delObject(self, id, dp, suppress_events)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/ObjectManager.py", line 390, in _delObject
    notify(ObjectWillBeRemovedEvent(ob, self, id))
    File "/opt/zenoss/lib/python2.7/site-packages/zope/event/__init__.py", line 31, in notify
    subscriber(event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 32, in objectEventNotify
    zope.component.subscribers((event.object, event), None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/subscribers.py", line 101, in dispatchObjectWillBeMovedEvent
    dispatchToSublocations(ob, event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/subscribers.py", line 101, in dispatchObjectWillBeMovedEvent
    dispatchToSublocations(ob, event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 157, in onTreeSpanningComponentBeforeDelete
    affected_objects = ObjectsAffectedBySpanningComponent(ob)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 137, in __init__
    self.peers = self._set_component_peers(component)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 142, in _set_component_peers
    peers = component.get_indexable_peers()
    File "/opt/zenoss/Products/ZenModel/IpAddress.py", line 284, in get_indexable_peers
    if self.device():
    File "/opt/zenoss/Products/ZenModel/IpAddress.py", line 231, in device
    if iface: return iface.device()
    File "/opt/zenoss/Products/ZenModel/OSComponent.py", line 46, in device
    if os: return os.device()
    File "/opt/zenoss/Products/ZenModel/OperatingSystem.py", line 158, in device
    return self.getPrimaryParent()
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 92, in getPrimaryParent
    return self.__primary_parent__.primaryAq()
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 87, in primaryAq
    raise KeyError(self.id)
    KeyError: 'sg1-svc-1a-r6'
    Traceback (most recent call last):
    File "/opt/zenoss/Products/DataCollector/zenmodeler.py", line 716, in processClient
    if driver.next():
    File "/opt/zenoss/Products/ZenUtils/Driver.py", line 63, in result
    raise ex
    RemoteException: : Traceback (most recent call last):
    File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 105, in inner
    return callable(*args, **kw)
    File "/opt/zenoss/Products/ZenHub/services/ModelerService.py", line 163, in remote_applyDataMaps
    if adm._applyDataMap(device, map, commit=False):
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 132, in _applyDataMap
    return self._applyDataMapImpl(device, datamap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 196, in _applyDataMapImpl
    changed = self._updateRelationship(tobj, datamap)
    File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.PythonCollector-1.10.1-py2.7.egg/ZenPacks/zenoss/PythonCollector/patches/platform.py", line 38, in _updateRelationship
    return original(self, device, relmap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 268, in _updateRelationship
    objchange, obj = self._createRelObject(device, objmap, rname)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 459, in _createRelObject
    up_changed = self._updateObject(remoteObj, objmap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 385, in _updateObject
    setter(*args)
    File "/opt/zenoss/Products/ZenModel/IpInterface.py", line 372, in setIpAddresses
    self.addIpAddress(ip)
    File "/opt/zenoss/Products/ZenModel/IpInterface.py", line 312, in addIpAddress
    ipobj = networks.createIp(ip, netmask)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 541, in createIp
    net_obj = self.createNet(ip, netmask)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 458, in createNet
    self.rebalance(parent_net, subnet)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 487, in rebalance
    netobjParent.moveOrganizer(netobjPath, same_level_subnets_ids)
    File "/opt/zenoss/Products/ZenModel/Organizer.py", line 311, in moveOrganizer
    self._delObject(organizerName)
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 129, in _delObject
    ObjectManager._delObject(self, id, dp, suppress_events)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/ObjectManager.py", line 390, in _delObject
    notify(ObjectWillBeRemovedEvent(ob, self, id))
    File "/opt/zenoss/lib/python2.7/site-packages/zope/event/__init__.py", line 31, in notify
    subscriber(event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 32, in objectEventNotify
    zope.component.subscribers((event.object, event), None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/subscribers.py", line 101, in dispatchObjectWillBeMovedEvent
    dispatchToSublocations(ob, event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/subscribers.py", line 101, in dispatchObjectWillBeMovedEvent
    dispatchToSublocations(ob, event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 157, in onTreeSpanningComponentBeforeDelete
    affected_objects = ObjectsAffectedBySpanningComponent(ob)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 137, in __init__
    self.peers = self._set_component_peers(component)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 142, in _set_component_peers
    peers = component.get_indexable_peers()
    File "/opt/zenoss/Products/ZenModel/IpAddress.py", line 284, in get_indexable_peers
    if self.device():
    File "/opt/zenoss/Products/ZenModel/IpAddress.py", line 231, in device
    if iface: return iface.device()
    File "/opt/zenoss/Products/ZenModel/OSComponent.py", line 46, in device
    if os: return os.device()
    File "/opt/zenoss/Products/ZenModel/OperatingSystem.py", line 158, in device
    return self.getPrimaryParent()
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 92, in getPrimaryParent
    return self.__primary_parent__.primaryAq()
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 87, in primaryAq
    raise KeyError(self.id)
    KeyError: 'sg1-svc-1a-r6'
    2020-11-02 10:25:57,176 ERROR zen.ZenModeler: Client sg1-edg-1a-r6-re1 finished with message: [Failure instance: Traceback (failure with no frames): <class 'Products.ZenHub.PBDaemon.RemoteException'>: : Traceback (most recent call last):
    File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 105, in inner
    return callable(*args, **kw)
    File "/opt/zenoss/Products/ZenHub/services/ModelerService.py", line 163, in remote_applyDataMaps
    if adm._applyDataMap(device, map, commit=False):
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 132, in _applyDataMap
    return self._applyDataMapImpl(device, datamap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 196, in _applyDataMapImpl
    changed = self._updateRelationship(tobj, datamap)
    File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.PythonCollector-1.10.1-py2.7.egg/ZenPacks/zenoss/PythonCollector/patches/platform.py", line 38, in _updateRelationship
    return original(self, device, relmap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 268, in _updateRelationship
    objchange, obj = self._createRelObject(device, objmap, rname)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 459, in _createRelObject
    up_changed = self._updateObject(remoteObj, objmap)
    File "/opt/zenoss/Products/DataCollector/ApplyDataMap.py", line 385, in _updateObject
    setter(*args)
    File "/opt/zenoss/Products/ZenModel/IpInterface.py", line 372, in setIpAddresses
    self.addIpAddress(ip)
    File "/opt/zenoss/Products/ZenModel/IpInterface.py", line 312, in addIpAddress
    ipobj = networks.createIp(ip, netmask)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 541, in createIp
    net_obj = self.createNet(ip, netmask)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 458, in createNet
    self.rebalance(parent_net, subnet)
    File "/opt/zenoss/Products/ZenModel/IpNetwork.py", line 487, in rebalance
    netobjParent.moveOrganizer(netobjPath, same_level_subnets_ids)
    File "/opt/zenoss/Products/ZenModel/Organizer.py", line 311, in moveOrganizer
    self._delObject(organizerName)
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 129, in _delObject
    ObjectManager._delObject(self, id, dp, suppress_events)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/ObjectManager.py", line 390, in _delObject
    notify(ObjectWillBeRemovedEvent(ob, self, id))
    File "/opt/zenoss/lib/python2.7/site-packages/zope/event/__init__.py", line 31, in notify
    subscriber(event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/event.py", line 32, in objectEventNotify
    zope.component.subscribers((event.object, event), None)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/subscribers.py", line 101, in dispatchObjectWillBeMovedEvent
    dispatchToSublocations(ob, event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/OFS/subscribers.py", line 101, in dispatchObjectWillBeMovedEvent
    dispatchToSublocations(ob, event)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/container/contained.py", line 153, in dispatchToSublocations
    for ignored in zope.component.subscribers((sub, event), None):
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/component/registry.py", line 321, in subscribers
    return self.adapters.subscribers(objects, provided)
    File "/opt/zenoss/lib/python2.7/site-packages/zope/interface/adapter.py", line 585, in subscribers
    subscription(*objects)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 157, in onTreeSpanningComponentBeforeDelete
    affected_objects = ObjectsAffectedBySpanningComponent(ob)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 137, in __init__
    self.peers = self._set_component_peers(component)
    File "/opt/zenoss/Products/Zuul/catalog/events.py", line 142, in _set_component_peers
    peers = component.get_indexable_peers()
    File "/opt/zenoss/Products/ZenModel/IpAddress.py", line 284, in get_indexable_peers
    if self.device():
    File "/opt/zenoss/Products/ZenModel/IpAddress.py", line 231, in device
    if iface: return iface.device()
    File "/opt/zenoss/Products/ZenModel/OSComponent.py", line 46, in device
    if os: return os.device()
    File "/opt/zenoss/Products/ZenModel/OperatingSystem.py", line 158, in device
    return self.getPrimaryParent()
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 92, in getPrimaryParent
    return self.__primary_parent__.primaryAq()
    File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 87, in primaryAq
    raise KeyError(self.id)
    KeyError: 'sg1-svc-1a-r6'
    ]
    2020-11-02 10:25:57,176 INFO zen.ZenModeler: Finished processing client within collector loop #001
    2020-11-02 10:25:57,176 INFO zen.ZenModeler: Scan time: 40.42 seconds for collector loop #001
    2020-11-02 10:25:57,176 INFO zen.ZenModeler: Scanned 1 of 1 devices during collector loop #001
    2020-11-02 10:25:57,178 INFO zen.ZenModeler: Daemon ZenModeler shutting down
    2020-11-02 10:25:58,194 WARNING zen.publisher: Error sending metric: [Failure instance: Traceback: <type 'exceptions.ImportError'>: No module named pysamba.twisted.reactor
    --- <exception caught here> ---
    /opt/zenoss/Products/DataCollector/zenmodeler.py:23:<module>
    ]
    2020-11-02 10:25:58,205 INFO zen.publisher: publishing failed: [<twisted.python.failure.Failure twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion: Connection lost.>]
    2020-11-02 10:25:58,205 INFO zen.publisher: queue still contains 1 metrics


    ------------------------------
    Ambarish Kumar



    ------------------------------

    Attachment(s)

    txt
    zenmodeler output.txt   304K 1 version


  • 2.  RE: Unable to model Juniper edge router

    Posted 26 days ago
    Edited by Michael Rogers 26 days ago
    Ambarish,

    The first thing we can do with this modeler output is look for any explicit warning lines:

    grep -i warn juniperModelFail.txt

    2020-11-02 10:25:22,812 WARNING zen.ZenModeler: The plugin CTL.python.JuniperExpClusterMap returned no results.

    2020-11-02 10:25:22,812 WARNING zen.ZenModeler: The plugin CTL.python.JuniperExpEnvMap returned no results.

    2020-11-02 10:25:26,869 WARNING zen.ZenModeler: Ignoring IP address with 0.0.0.0 netmask: fec0::a:0:0:5/0

    2020-11-02 10:25:26,876 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperBGPMap plugin

    2020-11-02 10:25:26,876 WARNING zen.ZenModeler: Data= {'jnxBgpM2PeerTable': {}}

    2020-11-02 10:25:26,877 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperIpSecNATMap plugin

    2020-11-02 10:25:26,877 WARNING zen.ZenModeler: Data= {'jnxJsSrcNatStatsTable': {}}

    2020-11-02 10:25:26,881 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpClusterSessionMap plugin for cluster sessions 2020-11-02 10:25:26,881 WARNING zen.ZenModeler: Data= {'jnxSPUClusterObjectsEntry': {}}

    2020-11-02 10:25:26,882 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpIpSecVPNMap plugin for VPNs 2020-11-02 10:25:26,882 WARNING zen.ZenModeler: Data= {'jnxIpSecTunnelMonEntry': {}, 'jnxIkeTunnelMonEntry': {}}

    2020-11-02 10:25:26,882 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpNATPMap plugin for NAT Pools

    2020-11-02 10:25:26,882 WARNING zen.ZenModeler: Data= {'jnxJsNatPoolEntry': {}}

    2020-11-02 10:25:26,883 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpNATRMap plugin for NAT Rules

    2020-11-02 10:25:26,883 WARNING zen.ZenModeler: Data= {'jnxJsNatRuleEntry': {}}

    2020-11-02 10:25:26,884 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpSPUMap plugin for SPUs

    2020-11-02 10:25:26,888 WARNING zen.ZenModeler: Data= {'jnxJsSPUMonitoringObjectsEntry': {}, 'jnxOperatingEntry': {'4.1.2.0': {'jnxDescr': 'Middle Fan'}, '7.2.0.0': {'jnxDescr': 'FPC @ 1/*/*'}, '7.3.0.0': {'jnxDescr': 'FPC @ 2/*/*'}, '9.1.0.0': {'jnxDescr': 'Routing Engine 0'}, '9.2.0.0': {'jnxDescr': 'Routing Engine 1'}, '2.4.0.0': {'jnxDescr': 'PEM 3'}, '2.3.0.0': {'jnxDescr': 'PEM 2'}, '12.2.0.0': {'jnxDescr': 'CB 1'}, '2.1.0.0': {'jnxDescr': 'PEM 0'}, '4.1.3.0': {'jnxDescr': 'Rear Fan'}, '4.1.0.0': {'jnxDescr': 'Left Fan Tray'}, '1.1.0.0': {'jnxDescr': 'midplane'}, '2.2.0.0': {'jnxDescr': 'PEM 1'}, '12.1.0.0': {'jnxDescr': 'CB 0'}, '4.1.1.0': {'jnxDescr': 'Front Fan'}}}

    2020-11-02 10:25:26,889 WARNING zen.ZenModeler: No SNMP response from sg1-edg-1a-r6-re1 for the JuniperExpZoneMap plugin for zones list 2020-11-02 10:25:26,889 WARNING zen.ZenModeler: Data= {'jnxJsPolicyEntry': {}}

    2020-11-02 10:25:58,194 WARNING zen.publisher: Error sending metric: [Failure instance: Traceback: <type 'exceptions.ImportError'>: No module named pysamba.twisted.reactor​


    Eight of those lines specify that there was "No SNMP response" from a modeler plugin.  You might start by confirming that you can poll the SNMP OID tables scanned by these plugins by performing an snmpwalk.

    Some other questions that might point us in the right direction:

    1. Has this device ever modeled with these plugins before?  If yes, when did it stop working?
    2. Are any other devices modeling successfully with these plugins?  If yes, what are the differences between those devices and this one?
    3. What ZenPack provided these plugins?  If it is a community ZenPack, do you have a link to it so that its code can be reviewed?



    ------------------------------
    Michael J. Rogers
    Senior Instructor - Zenoss
    Austin TX
    ------------------------------