2025-04-09 14:07:58,651 - INFO - Domain Default found not creating 2025-04-09 14:07:58,869 - INFO - Project ctest-TestRoutersBasic-60398726 not found, creating it 2025-04-09 14:07:59,545 - INFO - Created Project:ctest-TestRoutersBasic-60398726, ID : 1c006c0c-d05d-4251-934e-f9f59f979737 2025-04-09 14:08:01,028 - INFO - ================================================================================ 2025-04-09 14:08:01,028 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-09 14:08:01,028 - 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 14:08:01,282 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.17': '0'}} with 2025-04-09 14:08:01,282 - INFO - Initial checks done. Running the testcase now 2025-04-09 14:08:01,282 - INFO - 2025-04-09 14:08:02,001 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-60398726 2025-04-09 14:08:02,095 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-60398726 2025-04-09 14:08:02,435 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60398726', 'default']} 2025-04-09 14:08:02,736 - DEBUG - Response for create_network : {'network': {'id': '9a458f74-c6c9-4389-9532-58f822825586', 'name': 'ctest-vn-89553640', 'tenant_id': '1c006c0cd05d4251934ef9f59f979737', 'project_id': '1c006c0cd05d4251934ef9f59f979737', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60398726', 'ctest-vn-89553640'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 14:08:02,944 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa57b7c5-cbfc-4bc3-86c3-a118d5518ab1', 'name': '', 'tenant_id': '1c006c0cd05d4251934ef9f59f979737', 'network_id': '9a458f74-c6c9-4389-9532-58f822825586', 'ip_version': 4, 'cidr': '213.32.204.64/26', 'allocation_pools': [{'start': '213.32.204.66', 'end': '213.32.204.126'}], 'gateway_ip': '213.32.204.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.32.204.66', 'tags': [], 'project_id': '1c006c0cd05d4251934ef9f59f979737'}} 2025-04-09 14:08:02,963 - INFO - Created VN ctest-vn-89553640 2025-04-09 14:08:03,015 - DEBUG - VN ctest-vn-89553640 UUID is 9a458f74-c6c9-4389-9532-58f822825586 2025-04-09 14:08:03,375 - DEBUG - Response for create_network : {'network': {'id': '93d1c84a-dbb8-4e6d-8e69-2f7461979b37', 'name': 'ctest-ext_vn-62595402', 'tenant_id': '1c006c0cd05d4251934ef9f59f979737', 'project_id': '1c006c0cd05d4251934ef9f59f979737', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60398726', 'ctest-ext_vn-62595402'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 14:08:03,542 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dff74b1-72de-4bae-aebe-ffaf220f6491', 'name': '', 'tenant_id': '1c006c0cd05d4251934ef9f59f979737', 'network_id': '93d1c84a-dbb8-4e6d-8e69-2f7461979b37', 'ip_version': 4, 'cidr': '182.73.203.0/26', 'allocation_pools': [{'start': '182.73.203.2', 'end': '182.73.203.62'}], 'gateway_ip': '182.73.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.73.203.2', 'tags': [], 'project_id': '1c006c0cd05d4251934ef9f59f979737'}} 2025-04-09 14:08:03,562 - INFO - Created VN ctest-ext_vn-62595402 2025-04-09 14:08:03,619 - DEBUG - VN ctest-ext_vn-62595402 UUID is 93d1c84a-dbb8-4e6d-8e69-2f7461979b37 2025-04-09 14:08:03,792 - DEBUG - Services list from nova: [, , ] 2025-04-09 14:08:04,837 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3067-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3067-1) 2025-04-09 14:08:05,994 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3067-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3067-1) 2025-04-09 14:08:06,062 - INFO - Setting gateway for router ac8d6894-4926-4925-8474-f01cbd727fec to network 93d1c84a-dbb8-4e6d-8e69-2f7461979b37 2025-04-09 14:08:06,136 - INFO - Adding interface with subnet_id fa57b7c5-cbfc-4bc3-86c3-a118d5518ab1, port_id None to router ac8d6894-4926-4925-8474-f01cbd727fec 2025-04-09 14:08:06,446 - INFO - Waiting for VM ctest-TestRoutersBasic-60398726-08661512 to be up.. 2025-04-09 14:08:06,639 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 14:08:11,731 - DEBUG - VM is in ACTIVE state now 2025-04-09 14:08:11,732 - INFO - VM name : ctest-TestRoutersBasic-60398726-08661512 2025-04-09 14:08:11,807 - DEBUG - VM ctest-TestRoutersBasic-60398726-08661512 ID is 7fdc7831-ee85-4244-8658-c1fd7c0dc455 2025-04-09 14:08:11,827 - DEBUG - VM ctest-TestRoutersBasic-60398726-08661512 launched on Node cn-jenkins-deploy-platform-ansible-os-3067-1 2025-04-09 14:08:11,913 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/7fdc7831-ee85-4244-8658-c1fd7c0dc455 2025-04-09 14:08:12,295 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/7fdc7831-ee85-4244-8658-c1fd7c0dc455 2025-04-09 14:08:12,329 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/d471ae2c-8af9-4280-9b05-8201a13a2b0b 2025-04-09 14:08:15,590 - 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-04-09 14:08:15,590 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60398726-08661512 failed! 2025-04-09 14:08:15,647 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-60398726:ctest-vn-89553640 is 213.32.204.65 and allocation pool is NOT set 2025-04-09 14:08:17,711 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.382 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.382/1.545/2.709/1.163 ms') 2025-04-09 14:08:17,711 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60398726-08661512 passed 2025-04-09 14:08:17,871 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 14:08:17,872 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60398726-08661512, IP 213.32.204.67, Port 22 2025-04-09 14:08:18,054 - DEBUG - VM ctest-TestRoutersBasic-60398726-08661512 is ready for SSH connections 2025-04-09 14:08:18,054 - INFO - Waiting for VM ctest-TestRoutersBasic-60398726-07165334 to be up.. 2025-04-09 14:08:18,144 - DEBUG - VM is in ACTIVE state now 2025-04-09 14:08:18,144 - INFO - VM name : ctest-TestRoutersBasic-60398726-07165334 2025-04-09 14:08:18,228 - DEBUG - VM ctest-TestRoutersBasic-60398726-07165334 ID is fc4e820d-0ead-4efd-8bc0-3855885840d9 2025-04-09 14:08:18,228 - DEBUG - VM ctest-TestRoutersBasic-60398726-07165334 launched on Node cn-jenkins-deploy-platform-ansible-os-3067-1 2025-04-09 14:08:18,306 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/fc4e820d-0ead-4efd-8bc0-3855885840d9 2025-04-09 14:08:18,317 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/b3a2c92e-ef64-4682-b412-074fc2ae6368 2025-04-09 14:08:19,574 - 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=3.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.411 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.411/1.958/3.505/1.547 ms') 2025-04-09 14:08:19,574 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-60398726-07165334 passed 2025-04-09 14:08:19,723 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 14:08:19,723 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60398726-07165334, IP 182.73.203.3, Port 22 2025-04-09 14:08:19,879 - DEBUG - VM ctest-TestRoutersBasic-60398726-07165334 is ready for SSH connections 2025-04-09 14:08:19,879 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 14:08:19,880 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 182.73.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2025-04-09 14:08:19,880 - DEBUG - ping -s 56 -c 3 -W 1 182.73.203.3 2025-04-09 14:08:23,948 - DEBUG - PING 182.73.203.3 (182.73.203.3): 56 data bytes 64 bytes from 182.73.203.3: seq=0 ttl=62 time=6.881 ms 64 bytes from 182.73.203.3: seq=1 ttl=62 time=1.023 ms 64 bytes from 182.73.203.3: seq=2 ttl=62 time=1.058 ms --- 182.73.203.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.023/2.987/6.881 ms 2025-04-09 14:08:23,949 - INFO - Ping to IP 182.73.203.3 from VM ctest-TestRoutersBasic-60398726-08661512 passed 2025-04-09 14:08:23,949 - INFO - Deleting interface with subnet_id fa57b7c5-cbfc-4bc3-86c3-a118d5518ab1, port_id None from router ac8d6894-4926-4925-8474-f01cbd727fec 2025-04-09 14:08:24,163 - INFO - Deleting VM ctest-TestRoutersBasic-60398726-07165334 2025-04-09 14:08:24,239 - INFO - Deleting VM ctest-TestRoutersBasic-60398726-08661512 2025-04-09 14:08:24,325 - INFO - Deleting VN ctest-ext_vn-62595402 2025-04-09 14:08:24,396 - DEBUG - VN 93d1c84a-dbb8-4e6d-8e69-2f7461979b37 still in use: Unable to complete operation on network 93d1c84a-dbb8-4e6d-8e69-2f7461979b37. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2536cfd9-49d9-4dbf-9854-419a86f2fe8b'] 2025-04-09 14:08:24,396 - WARNING - Deleting VN ctest-ext_vn-62595402 failed..Will retry 2025-04-09 14:08:26,507 - DEBUG - Response for deleting network () 2025-04-09 14:08:26,508 - INFO - Deleting VN ctest-vn-89553640 2025-04-09 14:08:26,613 - DEBUG - Response for deleting network () 2025-04-09 14:08:26,870 - DEBUG - No XMPP flaps were noticed during the test 2025-04-09 14:08:26,870 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-04-09 14:08:26,870 - INFO - -------------------------------------------------------------------------------- 2025-04-09 14:08:27,548 - INFO - Deleted project: ctest-TestRoutersBasic-60398726, ID : 1c006c0c-d05d-4251-934e-f9f59f979737