2025-04-09 13:01:47,746 - INFO - Domain Default found not creating 2025-04-09 13:01:47,898 - INFO - Project ctest-TestRoutersBasic-25187026 not found, creating it 2025-04-09 13:01:48,377 - INFO - Created Project:ctest-TestRoutersBasic-25187026, ID : 624be21f-998c-4f34-a031-2adf41eab35b 2025-04-09 13:01:49,855 - INFO - ================================================================================ 2025-04-09 13:01:49,855 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-09 13:01:49,855 - 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-04-09 13:01:50,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.252': {'10.20.0.14': '0'}} with 2025-04-09 13:01:50,115 - INFO - Initial checks done. Running the testcase now 2025-04-09 13:01:50,116 - INFO - 2025-04-09 13:01:50,830 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-25187026 2025-04-09 13:01:50,925 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-25187026 2025-04-09 13:01:51,251 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25187026', 'default']} 2025-04-09 13:01:51,585 - DEBUG - Response for create_network : {'network': {'id': 'a44205d3-0608-48ab-a701-e295fdfe6265', 'name': 'ctest-vn-77729459', 'tenant_id': '624be21f998c4f34a0312adf41eab35b', 'project_id': '624be21f998c4f34a0312adf41eab35b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25187026', 'ctest-vn-77729459'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 13:01:51,771 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcb129be-ce14-4a2e-ad87-102e39500a5f', 'name': '', 'tenant_id': '624be21f998c4f34a0312adf41eab35b', 'network_id': 'a44205d3-0608-48ab-a701-e295fdfe6265', 'ip_version': 4, 'cidr': '62.36.249.64/26', 'allocation_pools': [{'start': '62.36.249.66', 'end': '62.36.249.126'}], 'gateway_ip': '62.36.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.36.249.66', 'tags': [], 'project_id': '624be21f998c4f34a0312adf41eab35b'}} 2025-04-09 13:01:51,792 - INFO - Created VN ctest-vn-77729459 2025-04-09 13:01:51,845 - DEBUG - VN ctest-vn-77729459 UUID is a44205d3-0608-48ab-a701-e295fdfe6265 2025-04-09 13:01:52,176 - DEBUG - Response for create_network : {'network': {'id': '270dc2aa-909b-4481-b812-ca40c580ecc4', 'name': 'ctest-ext_vn-31690063', 'tenant_id': '624be21f998c4f34a0312adf41eab35b', 'project_id': '624be21f998c4f34a0312adf41eab35b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25187026', 'ctest-ext_vn-31690063'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 13:01:52,392 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3b6575c-3025-414c-aaa4-f24b91ed0bbe', 'name': '', 'tenant_id': '624be21f998c4f34a0312adf41eab35b', 'network_id': '270dc2aa-909b-4481-b812-ca40c580ecc4', 'ip_version': 4, 'cidr': '209.65.36.192/26', 'allocation_pools': [{'start': '209.65.36.194', 'end': '209.65.36.254'}], 'gateway_ip': '209.65.36.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.65.36.194', 'tags': [], 'project_id': '624be21f998c4f34a0312adf41eab35b'}} 2025-04-09 13:01:52,413 - INFO - Created VN ctest-ext_vn-31690063 2025-04-09 13:01:52,465 - DEBUG - VN ctest-ext_vn-31690063 UUID is 270dc2aa-909b-4481-b812-ca40c580ecc4 2025-04-09 13:01:52,644 - DEBUG - Services list from nova: [, , ] 2025-04-09 13:01:53,685 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3066-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3066-1) 2025-04-09 13:01:54,855 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3066-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3066-1) 2025-04-09 13:01:54,950 - INFO - Setting gateway for router fa10a41f-8712-4e57-a51e-25e7dbd46ad9 to network 270dc2aa-909b-4481-b812-ca40c580ecc4 2025-04-09 13:01:55,017 - INFO - Adding interface with subnet_id fcb129be-ce14-4a2e-ad87-102e39500a5f, port_id None to router fa10a41f-8712-4e57-a51e-25e7dbd46ad9 2025-04-09 13:01:55,473 - INFO - Waiting for VM ctest-TestRoutersBasic-25187026-67127344 to be up.. 2025-04-09 13:01:55,714 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 13:02:00,805 - DEBUG - VM is in ACTIVE state now 2025-04-09 13:02:00,805 - INFO - VM name : ctest-TestRoutersBasic-25187026-67127344 2025-04-09 13:02:00,895 - DEBUG - VM ctest-TestRoutersBasic-25187026-67127344 ID is 294f4889-7133-474f-9794-7d255f378d64 2025-04-09 13:02:00,921 - DEBUG - VM ctest-TestRoutersBasic-25187026-67127344 launched on Node cn-jenkins-deploy-platform-ansible-os-3066-1 2025-04-09 13:02:01,013 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine/294f4889-7133-474f-9794-7d255f378d64 2025-04-09 13:02:01,309 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine/294f4889-7133-474f-9794-7d255f378d64 2025-04-09 13:02:01,344 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine-interface/c8ef4e14-8475-469c-874a-d476e96578ca 2025-04-09 13:02:04,623 - 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 1017ms') 2025-04-09 13:02:04,623 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25187026-67127344 failed! 2025-04-09 13:02:04,681 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-25187026:ctest-vn-77729459 is 62.36.249.65 and allocation pool is NOT set 2025-04-09 13:02:06,744 - 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.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.823 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.823/2.085/3.347/1.262 ms') 2025-04-09 13:02:06,744 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25187026-67127344 passed 2025-04-09 13:02:06,917 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 13:02:06,917 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25187026-67127344, IP 62.36.249.67, Port 22 2025-04-09 13:02:07,072 - DEBUG - VM ctest-TestRoutersBasic-25187026-67127344 is ready for SSH connections 2025-04-09 13:02:07,072 - INFO - Waiting for VM ctest-TestRoutersBasic-25187026-90399197 to be up.. 2025-04-09 13:02:07,148 - DEBUG - VM is in ACTIVE state now 2025-04-09 13:02:07,148 - INFO - VM name : ctest-TestRoutersBasic-25187026-90399197 2025-04-09 13:02:07,236 - DEBUG - VM ctest-TestRoutersBasic-25187026-90399197 ID is 8e1f6efc-b83a-4193-ab82-4646ca6d62d6 2025-04-09 13:02:07,237 - DEBUG - VM ctest-TestRoutersBasic-25187026-90399197 launched on Node cn-jenkins-deploy-platform-ansible-os-3066-1 2025-04-09 13:02:07,319 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine/8e1f6efc-b83a-4193-ab82-4646ca6d62d6 2025-04-09 13:02:07,366 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine-interface/36547a74-e21e-4fb2-bfb2-b1560169ac7e 2025-04-09 13:02:08,700 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.855 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.855/3.036/5.218/2.181 ms') 2025-04-09 13:02:08,700 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-25187026-90399197 passed 2025-04-09 13:02:08,849 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 13:02:08,849 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25187026-90399197, IP 209.65.36.195, Port 22 2025-04-09 13:02:09,004 - DEBUG - VM ctest-TestRoutersBasic-25187026-90399197 is ready for SSH connections 2025-04-09 13:02:09,005 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 13:02:09,005 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.65.36.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.252, gateway password: c0ntrail123 2025-04-09 13:02:09,005 - DEBUG - ping -s 56 -c 3 -W 1 209.65.36.195 2025-04-09 13:02:13,129 - DEBUG - PING 209.65.36.195 (209.65.36.195): 56 data bytes 64 bytes from 209.65.36.195: seq=0 ttl=62 time=6.214 ms 64 bytes from 209.65.36.195: seq=1 ttl=62 time=0.881 ms 64 bytes from 209.65.36.195: seq=2 ttl=62 time=0.926 ms --- 209.65.36.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.881/2.673/6.214 ms 2025-04-09 13:02:13,129 - INFO - Ping to IP 209.65.36.195 from VM ctest-TestRoutersBasic-25187026-67127344 passed 2025-04-09 13:02:13,129 - INFO - Deleting interface with subnet_id fcb129be-ce14-4a2e-ad87-102e39500a5f, port_id None from router fa10a41f-8712-4e57-a51e-25e7dbd46ad9 2025-04-09 13:02:13,413 - INFO - Deleting VM ctest-TestRoutersBasic-25187026-90399197 2025-04-09 13:02:13,516 - INFO - Deleting VM ctest-TestRoutersBasic-25187026-67127344 2025-04-09 13:02:13,601 - INFO - Deleting VN ctest-ext_vn-31690063 2025-04-09 13:02:13,693 - DEBUG - VN 270dc2aa-909b-4481-b812-ca40c580ecc4 still in use: Unable to complete operation on network 270dc2aa-909b-4481-b812-ca40c580ecc4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b04bb295-b749-4f52-9303-0893551e8e84'] 2025-04-09 13:02:13,693 - WARNING - Deleting VN ctest-ext_vn-31690063 failed..Will retry 2025-04-09 13:02:15,838 - DEBUG - Response for deleting network () 2025-04-09 13:02:15,838 - INFO - Deleting VN ctest-vn-77729459 2025-04-09 13:02:15,972 - DEBUG - Response for deleting network () 2025-04-09 13:02:16,231 - DEBUG - No XMPP flaps were noticed during the test
2025-04-09 13:02:16,231 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2025-04-09 13:02:16,232 - INFO - -------------------------------------------------------------------------------- 2025-04-09 13:02:16,925 - INFO - Deleted project: ctest-TestRoutersBasic-25187026, ID : 624be21f-998c-4f34-a031-2adf41eab35b