2024-10-29 11:58:58,288 - INFO - Domain Default found not creating 2024-10-29 11:58:58,476 - INFO - Project ctest-TestRoutersBasic-17209465 not found, creating it 2024-10-29 11:58:59,005 - INFO - Created Project:ctest-TestRoutersBasic-17209465, ID : e5bac14b-958f-4b1f-b54a-415061d7036e 2024-10-29 11:59:00,965 - INFO - ================================================================================ 2024-10-29 11:59:00,965 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-29 11:59:00,965 - 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-10-29 11:59:01,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with 2024-10-29 11:59:01,231 - INFO - Initial checks done. Running the testcase now 2024-10-29 11:59:01,231 - INFO - 2024-10-29 11:59:02,109 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-17209465 2024-10-29 11:59:02,212 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-17209465 2024-10-29 11:59:02,580 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17209465', 'default']} 2024-10-29 11:59:02,975 - DEBUG - Response for create_network : {'network': {'id': '1db0c2bd-a315-46c2-80cd-cdb14a24620f', 'name': 'ctest-vn-82887064', 'tenant_id': 'e5bac14b958f4b1fb54a415061d7036e', 'project_id': 'e5bac14b958f4b1fb54a415061d7036e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17209465', 'ctest-vn-82887064'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:59:03,246 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3768f48-5a50-4855-bdc4-a60b7e26d7bf', 'name': '', 'tenant_id': 'e5bac14b958f4b1fb54a415061d7036e', 'network_id': '1db0c2bd-a315-46c2-80cd-cdb14a24620f', 'ip_version': 4, 'cidr': '201.77.164.192/26', 'allocation_pools': [{'start': '201.77.164.194', 'end': '201.77.164.254'}], 'gateway_ip': '201.77.164.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.77.164.194', 'tags': [], 'project_id': 'e5bac14b958f4b1fb54a415061d7036e'}} 2024-10-29 11:59:03,272 - INFO - Created VN ctest-vn-82887064 2024-10-29 11:59:03,332 - DEBUG - VN ctest-vn-82887064 UUID is 1db0c2bd-a315-46c2-80cd-cdb14a24620f 2024-10-29 11:59:03,799 - DEBUG - Response for create_network : {'network': {'id': '5e575bfb-1faf-4ea0-8e5d-35abf074a339', 'name': 'ctest-ext_vn-27837674', 'tenant_id': 'e5bac14b958f4b1fb54a415061d7036e', 'project_id': 'e5bac14b958f4b1fb54a415061d7036e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17209465', 'ctest-ext_vn-27837674'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:59:04,013 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a61a096a-6204-4b2f-bfe3-d89ec2973922', 'name': '', 'tenant_id': 'e5bac14b958f4b1fb54a415061d7036e', 'network_id': '5e575bfb-1faf-4ea0-8e5d-35abf074a339', 'ip_version': 4, 'cidr': '108.56.143.192/26', 'allocation_pools': [{'start': '108.56.143.194', 'end': '108.56.143.254'}], 'gateway_ip': '108.56.143.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.56.143.194', 'tags': [], 'project_id': 'e5bac14b958f4b1fb54a415061d7036e'}} 2024-10-29 11:59:04,039 - INFO - Created VN ctest-ext_vn-27837674 2024-10-29 11:59:04,104 - DEBUG - VN ctest-ext_vn-27837674 UUID is 5e575bfb-1faf-4ea0-8e5d-35abf074a339 2024-10-29 11:59:04,298 - DEBUG - Services list from nova: [, , ] 2024-10-29 11:59:05,517 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2176-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2176-1) 2024-10-29 11:59:06,876 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2176-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2176-1) 2024-10-29 11:59:06,999 - INFO - Setting gateway for router 7278fb91-fa15-495a-9c95-e33e5bad2665 to network 5e575bfb-1faf-4ea0-8e5d-35abf074a339 2024-10-29 11:59:07,112 - INFO - Adding interface with subnet_id f3768f48-5a50-4855-bdc4-a60b7e26d7bf, port_id None to router 7278fb91-fa15-495a-9c95-e33e5bad2665 2024-10-29 11:59:07,637 - INFO - Waiting for VM ctest-TestRoutersBasic-17209465-25998696 to be up.. 2024-10-29 11:59:07,897 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-29 11:59:13,024 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:59:13,024 - INFO - VM name : ctest-TestRoutersBasic-17209465-25998696 2024-10-29 11:59:13,139 - DEBUG - VM ctest-TestRoutersBasic-17209465-25998696 ID is 0a32d362-76bd-40f2-bc01-80dff727df37 2024-10-29 11:59:13,170 - DEBUG - VM ctest-TestRoutersBasic-17209465-25998696 launched on Node cn-jenkins-deploy-platform-ansible-os-2176-1 2024-10-29 11:59:13,273 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/0a32d362-76bd-40f2-bc01-80dff727df37 2024-10-29 11:59:13,620 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/0a32d362-76bd-40f2-bc01-80dff727df37 2024-10-29 11:59:13,667 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/d65ed104-ad64-497e-b524-2c4b10495bb3 2024-10-29 11:59:16,960 - 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 1021ms') 2024-10-29 11:59:16,960 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17209465-25998696 failed! 2024-10-29 11:59:17,028 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-17209465:ctest-vn-82887064 is 201.77.164.193 and allocation pool is NOT set 2024-10-29 11:59:19,097 - 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.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.929 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 = 0.929/2.952/4.976/2.023 ms') 2024-10-29 11:59:19,097 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17209465-25998696 passed 2024-10-29 11:59:19,268 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:59:19,268 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17209465-25998696, IP 201.77.164.195, Port 22 2024-10-29 11:59:19,424 - DEBUG - VM ctest-TestRoutersBasic-17209465-25998696 is ready for SSH connections 2024-10-29 11:59:19,424 - INFO - Waiting for VM ctest-TestRoutersBasic-17209465-50439007 to be up.. 2024-10-29 11:59:19,519 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:59:19,519 - INFO - VM name : ctest-TestRoutersBasic-17209465-50439007 2024-10-29 11:59:19,624 - DEBUG - VM ctest-TestRoutersBasic-17209465-50439007 ID is 9e2cbbc6-a050-4bc0-8892-4ecfbe399075 2024-10-29 11:59:19,624 - DEBUG - VM ctest-TestRoutersBasic-17209465-50439007 launched on Node cn-jenkins-deploy-platform-ansible-os-2176-1 2024-10-29 11:59:19,713 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/9e2cbbc6-a050-4bc0-8892-4ecfbe399075 2024-10-29 11:59:19,725 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/67b8ba93-d544-4fd2-8a76-715c5dfb0bd8 2024-10-29 11:59:20,993 - 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.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.03 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.026/2.956/4.887/1.930 ms') 2024-10-29 11:59:20,993 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-17209465-50439007 passed 2024-10-29 11:59:21,160 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:59:21,160 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17209465-50439007, IP 108.56.143.195, Port 22 2024-10-29 11:59:21,326 - DEBUG - VM ctest-TestRoutersBasic-17209465-50439007 is ready for SSH connections 2024-10-29 11:59:21,327 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:59:21,327 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.56.143.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-10-29 11:59:21,327 - DEBUG - ping -s 56 -c 3 -W 1 108.56.143.195 2024-10-29 11:59:25,457 - DEBUG - PING 108.56.143.195 (108.56.143.195): 56 data bytes 64 bytes from 108.56.143.195: seq=0 ttl=62 time=7.363 ms 64 bytes from 108.56.143.195: seq=1 ttl=62 time=0.868 ms 64 bytes from 108.56.143.195: seq=2 ttl=62 time=1.048 ms --- 108.56.143.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.868/3.093/7.363 ms 2024-10-29 11:59:25,457 - INFO - Ping to IP 108.56.143.195 from VM ctest-TestRoutersBasic-17209465-25998696 passed 2024-10-29 11:59:25,457 - INFO - Deleting interface with subnet_id f3768f48-5a50-4855-bdc4-a60b7e26d7bf, port_id None from router 7278fb91-fa15-495a-9c95-e33e5bad2665 2024-10-29 11:59:25,717 - INFO - Deleting VM ctest-TestRoutersBasic-17209465-50439007 2024-10-29 11:59:25,798 - INFO - Deleting VM ctest-TestRoutersBasic-17209465-25998696 2024-10-29 11:59:25,914 - INFO - Deleting VN ctest-ext_vn-27837674 2024-10-29 11:59:26,021 - DEBUG - VN 5e575bfb-1faf-4ea0-8e5d-35abf074a339 still in use: Unable to complete operation on network 5e575bfb-1faf-4ea0-8e5d-35abf074a339. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dd6d772e-07bc-46d6-85d7-7ea29adf3851'] 2024-10-29 11:59:26,021 - WARNING - Deleting VN ctest-ext_vn-27837674 failed..Will retry 2024-10-29 11:59:28,182 - DEBUG - Response for deleting network () 2024-10-29 11:59:28,182 - INFO - Deleting VN ctest-vn-82887064 2024-10-29 11:59:28,347 - DEBUG - Response for deleting network () 2024-10-29 11:59:28,611 - DEBUG - No XMPP flaps were noticed during the test 2024-10-29 11:59:28,611 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28] 2024-10-29 11:59:28,611 - INFO - -------------------------------------------------------------------------------- 2024-10-29 11:59:29,435 - INFO - Deleted project: ctest-TestRoutersBasic-17209465, ID : e5bac14b-958f-4b1f-b54a-415061d7036e