2024-08-27 16:42:57,111 - INFO - Domain Default found not creating 2024-08-27 16:42:57,276 - INFO - Project ctest-TestRoutersBasic-18529344 not found, creating it 2024-08-27 16:42:57,743 - INFO - Created Project:ctest-TestRoutersBasic-18529344, ID : 5ac10def-8dce-439e-a143-4569f3ea2509 2024-08-27 16:42:59,352 - INFO - ================================================================================ 2024-08-27 16:42:59,352 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-27 16:42:59,352 - 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-08-27 16:42:59,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with 2024-08-27 16:42:59,606 - INFO - Initial checks done. Running the testcase now 2024-08-27 16:42:59,606 - INFO - 2024-08-27 16:43:00,405 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-18529344 2024-08-27 16:43:00,501 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-18529344 2024-08-27 16:43:00,825 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18529344', 'default']} 2024-08-27 16:43:01,152 - DEBUG - Response for create_network : {'network': {'id': '85a2d193-330a-4856-bde9-af89298d1f18', 'name': 'ctest-vn-07396025', 'tenant_id': '5ac10def8dce439ea1434569f3ea2509', 'project_id': '5ac10def8dce439ea1434569f3ea2509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18529344', 'ctest-vn-07396025'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 16:43:01,324 - DEBUG - Response for create_subnet : {'subnet': {'id': '2be11186-0d92-4143-bb4f-7e006c92e851', 'name': '', 'tenant_id': '5ac10def8dce439ea1434569f3ea2509', 'network_id': '85a2d193-330a-4856-bde9-af89298d1f18', 'ip_version': 4, 'cidr': '146.156.43.128/26', 'allocation_pools': [{'start': '146.156.43.130', 'end': '146.156.43.190'}], 'gateway_ip': '146.156.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.156.43.130', 'tags': [], 'project_id': '5ac10def8dce439ea1434569f3ea2509'}} 2024-08-27 16:43:01,345 - INFO - Created VN ctest-vn-07396025 2024-08-27 16:43:01,397 - DEBUG - VN ctest-vn-07396025 UUID is 85a2d193-330a-4856-bde9-af89298d1f18 2024-08-27 16:43:02,444 - DEBUG - Response for create_network : {'network': {'id': 'be184bbd-b6a2-48b9-a531-e4f19c75ff87', 'name': 'ctest-ext_vn-71024184', 'tenant_id': '5ac10def8dce439ea1434569f3ea2509', 'project_id': '5ac10def8dce439ea1434569f3ea2509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18529344', 'ctest-ext_vn-71024184'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 16:43:02,624 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cade2889-027a-4fda-bdb0-ba62361c809a', 'name': '', 'tenant_id': '5ac10def8dce439ea1434569f3ea2509', 'network_id': 'be184bbd-b6a2-48b9-a531-e4f19c75ff87', 'ip_version': 4, 'cidr': '70.67.101.0/26', 'allocation_pools': [{'start': '70.67.101.2', 'end': '70.67.101.62'}], 'gateway_ip': '70.67.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.67.101.2', 'tags': [], 'project_id': '5ac10def8dce439ea1434569f3ea2509'}} 2024-08-27 16:43:02,643 - INFO - Created VN ctest-ext_vn-71024184 2024-08-27 16:43:02,693 - DEBUG - VN ctest-ext_vn-71024184 UUID is be184bbd-b6a2-48b9-a531-e4f19c75ff87 2024-08-27 16:43:02,859 - DEBUG - Services list from nova: [, , ] 2024-08-27 16:43:03,883 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1799-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1799-1) 2024-08-27 16:43:05,250 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1799-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1799-1) 2024-08-27 16:43:05,344 - INFO - Setting gateway for router 2c563905-526a-402b-a478-540c14398b9c to network be184bbd-b6a2-48b9-a531-e4f19c75ff87 2024-08-27 16:43:05,430 - INFO - Adding interface with subnet_id 2be11186-0d92-4143-bb4f-7e006c92e851, port_id None to router 2c563905-526a-402b-a478-540c14398b9c 2024-08-27 16:43:05,777 - INFO - Waiting for VM ctest-TestRoutersBasic-18529344-69019420 to be up.. 2024-08-27 16:43:05,946 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 16:43:11,032 - DEBUG - VM is in ACTIVE state now 2024-08-27 16:43:11,033 - INFO - VM name : ctest-TestRoutersBasic-18529344-69019420 2024-08-27 16:43:11,113 - DEBUG - VM ctest-TestRoutersBasic-18529344-69019420 ID is b0e043ca-3725-4dcc-b108-72a7c0a2ace8 2024-08-27 16:43:11,135 - DEBUG - VM ctest-TestRoutersBasic-18529344-69019420 launched on Node cn-jenkins-deploy-platform-ansible-os-1799-1 2024-08-27 16:43:11,214 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b0e043ca-3725-4dcc-b108-72a7c0a2ace8 2024-08-27 16:43:11,511 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b0e043ca-3725-4dcc-b108-72a7c0a2ace8 2024-08-27 16:43:11,546 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/7703fb52-c8d5-483c-bbf8-a4cdfe380ef4 2024-08-27 16:43:14,784 - 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 1004ms') 2024-08-27 16:43:14,785 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18529344-69019420 failed! 2024-08-27 16:43:14,841 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-18529344:ctest-vn-07396025 is 146.156.43.129 and allocation pool is NOT set 2024-08-27 16:43:16,899 - 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=7.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.60 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 = 2.595/4.937/7.280/2.342 ms') 2024-08-27 16:43:16,899 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18529344-69019420 passed 2024-08-27 16:43:17,049 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 16:43:17,049 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18529344-69019420, IP 146.156.43.131, Port 22 2024-08-27 16:43:17,204 - DEBUG - VM ctest-TestRoutersBasic-18529344-69019420 is ready for SSH connections 2024-08-27 16:43:17,204 - INFO - Waiting for VM ctest-TestRoutersBasic-18529344-79532739 to be up.. 2024-08-27 16:43:17,313 - DEBUG - VM is in ACTIVE state now 2024-08-27 16:43:17,314 - INFO - VM name : ctest-TestRoutersBasic-18529344-79532739 2024-08-27 16:43:17,420 - DEBUG - VM ctest-TestRoutersBasic-18529344-79532739 ID is e62ad6cc-934a-4734-8c44-136d8d51642d 2024-08-27 16:43:17,420 - DEBUG - VM ctest-TestRoutersBasic-18529344-79532739 launched on Node cn-jenkins-deploy-platform-ansible-os-1799-1 2024-08-27 16:43:17,511 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/e62ad6cc-934a-4734-8c44-136d8d51642d 2024-08-27 16:43:17,521 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/0187f3de-1445-437f-9674-ebcb918ce2ff 2024-08-27 16:43:18,757 - 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.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.594 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 = 0.594/2.114/3.635/1.520 ms') 2024-08-27 16:43:18,757 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-18529344-79532739 passed 2024-08-27 16:43:18,909 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 16:43:18,909 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18529344-79532739, IP 70.67.101.3, Port 22 2024-08-27 16:43:19,069 - DEBUG - VM ctest-TestRoutersBasic-18529344-79532739 is ready for SSH connections 2024-08-27 16:43:19,069 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 16:43:19,069 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 70.67.101.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-08-27 16:43:19,069 - DEBUG - ping -s 56 -c 3 -W 1 70.67.101.3 2024-08-27 16:43:22,761 - DEBUG - PING 70.67.101.3 (70.67.101.3): 56 data bytes 64 bytes from 70.67.101.3: seq=0 ttl=62 time=4.521 ms 64 bytes from 70.67.101.3: seq=1 ttl=62 time=0.774 ms 64 bytes from 70.67.101.3: seq=2 ttl=62 time=0.788 ms --- 70.67.101.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.774/2.027/4.521 ms 2024-08-27 16:43:22,761 - INFO - Ping to IP 70.67.101.3 from VM ctest-TestRoutersBasic-18529344-69019420 passed 2024-08-27 16:43:22,761 - INFO - Deleting interface with subnet_id 2be11186-0d92-4143-bb4f-7e006c92e851, port_id None from router 2c563905-526a-402b-a478-540c14398b9c 2024-08-27 16:43:22,947 - INFO - Deleting VM ctest-TestRoutersBasic-18529344-79532739 2024-08-27 16:43:23,017 - INFO - Deleting VM ctest-TestRoutersBasic-18529344-69019420 2024-08-27 16:43:23,084 - INFO - Deleting VN ctest-ext_vn-71024184 2024-08-27 16:43:23,153 - DEBUG - VN be184bbd-b6a2-48b9-a531-e4f19c75ff87 still in use: Unable to complete operation on network be184bbd-b6a2-48b9-a531-e4f19c75ff87. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6b491423-c45c-400c-8db6-79dcb5705849'] 2024-08-27 16:43:23,153 - WARNING - Deleting VN ctest-ext_vn-71024184 failed..Will retry 2024-08-27 16:43:25,264 - DEBUG - Response for deleting network () 2024-08-27 16:43:25,265 - INFO - Deleting VN ctest-vn-07396025 2024-08-27 16:43:25,373 - DEBUG - Response for deleting network () 2024-08-27 16:43:25,630 - DEBUG - No XMPP flaps were noticed during the test 2024-08-27 16:43:25,630 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-27 16:43:25,630 - INFO - -------------------------------------------------------------------------------- 2024-08-27 16:43:26,312 - INFO - Deleted project: ctest-TestRoutersBasic-18529344, ID : 5ac10def-8dce-439e-a143-4569f3ea2509