2025-05-15 12:39:39,390 - INFO - Domain Default found not creating 2025-05-15 12:39:39,546 - INFO - Project ctest-TestRoutersBasic-94561572 not found, creating it 2025-05-15 12:39:40,038 - INFO - Created Project:ctest-TestRoutersBasic-94561572, ID : 8b9df559-2e3f-4087-bd0a-3e1f859cd795 2025-05-15 12:39:42,155 - INFO - ================================================================================ 2025-05-15 12:39:42,155 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-15 12:39:42,157 - 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-15 12:39:42,410 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.0.0.48': '0'}} with 2025-05-15 12:39:42,410 - INFO - Initial checks done. Running the testcase now 2025-05-15 12:39:42,410 - INFO - 2025-05-15 12:39:43,112 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94561572 2025-05-15 12:39:43,209 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94561572 2025-05-15 12:39:43,545 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94561572', 'default']} 2025-05-15 12:39:43,844 - DEBUG - Response for create_network : {'network': {'id': '1410cb6b-599e-4c9a-9acf-24b0c1a7479b', 'name': 'ctest-vn-81666445', 'tenant_id': '8b9df5592e3f4087bd0a3e1f859cd795', 'project_id': '8b9df5592e3f4087bd0a3e1f859cd795', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94561572', 'ctest-vn-81666445'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 12:39:44,057 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fd0f8a3-41cf-4aeb-83d1-c44e1e2a8016', 'name': '', 'tenant_id': '8b9df5592e3f4087bd0a3e1f859cd795', 'network_id': '1410cb6b-599e-4c9a-9acf-24b0c1a7479b', 'ip_version': 4, 'cidr': '178.21.132.64/26', 'allocation_pools': [{'start': '178.21.132.66', 'end': '178.21.132.126'}], 'gateway_ip': '178.21.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.21.132.66', 'tags': [], 'project_id': '8b9df5592e3f4087bd0a3e1f859cd795'}} 2025-05-15 12:39:44,204 - INFO - Created VN ctest-vn-81666445 2025-05-15 12:39:44,257 - DEBUG - VN ctest-vn-81666445 UUID is 1410cb6b-599e-4c9a-9acf-24b0c1a7479b 2025-05-15 12:39:44,582 - DEBUG - Response for create_network : {'network': {'id': '1296ee05-5fa3-4f53-93bc-ef240e26bc85', 'name': 'ctest-ext_vn-45516412', 'tenant_id': '8b9df5592e3f4087bd0a3e1f859cd795', 'project_id': '8b9df5592e3f4087bd0a3e1f859cd795', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94561572', 'ctest-ext_vn-45516412'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 12:39:44,805 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df94d0ac-849b-4707-9665-19773c3fd426', 'name': '', 'tenant_id': '8b9df5592e3f4087bd0a3e1f859cd795', 'network_id': '1296ee05-5fa3-4f53-93bc-ef240e26bc85', 'ip_version': 4, 'cidr': '105.195.234.192/26', 'allocation_pools': [{'start': '105.195.234.194', 'end': '105.195.234.254'}], 'gateway_ip': '105.195.234.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.195.234.194', 'tags': [], 'project_id': '8b9df5592e3f4087bd0a3e1f859cd795'}} 2025-05-15 12:39:44,822 - INFO - Created VN ctest-ext_vn-45516412 2025-05-15 12:39:44,873 - DEBUG - VN ctest-ext_vn-45516412 UUID is 1296ee05-5fa3-4f53-93bc-ef240e26bc85 2025-05-15 12:39:45,043 - DEBUG - Services list from nova: [, , ] 2025-05-15 12:39:46,076 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3318-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3318-1) 2025-05-15 12:39:47,238 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3318-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3318-1) 2025-05-15 12:39:47,314 - INFO - Setting gateway for router 960a245f-d9f6-4cbe-bd1d-e4d4d74db0bb to network 1296ee05-5fa3-4f53-93bc-ef240e26bc85 2025-05-15 12:39:47,372 - INFO - Adding interface with subnet_id 9fd0f8a3-41cf-4aeb-83d1-c44e1e2a8016, port_id None to router 960a245f-d9f6-4cbe-bd1d-e4d4d74db0bb 2025-05-15 12:39:47,617 - INFO - Waiting for VM ctest-TestRoutersBasic-94561572-45667246 to be up.. 2025-05-15 12:39:47,723 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-15 12:39:52,816 - DEBUG - VM is in ACTIVE state now 2025-05-15 12:39:52,816 - INFO - VM name : ctest-TestRoutersBasic-94561572-45667246 2025-05-15 12:39:52,891 - DEBUG - VM ctest-TestRoutersBasic-94561572-45667246 ID is 80ac811e-10a4-4895-baee-7ffd7d278ba2 2025-05-15 12:39:52,913 - DEBUG - VM ctest-TestRoutersBasic-94561572-45667246 launched on Node cn-jenkins-deploy-platform-ansible-os-3318-1. 2025-05-15 12:39:53,010 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/80ac811e-10a4-4895-baee-7ffd7d278ba2 2025-05-15 12:39:53,315 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/80ac811e-10a4-4895-baee-7ffd7d278ba2 2025-05-15 12:39:53,354 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/e947f1f2-59a9-4902-b9c5-62edc57708be 2025-05-15 12:39:56,610 - 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 1006ms') 2025-05-15 12:39:56,610 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94561572-45667246 failed! 2025-05-15 12:39:56,669 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94561572:ctest-vn-81666445 is 178.21.132.65 and allocation pool is NOT set 2025-05-15 12:39:58,728 - 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=5.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.480 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.480/3.059/5.639/2.579 ms') 2025-05-15 12:39:58,728 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94561572-45667246 passed 2025-05-15 12:39:58,841 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 12:39:58,841 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94561572-45667246, IP 178.21.132.67, Port 22 2025-05-15 12:39:59,000 - DEBUG - VM ctest-TestRoutersBasic-94561572-45667246 is ready for SSH connections 2025-05-15 12:39:59,000 - INFO - Waiting for VM ctest-TestRoutersBasic-94561572-70519611 to be up.. 2025-05-15 12:39:59,093 - DEBUG - VM is in ACTIVE state now 2025-05-15 12:39:59,093 - INFO - VM name : ctest-TestRoutersBasic-94561572-70519611 2025-05-15 12:39:59,180 - DEBUG - VM ctest-TestRoutersBasic-94561572-70519611 ID is e659ca9b-87c4-47c8-b245-2ac2c09f5dd8 2025-05-15 12:39:59,180 - DEBUG - VM ctest-TestRoutersBasic-94561572-70519611 launched on Node cn-jenkins-deploy-platform-ansible-os-3318-1. 2025-05-15 12:39:59,274 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/e659ca9b-87c4-47c8-b245-2ac2c09f5dd8 2025-05-15 12:39:59,283 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/5b22c208-9bdb-4583-80db-54f5eedd8e84 2025-05-15 12:40:00,531 - 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=7.37 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.52 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.523/4.448/7.373/2.925 ms') 2025-05-15 12:40:00,531 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94561572-70519611 passed 2025-05-15 12:40:00,681 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 12:40:00,681 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94561572-70519611, IP 105.195.234.195, Port 22 2025-05-15 12:40:00,848 - DEBUG - VM ctest-TestRoutersBasic-94561572-70519611 is ready for SSH connections 2025-05-15 12:40:00,848 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 12:40:00,848 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:00,848 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:05,654 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:05,654 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:06,655 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:06,655 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:09,880 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:09,881 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:10,881 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:10,882 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:14,088 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:14,089 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:15,089 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:15,090 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:18,298 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:18,298 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:19,299 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:19,299 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:22,522 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:22,522 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:23,524 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:23,524 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:26,750 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:26,750 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:27,751 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:27,751 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:30,956 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:30,956 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:31,957 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:31,957 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:35,161 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:35,161 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:36,162 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:36,162 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:39,376 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:39,376 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:40,378 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:40,378 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:43,594 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:43,594 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:44,595 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.195.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-05-15 12:40:44,596 - DEBUG - ping -s 56 -c 3 -W 1 105.195.234.195 2025-05-15 12:40:47,818 - DEBUG - PING 105.195.234.195 (105.195.234.195): 56 data bytes --- 105.195.234.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-15 12:40:47,818 - WARNING - Ping to IP 105.195.234.195 from VM ctest-TestRoutersBasic-94561572-45667246 failed 2025-05-15 12:40:47,820 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 12:40:47,820 - INFO - Deleting interface with subnet_id 9fd0f8a3-41cf-4aeb-83d1-c44e1e2a8016, port_id None from router 960a245f-d9f6-4cbe-bd1d-e4d4d74db0bb 2025-05-15 12:40:48,029 - INFO - Deleting VM ctest-TestRoutersBasic-94561572-70519611 2025-05-15 12:40:48,120 - INFO - Deleting VM ctest-TestRoutersBasic-94561572-45667246 2025-05-15 12:40:48,225 - INFO - Deleting VN ctest-ext_vn-45516412 2025-05-15 12:40:48,307 - DEBUG - VN 1296ee05-5fa3-4f53-93bc-ef240e26bc85 still in use: Unable to complete operation on network 1296ee05-5fa3-4f53-93bc-ef240e26bc85. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2363c169-1c7b-4056-9561-3f5aa60ced79'] 2025-05-15 12:40:48,307 - WARNING - Deleting VN ctest-ext_vn-45516412 failed..Will retry 2025-05-15 12:40:50,404 - DEBUG - Response for deleting network () 2025-05-15 12:40:50,405 - INFO - Deleting VN ctest-vn-81666445 2025-05-15 12:40:50,507 - DEBUG - Response for deleting network () 2025-05-15 12:40:50,766 - ERROR - AssertionError Python 3.9.21: /usr/bin/python3 Thu May 15 12:40:47 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-94561572-45667246>> vm2_fixture = vm2_fixture.vm_ip = '105.195.234.195' 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-15 12:40:50,774 - DEBUG - No XMPP flaps were noticed during the test 2025-05-15 12:40:50,774 - INFO -
2025-05-15 12:40:50,774 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:08]
2025-05-15 12:40:50,774 - INFO - -------------------------------------------------------------------------------- 2025-05-15 12:40:51,579 - INFO - Deleted project: ctest-TestRoutersBasic-94561572, ID : 8b9df559-2e3f-4087-bd0a-3e1f859cd795