2024-10-29 16:35:34,783 - INFO - Domain Default found not creating 2024-10-29 16:35:34,961 - INFO - Project ctest-TestRoutersBasic-80821234 not found, creating it 2024-10-29 16:35:35,512 - INFO - Created Project:ctest-TestRoutersBasic-80821234, ID : e0205995-2850-4b96-a2a3-efc77cbd3814 2024-10-29 16:35:37,160 - INFO - ================================================================================ 2024-10-29 16:35:37,160 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-29 16:35:37,160 - 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-29 16:35:37,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.22': '0'}} with 2024-10-29 16:35:37,427 - INFO - Initial checks done. Running the testcase now 2024-10-29 16:35:37,427 - INFO - 2024-10-29 16:35:38,165 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80821234 2024-10-29 16:35:38,266 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80821234 2024-10-29 16:35:38,621 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80821234', 'default']} 2024-10-29 16:35:38,955 - DEBUG - Response for create_network : {'network': {'id': 'ca4096c5-2073-4eb9-ada7-17c603d68e15', 'name': 'ctest-vn-97045069', 'tenant_id': 'e020599528504b96a2a3efc77cbd3814', 'project_id': 'e020599528504b96a2a3efc77cbd3814', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80821234', 'ctest-vn-97045069'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 16:35:39,148 - DEBUG - Response for create_subnet : {'subnet': {'id': '58b1b635-a473-4fc6-9aca-37df1c4d09c2', 'name': '', 'tenant_id': 'e020599528504b96a2a3efc77cbd3814', 'network_id': 'ca4096c5-2073-4eb9-ada7-17c603d68e15', 'ip_version': 4, 'cidr': '85.27.26.64/26', 'allocation_pools': [{'start': '85.27.26.66', 'end': '85.27.26.126'}], 'gateway_ip': '85.27.26.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.27.26.66', 'tags': [], 'project_id': 'e020599528504b96a2a3efc77cbd3814'}} 2024-10-29 16:35:39,171 - INFO - Created VN ctest-vn-97045069 2024-10-29 16:35:39,229 - DEBUG - VN ctest-vn-97045069 UUID is ca4096c5-2073-4eb9-ada7-17c603d68e15 2024-10-29 16:35:39,622 - DEBUG - Response for create_network : {'network': {'id': '6cec0cad-a967-405e-970d-11ae65c7f617', 'name': 'ctest-ext_vn-30523623', 'tenant_id': 'e020599528504b96a2a3efc77cbd3814', 'project_id': 'e020599528504b96a2a3efc77cbd3814', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80821234', 'ctest-ext_vn-30523623'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 16:35:39,822 - DEBUG - Response for create_subnet : {'subnet': {'id': '1672cdce-8b79-4ac9-9fdc-2332e6ee6351', 'name': '', 'tenant_id': 'e020599528504b96a2a3efc77cbd3814', 'network_id': '6cec0cad-a967-405e-970d-11ae65c7f617', 'ip_version': 4, 'cidr': '110.180.52.0/26', 'allocation_pools': [{'start': '110.180.52.2', 'end': '110.180.52.62'}], 'gateway_ip': '110.180.52.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.180.52.2', 'tags': [], 'project_id': 'e020599528504b96a2a3efc77cbd3814'}} 2024-10-29 16:35:39,844 - INFO - Created VN ctest-ext_vn-30523623 2024-10-29 16:35:39,905 - DEBUG - VN ctest-ext_vn-30523623 UUID is 6cec0cad-a967-405e-970d-11ae65c7f617 2024-10-29 16:35:40,101 - DEBUG - Services list from nova: [, , ] 2024-10-29 16:35:41,208 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2177-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2177-1) 2024-10-29 16:35:42,433 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2177-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2177-1) 2024-10-29 16:35:42,527 - INFO - Setting gateway for router b3904796-e48b-4784-a6c9-0f2167c18255 to network 6cec0cad-a967-405e-970d-11ae65c7f617 2024-10-29 16:35:42,607 - INFO - Adding interface with subnet_id 58b1b635-a473-4fc6-9aca-37df1c4d09c2, port_id None to router b3904796-e48b-4784-a6c9-0f2167c18255 2024-10-29 16:35:42,961 - INFO - Waiting for VM ctest-TestRoutersBasic-80821234-30256935 to be up.. 2024-10-29 16:35:43,144 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-29 16:35:48,241 - DEBUG - VM is in ACTIVE state now 2024-10-29 16:35:48,241 - INFO - VM name : ctest-TestRoutersBasic-80821234-30256935 2024-10-29 16:35:48,336 - DEBUG - VM ctest-TestRoutersBasic-80821234-30256935 ID is 3b8eab3f-50c2-4e4e-b07d-fb9f8b3a017e 2024-10-29 16:35:48,355 - DEBUG - VM ctest-TestRoutersBasic-80821234-30256935 launched on Node cn-jenkins-deploy-platform-ansible-os-2177-1 2024-10-29 16:35:48,448 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/3b8eab3f-50c2-4e4e-b07d-fb9f8b3a017e 2024-10-29 16:35:48,749 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/3b8eab3f-50c2-4e4e-b07d-fb9f8b3a017e 2024-10-29 16:35:48,792 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/5b2362c1-5423-4900-abd5-01789b0cdf23 2024-10-29 16:35:52,087 - 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 1035ms') 2024-10-29 16:35:52,087 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80821234-30256935 failed! 2024-10-29 16:35:52,145 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80821234:ctest-vn-97045069 is 85.27.26.65 and allocation pool is NOT set 2024-10-29 16:35:54,207 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.491 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.491/2.311/4.132/1.820 ms') 2024-10-29 16:35:54,207 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80821234-30256935 passed 2024-10-29 16:35:54,366 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 16:35:54,366 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80821234-30256935, IP 85.27.26.67, Port 22 2024-10-29 16:35:54,540 - DEBUG - VM ctest-TestRoutersBasic-80821234-30256935 is ready for SSH connections 2024-10-29 16:35:54,540 - INFO - Waiting for VM ctest-TestRoutersBasic-80821234-71277396 to be up.. 2024-10-29 16:35:54,651 - DEBUG - VM is in ACTIVE state now 2024-10-29 16:35:54,652 - INFO - VM name : ctest-TestRoutersBasic-80821234-71277396 2024-10-29 16:35:54,748 - DEBUG - VM ctest-TestRoutersBasic-80821234-71277396 ID is 708557e5-ab8c-4fa2-85b2-8b71e7ef6138 2024-10-29 16:35:54,748 - DEBUG - VM ctest-TestRoutersBasic-80821234-71277396 launched on Node cn-jenkins-deploy-platform-ansible-os-2177-1 2024-10-29 16:35:54,838 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/708557e5-ab8c-4fa2-85b2-8b71e7ef6138 2024-10-29 16:35:54,850 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/f27a74c5-846b-4299-ba72-2be775687c47 2024-10-29 16:35:56,121 - 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.50 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.857 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.857/2.177/3.498/1.320 ms') 2024-10-29 16:35:56,121 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80821234-71277396 passed 2024-10-29 16:35:56,290 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 16:35:56,290 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80821234-71277396, IP 110.180.52.3, Port 22 2024-10-29 16:35:56,445 - DEBUG - VM ctest-TestRoutersBasic-80821234-71277396 is ready for SSH connections 2024-10-29 16:35:56,445 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 16:35:56,445 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 110.180.52.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-29 16:35:56,445 - DEBUG - ping -s 56 -c 3 -W 1 110.180.52.3 2024-10-29 16:36:00,434 - DEBUG - PING 110.180.52.3 (110.180.52.3): 56 data bytes 64 bytes from 110.180.52.3: seq=0 ttl=62 time=4.961 ms 64 bytes from 110.180.52.3: seq=1 ttl=62 time=1.120 ms 64 bytes from 110.180.52.3: seq=2 ttl=62 time=0.863 ms --- 110.180.52.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.863/2.314/4.961 ms 2024-10-29 16:36:00,434 - INFO - Ping to IP 110.180.52.3 from VM ctest-TestRoutersBasic-80821234-30256935 passed 2024-10-29 16:36:00,434 - INFO - Deleting interface with subnet_id 58b1b635-a473-4fc6-9aca-37df1c4d09c2, port_id None from router b3904796-e48b-4784-a6c9-0f2167c18255 2024-10-29 16:36:00,663 - INFO - Deleting VM ctest-TestRoutersBasic-80821234-71277396 2024-10-29 16:36:00,733 - INFO - Deleting VM ctest-TestRoutersBasic-80821234-30256935 2024-10-29 16:36:00,801 - INFO - Deleting VN ctest-ext_vn-30523623 2024-10-29 16:36:00,888 - DEBUG - VN 6cec0cad-a967-405e-970d-11ae65c7f617 still in use: Unable to complete operation on network 6cec0cad-a967-405e-970d-11ae65c7f617. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d1fc3ddc-be15-4ac8-b28f-02629ed60af2'] 2024-10-29 16:36:00,888 - WARNING - Deleting VN ctest-ext_vn-30523623 failed..Will retry 2024-10-29 16:36:03,014 - DEBUG - Response for deleting network () 2024-10-29 16:36:03,014 - INFO - Deleting VN ctest-vn-97045069 2024-10-29 16:36:03,142 - DEBUG - Response for deleting network () 2024-10-29 16:36:03,395 - DEBUG - No XMPP flaps were noticed during the test
2024-10-29 16:36:03,396 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-10-29 16:36:03,396 - INFO - -------------------------------------------------------------------------------- 2024-10-29 16:36:04,124 - INFO - Deleted project: ctest-TestRoutersBasic-80821234, ID : e0205995-2850-4b96-a2a3-efc77cbd3814