2024-11-07 02:19:00,189 - INFO - Domain Default found not creating 2024-11-07 02:19:00,336 - INFO - Project ctest-TestRoutersBasic-27571531 not found, creating it 2024-11-07 02:19:00,804 - INFO - Created Project:ctest-TestRoutersBasic-27571531, ID : 0c0ab28a-8d6d-484e-9c4d-65b17335e532 2024-11-07 02:19:02,304 - INFO - ================================================================================ 2024-11-07 02:19:02,304 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-07 02:19:02,305 - 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-11-07 02:19:02,557 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.0.0.35': '0'}} with 2024-11-07 02:19:02,557 - INFO - Initial checks done. Running the testcase now 2024-11-07 02:19:02,557 - INFO - 2024-11-07 02:19:03,262 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-27571531 2024-11-07 02:19:03,360 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-27571531 2024-11-07 02:19:03,692 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27571531', 'default']} 2024-11-07 02:19:04,015 - DEBUG - Response for create_network : {'network': {'id': '4a5b9016-bfda-4df8-a2ce-57620cf78980', 'name': 'ctest-vn-09097986', 'tenant_id': '0c0ab28a8d6d484e9c4d65b17335e532', 'project_id': '0c0ab28a8d6d484e9c4d65b17335e532', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27571531', 'ctest-vn-09097986'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:19:04,189 - DEBUG - Response for create_subnet : {'subnet': {'id': '61c39baa-cb97-4916-9e5c-af3683919bc2', 'name': '', 'tenant_id': '0c0ab28a8d6d484e9c4d65b17335e532', 'network_id': '4a5b9016-bfda-4df8-a2ce-57620cf78980', 'ip_version': 4, 'cidr': '88.243.99.0/26', 'allocation_pools': [{'start': '88.243.99.2', 'end': '88.243.99.62'}], 'gateway_ip': '88.243.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.243.99.2', 'tags': [], 'project_id': '0c0ab28a8d6d484e9c4d65b17335e532'}} 2024-11-07 02:19:04,207 - INFO - Created VN ctest-vn-09097986 2024-11-07 02:19:04,268 - DEBUG - VN ctest-vn-09097986 UUID is 4a5b9016-bfda-4df8-a2ce-57620cf78980 2024-11-07 02:19:04,625 - DEBUG - Response for create_network : {'network': {'id': 'e2385c15-d297-43f1-a529-f2bbbf65c4fa', 'name': 'ctest-ext_vn-29555732', 'tenant_id': '0c0ab28a8d6d484e9c4d65b17335e532', 'project_id': '0c0ab28a8d6d484e9c4d65b17335e532', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27571531', 'ctest-ext_vn-29555732'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:19:04,818 - DEBUG - Response for create_subnet : {'subnet': {'id': '236c222f-1ba2-49a1-9a1f-b61a6d93b0b2', 'name': '', 'tenant_id': '0c0ab28a8d6d484e9c4d65b17335e532', 'network_id': 'e2385c15-d297-43f1-a529-f2bbbf65c4fa', 'ip_version': 4, 'cidr': '21.209.95.128/26', 'allocation_pools': [{'start': '21.209.95.130', 'end': '21.209.95.190'}], 'gateway_ip': '21.209.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.209.95.130', 'tags': [], 'project_id': '0c0ab28a8d6d484e9c4d65b17335e532'}} 2024-11-07 02:19:04,846 - INFO - Created VN ctest-ext_vn-29555732 2024-11-07 02:19:04,904 - DEBUG - VN ctest-ext_vn-29555732 UUID is e2385c15-d297-43f1-a529-f2bbbf65c4fa 2024-11-07 02:19:05,130 - DEBUG - Services list from nova: [, , ] 2024-11-07 02:19:06,250 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2207-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2207-1) 2024-11-07 02:19:07,502 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2207-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2207-1) 2024-11-07 02:19:07,598 - INFO - Setting gateway for router 094f8782-9c87-4c83-b90b-5c677c318ee7 to network e2385c15-d297-43f1-a529-f2bbbf65c4fa 2024-11-07 02:19:07,718 - INFO - Adding interface with subnet_id 61c39baa-cb97-4916-9e5c-af3683919bc2, port_id None to router 094f8782-9c87-4c83-b90b-5c677c318ee7 2024-11-07 02:19:08,167 - INFO - Waiting for VM ctest-TestRoutersBasic-27571531-57019225 to be up.. 2024-11-07 02:19:08,352 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 02:19:13,460 - DEBUG - VM is in ACTIVE state now 2024-11-07 02:19:13,460 - INFO - VM name : ctest-TestRoutersBasic-27571531-57019225 2024-11-07 02:19:13,556 - DEBUG - VM ctest-TestRoutersBasic-27571531-57019225 ID is 2e813e70-e82a-407b-991f-e0efbe1218b3 2024-11-07 02:19:13,575 - DEBUG - VM ctest-TestRoutersBasic-27571531-57019225 launched on Node cn-jenkins-deploy-platform-ansible-os-2207-1. 2024-11-07 02:19:13,667 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/2e813e70-e82a-407b-991f-e0efbe1218b3 2024-11-07 02:19:13,964 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/2e813e70-e82a-407b-991f-e0efbe1218b3 2024-11-07 02:19:14,000 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/f79b4cd4-60c1-4744-880f-4b842dccd089 2024-11-07 02:19:17,283 - 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 1007ms') 2024-11-07 02:19:17,283 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27571531-57019225 failed! 2024-11-07 02:19:17,344 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27571531:ctest-vn-09097986 is 88.243.99.1 and allocation pool is NOT set 2024-11-07 02:19:19,403 - 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.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.375 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.375/1.484/2.593/1.109 ms') 2024-11-07 02:19:19,403 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27571531-57019225 passed 2024-11-07 02:19:19,560 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:19:19,560 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27571531-57019225, IP 88.243.99.3, Port 22 2024-11-07 02:19:19,719 - DEBUG - VM ctest-TestRoutersBasic-27571531-57019225 is ready for SSH connections 2024-11-07 02:19:19,720 - INFO - Waiting for VM ctest-TestRoutersBasic-27571531-24445999 to be up.. 2024-11-07 02:19:19,796 - DEBUG - VM is in ACTIVE state now 2024-11-07 02:19:19,796 - INFO - VM name : ctest-TestRoutersBasic-27571531-24445999 2024-11-07 02:19:19,873 - DEBUG - VM ctest-TestRoutersBasic-27571531-24445999 ID is 24346a62-3c75-4928-8ed6-d902c91a82f2 2024-11-07 02:19:19,873 - DEBUG - VM ctest-TestRoutersBasic-27571531-24445999 launched on Node cn-jenkins-deploy-platform-ansible-os-2207-1. 2024-11-07 02:19:19,953 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/24346a62-3c75-4928-8ed6-d902c91a82f2 2024-11-07 02:19:19,965 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/e7bdb71e-1762-4d13-b22b-82a02f77f553 2024-11-07 02:19:21,219 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.468 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.468/1.573/2.679/1.105 ms') 2024-11-07 02:19:21,219 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-27571531-24445999 passed 2024-11-07 02:19:21,376 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:19:21,376 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27571531-24445999, IP 21.209.95.131, Port 22 2024-11-07 02:19:21,535 - DEBUG - VM ctest-TestRoutersBasic-27571531-24445999 is ready for SSH connections 2024-11-07 02:19:21,535 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:19:21,535 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 21.209.95.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-11-07 02:19:21,535 - DEBUG - ping -s 56 -c 3 -W 1 21.209.95.131 2024-11-07 02:19:25,528 - DEBUG - PING 21.209.95.131 (21.209.95.131): 56 data bytes 64 bytes from 21.209.95.131: seq=0 ttl=62 time=7.915 ms 64 bytes from 21.209.95.131: seq=1 ttl=62 time=0.735 ms 64 bytes from 21.209.95.131: seq=2 ttl=62 time=0.855 ms --- 21.209.95.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.735/3.168/7.915 ms 2024-11-07 02:19:25,528 - INFO - Ping to IP 21.209.95.131 from VM ctest-TestRoutersBasic-27571531-57019225 passed 2024-11-07 02:19:25,528 - INFO - Deleting interface with subnet_id 61c39baa-cb97-4916-9e5c-af3683919bc2, port_id None from router 094f8782-9c87-4c83-b90b-5c677c318ee7 2024-11-07 02:19:25,732 - INFO - Deleting VM ctest-TestRoutersBasic-27571531-24445999 2024-11-07 02:19:25,791 - INFO - Deleting VM ctest-TestRoutersBasic-27571531-57019225 2024-11-07 02:19:25,871 - INFO - Deleting VN ctest-ext_vn-29555732 2024-11-07 02:19:25,956 - DEBUG - VN e2385c15-d297-43f1-a529-f2bbbf65c4fa still in use: Unable to complete operation on network e2385c15-d297-43f1-a529-f2bbbf65c4fa. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-eb6fca8c-d23a-448f-932a-f462dbaa880b'] 2024-11-07 02:19:25,956 - WARNING - Deleting VN ctest-ext_vn-29555732 failed..Will retry 2024-11-07 02:19:28,073 - DEBUG - Response for deleting network () 2024-11-07 02:19:28,073 - INFO - Deleting VN ctest-vn-09097986 2024-11-07 02:19:28,193 - DEBUG - Response for deleting network () 2024-11-07 02:19:28,449 - DEBUG - No XMPP flaps were noticed during the test 2024-11-07 02:19:28,449 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-07 02:19:28,450 - INFO - -------------------------------------------------------------------------------- 2024-11-07 02:19:29,170 - INFO - Deleted project: ctest-TestRoutersBasic-27571531, ID : 0c0ab28a-8d6d-484e-9c4d-65b17335e532