2024-11-10 00:39:10,594 - INFO - Domain Default found not creating 2024-11-10 00:39:10,771 - INFO - Project ctest-TestRoutersBasic-69803400 not found, creating it 2024-11-10 00:39:11,249 - INFO - Created Project:ctest-TestRoutersBasic-69803400, ID : 37910c92-8522-463c-9c76-076fb2c7067e 2024-11-10 00:39:12,857 - INFO - ================================================================================ 2024-11-10 00:39:12,857 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 00:39:12,857 - 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-10 00:39:13,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.25': '0'}} with 2024-11-10 00:39:13,114 - INFO - Initial checks done. Running the testcase now 2024-11-10 00:39:13,114 - INFO - 2024-11-10 00:39:13,866 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-69803400 2024-11-10 00:39:13,971 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-69803400 2024-11-10 00:39:14,327 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69803400', 'default']} 2024-11-10 00:39:14,649 - DEBUG - Response for create_network : {'network': {'id': '086583d2-43a9-45f5-9314-04d57ca0d3e7', 'name': 'ctest-vn-93067259', 'tenant_id': '37910c928522463c9c76076fb2c7067e', 'project_id': '37910c928522463c9c76076fb2c7067e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69803400', 'ctest-vn-93067259'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 00:39:14,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '719b1f3a-ddc1-454f-aea9-ca541b216e21', 'name': '', 'tenant_id': '37910c928522463c9c76076fb2c7067e', 'network_id': '086583d2-43a9-45f5-9314-04d57ca0d3e7', 'ip_version': 4, 'cidr': '126.2.140.64/26', 'allocation_pools': [{'start': '126.2.140.66', 'end': '126.2.140.126'}], 'gateway_ip': '126.2.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.2.140.66', 'tags': [], 'project_id': '37910c928522463c9c76076fb2c7067e'}} 2024-11-10 00:39:14,869 - INFO - Created VN ctest-vn-93067259 2024-11-10 00:39:14,927 - DEBUG - VN ctest-vn-93067259 UUID is 086583d2-43a9-45f5-9314-04d57ca0d3e7 2024-11-10 00:39:15,269 - DEBUG - Response for create_network : {'network': {'id': 'f59c9173-95c0-481d-a73e-d45739d74433', 'name': 'ctest-ext_vn-46051453', 'tenant_id': '37910c928522463c9c76076fb2c7067e', 'project_id': '37910c928522463c9c76076fb2c7067e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69803400', 'ctest-ext_vn-46051453'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 00:39:15,473 - DEBUG - Response for create_subnet : {'subnet': {'id': '87720078-6f74-4b5d-b044-78799fa9a645', 'name': '', 'tenant_id': '37910c928522463c9c76076fb2c7067e', 'network_id': 'f59c9173-95c0-481d-a73e-d45739d74433', 'ip_version': 4, 'cidr': '123.83.169.64/26', 'allocation_pools': [{'start': '123.83.169.66', 'end': '123.83.169.126'}], 'gateway_ip': '123.83.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.83.169.66', 'tags': [], 'project_id': '37910c928522463c9c76076fb2c7067e'}} 2024-11-10 00:39:15,491 - INFO - Created VN ctest-ext_vn-46051453 2024-11-10 00:39:15,547 - DEBUG - VN ctest-ext_vn-46051453 UUID is f59c9173-95c0-481d-a73e-d45739d74433 2024-11-10 00:39:15,718 - DEBUG - Services list from nova: [, , ] 2024-11-10 00:39:16,767 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2247-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2247-1) 2024-11-10 00:39:17,978 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2247-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2247-1) 2024-11-10 00:39:18,060 - INFO - Setting gateway for router 252bded8-e355-44c0-817d-8b544123da82 to network f59c9173-95c0-481d-a73e-d45739d74433 2024-11-10 00:39:18,132 - INFO - Adding interface with subnet_id 719b1f3a-ddc1-454f-aea9-ca541b216e21, port_id None to router 252bded8-e355-44c0-817d-8b544123da82 2024-11-10 00:39:18,524 - INFO - Waiting for VM ctest-TestRoutersBasic-69803400-90507304 to be up.. 2024-11-10 00:39:18,691 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 00:39:23,782 - DEBUG - VM is in ACTIVE state now 2024-11-10 00:39:23,783 - INFO - VM name : ctest-TestRoutersBasic-69803400-90507304 2024-11-10 00:39:23,899 - DEBUG - VM ctest-TestRoutersBasic-69803400-90507304 ID is cb6de3d6-de80-4223-9035-afac391f5c6d 2024-11-10 00:39:23,925 - DEBUG - VM ctest-TestRoutersBasic-69803400-90507304 launched on Node cn-jenkins-deploy-platform-ansible-os-2247-1 2024-11-10 00:39:24,030 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/cb6de3d6-de80-4223-9035-afac391f5c6d 2024-11-10 00:39:24,351 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/cb6de3d6-de80-4223-9035-afac391f5c6d 2024-11-10 00:39:24,398 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/aa54a59d-2332-44e9-abe9-7f61f6df698f 2024-11-10 00:39:27,688 - 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 1011ms') 2024-11-10 00:39:27,688 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69803400-90507304 failed! 2024-11-10 00:39:27,751 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-69803400:ctest-vn-93067259 is 126.2.140.65 and allocation pool is NOT set 2024-11-10 00:39:29,817 - 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.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.512 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.512/1.628/2.745/1.116 ms') 2024-11-10 00:39:29,817 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69803400-90507304 passed 2024-11-10 00:39:29,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 00:39:29,975 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69803400-90507304, IP 126.2.140.67, Port 22 2024-11-10 00:39:30,135 - DEBUG - VM ctest-TestRoutersBasic-69803400-90507304 is ready for SSH connections 2024-11-10 00:39:30,135 - INFO - Waiting for VM ctest-TestRoutersBasic-69803400-33265358 to be up.. 2024-11-10 00:39:30,236 - DEBUG - VM is in ACTIVE state now 2024-11-10 00:39:30,237 - INFO - VM name : ctest-TestRoutersBasic-69803400-33265358 2024-11-10 00:39:30,322 - DEBUG - VM ctest-TestRoutersBasic-69803400-33265358 ID is d6944ce7-6c46-4147-a069-8018d35a4312 2024-11-10 00:39:30,323 - DEBUG - VM ctest-TestRoutersBasic-69803400-33265358 launched on Node cn-jenkins-deploy-platform-ansible-os-2247-1 2024-11-10 00:39:30,415 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/d6944ce7-6c46-4147-a069-8018d35a4312 2024-11-10 00:39:30,425 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/4f1bd1db-1ef2-4730-b97e-37200da2c4a8 2024-11-10 00:39:31,685 - 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.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.394 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.394/1.684/2.975/1.290 ms') 2024-11-10 00:39:31,685 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-69803400-33265358 passed 2024-11-10 00:39:31,839 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 00:39:31,839 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69803400-33265358, IP 123.83.169.67, Port 22 2024-11-10 00:39:31,995 - DEBUG - VM ctest-TestRoutersBasic-69803400-33265358 is ready for SSH connections 2024-11-10 00:39:31,995 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 00:39:31,995 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 123.83.169.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-10 00:39:31,995 - DEBUG - ping -s 56 -c 3 -W 1 123.83.169.67 2024-11-10 00:39:35,683 - DEBUG - PING 123.83.169.67 (123.83.169.67): 56 data bytes 64 bytes from 123.83.169.67: seq=0 ttl=62 time=4.477 ms 64 bytes from 123.83.169.67: seq=1 ttl=62 time=1.126 ms 64 bytes from 123.83.169.67: seq=2 ttl=62 time=1.795 ms --- 123.83.169.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.126/2.466/4.477 ms 2024-11-10 00:39:35,683 - INFO - Ping to IP 123.83.169.67 from VM ctest-TestRoutersBasic-69803400-90507304 passed 2024-11-10 00:39:35,683 - INFO - Deleting interface with subnet_id 719b1f3a-ddc1-454f-aea9-ca541b216e21, port_id None from router 252bded8-e355-44c0-817d-8b544123da82 2024-11-10 00:39:35,937 - INFO - Deleting VM ctest-TestRoutersBasic-69803400-33265358 2024-11-10 00:39:36,005 - INFO - Deleting VM ctest-TestRoutersBasic-69803400-90507304 2024-11-10 00:39:36,081 - INFO - Deleting VN ctest-ext_vn-46051453 2024-11-10 00:39:36,156 - DEBUG - VN f59c9173-95c0-481d-a73e-d45739d74433 still in use: Unable to complete operation on network f59c9173-95c0-481d-a73e-d45739d74433. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-da5c9a8b-1184-4da0-ae9f-7ec97a6c8546'] 2024-11-10 00:39:36,156 - WARNING - Deleting VN ctest-ext_vn-46051453 failed..Will retry 2024-11-10 00:39:38,286 - DEBUG - Response for deleting network () 2024-11-10 00:39:38,286 - INFO - Deleting VN ctest-vn-93067259 2024-11-10 00:39:38,395 - DEBUG - Response for deleting network () 2024-11-10 00:39:38,648 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 00:39:38,648 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-10 00:39:38,648 - INFO - -------------------------------------------------------------------------------- 2024-11-10 00:39:39,327 - INFO - Deleted project: ctest-TestRoutersBasic-69803400, ID : 37910c92-8522-463c-9c76-076fb2c7067e