2024-10-25 10:24:19,386 - INFO - Domain Default found not creating 2024-10-25 10:24:19,586 - INFO - Project ctest-TestRoutersBasic-28406837 not found, creating it 2024-10-25 10:24:20,135 - INFO - Created Project:ctest-TestRoutersBasic-28406837, ID : 54fdb04b-7565-4f64-8bfa-ae2ed2eb70fd 2024-10-25 10:24:21,910 - INFO - ================================================================================ 2024-10-25 10:24:21,910 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-25 10:24:21,910 - 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-10-25 10:24:22,181 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.10': '0'}} with 2024-10-25 10:24:22,181 - INFO - Initial checks done. Running the testcase now 2024-10-25 10:24:22,181 - INFO - 2024-10-25 10:24:23,186 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28406837 2024-10-25 10:24:23,293 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28406837 2024-10-25 10:24:23,660 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28406837', 'default']} 2024-10-25 10:24:24,014 - DEBUG - Response for create_network : {'network': {'id': '2fee97ab-9379-4b5f-a752-4e82136c5a2b', 'name': 'ctest-vn-96312645', 'tenant_id': '54fdb04b75654f648bfaae2ed2eb70fd', 'project_id': '54fdb04b75654f648bfaae2ed2eb70fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28406837', 'ctest-vn-96312645'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 10:24:24,264 - DEBUG - Response for create_subnet : {'subnet': {'id': '6784baaf-04fc-4594-9d9d-11f34da3b84e', 'name': '', 'tenant_id': '54fdb04b75654f648bfaae2ed2eb70fd', 'network_id': '2fee97ab-9379-4b5f-a752-4e82136c5a2b', 'ip_version': 4, 'cidr': '113.36.25.0/26', 'allocation_pools': [{'start': '113.36.25.2', 'end': '113.36.25.62'}], 'gateway_ip': '113.36.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.36.25.2', 'tags': [], 'project_id': '54fdb04b75654f648bfaae2ed2eb70fd'}} 2024-10-25 10:24:24,287 - INFO - Created VN ctest-vn-96312645 2024-10-25 10:24:24,353 - DEBUG - VN ctest-vn-96312645 UUID is 2fee97ab-9379-4b5f-a752-4e82136c5a2b 2024-10-25 10:24:24,761 - DEBUG - Response for create_network : {'network': {'id': '9c8c128e-fe58-4f16-81ec-9d08f58f833c', 'name': 'ctest-ext_vn-33315589', 'tenant_id': '54fdb04b75654f648bfaae2ed2eb70fd', 'project_id': '54fdb04b75654f648bfaae2ed2eb70fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28406837', 'ctest-ext_vn-33315589'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 10:24:25,017 - DEBUG - Response for create_subnet : {'subnet': {'id': '20e0c1f5-bef5-475c-bc82-4ecff54e8a63', 'name': '', 'tenant_id': '54fdb04b75654f648bfaae2ed2eb70fd', 'network_id': '9c8c128e-fe58-4f16-81ec-9d08f58f833c', 'ip_version': 4, 'cidr': '181.123.146.192/26', 'allocation_pools': [{'start': '181.123.146.194', 'end': '181.123.146.254'}], 'gateway_ip': '181.123.146.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.123.146.194', 'tags': [], 'project_id': '54fdb04b75654f648bfaae2ed2eb70fd'}} 2024-10-25 10:24:25,045 - INFO - Created VN ctest-ext_vn-33315589 2024-10-25 10:24:25,108 - DEBUG - VN ctest-ext_vn-33315589 UUID is 9c8c128e-fe58-4f16-81ec-9d08f58f833c 2024-10-25 10:24:25,306 - DEBUG - Services list from nova: [, , ] 2024-10-25 10:24:26,598 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2144-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2144-1) 2024-10-25 10:24:27,998 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2144-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2144-1) 2024-10-25 10:24:28,110 - INFO - Setting gateway for router bdefcf72-6179-4ea3-b115-73e3e65733ae to network 9c8c128e-fe58-4f16-81ec-9d08f58f833c 2024-10-25 10:24:28,193 - INFO - Adding interface with subnet_id 6784baaf-04fc-4594-9d9d-11f34da3b84e, port_id None to router bdefcf72-6179-4ea3-b115-73e3e65733ae 2024-10-25 10:24:28,657 - INFO - Waiting for VM ctest-TestRoutersBasic-28406837-62186282 to be up.. 2024-10-25 10:24:28,865 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-25 10:24:33,977 - DEBUG - VM is in ACTIVE state now 2024-10-25 10:24:33,977 - INFO - VM name : ctest-TestRoutersBasic-28406837-62186282 2024-10-25 10:24:34,080 - DEBUG - VM ctest-TestRoutersBasic-28406837-62186282 ID is 5bfe3de0-e331-4027-87cf-5feb1620a7ba 2024-10-25 10:24:34,103 - DEBUG - VM ctest-TestRoutersBasic-28406837-62186282 launched on Node cn-jenkins-deploy-platform-ansible-os-2144-1 2024-10-25 10:24:34,242 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/5bfe3de0-e331-4027-87cf-5feb1620a7ba 2024-10-25 10:24:34,593 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/5bfe3de0-e331-4027-87cf-5feb1620a7ba 2024-10-25 10:24:34,639 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/53e7c9a3-7fc8-4200-9fbb-aea5fdaeebab 2024-10-25 10:24:37,965 - 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 1029ms') 2024-10-25 10:24:37,965 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28406837-62186282 failed! 2024-10-25 10:24:38,037 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28406837:ctest-vn-96312645 is 113.36.25.1 and allocation pool is NOT set 2024-10-25 10:24:40,103 - 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=4.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.861 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.861/2.455/4.049/1.594 ms') 2024-10-25 10:24:40,103 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28406837-62186282 passed 2024-10-25 10:24:40,269 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 10:24:40,269 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28406837-62186282, IP 113.36.25.3, Port 22 2024-10-25 10:24:40,429 - DEBUG - VM ctest-TestRoutersBasic-28406837-62186282 is ready for SSH connections 2024-10-25 10:24:40,430 - INFO - Waiting for VM ctest-TestRoutersBasic-28406837-49861936 to be up.. 2024-10-25 10:24:40,543 - DEBUG - VM is in ACTIVE state now 2024-10-25 10:24:40,544 - INFO - VM name : ctest-TestRoutersBasic-28406837-49861936 2024-10-25 10:24:40,653 - DEBUG - VM ctest-TestRoutersBasic-28406837-49861936 ID is 55346c3d-db70-408f-bdd2-98844c89bd43 2024-10-25 10:24:40,654 - DEBUG - VM ctest-TestRoutersBasic-28406837-49861936 launched on Node cn-jenkins-deploy-platform-ansible-os-2144-1 2024-10-25 10:24:40,766 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/55346c3d-db70-408f-bdd2-98844c89bd43 2024-10-25 10:24:40,800 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/b9acfdf4-a522-4589-a18c-71a1800ce16f 2024-10-25 10:24:42,204 - 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=9.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.53 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 = 2.531/6.150/9.769/3.619 ms') 2024-10-25 10:24:42,204 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28406837-49861936 passed 2024-10-25 10:24:42,364 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 10:24:42,365 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28406837-49861936, IP 181.123.146.195, Port 22 2024-10-25 10:24:42,521 - DEBUG - VM ctest-TestRoutersBasic-28406837-49861936 is ready for SSH connections 2024-10-25 10:24:42,521 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 10:24:42,521 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 181.123.146.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-10-25 10:24:42,521 - DEBUG - ping -s 56 -c 3 -W 1 181.123.146.195 2024-10-25 10:24:46,300 - DEBUG - PING 181.123.146.195 (181.123.146.195): 56 data bytes 64 bytes from 181.123.146.195: seq=0 ttl=62 time=7.824 ms 64 bytes from 181.123.146.195: seq=1 ttl=62 time=1.316 ms 64 bytes from 181.123.146.195: seq=2 ttl=62 time=0.855 ms --- 181.123.146.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.855/3.331/7.824 ms 2024-10-25 10:24:46,300 - INFO - Ping to IP 181.123.146.195 from VM ctest-TestRoutersBasic-28406837-62186282 passed 2024-10-25 10:24:46,300 - INFO - Deleting interface with subnet_id 6784baaf-04fc-4594-9d9d-11f34da3b84e, port_id None from router bdefcf72-6179-4ea3-b115-73e3e65733ae 2024-10-25 10:24:46,574 - INFO - Deleting VM ctest-TestRoutersBasic-28406837-49861936 2024-10-25 10:24:46,667 - INFO - Deleting VM ctest-TestRoutersBasic-28406837-62186282 2024-10-25 10:24:46,766 - INFO - Deleting VN ctest-ext_vn-33315589 2024-10-25 10:24:46,890 - DEBUG - VN 9c8c128e-fe58-4f16-81ec-9d08f58f833c still in use: Unable to complete operation on network 9c8c128e-fe58-4f16-81ec-9d08f58f833c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7b9199af-9c22-4f8e-a7c4-70910738bbad'] 2024-10-25 10:24:46,890 - WARNING - Deleting VN ctest-ext_vn-33315589 failed..Will retry 2024-10-25 10:24:49,041 - DEBUG - Response for deleting network () 2024-10-25 10:24:49,041 - INFO - Deleting VN ctest-vn-96312645 2024-10-25 10:24:49,191 - DEBUG - Response for deleting network () 2024-10-25 10:24:49,458 - DEBUG - No XMPP flaps were noticed during the test 2024-10-25 10:24:49,458 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28] 2024-10-25 10:24:49,458 - INFO - -------------------------------------------------------------------------------- 2024-10-25 10:24:50,281 - INFO - Deleted project: ctest-TestRoutersBasic-28406837, ID : 54fdb04b-7565-4f64-8bfa-ae2ed2eb70fd