2025-07-22 16:34:18,990 - INFO - Domain Default found not creating 2025-07-22 16:34:19,174 - INFO - Project ctest-TestStaticRouteTables-26981928 not found, creating it 2025-07-22 16:34:19,862 - INFO - Created Project:ctest-TestStaticRouteTables-26981928, ID : d0e01656-c092-426b-b863-c38e831dd2ef 2025-07-22 16:34:21,331 - INFO - ================================================================================ 2025-07-22 16:34:21,331 - INFO - STARTING TEST : test_interface_static_table 2025-07-22 16:34:21,331 - INFO - TEST DESCRIPTION : Description: Validate interface static table Test steps: 1. Creating vm's - vm1 and vm2 and middle vm in networks vn1 and vn2. 2. Creating interface static table betn left and right vm 3. Apply static table to the middle ports. 4. Checking for ping and tcp traffic between vm1 and vm2. Pass criteria: Ping between the VMs should be successful and route should be in the agent 2025-07-22 16:34:22,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.27': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-07-22 16:34:22,613 - INFO - Initial checks done. Running the testcase now 2025-07-22 16:34:22,613 - INFO - 2025-07-22 16:34:23,297 - DEBUG - Response for create_network : {'network': {'id': '2547d8e0-4647-4e98-af04-013716319c39', 'name': 'ctest-vn-12383989', 'tenant_id': 'd0e01656c092426bb863c38e831dd2ef', 'project_id': 'd0e01656c092426bb863c38e831dd2ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestStaticRouteTables-26981928', 'ctest-vn-12383989'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:34:23,615 - DEBUG - Response for create_subnet : {'subnet': {'id': '29d45f8e-bf18-4990-b7d1-9f120f27109e', 'name': '', 'tenant_id': 'd0e01656c092426bb863c38e831dd2ef', 'network_id': '2547d8e0-4647-4e98-af04-013716319c39', 'ip_version': 4, 'cidr': '5.74.197.192/26', 'allocation_pools': [{'start': '5.74.197.194', 'end': '5.74.197.254'}], 'gateway_ip': '5.74.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.74.197.194', 'tags': [], 'project_id': 'd0e01656c092426bb863c38e831dd2ef'}} 2025-07-22 16:34:23,638 - INFO - Created VN ctest-vn-12383989 2025-07-22 16:34:23,652 - DEBUG - VN ctest-vn-12383989 UUID is 2547d8e0-4647-4e98-af04-013716319c39 2025-07-22 16:34:24,126 - DEBUG - Response for create_network : {'network': {'id': 'e1f776cb-7f5c-4f7d-8f01-8e46cfe8f9f5', 'name': 'ctest-vn-43297893', 'tenant_id': 'd0e01656c092426bb863c38e831dd2ef', 'project_id': 'd0e01656c092426bb863c38e831dd2ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestStaticRouteTables-26981928', 'ctest-vn-43297893'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:34:24,456 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f874761b-b120-4ff3-8eeb-7e3eb317e8cd', 'name': '', 'tenant_id': 'd0e01656c092426bb863c38e831dd2ef', 'network_id': 'e1f776cb-7f5c-4f7d-8f01-8e46cfe8f9f5', 'ip_version': 4, 'cidr': '220.142.96.192/26', 'allocation_pools': [{'start': '220.142.96.194', 'end': '220.142.96.254'}], 'gateway_ip': '220.142.96.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.142.96.194', 'tags': [], 'project_id': 'd0e01656c092426bb863c38e831dd2ef'}} 2025-07-22 16:34:24,484 - INFO - Created VN ctest-vn-43297893 2025-07-22 16:34:24,500 - DEBUG - VN ctest-vn-43297893 UUID is e1f776cb-7f5c-4f7d-8f01-8e46cfe8f9f5 2025-07-22 16:34:24,646 - DEBUG - Services list from nova: [, , , ] 2025-07-22 16:34:25,834 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3693-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3693-2) 2025-07-22 16:34:27,442 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3693-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3693-1) 2025-07-22 16:34:27,442 - INFO - Waiting for VM ctest-TestStaticRouteTables-26981928-23018622 to be up.. 2025-07-22 16:34:27,567 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-22 16:34:32,661 - DEBUG - VM is in ACTIVE state now 2025-07-22 16:34:32,662 - INFO - VM name : ctest-TestStaticRouteTables-26981928-23018622 2025-07-22 16:34:32,753 - DEBUG - VM ctest-TestStaticRouteTables-26981928-23018622 ID is 52abb9ce-457c-4ef9-b2f5-cae1d7643ac5 2025-07-22 16:34:32,779 - DEBUG - VM ctest-TestStaticRouteTables-26981928-23018622 launched on Node an-jenkins-deploy-platform-ansible-os-3693-2 2025-07-22 16:34:32,860 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/52abb9ce-457c-4ef9-b2f5-cae1d7643ac5 2025-07-22 16:34:33,169 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/52abb9ce-457c-4ef9-b2f5-cae1d7643ac5 2025-07-22 16:34:33,207 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/4fcfec46-aef5-4055-8fe0-91d93d7817ca 2025-07-22 16:34:36,444 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms') 2025-07-22 16:34:36,445 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 failed! 2025-07-22 16:34:36,463 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-12383989 is 5.74.197.193 and allocation pool is NOT set 2025-07-22 16:34:40,544 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-07-22 16:34:40,544 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 failed! 2025-07-22 16:34:40,563 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-12383989 is 5.74.197.193 and allocation pool is NOT set 2025-07-22 16:34:44,637 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-07-22 16:34:44,638 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 failed! 2025-07-22 16:34:44,655 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-12383989 is 5.74.197.193 and allocation pool is NOT set 2025-07-22 16:34:48,736 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1014ms') 2025-07-22 16:34:48,736 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 failed! 2025-07-22 16:34:48,755 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-12383989 is 5.74.197.193 and allocation pool is NOT set 2025-07-22 16:34:52,829 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1009ms') 2025-07-22 16:34:52,829 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 failed! 2025-07-22 16:34:52,845 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-12383989 is 5.74.197.193 and allocation pool is NOT set 2025-07-22 16:34:56,927 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-07-22 16:34:56,927 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 failed! 2025-07-22 16:34:56,945 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-12383989 is 5.74.197.193 and allocation pool is NOT set 2025-07-22 16:35:01,017 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-07-22 16:35:01,017 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 failed! 2025-07-22 16:35:01,034 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-12383989 is 5.74.197.193 and allocation pool is NOT set 2025-07-22 16:35:05,118 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1018ms') 2025-07-22 16:35:05,118 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 failed! 2025-07-22 16:35:05,135 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-12383989 is 5.74.197.193 and allocation pool is NOT set 2025-07-22 16:35:07,208 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=13.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.507 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.507/6.862/13.218/6.355 ms') 2025-07-22 16:35:07,208 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-23018622 passed 2025-07-22 16:35:07,327 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:35:07,327 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-23018622, IP 5.74.197.195, Port 22 2025-07-22 16:35:07,395 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:35:07,482 - DEBUG - VM ctest-TestStaticRouteTables-26981928-23018622 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:35:12,483 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:35:12,483 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-23018622, IP 5.74.197.195, Port 22 2025-07-22 16:35:12,541 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:35:12,642 - DEBUG - VM ctest-TestStaticRouteTables-26981928-23018622 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:35:17,643 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:35:17,643 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-23018622, IP 5.74.197.195, Port 22 2025-07-22 16:35:17,701 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:35:17,801 - DEBUG - VM ctest-TestStaticRouteTables-26981928-23018622 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:35:22,802 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:35:22,802 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-23018622, IP 5.74.197.195, Port 22 2025-07-22 16:35:22,857 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:35:22,952 - DEBUG - VM ctest-TestStaticRouteTables-26981928-23018622 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:35:27,953 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:35:27,953 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-23018622, IP 5.74.197.195, Port 22 2025-07-22 16:35:28,120 - DEBUG - VM ctest-TestStaticRouteTables-26981928-23018622 is ready for SSH connections 2025-07-22 16:35:28,120 - INFO - Waiting for VM ctest-TestStaticRouteTables-26981928-85280865 to be up.. 2025-07-22 16:35:28,230 - DEBUG - VM is in ACTIVE state now 2025-07-22 16:35:28,230 - INFO - VM name : ctest-TestStaticRouteTables-26981928-85280865 2025-07-22 16:35:28,341 - DEBUG - VM ctest-TestStaticRouteTables-26981928-85280865 ID is 4921b802-00da-45eb-a59b-92e2b6963678 2025-07-22 16:35:28,342 - DEBUG - VM ctest-TestStaticRouteTables-26981928-85280865 launched on Node an-jenkins-deploy-platform-ansible-os-3693-1 2025-07-22 16:35:28,435 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/4921b802-00da-45eb-a59b-92e2b6963678 2025-07-22 16:35:28,448 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e2607a06-9092-4b3a-aeaa-28cf5cc46f69 2025-07-22 16:35:29,659 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.483 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.483/2.722/4.961/2.239 ms') 2025-07-22 16:35:29,659 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-85280865 passed 2025-07-22 16:35:29,774 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:35:29,774 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-85280865, IP 220.142.96.195, Port 22 2025-07-22 16:35:29,843 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:35:29,930 - DEBUG - VM ctest-TestStaticRouteTables-26981928-85280865 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:35:34,931 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:35:34,931 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-85280865, IP 220.142.96.195, Port 22 2025-07-22 16:35:35,108 - DEBUG - VM ctest-TestStaticRouteTables-26981928-85280865 is ready for SSH connections 2025-07-22 16:37:15,626 - DEBUG - Installing image ubuntu 2025-07-22 16:37:15,626 - DEBUG - Image info {'name': 'ubuntu.vmdk.gz', 'webserver': '', 'location': '/images/converts/', 'username': 'ubuntu', 'password': 'ubuntu', 'type': 'os', 'flavor': 'contrail_flavor_tiny', 'params': '--container-format bare --disk-format vmdk --property vmware_disktype="sparse" --property vmware_adaptertype="ide" --property hw_scsi_model=virtio-scsi --property hw_disk_bus_model=virtio-scsi --property hw_disk_bus=virtio', 'name_docker': 'phusion-baseimage-enablesshd'} 2025-07-22 16:37:15,626 - DEBUG - Image build path file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-22 16:37:15,626 - DEBUG - Download image from local file file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-22 16:37:15,626 - DEBUG - Unzip image 2025-07-22 16:37:15,626 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: gunzip -f /contrail-test/images/ubuntu.vmdk.gz 2025-07-22 16:37:15,644 - DEBUG - Try to create image in user context 2025-07-22 16:37:15,724 - INFO - Deleting VM ctest-TestStaticRouteTables-26981928-85280865 2025-07-22 16:37:15,792 - INFO - Deleting VM ctest-TestStaticRouteTables-26981928-23018622 2025-07-22 16:37:15,860 - INFO - Deleting VN ctest-vn-43297893 2025-07-22 16:37:15,915 - DEBUG - VN e1f776cb-7f5c-4f7d-8f01-8e46cfe8f9f5 still in use: Unable to complete operation on network e1f776cb-7f5c-4f7d-8f01-8e46cfe8f9f5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-197f2d49-3866-464c-a1d2-462636d2cfd5'] 2025-07-22 16:37:15,915 - WARNING - Deleting VN ctest-vn-43297893 failed..Will retry 2025-07-22 16:37:18,150 - DEBUG - Response for deleting network () 2025-07-22 16:37:18,151 - INFO - Deleting VN ctest-vn-12383989 2025-07-22 16:37:18,416 - DEBUG - Response for deleting network () 2025-07-22 16:37:19,685 - ERROR -
Traceback (most recent call last):
  File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
    result = function(self, *args, **kwargs)
  File "/contrail-test/scripts/static_route_table/test_static_tables.py", line 30, in test_interface_static_table
    self.config_basic()
  File "/contrail-test/common/static_route_table/base.py", line 52, in config_basic
    image_name='ubuntu', flavor='m1.tiny'))
  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 188, in setUp
    self.create()
  File "/contrail-test/fixtures/vm_test.py", line 240, 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 577, in create_vm
    image = self.get_image(image_name=image_name)
  File "/contrail-test/fixtures/nova_test.py", line 198, in get_image
    self._install_image(image_name=image_name)
  File "/contrail-test/fixtures/nova_test.py", line 338, in _install_image
    return self.copy_and_glance(build_path, image_name, params)
  File "/contrail-test/fixtures/nova_test.py", line 407, in copy_and_glance
    image_id = self.glance_h.create_image(generic_image_name, image_path_real, **params)
  File "/contrail-test/fixtures/glance_test.py", line 50, in create_image
    self.upload_image(obj['id'], filename)
  File "/contrail-test/fixtures/glance_test.py", line 54, in upload_image
    self.obj.images.upload(uuid, open(filename, 'rb'))
FileNotFoundError: [Errno 2] No such file or directory: '/contrail-test/images/ubuntu.vmdk'
2025-07-22 16:37:19,700 - DEBUG - No XMPP flaps were noticed during the test 2025-07-22 16:37:19,700 - INFO - 2025-07-22 16:37:19,700 - INFO - END TEST : test_interface_static_table : FAILED[0:02:58] 2025-07-22 16:37:19,701 - INFO - -------------------------------------------------------------------------------- 2025-07-22 16:37:19,704 - INFO - ================================================================================ 2025-07-22 16:37:19,704 - INFO - STARTING TEST : test_network_route_table 2025-07-22 16:37:19,704 - INFO - TEST DESCRIPTION : Description: Validate network static table Test steps: 1. Creating vm's - vm1 and vm2 and middle vm in networks vn1 and vn2. 2. Creating network static table betn left and right vm 3. Apply static table to the middle ports. 4. Checking for ping and tcp traffic between vm1 and vm2. Pass criteria: Ping between the VMs should be successful and route should be in the agent 2025-07-22 16:37:20,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.27': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-07-22 16:37:20,992 - INFO - Initial checks done. Running the testcase now 2025-07-22 16:37:20,992 - INFO - 2025-07-22 16:37:21,404 - DEBUG - Response for create_network : {'network': {'id': 'a9aa1a68-1a77-4331-b72a-68acf6574714', 'name': 'ctest-vn-01021123', 'tenant_id': 'd0e01656c092426bb863c38e831dd2ef', 'project_id': 'd0e01656c092426bb863c38e831dd2ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestStaticRouteTables-26981928', 'ctest-vn-01021123'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:37:21,651 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d499381-23d6-4034-8bab-a0a5521a27ee', 'name': '', 'tenant_id': 'd0e01656c092426bb863c38e831dd2ef', 'network_id': 'a9aa1a68-1a77-4331-b72a-68acf6574714', 'ip_version': 4, 'cidr': '95.41.149.64/26', 'allocation_pools': [{'start': '95.41.149.66', 'end': '95.41.149.126'}], 'gateway_ip': '95.41.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.41.149.66', 'tags': [], 'project_id': 'd0e01656c092426bb863c38e831dd2ef'}} 2025-07-22 16:37:21,673 - INFO - Created VN ctest-vn-01021123 2025-07-22 16:37:21,690 - DEBUG - VN ctest-vn-01021123 UUID is a9aa1a68-1a77-4331-b72a-68acf6574714 2025-07-22 16:37:22,109 - DEBUG - Response for create_network : {'network': {'id': '09d74234-a233-43ef-9d3e-6f79a4e84374', 'name': 'ctest-vn-90954125', 'tenant_id': 'd0e01656c092426bb863c38e831dd2ef', 'project_id': 'd0e01656c092426bb863c38e831dd2ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestStaticRouteTables-26981928', 'ctest-vn-90954125'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:37:22,434 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da604724-d776-4e9e-980b-116af7ee9e0e', 'name': '', 'tenant_id': 'd0e01656c092426bb863c38e831dd2ef', 'network_id': '09d74234-a233-43ef-9d3e-6f79a4e84374', 'ip_version': 4, 'cidr': '171.231.100.0/26', 'allocation_pools': [{'start': '171.231.100.2', 'end': '171.231.100.62'}], 'gateway_ip': '171.231.100.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.231.100.2', 'tags': [], 'project_id': 'd0e01656c092426bb863c38e831dd2ef'}} 2025-07-22 16:37:22,465 - INFO - Created VN ctest-vn-90954125 2025-07-22 16:37:22,484 - DEBUG - VN ctest-vn-90954125 UUID is 09d74234-a233-43ef-9d3e-6f79a4e84374 2025-07-22 16:37:24,125 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3693-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3693-1) 2025-07-22 16:37:25,706 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3693-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3693-2) 2025-07-22 16:37:25,707 - INFO - Waiting for VM ctest-TestStaticRouteTables-26981928-09633976 to be up.. 2025-07-22 16:37:25,816 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-22 16:37:30,908 - DEBUG - VM is in ACTIVE state now 2025-07-22 16:37:30,908 - INFO - VM name : ctest-TestStaticRouteTables-26981928-09633976 2025-07-22 16:37:31,005 - DEBUG - VM ctest-TestStaticRouteTables-26981928-09633976 ID is 9b3e0a1c-2164-4f73-bd1a-c6cddde637a3 2025-07-22 16:37:31,005 - DEBUG - VM ctest-TestStaticRouteTables-26981928-09633976 launched on Node an-jenkins-deploy-platform-ansible-os-3693-1 2025-07-22 16:37:31,110 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/9b3e0a1c-2164-4f73-bd1a-c6cddde637a3 2025-07-22 16:37:31,124 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/bc804289-20db-4e36-9df1-185db6756fbf 2025-07-22 16:37:34,369 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1034ms') 2025-07-22 16:37:34,370 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 failed! 2025-07-22 16:37:34,387 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-01021123 is 95.41.149.65 and allocation pool is NOT set 2025-07-22 16:37:38,463 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1018ms') 2025-07-22 16:37:38,463 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 failed! 2025-07-22 16:37:38,481 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-01021123 is 95.41.149.65 and allocation pool is NOT set 2025-07-22 16:37:42,567 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1018ms') 2025-07-22 16:37:42,567 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 failed! 2025-07-22 16:37:42,584 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-01021123 is 95.41.149.65 and allocation pool is NOT set 2025-07-22 16:37:46,664 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-07-22 16:37:46,665 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 failed! 2025-07-22 16:37:46,684 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-01021123 is 95.41.149.65 and allocation pool is NOT set 2025-07-22 16:37:50,757 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-07-22 16:37:50,758 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 failed! 2025-07-22 16:37:50,776 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-01021123 is 95.41.149.65 and allocation pool is NOT set 2025-07-22 16:37:54,855 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-07-22 16:37:54,855 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 failed! 2025-07-22 16:37:54,871 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-01021123 is 95.41.149.65 and allocation pool is NOT set 2025-07-22 16:37:58,948 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1010ms') 2025-07-22 16:37:58,948 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 failed! 2025-07-22 16:37:58,965 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-01021123 is 95.41.149.65 and allocation pool is NOT set 2025-07-22 16:38:03,043 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1013ms') 2025-07-22 16:38:03,043 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 failed! 2025-07-22 16:38:03,060 - DEBUG - Gateway for vn default-domain:ctest-TestStaticRouteTables-26981928:ctest-vn-01021123 is 95.41.149.65 and allocation pool is NOT set 2025-07-22 16:38:07,144 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=30.6 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1018ms\r\nrtt min/avg/max/mdev = 30.573/30.573/30.573/0.000 ms') 2025-07-22 16:38:07,144 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-09633976 passed 2025-07-22 16:38:07,271 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:38:07,271 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-09633976, IP 95.41.149.67, Port 22 2025-07-22 16:38:07,345 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:38:07,439 - DEBUG - VM ctest-TestStaticRouteTables-26981928-09633976 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:38:12,440 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:38:12,440 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-09633976, IP 95.41.149.67, Port 22 2025-07-22 16:38:12,507 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:38:12,597 - DEBUG - VM ctest-TestStaticRouteTables-26981928-09633976 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:38:17,597 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:38:17,597 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-09633976, IP 95.41.149.67, Port 22 2025-07-22 16:38:17,674 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:38:17,782 - DEBUG - VM ctest-TestStaticRouteTables-26981928-09633976 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:38:22,783 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:38:22,783 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-09633976, IP 95.41.149.67, Port 22 2025-07-22 16:38:22,854 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 16:38:22,940 - DEBUG - VM ctest-TestStaticRouteTables-26981928-09633976 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 16:38:27,941 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:38:27,941 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-09633976, IP 95.41.149.67, Port 22 2025-07-22 16:38:28,112 - DEBUG - VM ctest-TestStaticRouteTables-26981928-09633976 is ready for SSH connections 2025-07-22 16:38:28,112 - INFO - Waiting for VM ctest-TestStaticRouteTables-26981928-96377964 to be up.. 2025-07-22 16:38:28,223 - DEBUG - VM is in ACTIVE state now 2025-07-22 16:38:28,223 - INFO - VM name : ctest-TestStaticRouteTables-26981928-96377964 2025-07-22 16:38:28,330 - DEBUG - VM ctest-TestStaticRouteTables-26981928-96377964 ID is 6d40a1b2-bd68-4762-9109-fab57676d500 2025-07-22 16:38:28,330 - DEBUG - VM ctest-TestStaticRouteTables-26981928-96377964 launched on Node an-jenkins-deploy-platform-ansible-os-3693-2 2025-07-22 16:38:28,431 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/6d40a1b2-bd68-4762-9109-fab57676d500 2025-07-22 16:38:28,443 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/54cccfea-f90f-4d02-8dc0-46d7c4810d69 2025-07-22 16:38:29,666 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.16 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.158/2.176/3.194/1.018 ms') 2025-07-22 16:38:29,666 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestStaticRouteTables-26981928-96377964 passed 2025-07-22 16:38:29,782 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 16:38:29,782 - DEBUG - Waiting to SSH to VM ctest-TestStaticRouteTables-26981928-96377964, IP 171.231.100.3, Port 22 2025-07-22 16:38:29,947 - DEBUG - VM ctest-TestStaticRouteTables-26981928-96377964 is ready for SSH connections 2025-07-22 16:40:10,490 - DEBUG - Installing image ubuntu 2025-07-22 16:40:10,490 - DEBUG - Image info {'name': 'ubuntu.vmdk.gz', 'webserver': '', 'location': '/images/converts/', 'username': 'ubuntu', 'password': 'ubuntu', 'type': 'os', 'flavor': 'contrail_flavor_tiny', 'params': '--container-format bare --disk-format vmdk --property vmware_disktype="sparse" --property vmware_adaptertype="ide" --property hw_scsi_model=virtio-scsi --property hw_disk_bus_model=virtio-scsi --property hw_disk_bus=virtio', 'name_docker': 'phusion-baseimage-enablesshd'} 2025-07-22 16:40:10,490 - DEBUG - Image build path file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-22 16:40:10,490 - DEBUG - Download image from local file file:///contrail-test/images/ubuntu.vmdk.gz 2025-07-22 16:40:10,490 - DEBUG - Unzip image 2025-07-22 16:40:10,490 - DEBUG - Image download (local=True) (proxy=None): Execute cmd: gunzip -f /contrail-test/images/ubuntu.vmdk.gz 2025-07-22 16:40:10,508 - DEBUG - Try to create image in user context 2025-07-22 16:40:10,568 - INFO - Deleting VM ctest-TestStaticRouteTables-26981928-96377964 2025-07-22 16:40:10,640 - INFO - Deleting VM ctest-TestStaticRouteTables-26981928-09633976 2025-07-22 16:40:10,716 - INFO - Deleting VN ctest-vn-90954125 2025-07-22 16:40:10,810 - DEBUG - VN 09d74234-a233-43ef-9d3e-6f79a4e84374 still in use: Unable to complete operation on network 09d74234-a233-43ef-9d3e-6f79a4e84374. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-792fc544-542e-4a82-957e-d47ba9755e00'] 2025-07-22 16:40:10,810 - WARNING - Deleting VN ctest-vn-90954125 failed..Will retry 2025-07-22 16:40:12,990 - DEBUG - Response for deleting network () 2025-07-22 16:40:12,990 - INFO - Deleting VN ctest-vn-01021123 2025-07-22 16:40:13,220 - DEBUG - Response for deleting network () 2025-07-22 16:40:14,469 - ERROR -
Traceback (most recent call last):
  File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
    result = function(self, *args, **kwargs)
  File "/contrail-test/scripts/static_route_table/test_static_tables.py", line 170, in test_network_route_table
    self.config_basic()
  File "/contrail-test/common/static_route_table/base.py", line 52, in config_basic
    image_name='ubuntu', flavor='m1.tiny'))
  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 188, in setUp
    self.create()
  File "/contrail-test/fixtures/vm_test.py", line 240, 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 577, in create_vm
    image = self.get_image(image_name=image_name)
  File "/contrail-test/fixtures/nova_test.py", line 198, in get_image
    self._install_image(image_name=image_name)
  File "/contrail-test/fixtures/nova_test.py", line 338, in _install_image
    return self.copy_and_glance(build_path, image_name, params)
  File "/contrail-test/fixtures/nova_test.py", line 407, in copy_and_glance
    image_id = self.glance_h.create_image(generic_image_name, image_path_real, **params)
  File "/contrail-test/fixtures/glance_test.py", line 50, in create_image
    self.upload_image(obj['id'], filename)
  File "/contrail-test/fixtures/glance_test.py", line 54, in upload_image
    self.obj.images.upload(uuid, open(filename, 'rb'))
FileNotFoundError: [Errno 2] No such file or directory: '/contrail-test/images/ubuntu.vmdk'
2025-07-22 16:40:14,486 - DEBUG - No XMPP flaps were noticed during the test 2025-07-22 16:40:14,486 - INFO - 2025-07-22 16:40:14,487 - INFO - END TEST : test_network_route_table : FAILED[0:02:55] 2025-07-22 16:40:14,487 - INFO - -------------------------------------------------------------------------------- 2025-07-22 16:40:15,691 - INFO - Deleted project: ctest-TestStaticRouteTables-26981928, ID : d0e01656-c092-426b-b863-c38e831dd2ef