Sanity: test_vcenter_vm_interface_change fails due to usage of Project_Id
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Fix Released
|
Critical
|
Sarath | |||
R3.1 |
Fix Released
|
Critical
|
Sarath | |||
R3.2 |
Fix Released
|
Critical
|
Sarath | |||
Trunk |
Fix Committed
|
Critical
|
Sarath |
Bug Description
Part of recent fix below the project_id is used and this scenario not applicable to Vcenter-only.
-----------------
In VM Fixture read the VNobj with project_id
Install flavor if it isn't available
Closes-bug: 1634212
Change-Id: I43b0659dabc9ea
commit 86bfe8fd1b415b7
------------------
The below is the failure of test errors
2017-02-15 14:27:59,572 - DEBUG - VN ctest-net1-73316951 is not present in Agent 10.204.216.181
2017-02-15 14:27:59,580 - DEBUG - VN ctest-net1-73316951 is not present in Agent 10.204.216.182
2017-02-15 14:27:59,587 - DEBUG - VN ctest-net1-73316951 is not present in Agent 10.204.216.183
2017-02-15 14:27:59,587 - INFO - Validated that VN ctest-net1-73316951 is not in any agent
2017-02-15 14:27:59,608 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-net1-73316951 info
2017-02-15 14:28:07,036 - ERROR - <type 'exceptions.
Python 2.7.6: /usr/bin/python
Wed Feb 15 14:26:09 2017
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-
71 log.info('Initial checks done. Running the testcase now')
72 log.info('')
73 result = function(self, *args, **kwargs)
74 except KeyboardInterrupt:
75 raise
result = None
function = <function test_vcenter_
self = <scripts.
args = ()
kwargs = {}
/contrail-
126 "Ping from %s to %s is expected to fail" % (vm2_fixture.
127 vm1_fixture.
128 vm1_fixture.read()
129 assert vm1_fixture.
130 assert vm2_fixture.
vm1_fixture = <vm_test.VMFixture object>
vm1_fixture.read = <bound method VMFixture.read of <vm_test.VMFixture object>>
/contrail-
161 self.vn_names = self.orch.
162 self.vn_objs = [self.orch.
163 for x in self.vn_names]
164 self.vn_ids = [self.orch.
165 self.vn_fq_names = [':'.join(
x = 'ctest-
self = <vm_test.VMFixture object>
self.vn_names = ['ctest-
<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 = ("ContrailConne
message = "ContrailConnec
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "tcutils/
result = function(self, *args, **kwargs)
File "scripts/
vm1_
File "/contrail-
for x in self.vn_names]
AttributeError: ContrailConnections instance has no attribute 'project_id'
Fix is to call self.orch. get_vn_ obj_if_ present( x) without project-id when involving scenario Vcenter-only