2025-05-01 12:49:57,671 - INFO - Domain Default found not creating 2025-05-01 12:49:57,817 - INFO - Project ctest-TestRoutersBasic-61802120 not found, creating it 2025-05-01 12:49:58,252 - INFO - Created Project:ctest-TestRoutersBasic-61802120, ID : 88337de0-f28a-4d1e-8bb8-c1f7ba5052ba 2025-05-01 12:49:59,571 - INFO - ================================================================================ 2025-05-01 12:49:59,571 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-01 12:49:59,571 - INFO - TEST DESCRIPTION : Create an external network, a router set router-gateway to external network launch a private network and attach it to router validate left vm pinging right vm through Snat 2025-05-01 12:49:59,823 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2025-05-01 12:49:59,823 - INFO - Initial checks done. Running the testcase now 2025-05-01 12:49:59,823 - INFO - 2025-05-01 12:50:00,510 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-61802120 2025-05-01 12:50:00,607 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-61802120 2025-05-01 12:50:00,930 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61802120', 'default']} 2025-05-01 12:50:01,216 - DEBUG - Response for create_network : {'network': {'id': '9377f33e-ed2b-4a77-8aea-a77d71ff8c4d', 'name': 'ctest-vn-89967216', 'tenant_id': '88337de0f28a4d1e8bb8c1f7ba5052ba', 'project_id': '88337de0f28a4d1e8bb8c1f7ba5052ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61802120', 'ctest-vn-89967216'], 'port_security_enabled': True, 'description': ''}} 2025-05-01 12:50:01,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bbec853-44a2-4a19-b749-67afb6a8a61e', 'name': '', 'tenant_id': '88337de0f28a4d1e8bb8c1f7ba5052ba', 'network_id': '9377f33e-ed2b-4a77-8aea-a77d71ff8c4d', 'ip_version': 4, 'cidr': '72.46.81.192/26', 'allocation_pools': [{'start': '72.46.81.194', 'end': '72.46.81.254'}], 'gateway_ip': '72.46.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.46.81.194', 'tags': [], 'project_id': '88337de0f28a4d1e8bb8c1f7ba5052ba'}} 2025-05-01 12:50:01,432 - INFO - Created VN ctest-vn-89967216 2025-05-01 12:50:01,482 - DEBUG - VN ctest-vn-89967216 UUID is 9377f33e-ed2b-4a77-8aea-a77d71ff8c4d 2025-05-01 12:50:01,824 - DEBUG - Response for create_network : {'network': {'id': 'c3a4334d-a74d-4642-99ca-dea0c960ae72', 'name': 'ctest-ext_vn-86521578', 'tenant_id': '88337de0f28a4d1e8bb8c1f7ba5052ba', 'project_id': '88337de0f28a4d1e8bb8c1f7ba5052ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61802120', 'ctest-ext_vn-86521578'], 'port_security_enabled': True, 'description': ''}} 2025-05-01 12:50:01,974 - DEBUG - Response for create_subnet : {'subnet': {'id': '92b0fd21-492e-4603-9239-e7685922de8e', 'name': '', 'tenant_id': '88337de0f28a4d1e8bb8c1f7ba5052ba', 'network_id': 'c3a4334d-a74d-4642-99ca-dea0c960ae72', 'ip_version': 4, 'cidr': '92.137.116.128/26', 'allocation_pools': [{'start': '92.137.116.130', 'end': '92.137.116.190'}], 'gateway_ip': '92.137.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.137.116.130', 'tags': [], 'project_id': '88337de0f28a4d1e8bb8c1f7ba5052ba'}} 2025-05-01 12:50:01,990 - INFO - Created VN ctest-ext_vn-86521578 2025-05-01 12:50:02,042 - DEBUG - VN ctest-ext_vn-86521578 UUID is c3a4334d-a74d-4642-99ca-dea0c960ae72 2025-05-01 12:50:02,238 - DEBUG - Services list from nova: [, , ] 2025-05-01 12:50:03,210 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3256-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3256-1) 2025-05-01 12:50:04,333 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3256-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3256-1) 2025-05-01 12:50:04,409 - INFO - Setting gateway for router 7b1ac14f-8700-442e-84ce-19c69e203064 to network c3a4334d-a74d-4642-99ca-dea0c960ae72 2025-05-01 12:50:04,485 - INFO - Adding interface with subnet_id 2bbec853-44a2-4a19-b749-67afb6a8a61e, port_id None to router 7b1ac14f-8700-442e-84ce-19c69e203064 2025-05-01 12:50:04,850 - INFO - Waiting for VM ctest-TestRoutersBasic-61802120-87550762 to be up.. 2025-05-01 12:50:05,037 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-01 12:50:10,113 - DEBUG - VM is in ACTIVE state now 2025-05-01 12:50:10,113 - INFO - VM name : ctest-TestRoutersBasic-61802120-87550762 2025-05-01 12:50:10,200 - DEBUG - VM ctest-TestRoutersBasic-61802120-87550762 ID is b9ddb5aa-075b-42b1-b59e-13fb7669b2de 2025-05-01 12:50:10,221 - DEBUG - VM ctest-TestRoutersBasic-61802120-87550762 launched on Node cn-jenkins-deploy-platform-ansible-os-3256-1. 2025-05-01 12:50:10,426 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b9ddb5aa-075b-42b1-b59e-13fb7669b2de 2025-05-01 12:50:10,716 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b9ddb5aa-075b-42b1-b59e-13fb7669b2de 2025-05-01 12:50:10,746 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/41406464-ea4a-45b7-ba3f-7b75bbf71089 2025-05-01 12:50:14,005 - 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=12.7 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1031ms\r\nrtt min/avg/max/mdev = 12.709/12.709/12.709/0.000 ms') 2025-05-01 12:50:14,005 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61802120-87550762 passed 2025-05-01 12:50:14,158 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-01 12:50:14,159 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61802120-87550762, IP 72.46.81.195, Port 22 2025-05-01 12:50:14,324 - DEBUG - VM ctest-TestRoutersBasic-61802120-87550762 is ready for SSH connections 2025-05-01 12:50:14,325 - INFO - Waiting for VM ctest-TestRoutersBasic-61802120-54205868 to be up.. 2025-05-01 12:50:14,403 - DEBUG - VM is in ACTIVE state now 2025-05-01 12:50:14,403 - INFO - VM name : ctest-TestRoutersBasic-61802120-54205868 2025-05-01 12:50:14,482 - DEBUG - VM ctest-TestRoutersBasic-61802120-54205868 ID is 4a2c42c6-8f09-4537-aad3-da8c0fd23a81 2025-05-01 12:50:14,482 - DEBUG - VM ctest-TestRoutersBasic-61802120-54205868 launched on Node cn-jenkins-deploy-platform-ansible-os-3256-1. 2025-05-01 12:50:14,567 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/4a2c42c6-8f09-4537-aad3-da8c0fd23a81 2025-05-01 12:50:14,574 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/3064f1e2-810a-47af-aecd-ddf17ae0ac13 2025-05-01 12:50:15,822 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.46 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.456/2.543/3.631/1.087 ms') 2025-05-01 12:50:15,822 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-61802120-54205868 passed 2025-05-01 12:50:15,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-01 12:50:15,975 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61802120-54205868, IP 92.137.116.131, Port 22 2025-05-01 12:50:16,034 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-05-01 12:50:16,105 - DEBUG - VM ctest-TestRoutersBasic-61802120-54205868 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-01 12:50:21,106 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-01 12:50:21,106 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61802120-54205868, IP 92.137.116.131, Port 22 2025-05-01 12:50:21,258 - DEBUG - VM ctest-TestRoutersBasic-61802120-54205868 is ready for SSH connections 2025-05-01 12:50:21,258 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-01 12:50:21,259 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:21,259 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:26,045 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:26,045 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:50:27,046 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:27,047 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:30,246 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:30,246 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:50:31,246 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:31,246 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:34,455 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:34,455 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:50:35,457 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:35,457 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:38,650 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:38,650 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:50:39,650 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:39,651 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:42,849 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:42,849 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:50:43,850 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:43,850 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:47,049 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:47,049 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:50:48,050 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:48,050 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:51,240 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:51,240 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:50:52,241 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:52,241 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:55,433 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:55,433 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:50:56,434 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:50:56,434 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:50:59,639 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:50:59,640 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:51:00,641 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:51:00,641 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:51:03,844 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:51:03,844 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:51:04,845 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.137.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-01 12:51:04,845 - DEBUG - ping -s 56 -c 3 -W 1 92.137.116.131 2025-05-01 12:51:08,044 - DEBUG - PING 92.137.116.131 (92.137.116.131): 56 data bytes --- 92.137.116.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-01 12:51:08,044 - WARNING - Ping to IP 92.137.116.131 from VM ctest-TestRoutersBasic-61802120-87550762 failed 2025-05-01 12:51:08,044 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-01 12:51:08,045 - INFO - Deleting interface with subnet_id 2bbec853-44a2-4a19-b749-67afb6a8a61e, port_id None from router 7b1ac14f-8700-442e-84ce-19c69e203064 2025-05-01 12:51:08,210 - INFO - Deleting VM ctest-TestRoutersBasic-61802120-54205868 2025-05-01 12:51:08,273 - INFO - Deleting VM ctest-TestRoutersBasic-61802120-87550762 2025-05-01 12:51:08,365 - INFO - Deleting VN ctest-ext_vn-86521578 2025-05-01 12:51:08,436 - DEBUG - VN c3a4334d-a74d-4642-99ca-dea0c960ae72 still in use: Unable to complete operation on network c3a4334d-a74d-4642-99ca-dea0c960ae72. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7cc65cc8-6d74-4b6f-bb93-b0194a813a7e'] 2025-05-01 12:51:08,436 - WARNING - Deleting VN ctest-ext_vn-86521578 failed..Will retry 2025-05-01 12:51:10,529 - DEBUG - Response for deleting network () 2025-05-01 12:51:10,529 - INFO - Deleting VN ctest-vn-89967216 2025-05-01 12:51:10,621 - DEBUG - Response for deleting network () 2025-05-01 12:51:10,870 - ERROR - AssertionError Python 3.9.21: /usr/bin/python3 Thu May 1 12:51:08 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/neutron/test_routers_basic.py in test_basic_snat_behavior_without_external_connectivity(self=) 49 vm1_fixture.wait_till_vm_is_up() 50 vm2_fixture.wait_till_vm_is_up() 51 assert vm1_fixture.ping_with_certainty( 52 vm2_fixture.vm_ip), 'Ping from vm_left to vm_right through snat failed' 53 return True vm1_fixture = vm1_fixture.ping_with_certainty = .deco_retry....xture: ctest-TestRoutersBasic-61802120-87550762>> vm2_fixture = vm2_fixture.vm_ip = '92.137.116.131' AssertionError: Ping from vm_left to vm_right through snat failed __cause__ = None __class__ = __context__ = None __delattr__ = __dict__ = {} __dir__ = __doc__ = 'Assertion failed.' __eq__ = __format__ = __ge__ = __getattribute__ = __gt__ = __hash__ = __init__ = __init_subclass__ = __le__ = __lt__ = __ne__ = __new__ = __reduce__ = __reduce_ex__ = __repr__ = __setattr__ = __setstate__ = __sizeof__ = __str__ = __subclasshook__ = __suppress_context__ = False __traceback__ = args = ('Ping from vm_left to vm_right through snat failed',) 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/neutron/test_routers_basic.py", line 51, in test_basic_snat_behavior_without_external_connectivity assert vm1_fixture.ping_with_certainty( AssertionError: Ping from vm_left to vm_right through snat failed 2025-05-01 12:51:10,875 - DEBUG - No XMPP flaps were noticed during the test 2025-05-01 12:51:10,875 - INFO - 2025-05-01 12:51:10,875 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:11] 2025-05-01 12:51:10,875 - INFO - -------------------------------------------------------------------------------- 2025-05-01 12:51:11,502 - INFO - Deleted project: ctest-TestRoutersBasic-61802120, ID : 88337de0-f28a-4d1e-8bb8-c1f7ba5052ba