2024-09-11 19:23:07,963 - INFO - Domain Default found not creating 2024-09-11 19:23:08,126 - INFO - Project ctest-TestRoutersBasic-17245467 not found, creating it 2024-09-11 19:23:08,605 - INFO - Created Project:ctest-TestRoutersBasic-17245467, ID : a9218ccb-08e5-4786-85d9-e5e02a1015c4 2024-09-11 19:23:10,173 - INFO - ================================================================================ 2024-09-11 19:23:10,173 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 19:23:10,174 - 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-09-11 19:23:10,426 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2024-09-11 19:23:10,426 - INFO - Initial checks done. Running the testcase now 2024-09-11 19:23:10,426 - INFO - 2024-09-11 19:23:11,142 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-17245467 2024-09-11 19:23:11,241 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-17245467 2024-09-11 19:23:11,581 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17245467', 'default']} 2024-09-11 19:23:11,933 - DEBUG - Response for create_network : {'network': {'id': 'e888a8dc-e822-4e9e-866e-219291bd78e7', 'name': 'ctest-vn-87285126', 'tenant_id': 'a9218ccb08e5478685d9e5e02a1015c4', 'project_id': 'a9218ccb08e5478685d9e5e02a1015c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17245467', 'ctest-vn-87285126'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 19:23:12,150 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf4abad6-69a8-4ec2-b5a9-5e849936fc25', 'name': '', 'tenant_id': 'a9218ccb08e5478685d9e5e02a1015c4', 'network_id': 'e888a8dc-e822-4e9e-866e-219291bd78e7', 'ip_version': 4, 'cidr': '185.218.32.64/26', 'allocation_pools': [{'start': '185.218.32.66', 'end': '185.218.32.126'}], 'gateway_ip': '185.218.32.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.218.32.66', 'tags': [], 'project_id': 'a9218ccb08e5478685d9e5e02a1015c4'}} 2024-09-11 19:23:12,171 - INFO - Created VN ctest-vn-87285126 2024-09-11 19:23:12,229 - DEBUG - VN ctest-vn-87285126 UUID is e888a8dc-e822-4e9e-866e-219291bd78e7 2024-09-11 19:23:12,563 - DEBUG - Response for create_network : {'network': {'id': '15b122fe-e9a5-40c2-a705-56621eb94a99', 'name': 'ctest-ext_vn-36652078', 'tenant_id': 'a9218ccb08e5478685d9e5e02a1015c4', 'project_id': 'a9218ccb08e5478685d9e5e02a1015c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17245467', 'ctest-ext_vn-36652078'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 19:23:12,727 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4ee3866-1952-4b44-91c4-97ff139e742c', 'name': '', 'tenant_id': 'a9218ccb08e5478685d9e5e02a1015c4', 'network_id': '15b122fe-e9a5-40c2-a705-56621eb94a99', 'ip_version': 4, 'cidr': '163.43.149.0/26', 'allocation_pools': [{'start': '163.43.149.2', 'end': '163.43.149.62'}], 'gateway_ip': '163.43.149.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.43.149.2', 'tags': [], 'project_id': 'a9218ccb08e5478685d9e5e02a1015c4'}} 2024-09-11 19:23:12,750 - INFO - Created VN ctest-ext_vn-36652078 2024-09-11 19:23:12,805 - DEBUG - VN ctest-ext_vn-36652078 UUID is 15b122fe-e9a5-40c2-a705-56621eb94a99 2024-09-11 19:23:12,983 - DEBUG - Services list from nova: [, , ] 2024-09-11 19:23:14,008 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1900-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1900-1) 2024-09-11 19:23:15,168 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1900-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1900-1) 2024-09-11 19:23:15,263 - INFO - Setting gateway for router 52103261-3b13-410d-b3a1-eeb63d02991c to network 15b122fe-e9a5-40c2-a705-56621eb94a99 2024-09-11 19:23:15,357 - INFO - Adding interface with subnet_id bf4abad6-69a8-4ec2-b5a9-5e849936fc25, port_id None to router 52103261-3b13-410d-b3a1-eeb63d02991c 2024-09-11 19:23:15,752 - INFO - Waiting for VM ctest-TestRoutersBasic-17245467-23606853 to be up.. 2024-09-11 19:23:15,897 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 19:23:21,001 - DEBUG - VM is in ACTIVE state now 2024-09-11 19:23:21,001 - INFO - VM name : ctest-TestRoutersBasic-17245467-23606853 2024-09-11 19:23:21,131 - DEBUG - VM ctest-TestRoutersBasic-17245467-23606853 ID is 3fe04fe5-e146-4ddc-a69b-6c92973562c0 2024-09-11 19:23:21,153 - DEBUG - VM ctest-TestRoutersBasic-17245467-23606853 launched on Node cn-jenkins-deploy-platform-ansible-os-1900-1 2024-09-11 19:23:21,237 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/3fe04fe5-e146-4ddc-a69b-6c92973562c0 2024-09-11 19:23:21,533 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/3fe04fe5-e146-4ddc-a69b-6c92973562c0 2024-09-11 19:23:21,570 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/dac8071a-bce7-4caa-91a4-9d897a23519d 2024-09-11 19:23:24,816 - 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-09-11 19:23:24,816 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17245467-23606853 failed! 2024-09-11 19:23:24,877 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-17245467:ctest-vn-87285126 is 185.218.32.65 and allocation pool is NOT set 2024-09-11 19:23:27,809 - 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.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.388 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.388/1.585/2.782/1.197 ms') 2024-09-11 19:23:27,809 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17245467-23606853 passed 2024-09-11 19:23:27,961 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:23:27,961 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17245467-23606853, IP 185.218.32.67, Port 22 2024-09-11 19:23:28,343 - DEBUG - VM ctest-TestRoutersBasic-17245467-23606853 is ready for SSH connections 2024-09-11 19:23:28,344 - INFO - Waiting for VM ctest-TestRoutersBasic-17245467-97764614 to be up.. 2024-09-11 19:23:28,425 - DEBUG - VM is in ACTIVE state now 2024-09-11 19:23:28,425 - INFO - VM name : ctest-TestRoutersBasic-17245467-97764614 2024-09-11 19:23:28,501 - DEBUG - VM ctest-TestRoutersBasic-17245467-97764614 ID is c1302ebb-6ad6-4b69-aeed-e8a381c3a3dc 2024-09-11 19:23:28,501 - DEBUG - VM ctest-TestRoutersBasic-17245467-97764614 launched on Node cn-jenkins-deploy-platform-ansible-os-1900-1 2024-09-11 19:23:28,576 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/c1302ebb-6ad6-4b69-aeed-e8a381c3a3dc 2024-09-11 19:23:28,586 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/4576a94e-7ad4-407f-8157-06b0670721ee 2024-09-11 19:23:31,860 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms') 2024-09-11 19:23:31,861 - DEBUG - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-17245467-97764614 failed! 2024-09-11 19:23:31,921 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-17245467:ctest-ext_vn-36652078 is 163.43.149.1 and allocation pool is NOT set 2024-09-11 19:23:33,982 - 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=1.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.456 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.456/1.133/1.810/0.677 ms') 2024-09-11 19:23:33,982 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-17245467-97764614 passed 2024-09-11 19:23:34,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:23:34,137 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17245467-97764614, IP 163.43.149.3, Port 22 2024-09-11 19:23:34,193 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-11 19:23:34,267 - DEBUG - VM ctest-TestRoutersBasic-17245467-97764614 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-11 19:23:39,267 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:23:39,268 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17245467-97764614, IP 163.43.149.3, Port 22 2024-09-11 19:23:39,335 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-11 19:23:39,409 - DEBUG - VM ctest-TestRoutersBasic-17245467-97764614 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-11 19:23:44,410 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:23:44,410 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17245467-97764614, IP 163.43.149.3, Port 22 2024-09-11 19:23:44,569 - DEBUG - VM ctest-TestRoutersBasic-17245467-97764614 is ready for SSH connections 2024-09-11 19:23:44,570 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:23:44,570 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.43.149.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-09-11 19:23:44,570 - DEBUG - ping -s 56 -c 3 -W 1 163.43.149.3 2024-09-11 19:23:48,277 - DEBUG - PING 163.43.149.3 (163.43.149.3): 56 data bytes 64 bytes from 163.43.149.3: seq=0 ttl=62 time=6.297 ms 64 bytes from 163.43.149.3: seq=1 ttl=62 time=0.910 ms 64 bytes from 163.43.149.3: seq=2 ttl=62 time=0.902 ms --- 163.43.149.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.902/2.703/6.297 ms 2024-09-11 19:23:48,278 - INFO - Ping to IP 163.43.149.3 from VM ctest-TestRoutersBasic-17245467-23606853 passed 2024-09-11 19:23:48,278 - INFO - Deleting interface with subnet_id bf4abad6-69a8-4ec2-b5a9-5e849936fc25, port_id None from router 52103261-3b13-410d-b3a1-eeb63d02991c 2024-09-11 19:23:48,983 - INFO - Deleting VM ctest-TestRoutersBasic-17245467-97764614 2024-09-11 19:23:51,331 - INFO - Deleting VM ctest-TestRoutersBasic-17245467-23606853 2024-09-11 19:23:51,405 - INFO - Deleting VN ctest-ext_vn-36652078 2024-09-11 19:23:51,482 - DEBUG - VN 15b122fe-e9a5-40c2-a705-56621eb94a99 still in use: Unable to complete operation on network 15b122fe-e9a5-40c2-a705-56621eb94a99. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a47c8011-83d1-4eb7-ae45-97ba4ac47292'] 2024-09-11 19:23:51,482 - WARNING - Deleting VN ctest-ext_vn-36652078 failed..Will retry 2024-09-11 19:23:53,586 - DEBUG - Response for deleting network () 2024-09-11 19:23:53,586 - INFO - Deleting VN ctest-vn-87285126 2024-09-11 19:23:53,686 - DEBUG - Response for deleting network () 2024-09-11 19:23:53,942 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 19:23:53,942 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:43] 2024-09-11 19:23:53,942 - INFO - -------------------------------------------------------------------------------- 2024-09-11 19:23:56,527 - INFO - Deleted project: ctest-TestRoutersBasic-17245467, ID : a9218ccb-08e5-4786-85d9-e5e02a1015c4