2025-08-11 07:40:12,624 - INFO - Domain Default found not creating 2025-08-11 07:40:12,746 - INFO - Project ctest-TestRoutersBasic-05103821 not found, creating it 2025-08-11 07:40:13,223 - INFO - Created Project:ctest-TestRoutersBasic-05103821, ID : 9c86aafb-880b-465e-b338-ce7aadc6cb96 2025-08-11 07:40:14,542 - INFO - ================================================================================ 2025-08-11 07:40:14,542 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-11 07:40:14,542 - 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 2025-08-11 07:40:14,792 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-08-11 07:40:14,792 - INFO - Initial checks done. Running the testcase now 2025-08-11 07:40:14,792 - INFO - 2025-08-11 07:40:15,464 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-05103821 2025-08-11 07:40:15,558 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-05103821 2025-08-11 07:40:15,894 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05103821', 'default']} 2025-08-11 07:40:16,178 - DEBUG - Response for create_network : {'network': {'id': 'f191f648-323b-4662-8fd6-8b8d0c4d1110', 'name': 'ctest-vn-94390183', 'tenant_id': '9c86aafb880b465eb338ce7aadc6cb96', 'project_id': '9c86aafb880b465eb338ce7aadc6cb96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05103821', 'ctest-vn-94390183'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 07:40:16,397 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb2e5ecd-1a5d-404d-8ed5-f82d4835aa48', 'name': '', 'tenant_id': '9c86aafb880b465eb338ce7aadc6cb96', 'network_id': 'f191f648-323b-4662-8fd6-8b8d0c4d1110', 'ip_version': 4, 'cidr': '213.221.10.64/26', 'allocation_pools': [{'start': '213.221.10.66', 'end': '213.221.10.126'}], 'gateway_ip': '213.221.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.221.10.66', 'tags': [], 'project_id': '9c86aafb880b465eb338ce7aadc6cb96'}} 2025-08-11 07:40:16,413 - INFO - Created VN ctest-vn-94390183 2025-08-11 07:40:16,462 - DEBUG - VN ctest-vn-94390183 UUID is f191f648-323b-4662-8fd6-8b8d0c4d1110 2025-08-11 07:40:16,778 - DEBUG - Response for create_network : {'network': {'id': '33af75ff-b5bb-41d7-a49b-f43a51bc1d48', 'name': 'ctest-ext_vn-07576601', 'tenant_id': '9c86aafb880b465eb338ce7aadc6cb96', 'project_id': '9c86aafb880b465eb338ce7aadc6cb96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05103821', 'ctest-ext_vn-07576601'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 07:40:16,987 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b195dd9-50c7-4e2d-9935-88e79035d447', 'name': '', 'tenant_id': '9c86aafb880b465eb338ce7aadc6cb96', 'network_id': '33af75ff-b5bb-41d7-a49b-f43a51bc1d48', 'ip_version': 4, 'cidr': '150.148.197.0/26', 'allocation_pools': [{'start': '150.148.197.2', 'end': '150.148.197.62'}], 'gateway_ip': '150.148.197.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.148.197.2', 'tags': [], 'project_id': '9c86aafb880b465eb338ce7aadc6cb96'}} 2025-08-11 07:40:17,005 - INFO - Created VN ctest-ext_vn-07576601 2025-08-11 07:40:17,058 - DEBUG - VN ctest-ext_vn-07576601 UUID is 33af75ff-b5bb-41d7-a49b-f43a51bc1d48 2025-08-11 07:40:17,259 - DEBUG - Services list from nova: [, , ] 2025-08-11 07:40:18,201 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3800-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3800-1) 2025-08-11 07:40:19,251 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3800-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3800-1) 2025-08-11 07:40:19,311 - INFO - Setting gateway for router df8ea127-0054-4310-ad31-19895ea03100 to network 33af75ff-b5bb-41d7-a49b-f43a51bc1d48 2025-08-11 07:40:19,361 - INFO - Adding interface with subnet_id fb2e5ecd-1a5d-404d-8ed5-f82d4835aa48, port_id None to router df8ea127-0054-4310-ad31-19895ea03100 2025-08-11 07:40:19,810 - INFO - Waiting for VM ctest-TestRoutersBasic-05103821-12096776 to be up.. 2025-08-11 07:40:19,956 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-11 07:40:25,029 - DEBUG - VM is in ACTIVE state now 2025-08-11 07:40:25,029 - INFO - VM name : ctest-TestRoutersBasic-05103821-12096776 2025-08-11 07:40:25,098 - DEBUG - VM ctest-TestRoutersBasic-05103821-12096776 ID is 8dce8026-e3ae-4a9a-bfa9-7fa620e41cd9 2025-08-11 07:40:25,114 - DEBUG - VM ctest-TestRoutersBasic-05103821-12096776 launched on Node cn-jenkins-deploy-platform-ansible-os-3800-1 2025-08-11 07:40:25,181 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/8dce8026-e3ae-4a9a-bfa9-7fa620e41cd9 2025-08-11 07:40:25,612 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/8dce8026-e3ae-4a9a-bfa9-7fa620e41cd9 2025-08-11 07:40:25,647 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/2774d381-908e-4b61-83b5-dcf148fa6e18 2025-08-11 07:40:28,910 - 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=2 ttl=63 time=4.17 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1027ms\r\nrtt min/avg/max/mdev = 4.166/4.166/4.166/0.000 ms') 2025-08-11 07:40:28,910 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-05103821-12096776 passed 2025-08-11 07:40:29,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 07:40:29,062 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-05103821-12096776, IP 213.221.10.67, Port 22 2025-08-11 07:40:29,228 - DEBUG - VM ctest-TestRoutersBasic-05103821-12096776 is ready for SSH connections 2025-08-11 07:40:29,228 - INFO - Waiting for VM ctest-TestRoutersBasic-05103821-79872718 to be up.. 2025-08-11 07:40:29,291 - DEBUG - VM is in ACTIVE state now 2025-08-11 07:40:29,292 - INFO - VM name : ctest-TestRoutersBasic-05103821-79872718 2025-08-11 07:40:29,352 - DEBUG - VM ctest-TestRoutersBasic-05103821-79872718 ID is 3b705fba-fac1-4abc-84ed-a526b4958abf 2025-08-11 07:40:29,352 - DEBUG - VM ctest-TestRoutersBasic-05103821-79872718 launched on Node cn-jenkins-deploy-platform-ansible-os-3800-1 2025-08-11 07:40:29,409 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/3b705fba-fac1-4abc-84ed-a526b4958abf 2025-08-11 07:40:29,416 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/da9dad4e-d11c-4e58-800e-141364cc9be5 2025-08-11 07:40:30,662 - 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=4.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.861 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.861/2.436/4.012/1.575 ms') 2025-08-11 07:40:30,662 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-05103821-79872718 passed 2025-08-11 07:40:30,822 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 07:40:30,822 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-05103821-79872718, IP 150.148.197.3, Port 22 2025-08-11 07:40:30,882 - 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': ''} 2025-08-11 07:40:30,950 - DEBUG - VM ctest-TestRoutersBasic-05103821-79872718 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 07:40:35,951 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 07:40:35,951 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-05103821-79872718, IP 150.148.197.3, Port 22 2025-08-11 07:40:36,105 - DEBUG - VM ctest-TestRoutersBasic-05103821-79872718 is ready for SSH connections 2025-08-11 07:40:36,105 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 07:40:36,105 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.148.197.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-08-11 07:40:36,105 - DEBUG - ping -s 56 -c 3 -W 1 150.148.197.3 2025-08-11 07:40:40,062 - DEBUG - PING 150.148.197.3 (150.148.197.3): 56 data bytes 64 bytes from 150.148.197.3: seq=0 ttl=62 time=6.019 ms 64 bytes from 150.148.197.3: seq=1 ttl=62 time=0.859 ms 64 bytes from 150.148.197.3: seq=2 ttl=62 time=0.693 ms --- 150.148.197.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.693/2.523/6.019 ms 2025-08-11 07:40:40,062 - INFO - Ping to IP 150.148.197.3 from VM ctest-TestRoutersBasic-05103821-12096776 passed 2025-08-11 07:40:40,062 - INFO - Deleting interface with subnet_id fb2e5ecd-1a5d-404d-8ed5-f82d4835aa48, port_id None from router df8ea127-0054-4310-ad31-19895ea03100 2025-08-11 07:40:40,249 - INFO - Deleting VM ctest-TestRoutersBasic-05103821-79872718 2025-08-11 07:40:40,304 - INFO - Deleting VM ctest-TestRoutersBasic-05103821-12096776 2025-08-11 07:40:40,380 - INFO - Deleting VN ctest-ext_vn-07576601 2025-08-11 07:40:40,436 - DEBUG - VN 33af75ff-b5bb-41d7-a49b-f43a51bc1d48 still in use: Unable to complete operation on network 33af75ff-b5bb-41d7-a49b-f43a51bc1d48. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-324da500-9609-4ee1-b180-3f3864c73a1a'] 2025-08-11 07:40:40,436 - WARNING - Deleting VN ctest-ext_vn-07576601 failed..Will retry 2025-08-11 07:40:42,536 - DEBUG - Response for deleting network () 2025-08-11 07:40:42,536 - INFO - Deleting VN ctest-vn-94390183 2025-08-11 07:40:42,632 - DEBUG - Response for deleting network () 2025-08-11 07:40:42,888 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 07:40:42,888 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28] 2025-08-11 07:40:42,889 - INFO - -------------------------------------------------------------------------------- 2025-08-11 07:40:43,522 - INFO - Deleted project: ctest-TestRoutersBasic-05103821, ID : 9c86aafb-880b-465e-b338-ce7aadc6cb96