2025-11-03 02:18:54,236 - INFO - Domain Default found not creating 2025-11-03 02:18:54,377 - INFO - Project ctest-TestRoutersBasic-50662366 not found, creating it 2025-11-03 02:18:54,883 - INFO - Created Project:ctest-TestRoutersBasic-50662366, ID : c8fadca0-a47e-4207-9b4c-d41e86f79bfb 2025-11-03 02:18:56,341 - INFO - ================================================================================ 2025-11-03 02:18:56,341 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-03 02:18:56,341 - 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-11-03 02:18:57,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.33': {'10.20.0.17': '0', '10.20.0.193': '0'}} with 2025-11-03 02:18:57,622 - INFO - Initial checks done. Running the testcase now 2025-11-03 02:18:57,622 - INFO - 2025-11-03 02:18:58,351 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50662366 2025-11-03 02:18:58,412 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50662366 2025-11-03 02:18:58,727 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50662366', 'default']} 2025-11-03 02:18:59,159 - DEBUG - Response for create_network : {'network': {'id': '0234c410-5d25-4ad2-a797-66ffb982e106', 'name': 'ctest-vn-08860329', 'tenant_id': 'c8fadca0a47e42079b4cd41e86f79bfb', 'project_id': 'c8fadca0a47e42079b4cd41e86f79bfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50662366', 'ctest-vn-08860329'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 02:18:59,409 - DEBUG - Response for create_subnet : {'subnet': {'id': '2113d03a-a67d-4302-a029-02f98746bb66', 'name': '', 'tenant_id': 'c8fadca0a47e42079b4cd41e86f79bfb', 'network_id': '0234c410-5d25-4ad2-a797-66ffb982e106', 'ip_version': 4, 'cidr': '146.195.163.64/26', 'allocation_pools': [{'start': '146.195.163.66', 'end': '146.195.163.126'}], 'gateway_ip': '146.195.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.195.163.66', 'tags': [], 'project_id': 'c8fadca0a47e42079b4cd41e86f79bfb'}} 2025-11-03 02:18:59,431 - INFO - Created VN ctest-vn-08860329 2025-11-03 02:18:59,442 - DEBUG - VN ctest-vn-08860329 UUID is 0234c410-5d25-4ad2-a797-66ffb982e106 2025-11-03 02:18:59,869 - DEBUG - Response for create_network : {'network': {'id': 'f867f1c2-a948-4b03-a614-b53efe8f7793', 'name': 'ctest-ext_vn-20956970', 'tenant_id': 'c8fadca0a47e42079b4cd41e86f79bfb', 'project_id': 'c8fadca0a47e42079b4cd41e86f79bfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50662366', 'ctest-ext_vn-20956970'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 02:19:00,080 - DEBUG - Response for create_subnet : {'subnet': {'id': '364ce5e4-15b5-4500-b149-64aba5a9daf8', 'name': '', 'tenant_id': 'c8fadca0a47e42079b4cd41e86f79bfb', 'network_id': 'f867f1c2-a948-4b03-a614-b53efe8f7793', 'ip_version': 4, 'cidr': '181.240.1.0/26', 'allocation_pools': [{'start': '181.240.1.2', 'end': '181.240.1.62'}], 'gateway_ip': '181.240.1.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.240.1.2', 'tags': [], 'project_id': 'c8fadca0a47e42079b4cd41e86f79bfb'}} 2025-11-03 02:19:00,104 - INFO - Created VN ctest-ext_vn-20956970 2025-11-03 02:19:00,116 - DEBUG - VN ctest-ext_vn-20956970 UUID is f867f1c2-a948-4b03-a614-b53efe8f7793 2025-11-03 02:19:00,253 - DEBUG - Services list from nova: [, , , ] 2025-11-03 02:19:01,296 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4597-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4597-1) 2025-11-03 02:19:02,687 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4597-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4597-2) 2025-11-03 02:19:02,813 - INFO - Setting gateway for router dc9bf1aa-2597-4b04-b1f8-5b354ca56f61 to network f867f1c2-a948-4b03-a614-b53efe8f7793 2025-11-03 02:19:02,902 - INFO - Adding interface with subnet_id 2113d03a-a67d-4302-a029-02f98746bb66, port_id None to router dc9bf1aa-2597-4b04-b1f8-5b354ca56f61 2025-11-03 02:19:03,425 - INFO - Waiting for VM ctest-TestRoutersBasic-50662366-39398495 to be up.. 2025-11-03 02:19:03,601 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 02:19:08,688 - DEBUG - VM is in ACTIVE state now 2025-11-03 02:19:08,688 - INFO - VM name : ctest-TestRoutersBasic-50662366-39398495 2025-11-03 02:19:08,769 - DEBUG - VM ctest-TestRoutersBasic-50662366-39398495 ID is 0f5cfbd3-f659-4129-8a83-a83fd76210c1 2025-11-03 02:19:08,794 - DEBUG - VM ctest-TestRoutersBasic-50662366-39398495 launched on Node an-jenkins-deploy-platform-ansible-os-4597-1 2025-11-03 02:19:08,868 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0f5cfbd3-f659-4129-8a83-a83fd76210c1 2025-11-03 02:19:09,166 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0f5cfbd3-f659-4129-8a83-a83fd76210c1 2025-11-03 02:19:09,196 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/272daa4b-17fa-423b-956e-19a7295457ba 2025-11-03 02:19:12,392 - 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-11-03 02:19:12,392 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50662366-39398495 failed! 2025-11-03 02:19:12,406 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50662366:ctest-vn-08860329 is 146.195.163.65 and allocation pool is NOT set 2025-11-03 02:19:14,474 - 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.36 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.461 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.461/1.909/3.358/1.448 ms') 2025-11-03 02:19:14,474 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50662366-39398495 passed 2025-11-03 02:19:14,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:19:14,544 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50662366-39398495, IP 146.195.163.67, Port 22 2025-11-03 02:19:14,712 - DEBUG - VM ctest-TestRoutersBasic-50662366-39398495 is ready for SSH connections 2025-11-03 02:19:14,712 - INFO - Waiting for VM ctest-TestRoutersBasic-50662366-17124828 to be up.. 2025-11-03 02:19:14,790 - DEBUG - VM is in ACTIVE state now 2025-11-03 02:19:14,790 - INFO - VM name : ctest-TestRoutersBasic-50662366-17124828 2025-11-03 02:19:14,867 - DEBUG - VM ctest-TestRoutersBasic-50662366-17124828 ID is 94766bc3-674a-46e7-ab7b-92a91cd098e0 2025-11-03 02:19:14,867 - DEBUG - VM ctest-TestRoutersBasic-50662366-17124828 launched on Node an-jenkins-deploy-platform-ansible-os-4597-2 2025-11-03 02:19:14,940 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/94766bc3-674a-46e7-ab7b-92a91cd098e0 2025-11-03 02:19:14,950 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/d1d351e4-939c-46cc-95bc-d26e95271cc7 2025-11-03 02:19:18,130 - 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-11-03 02:19:18,130 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50662366-17124828 failed! 2025-11-03 02:19:18,144 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50662366:ctest-ext_vn-20956970 is 181.240.1.1 and allocation pool is NOT set 2025-11-03 02:19:22,226 - 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 1022ms') 2025-11-03 02:19:22,226 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50662366-17124828 failed! 2025-11-03 02:19:22,241 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50662366:ctest-ext_vn-20956970 is 181.240.1.1 and allocation pool is NOT set 2025-11-03 02:19:24,310 - 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.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.42 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.422/3.003/4.585/1.581 ms') 2025-11-03 02:19:24,311 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50662366-17124828 passed 2025-11-03 02:19:24,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:19:24,381 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50662366-17124828, IP 181.240.1.3, Port 22 2025-11-03 02:19:24,549 - DEBUG - VM ctest-TestRoutersBasic-50662366-17124828 is ready for SSH connections 2025-11-03 02:19:24,549 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 02:19:24,549 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 181.240.1.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.73, gateway password: c0ntrail123 2025-11-03 02:19:24,549 - DEBUG - ping -s 56 -c 3 -W 1 181.240.1.3 2025-11-03 02:19:28,236 - DEBUG - PING 181.240.1.3 (181.240.1.3): 56 data bytes 64 bytes from 181.240.1.3: seq=0 ttl=62 time=10.149 ms 64 bytes from 181.240.1.3: seq=1 ttl=62 time=1.321 ms 64 bytes from 181.240.1.3: seq=2 ttl=62 time=1.547 ms --- 181.240.1.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.321/4.339/10.149 ms 2025-11-03 02:19:28,236 - INFO - Ping to IP 181.240.1.3 from VM ctest-TestRoutersBasic-50662366-39398495 passed 2025-11-03 02:19:28,236 - INFO - Deleting interface with subnet_id 2113d03a-a67d-4302-a029-02f98746bb66, port_id None from router dc9bf1aa-2597-4b04-b1f8-5b354ca56f61 2025-11-03 02:19:28,638 - INFO - Deleting VM ctest-TestRoutersBasic-50662366-17124828 2025-11-03 02:19:28,809 - INFO - Deleting VM ctest-TestRoutersBasic-50662366-39398495 2025-11-03 02:19:28,944 - INFO - Deleting VN ctest-ext_vn-20956970 2025-11-03 02:19:29,056 - DEBUG - VN f867f1c2-a948-4b03-a614-b53efe8f7793 still in use: Unable to complete operation on network f867f1c2-a948-4b03-a614-b53efe8f7793. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-50511ab9-a58b-4671-9430-d39b088c84b8'] 2025-11-03 02:19:29,056 - WARNING - Deleting VN ctest-ext_vn-20956970 failed..Will retry 2025-11-03 02:19:31,239 - DEBUG - Response for deleting network () 2025-11-03 02:19:31,239 - INFO - Deleting VN ctest-vn-08860329 2025-11-03 02:19:31,433 - DEBUG - Response for deleting network () 2025-11-03 02:19:32,703 - DEBUG - No XMPP flaps were noticed during the test
2025-11-03 02:19:32,703 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36]
2025-11-03 02:19:32,703 - INFO - -------------------------------------------------------------------------------- 2025-11-03 02:19:33,482 - INFO - Deleted project: ctest-TestRoutersBasic-50662366, ID : c8fadca0-a47e-4207-9b4c-d41e86f79bfb