2025-04-11 18:43:58,377 - INFO - Domain Default found not creating 2025-04-11 18:43:58,538 - INFO - Project ctest-TestRoutersBasic-11116138 not found, creating it 2025-04-11 18:43:59,020 - INFO - Created Project:ctest-TestRoutersBasic-11116138, ID : 83af1fe9-dbbc-4841-bed7-f865a0385c98 2025-04-11 18:44:00,493 - INFO - ================================================================================ 2025-04-11 18:44:00,493 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-11 18:44:00,493 - 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 2025-04-11 18:44:00,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-11 18:44:00,751 - INFO - Initial checks done. Running the testcase now 2025-04-11 18:44:00,751 - INFO - 2025-04-11 18:44:01,482 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-11116138 2025-04-11 18:44:01,582 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-11116138 2025-04-11 18:44:01,914 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-11116138', 'default']} 2025-04-11 18:44:02,219 - DEBUG - Response for create_network : {'network': {'id': '7afef866-789f-4617-81e2-2367ce1bd29e', 'name': 'ctest-vn-43575225', 'tenant_id': '83af1fe9dbbc4841bed7f865a0385c98', 'project_id': '83af1fe9dbbc4841bed7f865a0385c98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-11116138', 'ctest-vn-43575225'], 'port_security_enabled': True, 'description': ''}} 2025-04-11 18:44:02,422 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8729add-69db-45a7-a7f1-1f0db24417d0', 'name': '', 'tenant_id': '83af1fe9dbbc4841bed7f865a0385c98', 'network_id': '7afef866-789f-4617-81e2-2367ce1bd29e', 'ip_version': 4, 'cidr': '142.88.240.128/26', 'allocation_pools': [{'start': '142.88.240.130', 'end': '142.88.240.190'}], 'gateway_ip': '142.88.240.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.88.240.130', 'tags': [], 'project_id': '83af1fe9dbbc4841bed7f865a0385c98'}} 2025-04-11 18:44:02,441 - INFO - Created VN ctest-vn-43575225 2025-04-11 18:44:02,498 - DEBUG - VN ctest-vn-43575225 UUID is 7afef866-789f-4617-81e2-2367ce1bd29e 2025-04-11 18:44:02,888 - DEBUG - Response for create_network : {'network': {'id': 'c3084e20-fbae-44e3-b73c-4c1281c6c24f', 'name': 'ctest-ext_vn-44370282', 'tenant_id': '83af1fe9dbbc4841bed7f865a0385c98', 'project_id': '83af1fe9dbbc4841bed7f865a0385c98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-11116138', 'ctest-ext_vn-44370282'], 'port_security_enabled': True, 'description': ''}} 2025-04-11 18:44:03,051 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5129734-43fe-4e55-af37-698370245588', 'name': '', 'tenant_id': '83af1fe9dbbc4841bed7f865a0385c98', 'network_id': 'c3084e20-fbae-44e3-b73c-4c1281c6c24f', 'ip_version': 4, 'cidr': '43.139.11.0/26', 'allocation_pools': [{'start': '43.139.11.2', 'end': '43.139.11.62'}], 'gateway_ip': '43.139.11.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.139.11.2', 'tags': [], 'project_id': '83af1fe9dbbc4841bed7f865a0385c98'}} 2025-04-11 18:44:03,072 - INFO - Created VN ctest-ext_vn-44370282 2025-04-11 18:44:03,126 - DEBUG - VN ctest-ext_vn-44370282 UUID is c3084e20-fbae-44e3-b73c-4c1281c6c24f 2025-04-11 18:44:03,308 - DEBUG - Services list from nova: [, , ] 2025-04-11 18:44:04,427 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3082-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3082-1) 2025-04-11 18:44:05,702 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3082-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3082-1) 2025-04-11 18:44:05,789 - INFO - Setting gateway for router 4f098966-f5aa-410e-9e11-9094d3f5ee8b to network c3084e20-fbae-44e3-b73c-4c1281c6c24f 2025-04-11 18:44:05,854 - INFO - Adding interface with subnet_id f8729add-69db-45a7-a7f1-1f0db24417d0, port_id None to router 4f098966-f5aa-410e-9e11-9094d3f5ee8b 2025-04-11 18:44:06,258 - INFO - Waiting for VM ctest-TestRoutersBasic-11116138-37980071 to be up.. 2025-04-11 18:44:06,475 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-11 18:44:11,560 - DEBUG - VM is in ACTIVE state now 2025-04-11 18:44:11,561 - INFO - VM name : ctest-TestRoutersBasic-11116138-37980071 2025-04-11 18:44:11,650 - DEBUG - VM ctest-TestRoutersBasic-11116138-37980071 ID is 026c6e55-da35-465d-830d-a87c6ede13e5 2025-04-11 18:44:11,671 - DEBUG - VM ctest-TestRoutersBasic-11116138-37980071 launched on Node cn-jenkins-deploy-platform-ansible-os-3082-1 2025-04-11 18:44:11,775 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/026c6e55-da35-465d-830d-a87c6ede13e5 2025-04-11 18:44:12,095 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/026c6e55-da35-465d-830d-a87c6ede13e5 2025-04-11 18:44:12,135 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b7ce7469-9cfb-4953-942c-849e8e77ea20 2025-04-11 18:44:15,380 - 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 1002ms') 2025-04-11 18:44:15,380 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-11116138-37980071 failed! 2025-04-11 18:44:15,434 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-11116138:ctest-vn-43575225 is 142.88.240.129 and allocation pool is NOT set 2025-04-11 18:44:17,494 - 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.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.441 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.441/2.054/3.668/1.613 ms') 2025-04-11 18:44:17,494 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-11116138-37980071 passed 2025-04-11 18:44:17,606 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 18:44:17,606 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-11116138-37980071, IP 142.88.240.131, Port 22 2025-04-11 18:44:17,765 - DEBUG - VM ctest-TestRoutersBasic-11116138-37980071 is ready for SSH connections 2025-04-11 18:44:17,765 - INFO - Waiting for VM ctest-TestRoutersBasic-11116138-47374282 to be up.. 2025-04-11 18:44:17,846 - DEBUG - VM is in ACTIVE state now 2025-04-11 18:44:17,846 - INFO - VM name : ctest-TestRoutersBasic-11116138-47374282 2025-04-11 18:44:17,929 - DEBUG - VM ctest-TestRoutersBasic-11116138-47374282 ID is 158ef9f7-211b-46c2-89e2-f2b8f427758f 2025-04-11 18:44:17,929 - DEBUG - VM ctest-TestRoutersBasic-11116138-47374282 launched on Node cn-jenkins-deploy-platform-ansible-os-3082-1 2025-04-11 18:44:18,030 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/158ef9f7-211b-46c2-89e2-f2b8f427758f 2025-04-11 18:44:18,041 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/dbef4113-a528-4ff0-a9fc-2fffb29ca334 2025-04-11 18:44:19,297 - 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.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.452 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.452/1.793/3.134/1.341 ms') 2025-04-11 18:44:19,297 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-11116138-47374282 passed 2025-04-11 18:44:19,454 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 18:44:19,454 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-11116138-47374282, IP 43.139.11.3, Port 22 2025-04-11 18:44:19,623 - DEBUG - VM ctest-TestRoutersBasic-11116138-47374282 is ready for SSH connections 2025-04-11 18:44:19,624 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-11 18:44:19,624 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 43.139.11.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-11 18:44:19,624 - DEBUG - ping -s 56 -c 3 -W 1 43.139.11.3 2025-04-11 18:44:23,629 - DEBUG - PING 43.139.11.3 (43.139.11.3): 56 data bytes 64 bytes from 43.139.11.3: seq=0 ttl=62 time=9.321 ms 64 bytes from 43.139.11.3: seq=1 ttl=62 time=1.307 ms 64 bytes from 43.139.11.3: seq=2 ttl=62 time=1.050 ms --- 43.139.11.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.050/3.892/9.321 ms 2025-04-11 18:44:23,630 - INFO - Ping to IP 43.139.11.3 from VM ctest-TestRoutersBasic-11116138-37980071 passed 2025-04-11 18:44:23,630 - INFO - Deleting interface with subnet_id f8729add-69db-45a7-a7f1-1f0db24417d0, port_id None from router 4f098966-f5aa-410e-9e11-9094d3f5ee8b 2025-04-11 18:44:23,834 - INFO - Deleting VM ctest-TestRoutersBasic-11116138-47374282 2025-04-11 18:44:23,917 - INFO - Deleting VM ctest-TestRoutersBasic-11116138-37980071 2025-04-11 18:44:24,007 - INFO - Deleting VN ctest-ext_vn-44370282 2025-04-11 18:44:24,098 - DEBUG - VN c3084e20-fbae-44e3-b73c-4c1281c6c24f still in use: Unable to complete operation on network c3084e20-fbae-44e3-b73c-4c1281c6c24f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-aa33bd7a-ba6f-425b-9a1f-e09f7b24211e'] 2025-04-11 18:44:24,098 - WARNING - Deleting VN ctest-ext_vn-44370282 failed..Will retry 2025-04-11 18:44:26,220 - DEBUG - Response for deleting network () 2025-04-11 18:44:26,220 - INFO - Deleting VN ctest-vn-43575225 2025-04-11 18:44:26,327 - DEBUG - Response for deleting network () 2025-04-11 18:44:26,596 - DEBUG - No XMPP flaps were noticed during the test
2025-04-11 18:44:26,596 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2025-04-11 18:44:26,596 - INFO - -------------------------------------------------------------------------------- 2025-04-11 18:44:27,272 - INFO - Deleted project: ctest-TestRoutersBasic-11116138, ID : 83af1fe9-dbbc-4841-bed7-f865a0385c98