Sanity: test_vdns_ping_same_vn broken with latest code due to old bug exposed

Bug #1665185 reported by Sarath
6
This bug affects 1 person
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@53792b625726:/contrail-test# python -munittest scripts.vdns.test_vdns_basic.TestvDNSBasic0.test_vdns_ping_same_vn
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
2017-02-16 02:12:44,386 - INFO - Using existing project [u'default-domain', u'vCenter'](64b9aced-9f03-452c-844e-7856a95ee18b)
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
2017-02-16 02:12:57,902 - INFO - ================================================================================
2017-02-16 02:12:57,902 - INFO - STARTING TEST : test_vdns_ping_same_vn
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[Negative case]
            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.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
2017-02-16 02:13:05,889 - INFO - Using existing project [u'default-domain', u'vCenter'](64b9aced-9f03-452c-844e-7856a95ee18b)
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
{'external-visible': 'false', 'next-virtual-DNS': None, 'record-order': 'random', 'floating-ip-record': None, 'dynamic-records-from-client': 'true', 'domain-name': 'juniper.net', 'default-ttl-seconds': '100', 'reverse-resolution': 'true'}
{'external-visible': 'false', 'next-virtual-DNS': None, 'record-order': 'random', 'floating-ip-record': None, 'dynamic-records-from-client': 'true', 'domain-name': 'juniper.net', 'default-ttl-seconds': '100', 'reverse-resolution': 'true'}
{u'virtual-DNS': {u'display_name': u'ctest-vdns1-22475477', u'uuid': u'ee91cc75-a4a3-411e-88e5-2b920428ff8d', u'href': u'http://10.204.216.61:8082/virtual-DNS/ee91cc75-a4a3-411e-88e5-2b920428ff8d', u'parent_href': u'http://10.204.216.61:8082/domain/d2b5c6bf-9d22-4a9b-a9d3-07ccb53b79a0', u'parent_type': u'domain', u'name': u'ctest-vdns1-22475477', u'perms2': {u'owner': u'cloud-admin', u'owner_access': 7, u'global_access': 0, u'share': [{u'tenant_access': 5, u'tenant': u'domain:d2b5c6bf-9d22-4a9b-a9d3-07ccb53b79a0'}]}, u'virtual_DNS_data': {u'floating_ip_record': None, u'domain_name': u'juniper.net', u'external_visible': False, u'next_virtual_DNS': None, u'dynamic_records_from_client': True, u'reverse_resolution': True, u'default_ttl_seconds': 100, u'record_order': u'random'}, u'id_perms': {u'enable': True, u'description': None, u'creator': None, u'created': u'2017-02-15T20:43:12.559363', u'user_visible': True, u'last_modified': u'2017-02-15T20:43:12.559363', u'permissions': {u'owner': u'cloud-admin', u'owner_access': 7, u'other_access': 7, u'group': u'cloud-admin-group', u'group_access': 7}, u'uuid': {u'uuid_mslong': 17190746058295296286L, u'uuid_lslong': 9864338464959954829L}}, u'fq_name': [u'default-domain', u'ctest-vdns1-22475477'], u'parent_uuid': u'd2b5c6bf-9d22-4a9b-a9d3-07ccb53b79a0'}}
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
2017-02-16 02:13:17,854 - INFO - IPAM vCenter-ipam already present.Not creating it
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.63] download: /tmp/id_rsa.pub <- /root/.ssh/id_rsa.pub

Warning: Local file /tmp/id_rsa.pub already exists and is being overwritten.

[root@10.204.216.226] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.225] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
[root@10.204.216.224] run: vim-cmd hostsvc/vmotion/vnic_set vmk0
2017-02-16 02:13:22,394 - INFO - Using existing project [u'default-domain', u'vCenter'](64b9aced-9f03-452c-844e-7856a95ee18b)
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-vdns1-22475477'] deleted successfully.
2017-02-16 02:13:22,472 - INFO - VDNS information ctest-vdns1-22475477 removed from the API Server
2017-02-16 02:13:22,475 - WARNING - VDNS information ctest-vdns1-22475477 still found in the Control node
2017-02-16 02:13:24,482 - INFO - VDNS information ctest-vdns1-22475477 removed in the Control node
2017-02-16 02:13:28,604 - ERROR - <type 'exceptions.Exception'>
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-test/tcutils/wrappers.py in wrapper(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>, *args=(), **kwargs={})
   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_ping_same_vn>
self = <scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>
args = ()
kwargs = {}

 /contrail-test/scripts/vdns/test_vdns_basic.py in test_vdns_ping_same_vn(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>)
   95 VNFixture(
   96 self.connections, self.inputs,
   97 vn_name=vn_name, subnets=[vn1_ip], ipam_fq_name=ipam_fixt1.fq_name, option='contrail'))
   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-vn1-vdns-62754941'
subnets undefined
vn1_ip = '10.10.10.0/24'
ipam_fq_name undefined
ipam_fixt1 = <ipam_test.IPAMFixture object>
ipam_fixt1.fq_name = [u'default-domain', u'vCenter', u'vCenter-ipam']
option undefined

 /usr/local/lib/python2.7/dist-packages/testtools/testcase.py in useFixture(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>, fixture=<vn_test.VNFixture object>)
  677 # Gather_details worked, so raise the exception setUp
  678 # encountered.
  679 reraise(*exc_info)
  680 else:
  681 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<type 'exceptions.Exception'>, Exception('vcenter: no support for VN creation through VNC-api',), <traceback object>)

 /usr/local/lib/python2.7/dist-packages/testtools/testcase.py in useFixture(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>, fixture=<vn_test.VNFixture object>)
  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-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
  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-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
  396 self.webui.create_vn(self)
  397 elif (self.option == 'contrail'):
  398 self._create_vn_api(self.vn_name, self.project_obj)
  399 else:
  400 self._create_vn_orch()
self = <vn_test.VNFixture object>
self._create_vn_api = <bound method VNFixture._create_vn_api of <vn_test.VNFixture object>>
self.vn_name = 'ctest-vn1-vdns-62754941'
self.project_obj = <project_test.ProjectFixture object>

 /contrail-test/fixtures/vn_test.py in _create_vn_api(self=<vn_test.VNFixture object>, vn_name='ctest-vn1-vdns-62754941', project=<project_test.ProjectFixture object>)
  329 def _create_vn_api(self, vn_name, project):
  330 if isinstance(self.orchestrator,VcenterOrchestrator) :
  331 raise Exception('vcenter: no support for VN creation through VNC-api')
  332 try:
  333 self.api_vn_obj = VirtualNetwork(
builtinException = <type 'exceptions.Exception'>
<type 'exceptions.Exception'>: vcenter: no support for VN creation through VNC-api
    __class__ = <type 'exceptions.Exception'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.Exception object>
    __dict__ = {}
    __doc__ = 'Common base class for all non-exit exceptions.'
    __format__ = <built-in method __format__ of exceptions.Exception object>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.Exception object>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.Exception object>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.Exception object>
    __hash__ = <method-wrapper '__hash__' of exceptions.Exception object>
    __init__ = <method-wrapper '__init__' of exceptions.Exception object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of exceptions.Exception object>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.Exception object>
    __repr__ = <method-wrapper '__repr__' of exceptions.Exception object>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.Exception object>
    __setstate__ = <built-in method __setstate__ of exceptions.Exception object>
    __sizeof__ = <built-in method __sizeof__ of exceptions.Exception object>
    __str__ = <method-wrapper '__str__' of exceptions.Exception object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of exceptions.Exception object>
    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/wrappers.py", line 73, in wrapper
    result = function(self, *args, **kwargs)
  File "scripts/vdns/test_vdns_basic.py", line 97, in test_vdns_ping_same_vn
    vn_name=vn_name, subnets=[vn1_ip], ipam_fq_name=ipam_fixt1.fq_name, option='contrail'))
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 679, in useFixture
    reraise(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 666, in useFixture
    fixture.setUp()
  File "/contrail-test/fixtures/vn_test.py", line 385, in setUp
    self.create()
  File "/contrail-test/fixtures/vn_test.py", line 398, in create
    self._create_vn_api(self.vn_name, self.project_obj)
  File "/contrail-test/fixtures/vn_test.py", line 331, in _create_vn_api
    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_ping_same_vn : FAILED[0:00:31]
2017-02-16 02:13:28,605 - INFO - --------------------------------------------------------------------------------
E
======================================================================
ERROR: test_vdns_ping_same_vn (scripts.vdns.test_vdns_basic.TestvDNSBasic0)
scripts.vdns.test_vdns_basic.TestvDNSBasic0.test_vdns_ping_same_vn[ci_sanity,sanity,suite1,vcenter]
----------------------------------------------------------------------
_StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "tcutils/wrappers.py", line 152, in wrapper
    raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: <type 'exceptions.Exception'>
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-test/tcutils/wrappers.py in wrapper(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>, *args=(), **kwargs={})
   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_ping_same_vn>
self = <scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>
args = ()
kwargs = {}

 /contrail-test/scripts/vdns/test_vdns_basic.py in test_vdns_ping_same_vn(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>)
   95 VNFixture(
   96 self.connections, self.inputs,
   97 vn_name=vn_name, subnets=[vn1_ip], ipam_fq_name=ipam_fixt1.fq_name, option='contrail'))
   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-vn1-vdns-62754941'
subnets undefined
vn1_ip = '10.10.10.0/24'
ipam_fq_name undefined
ipam_fixt1 = <ipam_test.IPAMFixture object>
ipam_fixt1.fq_name = [u'default-domain', u'vCenter', u'vCenter-ipam']
option undefined

 /usr/local/lib/python2.7/dist-packages/testtools/testcase.py in useFixture(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>, fixture=<vn_test.VNFixture object>)
  677 # Gather_details worked, so raise the exception setUp
  678 # encountered.
  679 reraise(*exc_info)
  680 else:
  681 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<type 'exceptions.Exception'>, Exception('vcenter: no support for VN creation through VNC-api',), <traceback object>)

 /usr/local/lib/python2.7/dist-packages/testtools/testcase.py in useFixture(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes..._sanity,sanity,suite1,vcenter] id=0x7f0379509b90>, fixture=<vn_test.VNFixture object>)
  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-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
  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-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
  396 self.webui.create_vn(self)
  397 elif (self.option == 'contrail'):
  398 self._create_vn_api(self.vn_name, self.project_obj)
  399 else:
  400 self._create_vn_orch()
self = <vn_test.VNFixture object>
self._create_vn_api = <bound method VNFixture._create_vn_api of <vn_test.VNFixture object>>
self.vn_name = 'ctest-vn1-vdns-62754941'
self.project_obj = <project_test.ProjectFixture object>

 /contrail-test/fixtures/vn_test.py in _create_vn_api(self=<vn_test.VNFixture object>, vn_name='ctest-vn1-vdns-62754941', project=<project_test.ProjectFixture object>)
  329 def _create_vn_api(self, vn_name, project):
  330 if isinstance(self.orchestrator,VcenterOrchestrator) :
  331 raise Exception('vcenter: no support for VN creation through VNC-api')
  332 try:
  333 self.api_vn_obj = VirtualNetwork(
builtinException = <type 'exceptions.Exception'>
<type 'exceptions.Exception'>: vcenter: no support for VN creation through VNC-api
    __class__ = <type 'exceptions.Exception'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.Exception object>
    __dict__ = {}
    __doc__ = 'Common base class for all non-exit exceptions.'
    __format__ = <built-in method __format__ of exceptions.Exception object>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.Exception object>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.Exception object>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.Exception object>
    __hash__ = <method-wrapper '__hash__' of exceptions.Exception object>
    __init__ = <method-wrapper '__init__' of exceptions.Exception object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of exceptions.Exception object>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.Exception object>
    __repr__ = <method-wrapper '__repr__' of exceptions.Exception object>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.Exception object>
    __setstate__ = <built-in method __setstate__ of exceptions.Exception object>
    __sizeof__ = <built-in method __sizeof__ of exceptions.Exception object>
    __str__ = <method-wrapper '__str__' of exceptions.Exception object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __unicode__ = <built-in method __unicode__ of exceptions.Exception object>
    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/wrappers.py", line 73, in wrapper
    result = function(self, *args, **kwargs)
  File "scripts/vdns/test_vdns_basic.py", line 97, in test_vdns_ping_same_vn
    vn_name=vn_name, subnets=[vn1_ip], ipam_fq_name=ipam_fixt1.fq_name, option='contrail'))
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 679, in useFixture
    reraise(*exc_info)
  File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 666, in useFixture
    fixture.setUp()
  File "/contrail-test/fixtures/vn_test.py", line 385, in setUp
    self.create()
  File "/contrail-test/fixtures/vn_test.py", line 398, in create
    self._create_vn_api(self.vn_name, self.project_obj)
  File "/contrail-test/fixtures/vn_test.py", line 331, in _create_vn_api
    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

Revision history for this message
Sarath (nsarath) wrote :

The fix is to call create VN non-api way on the VDNS script

Revision history for this message
Sarath (nsarath) wrote :

R3.1

Change 28831 - Merged

fix vdns script to handle Vcenter-only with reference to bug# 1665185

Change-Id: I632beb34fe6d3e33060a6f773593247d6b1da864

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/28902
Submitter: Sarath (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/28903
Submitter: Sarath (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/28904
Submitter: Sarath (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/28902
Committed: http://github.org/Juniper/contrail-test-ci/commit/082ce94ab12bc0eca1f9bf412e8e3258fdf86adf
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit 082ce94ab12bc0eca1f9bf412e8e3258fdf86adf
Author: sarath <email address hidden>
Date: Sat Feb 18 03:16:54 2017 +0530

fix vdns script to handle Vcenter-only with reference to bug# 1665185
Closes-Bug:#1665185

Change-Id: I971cfcef94c9694503cab026b3b98e5b99837ecc

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/28903
Committed: http://github.org/Juniper/contrail-test-ci/commit/fc6b067c03778b8c393fe1b0932986ed67c12a22
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit fc6b067c03778b8c393fe1b0932986ed67c12a22
Author: sarath <email address hidden>
Date: Sat Feb 18 03:18:15 2017 +0530

fix vdns script to handle Vcenter-only with reference to bug# 1665185
Closes-Bug:#1665185

Change-Id: I2ef1eeaf9fb785d74cc485a6fc316511631c6d64

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/28904
Committed: http://github.org/Juniper/contrail-test-ci/commit/9681594135228eb38c5d4176d3d8590630fa2ea9
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 9681594135228eb38c5d4176d3d8590630fa2ea9
Author: sarath <email address hidden>
Date: Sat Feb 18 03:18:23 2017 +0530

fix vdns script to handle Vcenter-only with reference to bug# 1665185
Closes-Bug:#1665185

Change-Id: I70c67c675602de558a092a8accd1baa51d4ceeb8

Revision history for this message
Sarath (nsarath) wrote :

Mainline/Trunk has fix as below,

commit d5613b4475da77b849c2e2dc90f3be58e5f01ea0
Author: sarath <email address hidden>
Date: Thu Feb 16 07:49:35 2017 +0530

    fix vdns script to handle Vcenter-only with reference to bug# 1665185

    Change-Id: I632beb34fe6d3e33060a6f773593247d6b1da864

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.