2025-08-07 16:39:40,465 - INFO - Domain Default found not creating 2025-08-07 16:39:40,866 - INFO - Project ctest-TestvDNSBasic0-47453128 not found, creating it 2025-08-07 16:39:41,698 - INFO - Created Project:ctest-TestvDNSBasic0-47453128, ID : beeb2156-6513-45c3-a9f7-51c698601183 2025-08-07 16:39:44,051 - INFO - ================================================================================ 2025-08-07 16:39:44,051 - INFO - STARTING TEST : test_vdns_ping_same_vn 2025-08-07 16:39:44,051 - 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: cf-test@juniper.net 2025-08-07 16:39:44,262 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-07 16:39:44,262 - INFO - Initial checks done. Running the testcase now 2025-08-07 16:39:44,262 - INFO - 2025-08-07 16:39:45,335 - INFO - Using existing project ['default-domain', 'ctest-TestvDNSBasic0-47453128'](beeb2156-6513-45c3-a9f7-51c698601183) 2025-08-07 16:39:45,415 - DEBUG - Creating VDNS : ctest-vdns1-29051628 2025-08-07 16:39:45,699 - DEBUG - VDNS: ['default-domain', 'ctest-vdns1-29051628'] created succesfully 2025-08-07 16:39:45,700 - DEBUG - Verify VDNS entry is shown in control node 2025-08-07 16:39:45,701 - DEBUG - Requesting: http://10.0.0.249:8083/Snh_IFMapTableShowReq?table_name=virtual-DNS&search_string=virtual-DNS:default-domain:ctest-vdns1-29051628 2025-08-07 16:39:45,724 - DEBUG - Verify VDNS entry is shown in the API server 2025-08-07 16:39:45,725 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-07 16:39:46,065 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-07 16:39:46,143 - DEBUG - Requesting: http://10.0.0.249:8082/domain/18d875f7-79a7-4d7d-b759-3a18e081cd7a 2025-08-07 16:39:46,186 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-DNS/00ebebab-0b93-4221-b8fd-788ab2a34dae 2025-08-07 16:39:47,064 - DEBUG - Response for create_network : {'network': {'id': '4d338350-c54a-4921-befa-489251374b92', 'name': 'ctest-vn1-vdns-02326168', 'tenant_id': 'beeb2156651345c3a9f751c698601183', 'project_id': 'beeb2156651345c3a9f751c698601183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestvDNSBasic0-47453128', 'ctest-vn1-vdns-02326168'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 16:39:47,292 - ERROR - Neutron Exception while creating subnet for vn with id 4d338350-c54a-4921-befa-489251374b92 Traceback (most recent call last): File "/contrail-test/fixtures/quantum_test.py", line 128, in create_subnet subnet_rsp = self.obj.create_subnet({'subnet': subnet_req}) File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 848, in create_subnet return self.post(self.subnets_path, body=body) File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 359, in post headers=headers, params=params) File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 294, in do_request self._handle_fault_response(status_code, replybody, resp) File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 269, in _handle_fault_response exception_handler_v20(status_code, error_body) File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20 request_ids=request_ids) neutronclient.common.exceptions.InternalServerError: The server has either erred or is incapable of performing the requested operation.

Neutron server returns request_ids: ['req-d29e7805-62ef-4e4f-b5f5-55ed868167d5'] 2025-08-07 16:39:47,326 - INFO - Created VN ctest-vn1-vdns-02326168 2025-08-07 16:39:47,396 - DEBUG - VN ctest-vn1-vdns-02326168 UUID is 4d338350-c54a-4921-befa-489251374b92 2025-08-07 16:39:47,795 - DEBUG - Services list from nova: [, , ] 2025-08-07 16:39:48,085 - INFO - Deleting VN ctest-vn1-vdns-02326168 2025-08-07 16:39:48,291 - DEBUG - Response for deleting network () 2025-08-07 16:39:48,515 - DEBUG - Deleting VDNS Entry: ctest-vdns1-29051628 2025-08-07 16:39:48,826 - INFO - VDNS info: ['default-domain', 'ctest-vdns1-29051628'] deleted successfully. 2025-08-07 16:39:48,827 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-07 16:39:48,855 - DEBUG - Requesting: http://10.0.0.249:8082/domain/18d875f7-79a7-4d7d-b759-3a18e081cd7a 2025-08-07 16:39:48,916 - DEBUG - VDNS information not found in API server 2025-08-07 16:39:48,916 - INFO - VDNS information ctest-vdns1-29051628 removed from the API Server 2025-08-07 16:39:48,916 - DEBUG - Requesting: http://10.0.0.249:8083/Snh_IFMapTableShowReq?table_name=virtual-DNS&search_string=virtual-DNS:default-domain:ctest-vdns1-29051628 2025-08-07 16:39:48,923 - INFO - VDNS information ctest-vdns1-29051628 removed in the Control node 2025-08-07 16:39:48,924 - DEBUG - Skipping the deletion of Project ['default-domain', 'ctest-TestvDNSBasic0-47453128'] 2025-08-07 16:39:49,045 - ERROR - BadRequest Python 3.6.8: /usr/bin/python3 Thu Aug 7 16:39:48 2025 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=, *args=(), **kwargs={}) 78 log.info('Initial checks done. Running the testcase now') 79 log.info('') 80 result = function(self, *args, **kwargs) 81 if self.inputs.upgrade: 82 pid = os.getpid() result = None function = self = args = () kwargs = {} /contrail-test/scripts/vdns/test_vdns_basic.py in test_vdns_ping_same_vn(self=) 93 vn_name=vn_fixt.vn_name, project_id=proj_fixt.uuid) 94 vm_fixture[vm_name] = self.useFixture( 95 VMFixture(project_name=self.inputs.project_name, connections=self.connections, vn_obj=vn_quantum_obj, vm_name=vm_name,image_name='ubuntu-traffic')) 96 assert vm_fixture[vm_name].wait_till_vm_is_up(), ('VM %s' 97 ' failed to come up' % (vm_name)) global VMFixture = project_name undefined self = self.inputs = self.inputs.project_name = 'ctest-TestvDNSBasic0-47453128' connections undefined self.connections = vn_obj undefined vn_quantum_obj = {'network': {'id': '4d338350-c54a-4921-befa-4892...port_security_enabled': True, 'description': ''}} vm_name = 'ctest-vm1-test-93089562' image_name undefined /usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=, fixture=) 754 # Gather_details worked, so raise the exception setUp 755 # encountered. 756 reraise(*exc_info) 757 else: 758 self.addCleanup(fixture.cleanUp) global reraise = exc_info = (, BadRequest(), ) /usr/local/lib/python3.6/site-packages/testtools/_compat3x.py in reraise(exc_class=, exc_obj=BadRequest(), exc_tb=, _marker=) 13 14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()): 15 """Re-raise an exception received from sys.exc_info() or similar.""" 16 raise exc_obj.with_traceback(exc_tb) 17 exc_obj = BadRequest() exc_obj.with_traceback = exc_tb = /usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=, fixture=) 729 """ 730 try: 731 fixture.setUp() 732 except MultipleExceptions as e: 733 if (fixtures is not None and fixture = fixture.setUp = > /contrail-test/fixtures/vm_test.py in setUp(self=) 191 def setUp(self): 192 super(VMFixture, self).setUp() 193 self.create() 194 195 def create(self): self = self.create = > /contrail-test/fixtures/vm_test.py in create(self=) 243 userdata=self.userdata, 244 port_ids=self.port_ids, 245 fixed_ips=self.fixed_ips) 246 self.created = True 247 self.vm_obj = objs[0] fixed_ips undefined self = self.fixed_ips = [] /contrail-test/fixtures/openstack.py in create_vm(self=, vm_name='ctest-vm1-test-93089562', image_name='cirros', vn_objs=[{'network': {'id': '4d338350-c54a-4921-befa-4892...port_security_enabled': True, 'description': ''}}], **kwargs={'count': 1, 'fixed_ips': [], 'flavor': 'contrail_flavor_tiny', 'node_name': None, 'port_ids': [], 'project_uuid': 'beeb2156-6513-45c3-a9f7-51c698601183', 'sg_ids': [], 'userdata': None, 'zone': None}) 116 except Exception as e: 117 vn_ids.append(vn.uuid) #For the case of VcenterVN obnect in vrouter gw case 118 return self.nova_h.create_vm(vm_name=vm_name, image_name=image_name, vn_ids=vn_ids, **kwargs) 119 120 def delete_vm(self, vm_obj, **kwargs): self = self.nova_h = self.nova_h.create_vm = > vm_name = 'ctest-vm1-test-93089562' image_name = 'cirros' vn_ids = ['4d338350-c54a-4921-befa-489251374b92'] kwargs = {'count': 1, 'fixed_ips': [], 'flavor': 'contrail_flavor_tiny', 'node_name': None, 'port_ids': [], 'project_uuid': 'beeb2156-6513-45c3-a9f7-51c698601183', 'sg_ids': [], 'userdata': None, 'zone': None} /contrail-test/fixtures/nova_test.py in create_vm(self=, project_uuid='beeb2156-6513-45c3-a9f7-51c698601183', image_name='cirros', vm_name='ctest-vm1-test-93089562', vn_ids=['4d338350-c54a-4921-befa-489251374b92'], node_name='cn-jenkins-deploy-platform-ansible-os-3773-1', sg_ids=[], count=1, userdata=None, flavor=, port_ids=[], fixed_ips=[], zone='nova:cn-jenkins-deploy-platform-ansible-os-3773-1') 609 config_drive=config_drive, 610 key_name=self.key, availability_zone=zone, 611 min_count=count, max_count=count, userdata=userdata) 612 vm_objs = self.get_vm_list(name_pattern=vm_name, 613 project_id=project_uuid) min_count undefined count = 1 max_count undefined userdata = None /usr/local/lib/python3.6/site-packages/novaclient/v2/servers.py in create(self=, name='ctest-vm1-test-93089562', image=, flavor=, meta=None, files=None, reservation_id=False, min_count=1, max_count=1, security_groups=[], userdata=None, key_name='ctest_ctest-TestvDNSBasic0-47453128ctest-TestvDNSBasic0-47453128key1', availability_zone='nova:cn-jenkins-deploy-platform-ansible-os-3773-1', block_device_mapping=None, block_device_mapping_v2=None, nics=[{'net-id': '4d338350-c54a-4921-befa-489251374b92'}], scheduler_hints=None, config_drive=False, disk_config=None, admin_pass=None, access_ip_v4=None, access_ip_v6=None, trusted_image_certificates=None, host=None, hypervisor_hostname=None, **kwargs={}) 1479 1480 response_key = "server" if not reservation_id else "reservation_id" 1481 return self._boot(response_key, *boot_args, **boot_kwargs) 1482 1483 @api_versions.wraps("2.0", "2.18") self = self._boot = > response_key = 'server' boot_args = ['ctest-vm1-test-93089562', , ] boot_kwargs = {'access_ip_v4': None, 'access_ip_v6': None, 'admin_pass': None, 'availability_zone': 'nova:cn-jenkins-deploy-platform-ansible-os-3773-1', 'config_drive': False, 'disk_config': None, 'files': None, 'host': None, 'hypervisor_hostname': None, 'key_name': 'ctest_ctest-TestvDNSBasic0-47453128ctest-TestvDNSBasic0-47453128key1', ...} /usr/local/lib/python3.6/site-packages/novaclient/v2/servers.py in _boot(self=, response_key='server', name='ctest-vm1-test-93089562', image=, flavor=, meta=None, files=None, userdata=None, reservation_id=False, return_raw=False, min_count=1, max_count=1, security_groups=[], key_name='ctest_ctest-TestvDNSBasic0-47453128ctest-TestvDNSBasic0-47453128key1', availability_zone='nova:cn-jenkins-deploy-platform-ansible-os-3773-1', block_device_mapping=None, block_device_mapping_v2=None, nics=[{'net-id': '4d338350-c54a-4921-befa-489251374b92'}], scheduler_hints=None, config_drive=False, admin_pass=None, disk_config=None, access_ip_v4=None, access_ip_v6=None, description=None, tags=None, trusted_image_certificates=None, host=None, hypervisor_hostname=None, **kwargs={}) 844 845 return self._create('/servers', body, response_key, 846 return_raw=return_raw, **kwargs) 847 848 def get(self, server): return_raw = False kwargs = {} /usr/local/lib/python3.6/site-packages/novaclient/base.py in _create(self=, url='/servers', body={'server': {'availability_zone': 'nova:cn-jenkins-deploy-platform-ansible-os-3773-1', 'flavorRef': '230c3f60-73d8-4f2b-8736-17666ef3e0e9', 'imageRef': 'e37e4eda-b4f6-4a6c-afdd-921353fa56b5', 'key_name': 'ctest_ctest-TestvDNSBasic0-47453128ctest-TestvDNSBasic0-47453128key1', 'max_count': 1, 'min_count': 1, 'name': 'ctest-vm1-test-93089562', 'networks': [{'uuid': '4d338350-c54a-4921-befa-489251374b92'}]}}, response_key='server', return_raw=False, obj_class=None, **kwargs={}) 362 obj_class=None, **kwargs): 363 self.run_hooks('modify_body_for_create', body, **kwargs) 364 resp, body = self.api.client.post(url, body=body) 365 if return_raw: 366 return self.convert_into_with_meta(body[response_key], resp) resp undefined body = {'server': {'availability_zone': 'nova:cn-jenkins-deploy-platform-ansible-os-3773-1', 'flavorRef': '230c3f60-73d8-4f2b-8736-17666ef3e0e9', 'imageRef': 'e37e4eda-b4f6-4a6c-afdd-921353fa56b5', 'key_name': 'ctest_ctest-TestvDNSBasic0-47453128ctest-TestvDNSBasic0-47453128key1', 'max_count': 1, 'min_count': 1, 'name': 'ctest-vm1-test-93089562', 'networks': [{'uuid': '4d338350-c54a-4921-befa-489251374b92'}]}} self = self.api = self.api.client = self.api.client.post = > url = '/servers' /usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in post(self=, url='/servers', **kwargs={'body': {'server': {'availability_zone': 'nova:cn-jenkins-deploy-platform-ansible-os-3773-1', 'flavorRef': '230c3f60-73d8-4f2b-8736-17666ef3e0e9', 'imageRef': 'e37e4eda-b4f6-4a6c-afdd-921353fa56b5', 'key_name': 'ctest_ctest-TestvDNSBasic0-47453128ctest-TestvDNSBasic0-47453128key1', 'max_count': 1, 'min_count': 1, 'name': 'ctest-vm1-test-93089562', 'networks': [{'uuid': '4d338350-c54a-4921-befa-489251374b92'}]}}}) 390 391 def post(self, url, **kwargs): 392 return self.request(url, 'POST', **kwargs) 393 394 def put(self, url, **kwargs): self = self.request = > url = '/servers' kwargs = {'body': {'server': {'availability_zone': 'nova:cn-jenkins-deploy-platform-ansible-os-3773-1', 'flavorRef': '230c3f60-73d8-4f2b-8736-17666ef3e0e9', 'imageRef': 'e37e4eda-b4f6-4a6c-afdd-921353fa56b5', 'key_name': 'ctest_ctest-TestvDNSBasic0-47453128ctest-TestvDNSBasic0-47453128key1', 'max_count': 1, 'min_count': 1, 'name': 'ctest-vm1-test-93089562', 'networks': [{'uuid': '4d338350-c54a-4921-befa-489251374b92'}]}}} /usr/local/lib/python3.6/site-packages/novaclient/client.py in request(self=, url='/servers', method='POST', **kwargs={'body': {'server': {'availability_zone': 'nova:cn-jenkins-deploy-platform-ansible-os-3773-1', 'flavorRef': '230c3f60-73d8-4f2b-8736-17666ef3e0e9', 'imageRef': 'e37e4eda-b4f6-4a6c-afdd-921353fa56b5', 'key_name': 'ctest_ctest-TestvDNSBasic0-47453128ctest-TestvDNSBasic0-47453128key1', 'max_count': 1, 'min_count': 1, 'name': 'ctest-vm1-test-93089562', 'networks': [{'uuid': '4d338350-c54a-4921-befa-489251374b92'}]}}, 'headers': {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'python-novaclient', 'X-Auth-Token': 'gAAAAABolNbPpV0iGoHW5CXxQQRKeIZoHjyk2vguyin3Froo...GRVKJtLYOcXR35-qXS4fP0BK1kLCMgiKq00gF7uL8pVpO_VhU'}}) 76 # api_versions.check_headers(resp, self.api_version) 77 if raise_exc and resp.status_code >= 400: 78 raise exceptions.from_response(resp, body, url, method) 79 80 return resp, body global exceptions = exceptions.from_response = resp = body = {'badRequest': {'code': 400, 'message': 'Network 4d338350-c54a-4921-befa-489251374b92 requires a subnet in order to boot instances on.'}} url = '/servers' method = 'POST' BadRequest: Network 4d338350-c54a-4921-befa-489251374b92 requires a subnet in order to boot instances on. (HTTP 400) (Request-ID: req-d91d7b01-277a-4cb0-b568-19506bee3cb1) __cause__ = None __class__ = __context__ = None __delattr__ = __dict__ = {'code': 400, 'details': None, 'message': 'Network 4d338350-c54a-4921-befa-489251374b92 requires a subnet in order to boot instances on.', 'method': 'POST', 'request_id': 'req-d91d7b01-277a-4cb0-b568-19506bee3cb1', 'url': '/servers'} __dir__ = __doc__ = '\n HTTP 400 - Bad request: you sent some malformed data.\n ' __eq__ = __format__ = __ge__ = __getattribute__ = __gt__ = __hash__ = __init__ = __init_subclass__ = __le__ = __lt__ = __module__ = 'novaclient.exceptions' __ne__ = __new__ = __reduce__ = __reduce_ex__ = __repr__ = __setattr__ = __setstate__ = __sizeof__ = __str__ = __subclasshook__ = __suppress_context__ = False __traceback__ = __weakref__ = None args = () code = 400 details = None http_status = 400 message = 'Network 4d338350-c54a-4921-befa-489251374b92 requires a subnet in order to boot instances on.' method = 'POST' request_id = 'req-d91d7b01-277a-4cb0-b568-19506bee3cb1' url = '/servers' with_traceback = The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper result = function(self, *args, **kwargs) File "/contrail-test/scripts/vdns/test_vdns_basic.py", line 95, in test_vdns_ping_same_vn VMFixture(project_name=self.inputs.project_name, connections=self.connections, vn_obj=vn_quantum_obj, vm_name=vm_name,image_name='ubuntu-traffic')) File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 756, in useFixture reraise(*exc_info) File "/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise raise exc_obj.with_traceback(exc_tb) File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 731, in useFixture fixture.setUp() File "/contrail-test/fixtures/vm_test.py", line 193, in setUp self.create() File "/contrail-test/fixtures/vm_test.py", line 245, in create fixed_ips=self.fixed_ips) File "/contrail-test/fixtures/openstack.py", line 118, in create_vm return self.nova_h.create_vm(vm_name=vm_name, image_name=image_name, vn_ids=vn_ids, **kwargs) File "/contrail-test/fixtures/nova_test.py", line 611, in create_vm min_count=count, max_count=count, userdata=userdata) File "/usr/local/lib/python3.6/site-packages/novaclient/v2/servers.py", line 1481, in create return self._boot(response_key, *boot_args, **boot_kwargs) File "/usr/local/lib/python3.6/site-packages/novaclient/v2/servers.py", line 846, in _boot return_raw=return_raw, **kwargs) File "/usr/local/lib/python3.6/site-packages/novaclient/base.py", line 364, in _create resp, body = self.api.client.post(url, body=body) File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 392, in post return self.request(url, 'POST', **kwargs) File "/usr/local/lib/python3.6/site-packages/novaclient/client.py", line 78, in request raise exceptions.from_response(resp, body, url, method) novaclient.exceptions.BadRequest: Network 4d338350-c54a-4921-befa-489251374b92 requires a subnet in order to boot instances on. (HTTP 400) (Request-ID: req-d91d7b01-277a-4cb0-b568-19506bee3cb1) 2025-08-07 16:39:49,053 - DEBUG - No XMPP flaps were noticed during the test 2025-08-07 16:39:49,053 - INFO - 2025-08-07 16:39:49,053 - INFO - END TEST : test_vdns_ping_same_vn : FAILED[0:00:05] 2025-08-07 16:39:49,053 - INFO - -------------------------------------------------------------------------------- 2025-08-07 16:39:50,191 - INFO - Deleted project: ctest-TestvDNSBasic0-47453128, ID : beeb2156-6513-45c3-a9f7-51c698601183