2025-10-22 14:07:46,069 - INFO - Domain Default found not creating 2025-10-22 14:07:46,353 - INFO - Project ctest-TestRoutersBasic-16257373 not found, creating it 2025-10-22 14:07:46,946 - INFO - Created Project:ctest-TestRoutersBasic-16257373, ID : a6df4aca-0b14-4bdf-a0f7-ef816ace2c49 2025-10-22 14:07:48,830 - INFO - ================================================================================ 2025-10-22 14:07:48,830 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-22 14:07:48,830 - 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-10-22 14:07:49,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-10-22 14:07:49,126 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:07:49,126 - INFO - 2025-10-22 14:07:49,939 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16257373 2025-10-22 14:07:50,044 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16257373 2025-10-22 14:07:50,416 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16257373', 'default']} 2025-10-22 14:07:50,879 - DEBUG - Response for create_network : {'network': {'id': '8e3c0778-021c-41c8-92a4-bd53f4e2d5ac', 'name': 'ctest-vn-73546073', 'tenant_id': 'a6df4aca0b144bdfa0f7ef816ace2c49', 'project_id': 'a6df4aca0b144bdfa0f7ef816ace2c49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16257373', 'ctest-vn-73546073'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:07:51,074 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0eabf97-7d67-4e69-a0e8-0661b0ae8410', 'name': '', 'tenant_id': 'a6df4aca0b144bdfa0f7ef816ace2c49', 'network_id': '8e3c0778-021c-41c8-92a4-bd53f4e2d5ac', 'ip_version': 4, 'cidr': '157.5.74.128/26', 'allocation_pools': [{'start': '157.5.74.130', 'end': '157.5.74.190'}], 'gateway_ip': '157.5.74.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.5.74.130', 'tags': [], 'project_id': 'a6df4aca0b144bdfa0f7ef816ace2c49'}} 2025-10-22 14:07:51,111 - INFO - Created VN ctest-vn-73546073 2025-10-22 14:07:51,172 - DEBUG - VN ctest-vn-73546073 UUID is 8e3c0778-021c-41c8-92a4-bd53f4e2d5ac 2025-10-22 14:07:51,620 - DEBUG - Response for create_network : {'network': {'id': '8a081b79-181a-45a6-b10a-334653b4a98a', 'name': 'ctest-ext_vn-64715875', 'tenant_id': 'a6df4aca0b144bdfa0f7ef816ace2c49', 'project_id': 'a6df4aca0b144bdfa0f7ef816ace2c49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-16257373', 'ctest-ext_vn-64715875'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:07:51,872 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd29f2e46-5ab7-4e1e-93d1-fb2905c1f5f0', 'name': '', 'tenant_id': 'a6df4aca0b144bdfa0f7ef816ace2c49', 'network_id': '8a081b79-181a-45a6-b10a-334653b4a98a', 'ip_version': 4, 'cidr': '22.186.172.128/26', 'allocation_pools': [{'start': '22.186.172.130', 'end': '22.186.172.190'}], 'gateway_ip': '22.186.172.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.186.172.130', 'tags': [], 'project_id': 'a6df4aca0b144bdfa0f7ef816ace2c49'}} 2025-10-22 14:07:51,896 - INFO - Created VN ctest-ext_vn-64715875 2025-10-22 14:07:51,956 - DEBUG - VN ctest-ext_vn-64715875 UUID is 8a081b79-181a-45a6-b10a-334653b4a98a 2025-10-22 14:07:52,223 - DEBUG - Services list from nova: [, , ] 2025-10-22 14:07:53,636 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4429-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4429-1) 2025-10-22 14:07:55,077 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4429-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4429-1) 2025-10-22 14:07:55,149 - INFO - Setting gateway for router a306e77b-01cc-4454-86f2-74bdd0f20566 to network 8a081b79-181a-45a6-b10a-334653b4a98a 2025-10-22 14:07:55,211 - INFO - Adding interface with subnet_id c0eabf97-7d67-4e69-a0e8-0661b0ae8410, port_id None to router a306e77b-01cc-4454-86f2-74bdd0f20566 2025-10-22 14:07:55,670 - INFO - Waiting for VM ctest-TestRoutersBasic-16257373-21090455 to be up.. 2025-10-22 14:07:55,813 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 14:08:00,967 - DEBUG - VM is in ACTIVE state now 2025-10-22 14:08:00,968 - INFO - VM name : ctest-TestRoutersBasic-16257373-21090455 2025-10-22 14:08:01,134 - DEBUG - VM ctest-TestRoutersBasic-16257373-21090455 ID is c8a496dd-d044-4840-a82a-20cf100442ec 2025-10-22 14:08:01,184 - DEBUG - VM ctest-TestRoutersBasic-16257373-21090455 launched on Node cn-jenkins-deploy-platform-ansible-os-4429-1 2025-10-22 14:08:01,319 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/c8a496dd-d044-4840-a82a-20cf100442ec 2025-10-22 14:08:01,633 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/c8a496dd-d044-4840-a82a-20cf100442ec 2025-10-22 14:08:01,679 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/4f694bf7-8ef3-479c-a18b-75855312fc7c 2025-10-22 14:08:04,947 - 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 1014ms') 2025-10-22 14:08:04,947 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16257373-21090455 failed! 2025-10-22 14:08:05,012 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-16257373:ctest-vn-73546073 is 157.5.74.129 and allocation pool is NOT set 2025-10-22 14:08:07,084 - 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.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.15 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 = 1.152/2.466/3.781/1.314 ms') 2025-10-22 14:08:07,084 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16257373-21090455 passed 2025-10-22 14:08:07,249 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:08:07,249 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16257373-21090455, IP 157.5.74.131, Port 22 2025-10-22 14:08:07,318 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-22 14:08:07,466 - DEBUG - VM ctest-TestRoutersBasic-16257373-21090455 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 14:08:12,468 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:08:12,468 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16257373-21090455, IP 157.5.74.131, Port 22 2025-10-22 14:08:12,669 - DEBUG - VM ctest-TestRoutersBasic-16257373-21090455 is ready for SSH connections 2025-10-22 14:08:12,669 - INFO - Waiting for VM ctest-TestRoutersBasic-16257373-25722706 to be up.. 2025-10-22 14:08:12,801 - DEBUG - VM is in ACTIVE state now 2025-10-22 14:08:12,801 - INFO - VM name : ctest-TestRoutersBasic-16257373-25722706 2025-10-22 14:08:12,930 - DEBUG - VM ctest-TestRoutersBasic-16257373-25722706 ID is f3de1e2a-bde2-480d-9018-59b6416f1f54 2025-10-22 14:08:12,930 - DEBUG - VM ctest-TestRoutersBasic-16257373-25722706 launched on Node cn-jenkins-deploy-platform-ansible-os-4429-1 2025-10-22 14:08:13,093 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/f3de1e2a-bde2-480d-9018-59b6416f1f54 2025-10-22 14:08:13,115 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/fb56d48e-cbea-4592-a90d-9ddd146d08a6 2025-10-22 14:08:14,415 - 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=10.9 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.648 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.648/5.753/10.859/5.105 ms') 2025-10-22 14:08:14,415 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16257373-25722706 passed 2025-10-22 14:08:14,584 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:08:14,584 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16257373-25722706, IP 22.186.172.131, Port 22 2025-10-22 14:08:14,788 - DEBUG - VM ctest-TestRoutersBasic-16257373-25722706 is ready for SSH connections 2025-10-22 14:08:14,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:08:14,788 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.186.172.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-10-22 14:08:14,789 - DEBUG - ping -s 56 -c 3 -W 1 22.186.172.131 2025-10-22 14:08:18,798 - DEBUG - PING 22.186.172.131 (22.186.172.131): 56 data bytes 64 bytes from 22.186.172.131: seq=0 ttl=62 time=5.267 ms 64 bytes from 22.186.172.131: seq=1 ttl=62 time=2.263 ms 64 bytes from 22.186.172.131: seq=2 ttl=62 time=1.075 ms --- 22.186.172.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.075/2.868/5.267 ms 2025-10-22 14:08:18,799 - INFO - Ping to IP 22.186.172.131 from VM ctest-TestRoutersBasic-16257373-21090455 passed 2025-10-22 14:08:18,799 - INFO - Deleting interface with subnet_id c0eabf97-7d67-4e69-a0e8-0661b0ae8410, port_id None from router a306e77b-01cc-4454-86f2-74bdd0f20566 2025-10-22 14:08:19,113 - INFO - Deleting VM ctest-TestRoutersBasic-16257373-25722706 2025-10-22 14:08:19,219 - INFO - Deleting VM ctest-TestRoutersBasic-16257373-21090455 2025-10-22 14:08:19,334 - INFO - Deleting VN ctest-ext_vn-64715875 2025-10-22 14:08:19,471 - DEBUG - VN 8a081b79-181a-45a6-b10a-334653b4a98a still in use: Unable to complete operation on network 8a081b79-181a-45a6-b10a-334653b4a98a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d553191d-041d-4fd1-9a79-58d3ae1a6b68'] 2025-10-22 14:08:19,471 - WARNING - Deleting VN ctest-ext_vn-64715875 failed..Will retry 2025-10-22 14:08:21,653 - DEBUG - Response for deleting network () 2025-10-22 14:08:21,653 - INFO - Deleting VN ctest-vn-73546073 2025-10-22 14:08:21,774 - DEBUG - Response for deleting network () 2025-10-22 14:08:22,050 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 14:08:22,050 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34]
2025-10-22 14:08:22,050 - INFO - -------------------------------------------------------------------------------- 2025-10-22 14:08:22,887 - INFO - Deleted project: ctest-TestRoutersBasic-16257373, ID : a6df4aca-0b14-4bdf-a0f7-ef816ace2c49