2024-09-04 14:00:42,981 - INFO - Domain Default found not creating 2024-09-04 14:00:43,133 - INFO - Project ctest-TestRoutersBasic-14085452 not found, creating it 2024-09-04 14:00:43,603 - INFO - Created Project:ctest-TestRoutersBasic-14085452, ID : e0c61588-74c8-4cef-b9e9-7be4d5700650 2024-09-04 14:00:45,118 - INFO - ================================================================================ 2024-09-04 14:00:45,118 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-04 14:00:45,118 - 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-04 14:00:45,369 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.25': '0'}} with 2024-09-04 14:00:45,369 - INFO - Initial checks done. Running the testcase now 2024-09-04 14:00:45,369 - INFO - 2024-09-04 14:00:46,059 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-14085452 2024-09-04 14:00:46,154 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-14085452 2024-09-04 14:00:46,478 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14085452', 'default']} 2024-09-04 14:00:46,763 - DEBUG - Response for create_network : {'network': {'id': 'f7178bac-23cd-4cf4-b505-ef70f9046461', 'name': 'ctest-vn-76713131', 'tenant_id': 'e0c6158874c84cefb9e97be4d5700650', 'project_id': 'e0c6158874c84cefb9e97be4d5700650', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14085452', 'ctest-vn-76713131'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:00:46,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea651af3-cc92-449f-9a5a-ea9935e5e63f', 'name': '', 'tenant_id': 'e0c6158874c84cefb9e97be4d5700650', 'network_id': 'f7178bac-23cd-4cf4-b505-ef70f9046461', 'ip_version': 4, 'cidr': '190.104.224.0/26', 'allocation_pools': [{'start': '190.104.224.2', 'end': '190.104.224.62'}], 'gateway_ip': '190.104.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.104.224.2', 'tags': [], 'project_id': 'e0c6158874c84cefb9e97be4d5700650'}} 2024-09-04 14:00:46,960 - INFO - Created VN ctest-vn-76713131 2024-09-04 14:00:47,010 - DEBUG - VN ctest-vn-76713131 UUID is f7178bac-23cd-4cf4-b505-ef70f9046461 2024-09-04 14:00:47,318 - DEBUG - Response for create_network : {'network': {'id': '8569c7f8-17d8-45f5-a252-8840eabd9afd', 'name': 'ctest-ext_vn-13730571', 'tenant_id': 'e0c6158874c84cefb9e97be4d5700650', 'project_id': 'e0c6158874c84cefb9e97be4d5700650', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14085452', 'ctest-ext_vn-13730571'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 14:00:47,513 - DEBUG - Response for create_subnet : {'subnet': {'id': '53c1abd5-ffcb-4224-99d8-2e846d8121d3', 'name': '', 'tenant_id': 'e0c6158874c84cefb9e97be4d5700650', 'network_id': '8569c7f8-17d8-45f5-a252-8840eabd9afd', 'ip_version': 4, 'cidr': '179.164.40.128/26', 'allocation_pools': [{'start': '179.164.40.130', 'end': '179.164.40.190'}], 'gateway_ip': '179.164.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.164.40.130', 'tags': [], 'project_id': 'e0c6158874c84cefb9e97be4d5700650'}} 2024-09-04 14:00:47,532 - INFO - Created VN ctest-ext_vn-13730571 2024-09-04 14:00:47,582 - DEBUG - VN ctest-ext_vn-13730571 UUID is 8569c7f8-17d8-45f5-a252-8840eabd9afd 2024-09-04 14:00:47,773 - DEBUG - Services list from nova: [, , ] 2024-09-04 14:00:48,748 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1843-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1843-1) 2024-09-04 14:00:49,829 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1843-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1843-1) 2024-09-04 14:00:49,920 - INFO - Setting gateway for router aeeb134b-4bac-4559-ba11-f567f57c9a7b to network 8569c7f8-17d8-45f5-a252-8840eabd9afd 2024-09-04 14:00:50,000 - INFO - Adding interface with subnet_id ea651af3-cc92-449f-9a5a-ea9935e5e63f, port_id None to router aeeb134b-4bac-4559-ba11-f567f57c9a7b 2024-09-04 14:00:50,360 - INFO - Waiting for VM ctest-TestRoutersBasic-14085452-99291890 to be up.. 2024-09-04 14:00:50,499 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 14:00:55,581 - DEBUG - VM is in ACTIVE state now 2024-09-04 14:00:55,581 - INFO - VM name : ctest-TestRoutersBasic-14085452-99291890 2024-09-04 14:00:55,668 - DEBUG - VM ctest-TestRoutersBasic-14085452-99291890 ID is a347ffef-1429-400f-bd6f-81f78d3d2015 2024-09-04 14:00:55,685 - DEBUG - VM ctest-TestRoutersBasic-14085452-99291890 launched on Node cn-jenkins-deploy-platform-ansible-os-1843-1 2024-09-04 14:00:55,759 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/a347ffef-1429-400f-bd6f-81f78d3d2015 2024-09-04 14:00:56,052 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/a347ffef-1429-400f-bd6f-81f78d3d2015 2024-09-04 14:00:56,084 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e7241034-964e-459a-ae4c-891c808b076e 2024-09-04 14:00:59,329 - 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 1012ms') 2024-09-04 14:00:59,329 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14085452-99291890 failed! 2024-09-04 14:00:59,386 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-14085452:ctest-vn-76713131 is 190.104.224.1 and allocation pool is NOT set 2024-09-04 14:01:01,444 - 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.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.432 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.432/1.540/2.648/1.108 ms') 2024-09-04 14:01:01,444 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14085452-99291890 passed 2024-09-04 14:01:01,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:01:01,594 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14085452-99291890, IP 190.104.224.3, Port 22 2024-09-04 14:01:01,745 - DEBUG - VM ctest-TestRoutersBasic-14085452-99291890 is ready for SSH connections 2024-09-04 14:01:01,745 - INFO - Waiting for VM ctest-TestRoutersBasic-14085452-96596997 to be up.. 2024-09-04 14:01:01,820 - DEBUG - VM is in ACTIVE state now 2024-09-04 14:01:01,820 - INFO - VM name : ctest-TestRoutersBasic-14085452-96596997 2024-09-04 14:01:01,894 - DEBUG - VM ctest-TestRoutersBasic-14085452-96596997 ID is a42cb270-d98b-44d4-8439-e5d170d5c69b 2024-09-04 14:01:01,894 - DEBUG - VM ctest-TestRoutersBasic-14085452-96596997 launched on Node cn-jenkins-deploy-platform-ansible-os-1843-1 2024-09-04 14:01:01,968 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/a42cb270-d98b-44d4-8439-e5d170d5c69b 2024-09-04 14:01:01,976 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/76521720-db8b-42d1-8c7a-ce14414fd114 2024-09-04 14:01:03,210 - 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.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.374 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.374/1.484/2.595/1.110 ms') 2024-09-04 14:01:03,210 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-14085452-96596997 passed 2024-09-04 14:01:03,362 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:01:03,362 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14085452-96596997, IP 179.164.40.131, Port 22 2024-09-04 14:01:03,513 - DEBUG - VM ctest-TestRoutersBasic-14085452-96596997 is ready for SSH connections 2024-09-04 14:01:03,514 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 14:01:03,514 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.164.40.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-04 14:01:03,514 - DEBUG - ping -s 56 -c 3 -W 1 179.164.40.131 2024-09-04 14:01:07,177 - DEBUG - PING 179.164.40.131 (179.164.40.131): 56 data bytes 64 bytes from 179.164.40.131: seq=0 ttl=62 time=5.293 ms 64 bytes from 179.164.40.131: seq=1 ttl=62 time=0.899 ms 64 bytes from 179.164.40.131: seq=2 ttl=62 time=0.847 ms --- 179.164.40.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.847/2.346/5.293 ms 2024-09-04 14:01:07,177 - INFO - Ping to IP 179.164.40.131 from VM ctest-TestRoutersBasic-14085452-99291890 passed 2024-09-04 14:01:07,177 - INFO - Deleting interface with subnet_id ea651af3-cc92-449f-9a5a-ea9935e5e63f, port_id None from router aeeb134b-4bac-4559-ba11-f567f57c9a7b 2024-09-04 14:01:07,351 - INFO - Deleting VM ctest-TestRoutersBasic-14085452-96596997 2024-09-04 14:01:07,411 - INFO - Deleting VM ctest-TestRoutersBasic-14085452-99291890 2024-09-04 14:01:07,486 - INFO - Deleting VN ctest-ext_vn-13730571 2024-09-04 14:01:07,553 - DEBUG - VN 8569c7f8-17d8-45f5-a252-8840eabd9afd still in use: Unable to complete operation on network 8569c7f8-17d8-45f5-a252-8840eabd9afd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-44025afa-b99c-408c-8948-3bb311dbef9d'] 2024-09-04 14:01:07,554 - WARNING - Deleting VN ctest-ext_vn-13730571 failed..Will retry 2024-09-04 14:01:09,651 - DEBUG - Response for deleting network () 2024-09-04 14:01:09,651 - INFO - Deleting VN ctest-vn-76713131 2024-09-04 14:01:09,743 - DEBUG - Response for deleting network () 2024-09-04 14:01:09,999 - DEBUG - No XMPP flaps were noticed during the test 2024-09-04 14:01:09,999 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:24] 2024-09-04 14:01:09,999 - INFO - -------------------------------------------------------------------------------- 2024-09-04 14:01:10,660 - INFO - Deleted project: ctest-TestRoutersBasic-14085452, ID : e0c61588-74c8-4cef-b9e9-7be4d5700650