Exception due to vmi_obj being None while creating service vm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
High
|
Rudra Rugge | ||
R2.0 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
2.0-2397.el6 Ubuntu Icehouse Single node setup
Seen while running parallel sanity tests.
All system logs will be in http://
<type 'exceptions.
Python 2.6.6: /usr/bin/python
Fri Oct 17 10:41:22 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/
510 pollreq = PollRequest(
511 result = arc_mapc.
512 monitor.
513 except exceptions.
514 cgitb_error_
monitor = <svc_monitor.
monitor.
result = '<?xml version="1.0" encoding="UTF-8" standalone=
/usr/lib/
493 self.logger.log("%s with %s/%s"
494 % (funcname, meta_name, idents))
495 func(idents)
496 # end for meta
497 # end for result_type
func = <bound method SvcMonitor.
idents = {'service-
/usr/lib/
388
389 #launch VMs
390 self._create_
391 # end _addmsg_
392
self = <svc_monitor.
self._create_
st_obj = <vnc_api.
si_obj = <vnc_api.
/usr/lib/
280 virt_type = self._get_
281 if virt_type == 'virtual-machine':
282 self.vm_
283 elif virt_type == 'network-
284 self.netns_
self = <svc_monitor.
self.vm_manager = <svc_monitor.
self.vm_
st_obj = <vnc_api.
si_obj = <vnc_api.
/usr/lib/
470 else:
471 vm = self._create_
472 flavor, st_obj, si_obj, avail_zone)
473 if vm is None:
474 continue
flavor = u'contrail_
st_obj = <vnc_api.
si_obj = <vnc_api.
avail_zone = None
/usr/lib/
394 vmi_obj = self._create_
395 st_obj, si_obj)
396 nic_with_
397 nics_with_
398
nic_with_port = {}
vmi_obj = None
vmi_obj.get_uuid undefined
<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_uuid'",)
message = "'NoneType' object has no attribute 'get_uuid'"
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/
monitor.
File "/usr/lib/
func(idents)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
flavor, st_obj, si_obj, avail_zone)
File "/usr/lib/
nic_
AttributeError: 'NoneType' object has no attribute 'get_uuid'
tags: | added: blocker |
https:/ /github. com/Juniper/ contrail- controller/ commit/ 7cd97d2a70e43fa 1e3c2300f90bbf0 51a9099063