2024-11-10 21:59:07,248 - INFO - Domain Default found not creating 2024-11-10 21:59:07,426 - INFO - Project ctest-TestRoutersBasic-08557888 not found, creating it 2024-11-10 21:59:07,982 - INFO - Created Project:ctest-TestRoutersBasic-08557888, ID : cca93025-11ae-4c57-8de9-d0bf4a9f6112 2024-11-10 21:59:09,551 - INFO - ================================================================================ 2024-11-10 21:59:09,551 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 21:59:09,551 - 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-11-10 21:59:09,817 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.6': '0'}} with 2024-11-10 21:59:09,817 - INFO - Initial checks done. Running the testcase now 2024-11-10 21:59:09,817 - INFO - 2024-11-10 21:59:10,572 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-08557888 2024-11-10 21:59:10,672 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-08557888 2024-11-10 21:59:11,015 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08557888', 'default']} 2024-11-10 21:59:11,329 - DEBUG - Response for create_network : {'network': {'id': '66d854fa-667b-431a-863b-0a6effaefb19', 'name': 'ctest-vn-42007815', 'tenant_id': 'cca9302511ae4c578de9d0bf4a9f6112', 'project_id': 'cca9302511ae4c578de9d0bf4a9f6112', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08557888', 'ctest-vn-42007815'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:59:11,542 - DEBUG - Response for create_subnet : {'subnet': {'id': '84560db8-84dd-44c5-9620-b415704a9aca', 'name': '', 'tenant_id': 'cca9302511ae4c578de9d0bf4a9f6112', 'network_id': '66d854fa-667b-431a-863b-0a6effaefb19', 'ip_version': 4, 'cidr': '103.196.151.64/26', 'allocation_pools': [{'start': '103.196.151.66', 'end': '103.196.151.126'}], 'gateway_ip': '103.196.151.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.196.151.66', 'tags': [], 'project_id': 'cca9302511ae4c578de9d0bf4a9f6112'}} 2024-11-10 21:59:11,564 - INFO - Created VN ctest-vn-42007815 2024-11-10 21:59:11,624 - DEBUG - VN ctest-vn-42007815 UUID is 66d854fa-667b-431a-863b-0a6effaefb19 2024-11-10 21:59:11,985 - DEBUG - Response for create_network : {'network': {'id': 'f4fafa49-c2eb-4aba-a74b-9cf17fc5b615', 'name': 'ctest-ext_vn-35095067', 'tenant_id': 'cca9302511ae4c578de9d0bf4a9f6112', 'project_id': 'cca9302511ae4c578de9d0bf4a9f6112', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08557888', 'ctest-ext_vn-35095067'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:59:12,208 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd109a17d-72ac-4aef-8a51-64c2d229621e', 'name': '', 'tenant_id': 'cca9302511ae4c578de9d0bf4a9f6112', 'network_id': 'f4fafa49-c2eb-4aba-a74b-9cf17fc5b615', 'ip_version': 4, 'cidr': '107.224.61.192/26', 'allocation_pools': [{'start': '107.224.61.194', 'end': '107.224.61.254'}], 'gateway_ip': '107.224.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.224.61.194', 'tags': [], 'project_id': 'cca9302511ae4c578de9d0bf4a9f6112'}} 2024-11-10 21:59:12,227 - INFO - Created VN ctest-ext_vn-35095067 2024-11-10 21:59:12,283 - DEBUG - VN ctest-ext_vn-35095067 UUID is f4fafa49-c2eb-4aba-a74b-9cf17fc5b615 2024-11-10 21:59:12,472 - DEBUG - Services list from nova: [, , ] 2024-11-10 21:59:13,538 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2267-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2267-1) 2024-11-10 21:59:14,719 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2267-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2267-1) 2024-11-10 21:59:14,841 - INFO - Setting gateway for router ce274986-9b58-4bb7-9acb-f24ccd7b3dcd to network f4fafa49-c2eb-4aba-a74b-9cf17fc5b615 2024-11-10 21:59:14,921 - INFO - Adding interface with subnet_id 84560db8-84dd-44c5-9620-b415704a9aca, port_id None to router ce274986-9b58-4bb7-9acb-f24ccd7b3dcd 2024-11-10 21:59:15,430 - INFO - Waiting for VM ctest-TestRoutersBasic-08557888-42801300 to be up.. 2024-11-10 21:59:15,670 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 21:59:20,770 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:59:20,770 - INFO - VM name : ctest-TestRoutersBasic-08557888-42801300 2024-11-10 21:59:20,863 - DEBUG - VM ctest-TestRoutersBasic-08557888-42801300 ID is b8638255-e6de-48b0-86e3-8afbefa80829 2024-11-10 21:59:20,880 - DEBUG - VM ctest-TestRoutersBasic-08557888-42801300 launched on Node cn-jenkins-deploy-platform-ansible-os-2267-1 2024-11-10 21:59:20,977 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/b8638255-e6de-48b0-86e3-8afbefa80829 2024-11-10 21:59:21,299 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/b8638255-e6de-48b0-86e3-8afbefa80829 2024-11-10 21:59:21,334 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/82dd81c3-e5d3-4ff6-a6cd-42236a0a5737 2024-11-10 21:59:24,640 - 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 1031ms') 2024-11-10 21:59:24,640 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-08557888-42801300 failed! 2024-11-10 21:59:24,704 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-08557888:ctest-vn-42007815 is 103.196.151.65 and allocation pool is NOT set 2024-11-10 21:59:26,769 - 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.47 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.443 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.443/1.957/3.472/1.514 ms') 2024-11-10 21:59:26,769 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-08557888-42801300 passed 2024-11-10 21:59:26,933 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:59:26,933 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08557888-42801300, IP 103.196.151.67, Port 22 2024-11-10 21:59:27,111 - DEBUG - VM ctest-TestRoutersBasic-08557888-42801300 is ready for SSH connections 2024-11-10 21:59:27,111 - INFO - Waiting for VM ctest-TestRoutersBasic-08557888-15784658 to be up.. 2024-11-10 21:59:27,201 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:59:27,201 - INFO - VM name : ctest-TestRoutersBasic-08557888-15784658 2024-11-10 21:59:27,297 - DEBUG - VM ctest-TestRoutersBasic-08557888-15784658 ID is 6e199f10-a900-4450-a5df-4936aca4a8f1 2024-11-10 21:59:27,297 - DEBUG - VM ctest-TestRoutersBasic-08557888-15784658 launched on Node cn-jenkins-deploy-platform-ansible-os-2267-1 2024-11-10 21:59:27,384 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/6e199f10-a900-4450-a5df-4936aca4a8f1 2024-11-10 21:59:27,395 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/1b5895ad-74ef-4f4b-b428-540d883346b6 2024-11-10 21:59:28,656 - 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=3.17 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.543 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 = 0.543/1.854/3.166/1.311 ms') 2024-11-10 21:59:28,657 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-08557888-15784658 passed 2024-11-10 21:59:28,820 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:59:28,820 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08557888-15784658, IP 107.224.61.195, Port 22 2024-11-10 21:59:28,975 - DEBUG - VM ctest-TestRoutersBasic-08557888-15784658 is ready for SSH connections 2024-11-10 21:59:28,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:59:28,975 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 107.224.61.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-11-10 21:59:28,975 - DEBUG - ping -s 56 -c 3 -W 1 107.224.61.195 2024-11-10 21:59:32,997 - DEBUG - PING 107.224.61.195 (107.224.61.195): 56 data bytes 64 bytes from 107.224.61.195: seq=0 ttl=62 time=6.589 ms 64 bytes from 107.224.61.195: seq=1 ttl=62 time=0.821 ms 64 bytes from 107.224.61.195: seq=2 ttl=62 time=1.226 ms --- 107.224.61.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.821/2.878/6.589 ms 2024-11-10 21:59:32,997 - INFO - Ping to IP 107.224.61.195 from VM ctest-TestRoutersBasic-08557888-42801300 passed 2024-11-10 21:59:32,997 - INFO - Deleting interface with subnet_id 84560db8-84dd-44c5-9620-b415704a9aca, port_id None from router ce274986-9b58-4bb7-9acb-f24ccd7b3dcd 2024-11-10 21:59:33,220 - INFO - Deleting VM ctest-TestRoutersBasic-08557888-15784658 2024-11-10 21:59:33,285 - INFO - Deleting VM ctest-TestRoutersBasic-08557888-42801300 2024-11-10 21:59:33,368 - INFO - Deleting VN ctest-ext_vn-35095067 2024-11-10 21:59:33,448 - DEBUG - VN f4fafa49-c2eb-4aba-a74b-9cf17fc5b615 still in use: Unable to complete operation on network f4fafa49-c2eb-4aba-a74b-9cf17fc5b615. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-35270978-e725-43d6-9cb3-4d0e6900774d'] 2024-11-10 21:59:33,448 - WARNING - Deleting VN ctest-ext_vn-35095067 failed..Will retry 2024-11-10 21:59:35,592 - DEBUG - Response for deleting network () 2024-11-10 21:59:35,593 - INFO - Deleting VN ctest-vn-42007815 2024-11-10 21:59:35,738 - DEBUG - Response for deleting network () 2024-11-10 21:59:36,001 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 21:59:36,001 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-11-10 21:59:36,001 - INFO - -------------------------------------------------------------------------------- 2024-11-10 21:59:36,712 - INFO - Deleted project: ctest-TestRoutersBasic-08557888, ID : cca93025-11ae-4c57-8de9-d0bf4a9f6112