2024-09-17 18:31:20,708 - INFO - Domain Default found not creating 2024-09-17 18:31:20,860 - INFO - Project ctest-TestRoutersBasic-55286161 not found, creating it 2024-09-17 18:31:21,360 - INFO - Created Project:ctest-TestRoutersBasic-55286161, ID : 0d3688bb-d479-4b8d-9744-435d1cb862aa 2024-09-17 18:31:22,908 - INFO - ================================================================================ 2024-09-17 18:31:22,909 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 18:31:22,909 - 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 2024-09-17 18:31:23,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2024-09-17 18:31:23,165 - INFO - Initial checks done. Running the testcase now 2024-09-17 18:31:23,165 - INFO - 2024-09-17 18:31:23,920 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-55286161 2024-09-17 18:31:24,035 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-55286161 2024-09-17 18:31:24,375 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55286161', 'default']} 2024-09-17 18:31:24,697 - DEBUG - Response for create_network : {'network': {'id': '6170f87f-7538-47f0-b5f8-4409bad7c96d', 'name': 'ctest-vn-19247189', 'tenant_id': '0d3688bbd4794b8d9744435d1cb862aa', 'project_id': '0d3688bbd4794b8d9744435d1cb862aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55286161', 'ctest-vn-19247189'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 18:31:24,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b1b4f2e-6e3e-4dce-807d-e0b46c11c210', 'name': '', 'tenant_id': '0d3688bbd4794b8d9744435d1cb862aa', 'network_id': '6170f87f-7538-47f0-b5f8-4409bad7c96d', 'ip_version': 4, 'cidr': '14.101.135.64/26', 'allocation_pools': [{'start': '14.101.135.66', 'end': '14.101.135.126'}], 'gateway_ip': '14.101.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.101.135.66', 'tags': [], 'project_id': '0d3688bbd4794b8d9744435d1cb862aa'}} 2024-09-17 18:31:24,907 - INFO - Created VN ctest-vn-19247189 2024-09-17 18:31:24,967 - DEBUG - VN ctest-vn-19247189 UUID is 6170f87f-7538-47f0-b5f8-4409bad7c96d 2024-09-17 18:31:25,387 - DEBUG - Response for create_network : {'network': {'id': '408754f1-ea0c-4795-b4a6-fabcc85bd688', 'name': 'ctest-ext_vn-08598069', 'tenant_id': '0d3688bbd4794b8d9744435d1cb862aa', 'project_id': '0d3688bbd4794b8d9744435d1cb862aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55286161', 'ctest-ext_vn-08598069'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 18:31:25,569 - DEBUG - Response for create_subnet : {'subnet': {'id': '25b88ad8-017f-461a-bb5d-08d75ac28e07', 'name': '', 'tenant_id': '0d3688bbd4794b8d9744435d1cb862aa', 'network_id': '408754f1-ea0c-4795-b4a6-fabcc85bd688', 'ip_version': 4, 'cidr': '88.206.120.192/26', 'allocation_pools': [{'start': '88.206.120.194', 'end': '88.206.120.254'}], 'gateway_ip': '88.206.120.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.206.120.194', 'tags': [], 'project_id': '0d3688bbd4794b8d9744435d1cb862aa'}} 2024-09-17 18:31:25,588 - INFO - Created VN ctest-ext_vn-08598069 2024-09-17 18:31:25,643 - DEBUG - VN ctest-ext_vn-08598069 UUID is 408754f1-ea0c-4795-b4a6-fabcc85bd688 2024-09-17 18:31:25,821 - DEBUG - Services list from nova: [, , ] 2024-09-17 18:31:26,864 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1966-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1966-1) 2024-09-17 18:31:28,122 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1966-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1966-1) 2024-09-17 18:31:28,216 - INFO - Setting gateway for router 90d14b45-5e48-4897-8563-d72662c7ab4f to network 408754f1-ea0c-4795-b4a6-fabcc85bd688 2024-09-17 18:31:28,301 - INFO - Adding interface with subnet_id 8b1b4f2e-6e3e-4dce-807d-e0b46c11c210, port_id None to router 90d14b45-5e48-4897-8563-d72662c7ab4f 2024-09-17 18:31:28,677 - INFO - Waiting for VM ctest-TestRoutersBasic-55286161-62484808 to be up.. 2024-09-17 18:31:28,867 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 18:31:33,964 - DEBUG - VM is in ACTIVE state now 2024-09-17 18:31:33,964 - INFO - VM name : ctest-TestRoutersBasic-55286161-62484808 2024-09-17 18:31:34,059 - DEBUG - VM ctest-TestRoutersBasic-55286161-62484808 ID is 8c5102dd-fa36-42c1-96b2-a07430d8a4d5 2024-09-17 18:31:34,079 - DEBUG - VM ctest-TestRoutersBasic-55286161-62484808 launched on Node cn-jenkins-deploy-platform-ansible-os-1966-1 2024-09-17 18:31:34,163 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/8c5102dd-fa36-42c1-96b2-a07430d8a4d5 2024-09-17 18:31:34,463 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/8c5102dd-fa36-42c1-96b2-a07430d8a4d5 2024-09-17 18:31:34,503 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/c5f9cafb-3c7a-4aab-a4ef-7e3b7f7ab63d 2024-09-17 18:31:37,770 - 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 1007ms') 2024-09-17 18:31:37,770 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-55286161-62484808 failed! 2024-09-17 18:31:37,839 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-55286161:ctest-vn-19247189 is 14.101.135.65 and allocation pool is NOT set 2024-09-17 18:31:39,904 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.541 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.541/1.689/2.838/1.148 ms') 2024-09-17 18:31:39,904 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-55286161-62484808 passed 2024-09-17 18:31:40,071 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 18:31:40,071 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-55286161-62484808, IP 14.101.135.67, Port 22 2024-09-17 18:31:40,241 - DEBUG - VM ctest-TestRoutersBasic-55286161-62484808 is ready for SSH connections 2024-09-17 18:31:40,242 - INFO - Waiting for VM ctest-TestRoutersBasic-55286161-03741228 to be up.. 2024-09-17 18:31:40,337 - DEBUG - VM is in ACTIVE state now 2024-09-17 18:31:40,337 - INFO - VM name : ctest-TestRoutersBasic-55286161-03741228 2024-09-17 18:31:40,427 - DEBUG - VM ctest-TestRoutersBasic-55286161-03741228 ID is 5dc593ef-aea8-410a-b079-7c5408836c22 2024-09-17 18:31:40,427 - DEBUG - VM ctest-TestRoutersBasic-55286161-03741228 launched on Node cn-jenkins-deploy-platform-ansible-os-1966-1 2024-09-17 18:31:40,521 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/5dc593ef-aea8-410a-b079-7c5408836c22 2024-09-17 18:31:40,533 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/4112419a-98a2-41b3-9b2e-a7c4053820bf 2024-09-17 18:31:41,794 - 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.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.499 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 = 0.499/2.458/4.417/1.959 ms') 2024-09-17 18:31:41,794 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-55286161-03741228 passed 2024-09-17 18:31:41,959 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 18:31:41,959 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-55286161-03741228, IP 88.206.120.195, Port 22 2024-09-17 18:31:42,123 - DEBUG - VM ctest-TestRoutersBasic-55286161-03741228 is ready for SSH connections 2024-09-17 18:31:42,123 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 18:31:42,123 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 88.206.120.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-09-17 18:31:42,123 - DEBUG - ping -s 56 -c 3 -W 1 88.206.120.195 2024-09-17 18:31:45,823 - DEBUG - PING 88.206.120.195 (88.206.120.195): 56 data bytes 64 bytes from 88.206.120.195: seq=0 ttl=62 time=6.723 ms 64 bytes from 88.206.120.195: seq=1 ttl=62 time=0.784 ms 64 bytes from 88.206.120.195: seq=2 ttl=62 time=0.917 ms --- 88.206.120.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.784/2.808/6.723 ms 2024-09-17 18:31:45,823 - INFO - Ping to IP 88.206.120.195 from VM ctest-TestRoutersBasic-55286161-62484808 passed 2024-09-17 18:31:45,823 - INFO - Deleting interface with subnet_id 8b1b4f2e-6e3e-4dce-807d-e0b46c11c210, port_id None from router 90d14b45-5e48-4897-8563-d72662c7ab4f 2024-09-17 18:31:46,067 - INFO - Deleting VM ctest-TestRoutersBasic-55286161-03741228 2024-09-17 18:31:46,130 - INFO - Deleting VM ctest-TestRoutersBasic-55286161-62484808 2024-09-17 18:31:46,205 - INFO - Deleting VN ctest-ext_vn-08598069 2024-09-17 18:31:46,281 - DEBUG - VN 408754f1-ea0c-4795-b4a6-fabcc85bd688 still in use: Unable to complete operation on network 408754f1-ea0c-4795-b4a6-fabcc85bd688. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-752550ca-fd0b-49d2-8559-34c73a80e8f4'] 2024-09-17 18:31:46,281 - WARNING - Deleting VN ctest-ext_vn-08598069 failed..Will retry 2024-09-17 18:31:48,411 - DEBUG - Response for deleting network () 2024-09-17 18:31:48,411 - INFO - Deleting VN ctest-vn-19247189 2024-09-17 18:31:48,530 - DEBUG - Response for deleting network () 2024-09-17 18:31:48,786 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 18:31:48,787 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-17 18:31:48,787 - INFO - -------------------------------------------------------------------------------- 2024-09-17 18:31:49,503 - INFO - Deleted project: ctest-TestRoutersBasic-55286161, ID : 0d3688bb-d479-4b8d-9744-435d1cb862aa