2024-09-06 18:07:02,536 - INFO - Domain Default found not creating 2024-09-06 18:07:02,704 - INFO - Project ctest-TestRoutersBasic-64026965 not found, creating it 2024-09-06 18:07:03,204 - INFO - Created Project:ctest-TestRoutersBasic-64026965, ID : baffccab-aebe-46bc-9fd5-4a56cebc7de4 2024-09-06 18:07:04,851 - INFO - ================================================================================ 2024-09-06 18:07:04,851 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-06 18:07:04,851 - 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-06 18:07:05,104 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.23': '0'}} with 2024-09-06 18:07:05,104 - INFO - Initial checks done. Running the testcase now 2024-09-06 18:07:05,104 - INFO - 2024-09-06 18:07:05,811 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-64026965 2024-09-06 18:07:05,911 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-64026965 2024-09-06 18:07:06,263 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64026965', 'default']} 2024-09-06 18:07:06,581 - DEBUG - Response for create_network : {'network': {'id': 'df85113d-199b-44c1-a17d-69bad62a6e89', 'name': 'ctest-vn-53116089', 'tenant_id': 'baffccabaebe46bc9fd54a56cebc7de4', 'project_id': 'baffccabaebe46bc9fd54a56cebc7de4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64026965', 'ctest-vn-53116089'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 18:07:06,811 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd603b5f7-49a5-45bc-bdb3-006b5fec44ac', 'name': '', 'tenant_id': 'baffccabaebe46bc9fd54a56cebc7de4', 'network_id': 'df85113d-199b-44c1-a17d-69bad62a6e89', 'ip_version': 4, 'cidr': '36.172.192.128/26', 'allocation_pools': [{'start': '36.172.192.130', 'end': '36.172.192.190'}], 'gateway_ip': '36.172.192.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.172.192.130', 'tags': [], 'project_id': 'baffccabaebe46bc9fd54a56cebc7de4'}} 2024-09-06 18:07:06,831 - INFO - Created VN ctest-vn-53116089 2024-09-06 18:07:06,895 - DEBUG - VN ctest-vn-53116089 UUID is df85113d-199b-44c1-a17d-69bad62a6e89 2024-09-06 18:07:07,257 - DEBUG - Response for create_network : {'network': {'id': 'e12b061b-0c16-4de8-88a8-add9c7c1342f', 'name': 'ctest-ext_vn-05830036', 'tenant_id': 'baffccabaebe46bc9fd54a56cebc7de4', 'project_id': 'baffccabaebe46bc9fd54a56cebc7de4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64026965', 'ctest-ext_vn-05830036'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 18:07:07,435 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae9bbcb2-ce37-42c3-b289-56d5e12cb525', 'name': '', 'tenant_id': 'baffccabaebe46bc9fd54a56cebc7de4', 'network_id': 'e12b061b-0c16-4de8-88a8-add9c7c1342f', 'ip_version': 4, 'cidr': '133.119.197.64/26', 'allocation_pools': [{'start': '133.119.197.66', 'end': '133.119.197.126'}], 'gateway_ip': '133.119.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.119.197.66', 'tags': [], 'project_id': 'baffccabaebe46bc9fd54a56cebc7de4'}} 2024-09-06 18:07:07,455 - INFO - Created VN ctest-ext_vn-05830036 2024-09-06 18:07:07,511 - DEBUG - VN ctest-ext_vn-05830036 UUID is e12b061b-0c16-4de8-88a8-add9c7c1342f 2024-09-06 18:07:07,693 - DEBUG - Services list from nova: [, , ] 2024-09-06 18:07:08,701 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1868-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1868-1) 2024-09-06 18:07:09,887 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1868-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1868-1) 2024-09-06 18:07:09,974 - INFO - Setting gateway for router 231f3687-1bf5-4432-9aac-9850f1d081bd to network e12b061b-0c16-4de8-88a8-add9c7c1342f 2024-09-06 18:07:10,042 - INFO - Adding interface with subnet_id d603b5f7-49a5-45bc-bdb3-006b5fec44ac, port_id None to router 231f3687-1bf5-4432-9aac-9850f1d081bd 2024-09-06 18:07:10,529 - INFO - Waiting for VM ctest-TestRoutersBasic-64026965-25835329 to be up.. 2024-09-06 18:07:10,749 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-06 18:07:15,831 - DEBUG - VM is in ACTIVE state now 2024-09-06 18:07:15,831 - INFO - VM name : ctest-TestRoutersBasic-64026965-25835329 2024-09-06 18:07:15,908 - DEBUG - VM ctest-TestRoutersBasic-64026965-25835329 ID is 7f60dcdc-6ea4-4652-8b01-cab31fa4758f 2024-09-06 18:07:15,925 - DEBUG - VM ctest-TestRoutersBasic-64026965-25835329 launched on Node cn-jenkins-deploy-platform-ansible-os-1868-1 2024-09-06 18:07:15,999 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/7f60dcdc-6ea4-4652-8b01-cab31fa4758f 2024-09-06 18:07:16,297 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/7f60dcdc-6ea4-4652-8b01-cab31fa4758f 2024-09-06 18:07:16,331 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/a85fe7f7-b566-45f7-80cf-7957a931cf9d 2024-09-06 18:07:19,591 - 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 1011ms') 2024-09-06 18:07:19,591 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64026965-25835329 failed! 2024-09-06 18:07:19,655 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64026965:ctest-vn-53116089 is 36.172.192.129 and allocation pool is NOT set 2024-09-06 18:07:21,716 - 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.77 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.408 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.408/1.588/2.769/1.180 ms') 2024-09-06 18:07:21,717 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64026965-25835329 passed 2024-09-06 18:07:21,879 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 18:07:21,879 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64026965-25835329, IP 36.172.192.131, Port 22 2024-09-06 18:07:22,034 - DEBUG - VM ctest-TestRoutersBasic-64026965-25835329 is ready for SSH connections 2024-09-06 18:07:22,034 - INFO - Waiting for VM ctest-TestRoutersBasic-64026965-07735752 to be up.. 2024-09-06 18:07:22,109 - DEBUG - VM is in ACTIVE state now 2024-09-06 18:07:22,109 - INFO - VM name : ctest-TestRoutersBasic-64026965-07735752 2024-09-06 18:07:22,181 - DEBUG - VM ctest-TestRoutersBasic-64026965-07735752 ID is 97842c4c-dc7d-4f81-a6e9-dfb3756afdfb 2024-09-06 18:07:22,181 - DEBUG - VM ctest-TestRoutersBasic-64026965-07735752 launched on Node cn-jenkins-deploy-platform-ansible-os-1868-1 2024-09-06 18:07:22,253 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/97842c4c-dc7d-4f81-a6e9-dfb3756afdfb 2024-09-06 18:07:22,262 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/68b8e81b-16f2-419c-8d06-81dfb9e48d23 2024-09-06 18:07:23,510 - 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=2.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.454 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.454/1.628/2.802/1.174 ms') 2024-09-06 18:07:23,510 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-64026965-07735752 passed 2024-09-06 18:07:23,671 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 18:07:23,671 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64026965-07735752, IP 133.119.197.67, Port 22 2024-09-06 18:07:23,822 - DEBUG - VM ctest-TestRoutersBasic-64026965-07735752 is ready for SSH connections 2024-09-06 18:07:23,822 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 18:07:23,823 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.119.197.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-09-06 18:07:23,823 - DEBUG - ping -s 56 -c 3 -W 1 133.119.197.67 2024-09-06 18:07:27,485 - DEBUG - PING 133.119.197.67 (133.119.197.67): 56 data bytes 64 bytes from 133.119.197.67: seq=0 ttl=62 time=5.568 ms 64 bytes from 133.119.197.67: seq=1 ttl=62 time=0.915 ms 64 bytes from 133.119.197.67: seq=2 ttl=62 time=1.101 ms --- 133.119.197.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.915/2.528/5.568 ms 2024-09-06 18:07:27,486 - INFO - Ping to IP 133.119.197.67 from VM ctest-TestRoutersBasic-64026965-25835329 passed 2024-09-06 18:07:27,486 - INFO - Deleting interface with subnet_id d603b5f7-49a5-45bc-bdb3-006b5fec44ac, port_id None from router 231f3687-1bf5-4432-9aac-9850f1d081bd 2024-09-06 18:07:27,693 - INFO - Deleting VM ctest-TestRoutersBasic-64026965-07735752 2024-09-06 18:07:27,780 - INFO - Deleting VM ctest-TestRoutersBasic-64026965-25835329 2024-09-06 18:07:27,855 - INFO - Deleting VN ctest-ext_vn-05830036 2024-09-06 18:07:27,939 - DEBUG - VN e12b061b-0c16-4de8-88a8-add9c7c1342f still in use: Unable to complete operation on network e12b061b-0c16-4de8-88a8-add9c7c1342f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8594f64c-e9b2-41a8-ac86-f8350a5645f6'] 2024-09-06 18:07:27,939 - WARNING - Deleting VN ctest-ext_vn-05830036 failed..Will retry 2024-09-06 18:07:30,063 - DEBUG - Response for deleting network () 2024-09-06 18:07:30,063 - INFO - Deleting VN ctest-vn-53116089 2024-09-06 18:07:30,181 - DEBUG - Response for deleting network () 2024-09-06 18:07:30,436 - DEBUG - No XMPP flaps were noticed during the test 2024-09-06 18:07:30,436 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-06 18:07:30,436 - INFO - -------------------------------------------------------------------------------- 2024-09-06 18:07:31,138 - INFO - Deleted project: ctest-TestRoutersBasic-64026965, ID : baffccab-aebe-46bc-9fd5-4a56cebc7de4