schema error(UnboundLocalError) while updating policy leading to loss of traffic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
High
|
Sachin Bansal | ||
R2.1 |
Fix Committed
|
High
|
Sachin Bansal |
Bug Description
R2.1 Build 26 Ubuntu 14.04 multi node setup
p1 is applied to vn2 and vn1 with Rules :
deny protocol tcp network vn1 ports any <> network vn1 ports any
deny protocol any 10.1.1.9/32 ports any <> 10.1.1.3/32 ports any
pass protocol any network vn1 ports any <> network vn2 ports any services srx1
Now , the second rule is updated (from deny->pass) so that traffic is allowed from 10.1.1.9 to 10.1.1.3
The below schema error is seen continuously ( every second)
Network policy shows the updated values. But the access-control-list continues to have the old rule (the one with deny)
Logs will be in http://
<type 'exceptions.
Python 2.7.6: /usr/bin/python
Thu Feb 12 12:18:55 2015
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/
3279 pollreq = PollRequest(
3280 result = arc_mapc.
3281 transformer.
3282 except Exception as e:
3283 if type(e) == socket.error:
transformer = <schema_
transformer.
result = '<?xml version="1.0" encoding="UTF-8" standalone=
/usr/lib/
2957
2958 if action.
2959 virtual_
2960
2961 # end for acl_rule_list
virtual_network = <schema_
virtual_
connected_network undefined
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Local name referenced but not bound to a value.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("local variable 'connected_network' referenced before assignment",)
message = "local variable 'connected_network' referenced before assignment"
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/
transformer
File "/usr/lib/
virtual_
UnboundLocalError: local variable 'connected_network' referenced before assignment
<type 'exceptions.
Python 2.7.6: /usr/bin/python
Thu Feb 12 12:18:57 2015
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/
3279 pollreq = PollRequest(
3280 result = arc_mapc.
3281 transformer.
3282 except Exception as e:
3283 if type(e) == socket.error:
transformer = <schema_
transformer.
result = '<?xml version="1.0" encoding="UTF-8" standalone=
/usr/lib/
2957
2958 if action.
2959 virtual_
2960
2961 # end for acl_rule_list
virtual_network = <schema_
virtual_
connected_network undefined
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Local name referenced but not boundto a value.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("local variable 'connected_network' referenced before assignment",)
message = "local variable 'connected_network' referenced before assignment"
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/
transformer
File "/usr/lib/
virtual_
UnboundLocalError: local variable 'connected_network' referenced before assignment
Changed in juniperopenstack: | |
status: | New → In Progress |
It is easily reproducible with the above steps