2025-05-03 09:12:14,595 - INFO - Domain Default found not creating 2025-05-03 09:12:14,716 - INFO - Project ctest-TestRoutersBasic-28849850 not found, creating it 2025-05-03 09:12:15,133 - INFO - Created Project:ctest-TestRoutersBasic-28849850, ID : 6e3acc34-384b-493e-ba00-ef3ec153c021 2025-05-03 09:12:16,440 - INFO - ================================================================================ 2025-05-03 09:12:16,441 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-03 09:12:16,441 - 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-03 09:12:16,691 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with 2025-05-03 09:12:16,691 - INFO - Initial checks done. Running the testcase now 2025-05-03 09:12:16,691 - INFO - 2025-05-03 09:12:17,373 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28849850 2025-05-03 09:12:17,470 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28849850 2025-05-03 09:12:17,798 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28849850', 'default']} 2025-05-03 09:12:18,073 - DEBUG - Response for create_network : {'network': {'id': 'f500edb9-79bb-4f46-ad5c-5b2a8025f1ff', 'name': 'ctest-vn-15182526', 'tenant_id': '6e3acc34384b493eba00ef3ec153c021', 'project_id': '6e3acc34384b493eba00ef3ec153c021', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28849850', 'ctest-vn-15182526'], 'port_security_enabled': True, 'description': ''}} 2025-05-03 09:12:18,230 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e412c172-89da-40d8-81fa-c31b443c258d', 'name': '', 'tenant_id': '6e3acc34384b493eba00ef3ec153c021', 'network_id': 'f500edb9-79bb-4f46-ad5c-5b2a8025f1ff', 'ip_version': 4, 'cidr': '82.226.31.64/26', 'allocation_pools': [{'start': '82.226.31.66', 'end': '82.226.31.126'}], 'gateway_ip': '82.226.31.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.226.31.66', 'tags': [], 'project_id': '6e3acc34384b493eba00ef3ec153c021'}} 2025-05-03 09:12:18,244 - INFO - Created VN ctest-vn-15182526 2025-05-03 09:12:18,294 - DEBUG - VN ctest-vn-15182526 UUID is f500edb9-79bb-4f46-ad5c-5b2a8025f1ff 2025-05-03 09:12:18,635 - DEBUG - Response for create_network : {'network': {'id': 'e657afcd-c6ed-4afa-a4ae-2044b5e2ebf2', 'name': 'ctest-ext_vn-18666889', 'tenant_id': '6e3acc34384b493eba00ef3ec153c021', 'project_id': '6e3acc34384b493eba00ef3ec153c021', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28849850', 'ctest-ext_vn-18666889'], 'port_security_enabled': True, 'description': ''}} 2025-05-03 09:12:18,805 - DEBUG - Response for create_subnet : {'subnet': {'id': '22afd59c-d551-477e-acbe-ab5a6acac1c0', 'name': '', 'tenant_id': '6e3acc34384b493eba00ef3ec153c021', 'network_id': 'e657afcd-c6ed-4afa-a4ae-2044b5e2ebf2', 'ip_version': 4, 'cidr': '188.30.131.0/26', 'allocation_pools': [{'start': '188.30.131.2', 'end': '188.30.131.62'}], 'gateway_ip': '188.30.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.30.131.2', 'tags': [], 'project_id': '6e3acc34384b493eba00ef3ec153c021'}} 2025-05-03 09:12:18,822 - INFO - Created VN ctest-ext_vn-18666889 2025-05-03 09:12:18,874 - DEBUG - VN ctest-ext_vn-18666889 UUID is e657afcd-c6ed-4afa-a4ae-2044b5e2ebf2 2025-05-03 09:12:19,066 - DEBUG - Services list from nova: [, , ] 2025-05-03 09:12:20,012 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3259-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3259-1) 2025-05-03 09:12:21,391 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3259-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3259-1) 2025-05-03 09:12:21,550 - INFO - Setting gateway for router b7feb7bc-326f-484b-9096-41ef5dc9ff20 to network e657afcd-c6ed-4afa-a4ae-2044b5e2ebf2 2025-05-03 09:12:21,625 - INFO - Adding interface with subnet_id e412c172-89da-40d8-81fa-c31b443c258d, port_id None to router b7feb7bc-326f-484b-9096-41ef5dc9ff20 2025-05-03 09:12:22,096 - INFO - Waiting for VM ctest-TestRoutersBasic-28849850-65868553 to be up.. 2025-05-03 09:12:22,235 - DEBUG - VM is in ACTIVE state now 2025-05-03 09:12:22,235 - INFO - VM name : ctest-TestRoutersBasic-28849850-65868553 2025-05-03 09:12:22,346 - DEBUG - VM ctest-TestRoutersBasic-28849850-65868553 ID is 3cb2c1da-29f8-4c0f-8eb4-54c674fdad8b 2025-05-03 09:12:22,370 - DEBUG - VM ctest-TestRoutersBasic-28849850-65868553 launched on Node cn-jenkins-deploy-platform-ansible-os-3259-1. 2025-05-03 09:12:22,463 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/3cb2c1da-29f8-4c0f-8eb4-54c674fdad8b 2025-05-03 09:12:22,778 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/3cb2c1da-29f8-4c0f-8eb4-54c674fdad8b 2025-05-03 09:12:22,812 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/2c181bd6-1da3-45a1-aee5-c122e905b7fe 2025-05-03 09:12:26,074 - 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-05-03 09:12:26,074 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28849850-65868553 failed! 2025-05-03 09:12:26,130 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28849850:ctest-vn-15182526 is 82.226.31.65 and allocation pool is NOT set 2025-05-03 09:12:30,195 - 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 1012ms') 2025-05-03 09:12:30,195 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28849850-65868553 failed! 2025-05-03 09:12:30,258 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28849850:ctest-vn-15182526 is 82.226.31.65 and allocation pool is NOT set 2025-05-03 09:12:32,315 - 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=2.51 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.356 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.356/1.433/2.510/1.077 ms') 2025-05-03 09:12:32,315 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28849850-65868553 passed 2025-05-03 09:12:32,462 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-03 09:12:32,462 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28849850-65868553, IP 82.226.31.67, Port 22 2025-05-03 09:12:32,618 - DEBUG - VM ctest-TestRoutersBasic-28849850-65868553 is ready for SSH connections 2025-05-03 09:12:32,618 - INFO - Waiting for VM ctest-TestRoutersBasic-28849850-51277323 to be up.. 2025-05-03 09:12:32,683 - DEBUG - VM is in ACTIVE state now 2025-05-03 09:12:32,683 - INFO - VM name : ctest-TestRoutersBasic-28849850-51277323 2025-05-03 09:12:32,751 - DEBUG - VM ctest-TestRoutersBasic-28849850-51277323 ID is 2874def8-a1ff-4f52-85d4-d1e6695f29c9 2025-05-03 09:12:32,751 - DEBUG - VM ctest-TestRoutersBasic-28849850-51277323 launched on Node cn-jenkins-deploy-platform-ansible-os-3259-1. 2025-05-03 09:12:32,820 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/2874def8-a1ff-4f52-85d4-d1e6695f29c9 2025-05-03 09:12:32,827 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/bca3d649-ce49-4324-8745-b058f3d4b439 2025-05-03 09:12:34,064 - 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=4.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.72 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.716/3.078/4.441/1.362 ms') 2025-05-03 09:12:34,064 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28849850-51277323 passed 2025-05-03 09:12:34,210 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-03 09:12:34,210 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28849850-51277323, IP 188.30.131.3, Port 22 2025-05-03 09:12:34,365 - DEBUG - VM ctest-TestRoutersBasic-28849850-51277323 is ready for SSH connections 2025-05-03 09:12:34,365 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-03 09:12:34,365 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:12:34,365 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:12:39,120 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:12:39,120 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:12:40,120 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:12:40,120 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:12:43,321 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:12:43,321 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:12:44,321 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:12:44,322 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:12:47,517 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:12:47,517 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:12:48,518 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:12:48,518 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:12:51,723 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:12:51,723 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:12:52,724 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:12:52,724 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:12:55,925 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:12:55,925 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:12:56,926 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:12:56,926 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:13:00,128 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:13:00,128 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:13:01,129 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:13:01,130 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:13:04,332 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:13:04,332 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:13:05,333 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:13:05,334 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:13:08,537 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:13:08,537 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:13:09,538 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:13:09,538 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:13:12,733 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:13:12,733 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:13:13,733 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:13:13,733 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:13:16,933 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:13:16,933 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:13:17,934 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.30.131.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-05-03 09:13:17,934 - DEBUG - ping -s 56 -c 3 -W 1 188.30.131.3 2025-05-03 09:13:21,131 - DEBUG - PING 188.30.131.3 (188.30.131.3): 56 data bytes --- 188.30.131.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-03 09:13:21,131 - WARNING - Ping to IP 188.30.131.3 from VM ctest-TestRoutersBasic-28849850-65868553 failed 2025-05-03 09:13:21,132 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-03 09:13:21,133 - INFO - Deleting interface with subnet_id e412c172-89da-40d8-81fa-c31b443c258d, port_id None from router b7feb7bc-326f-484b-9096-41ef5dc9ff20 2025-05-03 09:13:21,313 - INFO - Deleting VM ctest-TestRoutersBasic-28849850-51277323 2025-05-03 09:13:21,376 - INFO - Deleting VM ctest-TestRoutersBasic-28849850-65868553 2025-05-03 09:13:21,451 - INFO - Deleting VN ctest-ext_vn-18666889 2025-05-03 09:13:21,510 - DEBUG - VN e657afcd-c6ed-4afa-a4ae-2044b5e2ebf2 still in use: Unable to complete operation on network e657afcd-c6ed-4afa-a4ae-2044b5e2ebf2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e2e3f2a6-8964-49b9-9e61-da2f9a487e2c'] 2025-05-03 09:13:21,510 - WARNING - Deleting VN ctest-ext_vn-18666889 failed..Will retry 2025-05-03 09:13:23,607 - DEBUG - Response for deleting network () 2025-05-03 09:13:23,607 - INFO - Deleting VN ctest-vn-15182526 2025-05-03 09:13:23,693 - DEBUG - Response for deleting network () 2025-05-03 09:13:23,941 - ERROR - AssertionError Python 3.9.21: /usr/bin/python3 Sat May 3 09:13:21 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-28849850-65868553>> vm2_fixture = vm2_fixture.vm_ip = '188.30.131.3' 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-03 09:13:23,947 - DEBUG - No XMPP flaps were noticed during the test 2025-05-03 09:13:23,947 - INFO -
2025-05-03 09:13:23,947 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:07]
2025-05-03 09:13:23,947 - INFO - -------------------------------------------------------------------------------- 2025-05-03 09:13:24,582 - INFO - Deleted project: ctest-TestRoutersBasic-28849850, ID : 6e3acc34-384b-493e-ba00-ef3ec153c021