sanity: subnet creation failed
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.2 |
Invalid
|
High
|
Senthilnathan Murugappan | |||
Trunk |
Invalid
|
High
|
Senthilnathan Murugappan |
Bug Description
During sanity run of 3.2.0.0-8 Kilo observed few instances of subnet_vnc object being None hence subnet creation has failed.
contrail logs are available at /cs-shared/
Python 2.7.6: /usr/bin/python
Mon Dec 5 01:07:36 2016
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/
1100 def handler_
1101 try:
1102 response = handler(*args, **kwargs)
1103 return response
1104 except Exception as e:
response undefined
handler = <bound method NeutronPluginIn
args = ()
kwargs = {}
/usr/lib/
373 return self.plugin_
374 elif context[
375 return self.plugin_
376 elif context[
377 return self.plugin_
self = <vnc_openstack.
self.plugin_
context = {'is_admin': True, 'operation': 'CREATE', 'roles': ['admin'], 'tenant': '7cbccb4d17aa48
subnet = {'fields': None, 'filters': None, 'resource': {'cidr': '30fb:8c65:
/usr/lib/
299 try:
300 cfgdb = self._get_
301 subnet_info = cfgdb.subnet_
302 return self._make_
303 except Exception as e:
subnet_info undefined
cfgdb = <vnc_openstack.
cfgdb.subnet_create = <bound method DBInterface.wrapper of <vnc_openstack.
subnet = {'fields': None, 'filters': None, 'resource': {'cidr': '30fb:8c65:
/usr/lib/
2492 def wrapper(self, *args, **kwargs):
2493 self._connected
2494 return func(self, *args, **kwargs)
2495
2496 return wrapper
func = <function subnet_create>
self = <vnc_openstack.
args = ({'cidr': '30fb:8c65:
kwargs = {}
/usr/lib/
2779 subnet_vnc = self._subnet_
2780 subnet_info = self._subnet_
2781 ipam_fq_name)
2782
2783 return subnet_info
ipam_fq_name = ['default-domain', 'default-project', 'default-
/usr/lib/
1462 sn_q_dict = {}
1463 extra_dict = {}
1464 sn_name = subnet_
1465 if sn_name is not None:
1466 sn_q_dict['name'] = sn_name
sn_name undefined
subnet_vnc = None
subnet_
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__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 = ("'NoneType' object has no attribute 'get_subnet_
message = "'NoneType' object has no attribute 'get_subnet_name'"
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/
response = handler(*args, **kwargs)
File "/usr/lib/
return self.plugin_
File "/usr/lib/
subnet_info = cfgdb.subnet_
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
ipam_fq_name)
File "/usr/lib/
sn_name = subnet_
AttributeError: 'NoneType' object has no attribute 'get_subnet_name'
tags: | removed: sanity |
This happens in build 12 also
Logs in: /cs-shared/ test_runs/ nodei13- vm2/jenkins- ubuntu- 14-04_liberty_ Multi_Node_ Sanity- 210/nodei13- vm2