Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2013-01-28 16:21:42,317 script(Cisco.IOS.get_spanning_tree,b777.line-r.ru,**{}) failed: <type 'exceptions.AttributeError'>
- 'NoneType' object has no attribute 'group'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 152)
- Function: process_mstp
- 145 v = self.cli("show spanning-tree mst configuration")
- 146 match = self.rx_mstp_region.search(v)
- 147 r = {
- 148 "mode": "MSTP",
- 149 "instances": [],
- 150 "configuration": {
- 151 "MSTP": {
- 152 ==> "region": match.group("region"),
- 153 "revision": match.group("revision"),
- 154 }
- 155 }
- 156 }
- 157 iv = {} # instance -> vlans
- 158 for instance, vlans in self.rx_mstp_instance.findall(v):
- Variables:
- self = <Script(script-213.108.208.61-Cisco.IOS.get_spanning_tree, started 34378370432)>
- cli_stp = '\nMST0\n Spanning tree enabled protocol mstp\n Root ID Priority 32768\n Address 0007.b32a.d000\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)\n Address 0007.b32a.d000\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\nInterface Role Sts Cost Prio.Nbr Type\n---------------- ---- --- --------- -------- --------------------------------\nGi2/5 Desg FWD 20000 128.133 Edge P2p \nGi2/10 Desg FWD 20000 128.138 Edge P2p \nGi2/11 Desg FWD 20000 128.139 Edge P2p \nGi2/12 Desg FWD 20000 128.140 Edge P2p \nGi2/13 Desg FWD 20000 128.141 Edge P2p \nGi2/14 Desg FWD 20000 128.142 Edge P2p \nGi2/15 Desg FWD 20000 128.143 P2p \nGi2/16 Desg FWD 20000 128.144 Edge P2p \nPo1 Desg FWD 10000 128.1665 P2p \nPo2 Desg FWD 10000 128.1666 P2p \n\n'
- ports = {0: {'Po 2': {'state': 'forwarding', 'edge': False, 'role': 'designated', 'point_to_point': True}, 'Po 1': {'state': 'forwarding', 'edge': False, 'role': 'designated', 'point_to_point': True}, 'Gi 2/15': {'state': 'forwarding', 'edge': False, 'role': 'designated', 'point_to_point': True}, 'Gi 2/14': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/16': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/11': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/10': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/13': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/12': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/5': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}}}
- match = None
- v = 'Name []\nRevision 0 Instances configured 1\n\nInstance Vlans mapped\n-------- ---------------------------------------------------------------------\n0 1-4094\n-------------------------------------------------------------------------------\n'
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 204)
- Function: execute
- 197 def execute(self):
- 198 v = self.cli("show spanning-tree")
- 199 if "Spanning tree enabled protocol ieee" in v:
- 200 return self.process_pvst(v, proto="PVST+")
- 201 elif "Spanning tree enabled protocol rstp" in v:
- 202 return self.process_pvst(v, proto="rapid-PVST+")
- 203 elif "Spanning tree enabled protocol mstp" in v:
- 204 ==> return self.process_mstp(v)
- 205 elif "No spanning tree instance exists" in v \
- 206 or "No spanning tree instances exist" in v:
- 207 return {"mode": "None", "instances": []}
- Variables:
- self = <Script(script-213.108.208.61-Cisco.IOS.get_spanning_tree, started 34378370432)>
- v = '\nMST0\n Spanning tree enabled protocol mstp\n Root ID Priority 32768\n Address 0007.b32a.d000\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)\n Address 0007.b32a.d000\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\nInterface Role Sts Cost Prio.Nbr Type\n---------------- ---- --- --------- -------- --------------------------------\nGi2/5 Desg FWD 20000 128.133 Edge P2p \nGi2/10 Desg FWD 20000 128.138 Edge P2p \nGi2/11 Desg FWD 20000 128.139 Edge P2p \nGi2/12 Desg FWD 20000 128.140 Edge P2p \nGi2/13 Desg FWD 20000 128.141 Edge P2p \nGi2/14 Desg FWD 20000 128.142 Edge P2p \nGi2/15 Desg FWD 20000 128.143 P2p \nGi2/16 Desg FWD 20000 128.144 Edge P2p \nPo1 Desg FWD 10000 128.1665 P2p \nPo2 Desg FWD 10000 128.1666 P2p \n\n'
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/script/script.py (Line: 419)
- Function: guarded_run
- 412 return result
- 413 except KeyError:
- 414 self.debug("Not in call cache: %r, %r" % (self.name,
- 415 self.kwargs))
- 416 pass
- 417 # Calling script body
- 418 self._thread_id = thread.get_ident()
- 419 ==> result = self.execute(**self.kwargs)
- 420 # Enforce interface result checking
- 421 for i in self.implements:
- 422 result = i.script_clean_result(self.profile, result)
- 423 # Cache result when required
- 424 if self.cache and self.parent is not None:
- 425 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetspanningtree.IGetSpanningTree object at 0x804da6b10>
- self = <Script(script-213.108.208.61-Cisco.IOS.get_spanning_tree, started 34378370432)>
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/script/script.py (Line: 442)
- Function: run
- 435
- 436 def run(self):
- 437 """Script thread worker method"""
- 438 self.debug("Running")
- 439 result = None
- 440 try:
- 441 with self.cancelable():
- 442 ==> result = self.guarded_run()
- 443 except self.TimeOutError:
- 444 self.error("Timed out")
- 445 self.e_timeout = True
- 446 except CancelledError:
- 447 self.error("Cancelled")
- 448 self.e_cancel = True
- Variables:
- self = <Script(script-213.108.208.61-Cisco.IOS.get_spanning_tree, started 34378370432)>
- r = ["<type 'exceptions.AttributeError'>", "'NoneType' object has no attribute 'group'"]
- result = None
- v = AttributeError("'NoneType' object has no attribute 'group'",)
- tb = <traceback object at 0x80619f290>
- t = <type 'exceptions.AttributeError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2013-01-28 16:21:42,325 MRT task=3783078/3922125 object=b777.line-r.ru(213.108.208.61) script=Cisco.IOS.get_spanning_tree status=failed code=14 error=<type 'exceptions.AttributeError'>
- 'NoneType' object has no attribute 'group'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 152)
- Function: process_mstp
- 145 v = self.cli("show spanning-tree mst configuration")
- 146 match = self.rx_mstp_region.search(v)
- 147 r = {
- 148 "mode": "MSTP",
- 149 "instances": [],
- 150 "configuration": {
- 151 "MSTP": {
- 152 ==> "region": match.group("region"),
- 153 "revision": match.group("revision"),
- 154 }
- 155 }
- 156 }
- 157 iv = {} # instance -> vlans
- 158 for instance, vlans in self.rx_mstp_instance.findall(v):
- Variables:
- self = <Script(script-213.108.208.61-Cisco.IOS.get_spanning_tree, started 34378370432)>
- cli_stp = '\nMST0\n Spanning tree enabled protocol mstp\n Root ID Priority 32768\n Address 0007.b32a.d000\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)\n Address 0007.b32a.d000\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\nInterface Role Sts Cost Prio.Nbr Type\n---------------- ---- --- --------- -------- --------------------------------\nGi2/5 Desg FWD 20000 128.133 Edge P2p \nGi2/10 Desg FWD 20000 128.138 Edge P2p \nGi2/11 Desg FWD 20000 128.139 Edge P2p \nGi2/12 Desg FWD 20000 128.140 Edge P2p \nGi2/13 Desg FWD 20000 128.141 Edge P2p \nGi2/14 Desg FWD 20000 128.142 Edge P2p \nGi2/15 Desg FWD 20000 128.143 P2p \nGi2/16 Desg FWD 20000 128.144 Edge P2p \nPo1 Desg FWD 10000 128.1665 P2p \nPo2 Desg FWD 10000 128.1666 P2p \n\n'
- ports = {0: {'Po 2': {'state': 'forwarding', 'edge': False, 'role': 'designated', 'point_to_point': True}, 'Po 1': {'state': 'forwarding', 'edge': False, 'role': 'designated', 'point_to_point': True}, 'Gi 2/15': {'state': 'forwarding', 'edge': False, 'role': 'designated', 'point_to_point': True}, 'Gi 2/14': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/16': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/11': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/10': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/13': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/12': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}, 'Gi 2/5': {'state': 'forwarding', 'edge': True, 'role': 'designated', 'point_to_point': True}}}
- match = None
- v = 'Name []\nRevision 0 Instances configured 1\n\nInstance Vlans mapped\n-------- ---------------------------------------------------------------------\n0 1-4094\n-------------------------------------------------------------------------------\n'
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 204)
- Function: execute
- 197 def execute(self):
- 198 v = self.cli("show spanning-tree")
- 199 if "Spanning tree enabled protocol ieee" in v:
- 200 return self.process_pvst(v, proto="PVST+")
- 201 elif "Spanning tree enabled protocol rstp" in v:
- 202 return self.process_pvst(v, proto="rapid-PVST+")
- 203 elif "Spanning tree enabled protocol mstp" in v:
- 204 ==> return self.process_mstp(v)
- 205 elif "No spanning tree instance exists" in v \
- 206 or "No spanning tree instances exist" in v:
- 207 return {"mode": "None", "instances": []}
- Variables:
- self = <Script(script-213.108.208.61-Cisco.IOS.get_spanning_tree, started 34378370432)>
- v = '\nMST0\n Spanning tree enabled protocol mstp\n Root ID Priority 32768\n Address 0007.b32a.d000\n This bridge is the root\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\n Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)\n Address 0007.b32a.d000\n Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec\n\nInterface Role Sts Cost Prio.Nbr Type\n---------------- ---- --- --------- -------- --------------------------------\nGi2/5 Desg FWD 20000 128.133 Edge P2p \nGi2/10 Desg FWD 20000 128.138 Edge P2p \nGi2/11 Desg FWD 20000 128.139 Edge P2p \nGi2/12 Desg FWD 20000 128.140 Edge P2p \nGi2/13 Desg FWD 20000 128.141 Edge P2p \nGi2/14 Desg FWD 20000 128.142 Edge P2p \nGi2/15 Desg FWD 20000 128.143 P2p \nGi2/16 Desg FWD 20000 128.144 Edge P2p \nPo1 Desg FWD 10000 128.1665 P2p \nPo2 Desg FWD 10000 128.1666 P2p \n\n'
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/script/script.py (Line: 419)
- Function: guarded_run
- 412 return result
- 413 except KeyError:
- 414 self.debug("Not in call cache: %r, %r" % (self.name,
- 415 self.kwargs))
- 416 pass
- 417 # Calling script body
- 418 self._thread_id = thread.get_ident()
- 419 ==> result = self.execute(**self.kwargs)
- 420 # Enforce interface result checking
- 421 for i in self.implements:
- 422 result = i.script_clean_result(self.profile, result)
- 423 # Cache result when required
- 424 if self.cache and self.parent is not None:
- 425 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetspanningtree.IGetSpanningTree object at 0x804da6b10>
- self = <Script(script-213.108.208.61-Cisco.IOS.get_spanning_tree, started 34378370432)>
- ------------------------------------------------------------------------
- File: /usr/local/noc/sa/script/script.py (Line: 442)
- Function: run
- 435
- 436 def run(self):
- 437 """Script thread worker method"""
- 438 self.debug("Running")
- 439 result = None
- 440 try:
- 441 with self.cancelable():
- 442 ==> result = self.guarded_run()
- 443 except self.TimeOutError:
- 444 self.error("Timed out")
- 445 self.e_timeout = True
- 446 except CancelledError:
- 447 self.error("Cancelled")
- 448 self.e_cancel = True
- Variables:
- self = <Script(script-213.108.208.61-Cisco.IOS.get_spanning_tree, started 34378370432)>
- r = ["<type 'exceptions.AttributeError'>", "'NoneType' object has no attribute 'group'"]
- result = None
- v = AttributeError("'NoneType' object has no attribute 'group'",)
- tb = <traceback object at 0x80619f290>
- t = <type 'exceptions.AttributeError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement