Sanity: test_vdns_ping_same_vn broken with latest code due to old bug exposed
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 Released
|
Critical
|
Sarath |
Bug Description
Due to recent modifications of test-infra code, this old bug, vcenter-only can't have api/contrail way of configuring VN exposed and so VDNS test failure given below on 3.1.2 #64
root@53792b6257
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
2017-02-16 02:12:44,386 - INFO - Using existing project [u'default-domain', u'vCenter'
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
2017-02-16 02:12:57,902 - INFO - =======
2017-02-16 02:12:57,902 - INFO - STARTING TEST : test_vdns_
2017-02-16 02:12:57,902 - INFO - TEST DESCRIPTION :
Test:- Test vdns functionality. On VM launch agent should dynamically update dns records to dns agent
1. Create vDNS server
2. Create IPAM using above vDNS data
3. Create VN using above IPAM and launch 2 VM's within it
4. Ping between these 2 VM's using dns name
5. Try to delete vDNS server which has IPAM back-reference[
6. Add CNAME VDNS record for vm1-test and verify we able to ping by alias name
Pass criteria: Step 4,5 and 6 should pass
Maintainer: <email address hidden>
2017-02-16 02:13:03,495 - INFO - Validated that for Control node nodec5, XMPP sessions are as seen in discovery service
2017-02-16 02:13:03,640 - INFO - Validated that for Control node nodec6, XMPP sessions are as seen in discovery service
2017-02-16 02:13:03,645 - INFO - Validated that for Compute 10.204.216.181, XMPP sessions are as seen in discovery
2017-02-16 02:13:03,650 - INFO - Validated that for Compute 10.204.216.182, XMPP sessions are as seen in discovery
2017-02-16 02:13:03,655 - INFO - Validated that for Compute 10.204.216.183, XMPP sessions are as seen in discovery
2017-02-16 02:13:03,655 - INFO - Initial checks done. Running the testcase now
2017-02-16 02:13:03,655 - INFO -
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
2017-02-16 02:13:05,889 - INFO - Using existing project [u'default-domain', u'vCenter'
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
{'external-
{'external-
{u'virtual-DNS': {u'display_name': u'ctest-
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
2017-02-16 02:13:17,854 - INFO - IPAM vCenter-ipam already present.Not creating it
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
[root@10.
Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.
[root@10.
[root@10.
[root@10.
2017-02-16 02:13:22,394 - INFO - Using existing project [u'default-domain', u'vCenter'
2017-02-16 02:13:22,421 - INFO - Skipping the deletion of IPAM [u'default-domain', u'vCenter', u'vCenter-ipam']
2017-02-16 02:13:22,454 - INFO - VDNS info: ['default-domain', 'ctest-
2017-02-16 02:13:22,472 - INFO - VDNS information ctest-vdns1-
2017-02-16 02:13:22,475 - WARNING - VDNS information ctest-vdns1-
2017-02-16 02:13:24,482 - INFO - VDNS information ctest-vdns1-
2017-02-16 02:13:28,604 - ERROR - <type 'exceptions.
Python 2.7.6: /usr/bin/python
Thu Feb 16 02:13:22 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_vdns_
self = <scripts.
args = ()
kwargs = {}
/contrail-
95 VNFixture(
96 self.connections, self.inputs,
97 vn_name=vn_name, subnets=[vn1_ip], ipam_fq_
98 vm_fixture = {}
99 # Launch VM with VN Created above. This test verifies on launch of VM agent should updated DNS 'A' and 'PTR' records
vn_name = 'ctest-
subnets undefined
vn1_ip = '10.10.10.0/24'
ipam_fq_name undefined
ipam_fixt1 = <ipam_test.
ipam_fixt1.fq_name = [u'default-domain', u'vCenter', u'vCenter-ipam']
option undefined
/usr/local/
677 # Gather_details worked, so raise the exception setUp
678 # encountered.
679 reraise(*exc_info)
680 else:
681 self.addCleanup
global reraise = <function reraise>
exc_info = (<type 'exceptions.
/usr/local/
664 """
665 try:
666 fixture.setUp()
667 except:
668 exc_info = sys.exc_info()
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>
/contrail-
383 def setUp(self):
384 super(VNFixture, self).setUp()
385 self.create()
386
387 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>
/contrail-
396 self.webui.
397 elif (self.option == 'contrail'):
398 self._create_
399 else:
400 self._create_
self = <vn_test.VNFixture object>
self._create_vn_api = <bound method VNFixture.
self.vn_name = 'ctest-
self.project_obj = <project_
/contrail-
329 def _create_
330 if isinstance(
331 raise Exception('vcenter: no support for VN creation through VNC-api')
332 try:
333 self.api_vn_obj = VirtualNetwork(
builtinException = <type 'exceptions.
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Common base class for all non-exit exceptions.'
__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 = ('vcenter: no support for VN creation through VNC-api',)
message = 'vcenter: no support for VN creation through VNC-api'
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/
vn_
File "/usr/local/
reraise(
File "/usr/local/
fixture.setUp()
File "/contrail-
self.create()
File "/contrail-
self.
File "/contrail-
raise Exception('vcenter: no support for VN creation through VNC-api')
Exception: vcenter: no support for VN creation through VNC-api
2017-02-16 02:13:28,605 - INFO -
2017-02-16 02:13:28,605 - INFO - END TEST : test_vdns_
2017-02-16 02:13:28,605 - INFO - -------
E
=======
ERROR: test_vdns_
scripts.
-------
_StringException: Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "tcutils/
raise TestFailed("\n ".join(errmsg))
tcutils.
Python 2.7.6: /usr/bin/python
Thu Feb 16 02:13:22 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_vdns_
self = <scripts.
args = ()
kwargs = {}
/contrail-
95 VNFixture(
96 self.connections, self.inputs,
97 vn_name=vn_name, subnets=[vn1_ip], ipam_fq_
98 vm_fixture = {}
99 # Launch VM with VN Created above. This test verifies on launch of VM agent should updated DNS 'A' and 'PTR' records
vn_name = 'ctest-
subnets undefined
vn1_ip = '10.10.10.0/24'
ipam_fq_name undefined
ipam_fixt1 = <ipam_test.
ipam_fixt1.fq_name = [u'default-domain', u'vCenter', u'vCenter-ipam']
option undefined
/usr/local/
677 # Gather_details worked, so raise the exception setUp
678 # encountered.
679 reraise(*exc_info)
680 else:
681 self.addCleanup
global reraise = <function reraise>
exc_info = (<type 'exceptions.
/usr/local/
664 """
665 try:
666 fixture.setUp()
667 except:
668 exc_info = sys.exc_info()
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>
/contrail-
383 def setUp(self):
384 super(VNFixture, self).setUp()
385 self.create()
386
387 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>
/contrail-
396 self.webui.
397 elif (self.option == 'contrail'):
398 self._create_
399 else:
400 self._create_
self = <vn_test.VNFixture object>
self._create_vn_api = <bound method VNFixture.
self.vn_name = 'ctest-
self.project_obj = <project_
/contrail-
329 def _create_
330 if isinstance(
331 raise Exception('vcenter: no support for VN creation through VNC-api')
332 try:
333 self.api_vn_obj = VirtualNetwork(
builtinException = <type 'exceptions.
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Common base class for all non-exit exceptions.'
__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 = ('vcenter: no support for VN creation through VNC-api',)
message = 'vcenter: no support for VN creation through VNC-api'
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/
vn_
File "/usr/local/
reraise(
File "/usr/local/
fixture.setUp()
File "/contrail-
self.create()
File "/contrail-
self.
File "/contrail-
raise Exception('vcenter: no support for VN creation through VNC-api')
Exception: vcenter: no support for VN creation through VNC-api
-------
Ran 1 test in 52.286s
The fix is to call create VN non-api way on the VDNS script