2024-11-10 14:57:48,326 - INFO - Domain Default found not creating 2024-11-10 14:57:48,503 - INFO - Project ctest-TestRoutersBasic-81653581 not found, creating it 2024-11-10 14:57:49,017 - INFO - Created Project:ctest-TestRoutersBasic-81653581, ID : 783b1097-3f9f-4441-9b8e-1d847e23797f 2024-11-10 14:57:50,639 - INFO - ================================================================================ 2024-11-10 14:57:50,639 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 14:57:50,639 - 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 14:57:50,895 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.14': '0'}} with 2024-11-10 14:57:50,895 - INFO - Initial checks done. Running the testcase now 2024-11-10 14:57:50,896 - INFO - 2024-11-10 14:57:51,665 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-81653581 2024-11-10 14:57:51,770 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-81653581 2024-11-10 14:57:52,110 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81653581', 'default']} 2024-11-10 14:57:52,442 - DEBUG - Response for create_network : {'network': {'id': '65503607-e076-42ae-99a9-37a1380943c9', 'name': 'ctest-vn-88287112', 'tenant_id': '783b10973f9f44419b8e1d847e23797f', 'project_id': '783b10973f9f44419b8e1d847e23797f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81653581', 'ctest-vn-88287112'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 14:57:52,651 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b48262f-a851-467e-9fb4-e5ca6b40ca86', 'name': '', 'tenant_id': '783b10973f9f44419b8e1d847e23797f', 'network_id': '65503607-e076-42ae-99a9-37a1380943c9', 'ip_version': 4, 'cidr': '211.190.54.64/26', 'allocation_pools': [{'start': '211.190.54.66', 'end': '211.190.54.126'}], 'gateway_ip': '211.190.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.190.54.66', 'tags': [], 'project_id': '783b10973f9f44419b8e1d847e23797f'}} 2024-11-10 14:57:52,678 - INFO - Created VN ctest-vn-88287112 2024-11-10 14:57:52,738 - DEBUG - VN ctest-vn-88287112 UUID is 65503607-e076-42ae-99a9-37a1380943c9 2024-11-10 14:57:53,085 - DEBUG - Response for create_network : {'network': {'id': '4b6ac8a7-adb1-4f83-becc-03d5b3940fc6', 'name': 'ctest-ext_vn-47411639', 'tenant_id': '783b10973f9f44419b8e1d847e23797f', 'project_id': '783b10973f9f44419b8e1d847e23797f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81653581', 'ctest-ext_vn-47411639'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 14:57:53,315 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b502ce8-b738-4e5b-aac2-d6774eab45de', 'name': '', 'tenant_id': '783b10973f9f44419b8e1d847e23797f', 'network_id': '4b6ac8a7-adb1-4f83-becc-03d5b3940fc6', 'ip_version': 4, 'cidr': '114.23.59.64/26', 'allocation_pools': [{'start': '114.23.59.66', 'end': '114.23.59.126'}], 'gateway_ip': '114.23.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.23.59.66', 'tags': [], 'project_id': '783b10973f9f44419b8e1d847e23797f'}} 2024-11-10 14:57:53,335 - INFO - Created VN ctest-ext_vn-47411639 2024-11-10 14:57:53,394 - DEBUG - VN ctest-ext_vn-47411639 UUID is 4b6ac8a7-adb1-4f83-becc-03d5b3940fc6 2024-11-10 14:57:53,571 - DEBUG - Services list from nova: [, , ] 2024-11-10 14:57:54,808 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2251-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2251-1) 2024-11-10 14:57:56,080 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2251-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2251-1) 2024-11-10 14:57:56,209 - INFO - Setting gateway for router b428b084-7bb1-4d28-8b18-0a62decb48ee to network 4b6ac8a7-adb1-4f83-becc-03d5b3940fc6 2024-11-10 14:57:56,300 - INFO - Adding interface with subnet_id 7b48262f-a851-467e-9fb4-e5ca6b40ca86, port_id None to router b428b084-7bb1-4d28-8b18-0a62decb48ee 2024-11-10 14:57:56,737 - INFO - Waiting for VM ctest-TestRoutersBasic-81653581-15785698 to be up.. 2024-11-10 14:57:56,950 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 14:58:02,039 - DEBUG - VM is in ACTIVE state now 2024-11-10 14:58:02,039 - INFO - VM name : ctest-TestRoutersBasic-81653581-15785698 2024-11-10 14:58:02,158 - DEBUG - VM ctest-TestRoutersBasic-81653581-15785698 ID is 0f8f7acc-d57c-4492-8074-d4ffd8860ce1 2024-11-10 14:58:02,182 - DEBUG - VM ctest-TestRoutersBasic-81653581-15785698 launched on Node cn-jenkins-deploy-platform-ansible-os-2251-1 2024-11-10 14:58:02,288 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/0f8f7acc-d57c-4492-8074-d4ffd8860ce1 2024-11-10 14:58:02,618 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/0f8f7acc-d57c-4492-8074-d4ffd8860ce1 2024-11-10 14:58:02,653 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/355d3c35-786a-4ec5-b7dc-d0200bcf868e 2024-11-10 14:58:05,905 - 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-10 14:58:05,905 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-81653581-15785698 failed! 2024-11-10 14:58:05,966 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-81653581:ctest-vn-88287112 is 211.190.54.65 and allocation pool is NOT set 2024-11-10 14:58:08,030 - 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=3.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.426 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.426/1.846/3.266/1.420 ms') 2024-11-10 14:58:08,030 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-81653581-15785698 passed 2024-11-10 14:58:08,194 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 14:58:08,194 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-81653581-15785698, IP 211.190.54.67, Port 22 2024-11-10 14:58:08,354 - DEBUG - VM ctest-TestRoutersBasic-81653581-15785698 is ready for SSH connections 2024-11-10 14:58:08,354 - INFO - Waiting for VM ctest-TestRoutersBasic-81653581-32243074 to be up.. 2024-11-10 14:58:08,436 - DEBUG - VM is in ACTIVE state now 2024-11-10 14:58:08,436 - INFO - VM name : ctest-TestRoutersBasic-81653581-32243074 2024-11-10 14:58:08,517 - DEBUG - VM ctest-TestRoutersBasic-81653581-32243074 ID is b1788290-023b-42a8-8f3a-fc237c527f88 2024-11-10 14:58:08,517 - DEBUG - VM ctest-TestRoutersBasic-81653581-32243074 launched on Node cn-jenkins-deploy-platform-ansible-os-2251-1 2024-11-10 14:58:08,596 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/b1788290-023b-42a8-8f3a-fc237c527f88 2024-11-10 14:58:08,611 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/b53aaf21-e676-44ec-8833-b691639b178e 2024-11-10 14:58:09,879 - 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=5.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.964 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.964/3.295/5.627/2.331 ms') 2024-11-10 14:58:09,879 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-81653581-32243074 passed 2024-11-10 14:58:10,038 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 14:58:10,038 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-81653581-32243074, IP 114.23.59.67, Port 22 2024-11-10 14:58:10,193 - DEBUG - VM ctest-TestRoutersBasic-81653581-32243074 is ready for SSH connections 2024-11-10 14:58:10,193 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 14:58:10,193 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.23.59.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-11-10 14:58:10,194 - DEBUG - ping -s 56 -c 3 -W 1 114.23.59.67 2024-11-10 14:58:14,086 - DEBUG - PING 114.23.59.67 (114.23.59.67): 56 data bytes 64 bytes from 114.23.59.67: seq=0 ttl=62 time=6.729 ms 64 bytes from 114.23.59.67: seq=1 ttl=62 time=1.071 ms 64 bytes from 114.23.59.67: seq=2 ttl=62 time=1.105 ms --- 114.23.59.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.071/2.968/6.729 ms 2024-11-10 14:58:14,086 - INFO - Ping to IP 114.23.59.67 from VM ctest-TestRoutersBasic-81653581-15785698 passed 2024-11-10 14:58:14,086 - INFO - Deleting interface with subnet_id 7b48262f-a851-467e-9fb4-e5ca6b40ca86, port_id None from router b428b084-7bb1-4d28-8b18-0a62decb48ee 2024-11-10 14:58:14,310 - INFO - Deleting VM ctest-TestRoutersBasic-81653581-32243074 2024-11-10 14:58:14,387 - INFO - Deleting VM ctest-TestRoutersBasic-81653581-15785698 2024-11-10 14:58:14,493 - INFO - Deleting VN ctest-ext_vn-47411639 2024-11-10 14:58:14,592 - DEBUG - VN 4b6ac8a7-adb1-4f83-becc-03d5b3940fc6 still in use: Unable to complete operation on network 4b6ac8a7-adb1-4f83-becc-03d5b3940fc6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7a769b0f-84eb-421b-b1c0-7c31b2d1bb35'] 2024-11-10 14:58:14,592 - WARNING - Deleting VN ctest-ext_vn-47411639 failed..Will retry 2024-11-10 14:58:16,722 - DEBUG - Response for deleting network () 2024-11-10 14:58:16,722 - INFO - Deleting VN ctest-vn-88287112 2024-11-10 14:58:16,837 - DEBUG - Response for deleting network () 2024-11-10 14:58:17,104 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 14:58:17,104 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-11-10 14:58:17,104 - INFO - -------------------------------------------------------------------------------- 2024-11-10 14:58:17,852 - INFO - Deleted project: ctest-TestRoutersBasic-81653581, ID : 783b1097-3f9f-4441-9b8e-1d847e23797f