netns SI not getting launched ( get_virtual_machine_refs() on vmi_obj which is None)
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R1.1 |
Fix Committed
|
High
|
Ignatious Johnson Christopher | |||
Trunk |
Fix Committed
|
High
|
Ignatious Johnson Christopher |
Bug Description
R1.20 Build 60 Ubuntu Single node Icehouse setup
In this test, port-list with network_id and device_id filter was failing. On debugging, it was seen that the SI was not launched at all
root@nodec3:
+------
| id | name | external_
+------
| 174433e5-
+------
root@nodec3:
root@nodec3:
root@nodec3:
+------
| Field | Value |
+------
| admin_state_up | False |
| contrail:fq_name | default-domain |
| | RoutersTest-
| | router--1390083012 |
| external_
| id | 174433e5-
| name | router--1390083012 |
| status | ACTIVE |
| tenant_id | 9649cb3affff416
+------
root@nodec3:
| 9649cb3affff416
root@nodec3:
root@nodec3:
root@nodec3:
root@nodec3:
svc_monitor.err* is full of these :
================
<type 'exceptions.
Python 2.7.3: /usr/bin/python
Mon Oct 20 01:18:39 2014
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/
535 gevent.
536 try:
537 timer_callback(
538 except Exception:
539 cgitb_error_
global timer_callback = <function timer_callback>
monitor = <svc_monitor.
/usr/lib/
527 if status == 'ERROR':
528 monitor.
529 monitor.
530 elif status == 'DELETE':
531 monitor.
monitor = <svc_monitor.
monitor.
si_fq_name_str = 'default-
/usr/lib/
265 fq_name = st_list[0]['to']
266 st_obj = self._vnc_
267 self._create_
268 # end _restart_svc
269
self = <svc_monitor.
self._create_
st_obj = <vnc_api.
si_obj = <vnc_api.
/usr/lib/
281 self.vm_
282 elif virt_type == 'network-
283 self.netns_
284
285 def _delete_
self = <svc_monitor.
self.netns_manager = <svc_monitor.
self.netns_
st_obj = <vnc_api.
si_obj = <vnc_api.
/usr/lib/
659 user_visible=
660 ha_mode=
661 if vmi_obj.
662 vmi_obj.
663 self._vnc_
vmi_obj = None
vmi_obj.
builtinNone = None
<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_virtual_
message = "'NoneType' object has no attribute 'get_virtual_
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/
timer_
File "/usr/lib/
monitor.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
if vmi_obj.
AttributeError: 'NoneType' object has no attribute 'get_virtual_
R1.10: /github. com/Juniper/ contrail- provisioning/ commit/ 02addb523569843 8208179943602ea c12cb7688d
https:/