2024-11-08 15:35:47,439 - INFO - Domain Default found not creating 2024-11-08 15:35:47,630 - INFO - Project ctest-TestRoutersBasic-16818042 not found, creating it 2024-11-08 15:35:48,197 - INFO - Created Project:ctest-TestRoutersBasic-16818042, ID : 0d8d4284-874e-4641-9311-643c46a42c62 2024-11-08 15:35:49,763 - INFO - ================================================================================ 2024-11-08 15:35:49,763 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-08 15:35:49,763 - 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-08 15:35:50,032 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with 2024-11-08 15:35:50,032 - INFO - Initial checks done. Running the testcase now 2024-11-08 15:35:50,033 - INFO - 2024-11-08 15:35:50,788 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16818042 2024-11-08 15:35:50,890 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16818042 2024-11-08 15:35:51,249 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16818042', 'default']} 2024-11-08 15:35:51,591 - DEBUG - Response for create_network : {'network': {'id': 'd9499c81-984f-46ce-84e3-2f0571963eec', 'name': 'ctest-vn-12054065', 'tenant_id': '0d8d4284874e46419311643c46a42c62', 'project_id': '0d8d4284874e46419311643c46a42c62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16818042', 'ctest-vn-12054065'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 15:35:51,759 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc1d816c-4e9d-477e-a615-13e287616749', 'name': '', 'tenant_id': '0d8d4284874e46419311643c46a42c62', 'network_id': 'd9499c81-984f-46ce-84e3-2f0571963eec', 'ip_version': 4, 'cidr': '206.23.222.128/26', 'allocation_pools': [{'start': '206.23.222.130', 'end': '206.23.222.190'}], 'gateway_ip': '206.23.222.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.23.222.130', 'tags': [], 'project_id': '0d8d4284874e46419311643c46a42c62'}} 2024-11-08 15:35:51,781 - INFO - Created VN ctest-vn-12054065 2024-11-08 15:35:51,842 - DEBUG - VN ctest-vn-12054065 UUID is d9499c81-984f-46ce-84e3-2f0571963eec 2024-11-08 15:35:52,220 - DEBUG - Response for create_network : {'network': {'id': 'af525b11-6ab4-42d7-ba37-4ca083ce721a', 'name': 'ctest-ext_vn-97417051', 'tenant_id': '0d8d4284874e46419311643c46a42c62', 'project_id': '0d8d4284874e46419311643c46a42c62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16818042', 'ctest-ext_vn-97417051'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 15:35:52,445 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e0cbf1a-76a1-45c1-852e-66653737d90b', 'name': '', 'tenant_id': '0d8d4284874e46419311643c46a42c62', 'network_id': 'af525b11-6ab4-42d7-ba37-4ca083ce721a', 'ip_version': 4, 'cidr': '40.29.39.0/26', 'allocation_pools': [{'start': '40.29.39.2', 'end': '40.29.39.62'}], 'gateway_ip': '40.29.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.29.39.2', 'tags': [], 'project_id': '0d8d4284874e46419311643c46a42c62'}} 2024-11-08 15:35:52,471 - INFO - Created VN ctest-ext_vn-97417051 2024-11-08 15:35:52,530 - DEBUG - VN ctest-ext_vn-97417051 UUID is af525b11-6ab4-42d7-ba37-4ca083ce721a 2024-11-08 15:35:52,718 - DEBUG - Services list from nova: [, , ] 2024-11-08 15:35:53,866 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2233-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2233-1) 2024-11-08 15:35:55,076 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2233-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2233-1) 2024-11-08 15:35:55,162 - INFO - Setting gateway for router dc53c083-4212-4209-9297-6ef09dbeaf2d to network af525b11-6ab4-42d7-ba37-4ca083ce721a 2024-11-08 15:35:55,227 - INFO - Adding interface with subnet_id bc1d816c-4e9d-477e-a615-13e287616749, port_id None to router dc53c083-4212-4209-9297-6ef09dbeaf2d 2024-11-08 15:35:55,700 - INFO - Waiting for VM ctest-TestRoutersBasic-16818042-84874108 to be up.. 2024-11-08 15:35:55,860 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 15:36:00,958 - DEBUG - VM is in ACTIVE state now 2024-11-08 15:36:00,958 - INFO - VM name : ctest-TestRoutersBasic-16818042-84874108 2024-11-08 15:36:01,053 - DEBUG - VM ctest-TestRoutersBasic-16818042-84874108 ID is 04effe19-4e32-46b2-ac79-6c8b5b19cabf 2024-11-08 15:36:01,074 - DEBUG - VM ctest-TestRoutersBasic-16818042-84874108 launched on Node cn-jenkins-deploy-platform-ansible-os-2233-1 2024-11-08 15:36:01,171 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/04effe19-4e32-46b2-ac79-6c8b5b19cabf 2024-11-08 15:36:01,486 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/04effe19-4e32-46b2-ac79-6c8b5b19cabf 2024-11-08 15:36:01,540 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/60037ba1-c2d4-40fa-997e-d980dcc8dc31 2024-11-08 15:36:04,809 - 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 1018ms') 2024-11-08 15:36:04,809 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16818042-84874108 failed! 2024-11-08 15:36:04,874 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-16818042:ctest-vn-12054065 is 206.23.222.129 and allocation pool is NOT set 2024-11-08 15:36:06,930 - 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.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.444 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.444/1.614/2.785/1.170 ms') 2024-11-08 15:36:06,931 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16818042-84874108 passed 2024-11-08 15:36:07,098 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 15:36:07,098 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16818042-84874108, IP 206.23.222.131, Port 22 2024-11-08 15:36:07,265 - DEBUG - VM ctest-TestRoutersBasic-16818042-84874108 is ready for SSH connections 2024-11-08 15:36:07,266 - INFO - Waiting for VM ctest-TestRoutersBasic-16818042-91327077 to be up.. 2024-11-08 15:36:07,370 - DEBUG - VM is in ACTIVE state now 2024-11-08 15:36:07,370 - INFO - VM name : ctest-TestRoutersBasic-16818042-91327077 2024-11-08 15:36:07,454 - DEBUG - VM ctest-TestRoutersBasic-16818042-91327077 ID is 89ab048c-970d-4e4d-bbbf-adc4cac1ce5c 2024-11-08 15:36:07,454 - DEBUG - VM ctest-TestRoutersBasic-16818042-91327077 launched on Node cn-jenkins-deploy-platform-ansible-os-2233-1 2024-11-08 15:36:07,548 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/89ab048c-970d-4e4d-bbbf-adc4cac1ce5c 2024-11-08 15:36:07,559 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/abb30f36-c275-4946-9ddd-760b9a069cb8 2024-11-08 15:36:08,816 - 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.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.912 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.912/2.078/3.245/1.166 ms') 2024-11-08 15:36:08,816 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16818042-91327077 passed 2024-11-08 15:36:08,978 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 15:36:08,978 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16818042-91327077, IP 40.29.39.3, Port 22 2024-11-08 15:36:09,133 - DEBUG - VM ctest-TestRoutersBasic-16818042-91327077 is ready for SSH connections 2024-11-08 15:36:09,133 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 15:36:09,133 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.29.39.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-08 15:36:09,134 - DEBUG - ping -s 56 -c 3 -W 1 40.29.39.3 2024-11-08 15:36:12,868 - DEBUG - PING 40.29.39.3 (40.29.39.3): 56 data bytes 64 bytes from 40.29.39.3: seq=0 ttl=62 time=5.991 ms 64 bytes from 40.29.39.3: seq=1 ttl=62 time=1.348 ms 64 bytes from 40.29.39.3: seq=2 ttl=62 time=1.209 ms --- 40.29.39.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.209/2.849/5.991 ms 2024-11-08 15:36:12,868 - INFO - Ping to IP 40.29.39.3 from VM ctest-TestRoutersBasic-16818042-84874108 passed 2024-11-08 15:36:12,868 - INFO - Deleting interface with subnet_id bc1d816c-4e9d-477e-a615-13e287616749, port_id None from router dc53c083-4212-4209-9297-6ef09dbeaf2d 2024-11-08 15:36:13,121 - INFO - Deleting VM ctest-TestRoutersBasic-16818042-91327077 2024-11-08 15:36:13,199 - INFO - Deleting VM ctest-TestRoutersBasic-16818042-84874108 2024-11-08 15:36:13,288 - INFO - Deleting VN ctest-ext_vn-97417051 2024-11-08 15:36:13,390 - DEBUG - VN af525b11-6ab4-42d7-ba37-4ca083ce721a still in use: Unable to complete operation on network af525b11-6ab4-42d7-ba37-4ca083ce721a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-172d08ca-b890-4072-800c-7b5fb19f46da'] 2024-11-08 15:36:13,390 - WARNING - Deleting VN ctest-ext_vn-97417051 failed..Will retry 2024-11-08 15:36:15,517 - DEBUG - Response for deleting network () 2024-11-08 15:36:15,517 - INFO - Deleting VN ctest-vn-12054065 2024-11-08 15:36:15,640 - DEBUG - Response for deleting network () 2024-11-08 15:36:15,895 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 15:36:15,895 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-08 15:36:15,895 - INFO - -------------------------------------------------------------------------------- 2024-11-08 15:36:16,746 - INFO - Deleted project: ctest-TestRoutersBasic-16818042, ID : 0d8d4284-874e-4641-9311-643c46a42c62