2025-07-04 15:17:44,623 - INFO - Domain Default found not creating 2025-07-04 15:17:44,782 - INFO - Project ctest-TestRoutersBasic-50728406 not found, creating it 2025-07-04 15:17:45,270 - INFO - Created Project:ctest-TestRoutersBasic-50728406, ID : d4eb9645-065e-4bee-94f8-80d06680b6f6 2025-07-04 15:17:47,332 - INFO - ================================================================================ 2025-07-04 15:17:47,332 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-04 15:17:47,332 - 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-07-04 15:17:47,589 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-07-04 15:17:47,589 - INFO - Initial checks done. Running the testcase now 2025-07-04 15:17:47,589 - INFO - 2025-07-04 15:17:48,252 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50728406 2025-07-04 15:17:48,346 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50728406 2025-07-04 15:17:48,666 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50728406', 'default']} 2025-07-04 15:17:48,974 - DEBUG - Response for create_network : {'network': {'id': '9281c18f-2ba0-45fb-98cd-e24391404f10', 'name': 'ctest-vn-06647096', 'tenant_id': 'd4eb9645065e4bee94f880d06680b6f6', 'project_id': 'd4eb9645065e4bee94f880d06680b6f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50728406', 'ctest-vn-06647096'], 'port_security_enabled': True, 'description': ''}} 2025-07-04 15:17:49,174 - DEBUG - Response for create_subnet : {'subnet': {'id': '27c9fdc3-306d-4d8c-a3c3-cb557999b2f1', 'name': '', 'tenant_id': 'd4eb9645065e4bee94f880d06680b6f6', 'network_id': '9281c18f-2ba0-45fb-98cd-e24391404f10', 'ip_version': 4, 'cidr': '66.178.172.64/26', 'allocation_pools': [{'start': '66.178.172.66', 'end': '66.178.172.126'}], 'gateway_ip': '66.178.172.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.178.172.66', 'tags': [], 'project_id': 'd4eb9645065e4bee94f880d06680b6f6'}} 2025-07-04 15:17:49,193 - INFO - Created VN ctest-vn-06647096 2025-07-04 15:17:49,250 - DEBUG - VN ctest-vn-06647096 UUID is 9281c18f-2ba0-45fb-98cd-e24391404f10 2025-07-04 15:17:49,577 - DEBUG - Response for create_network : {'network': {'id': 'f9758658-9cdf-43f1-8a67-a39d47fcf0da', 'name': 'ctest-ext_vn-46546593', 'tenant_id': 'd4eb9645065e4bee94f880d06680b6f6', 'project_id': 'd4eb9645065e4bee94f880d06680b6f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50728406', 'ctest-ext_vn-46546593'], 'port_security_enabled': True, 'description': ''}} 2025-07-04 15:17:49,786 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f310b220-3264-41d6-938d-109dd404ba39', 'name': '', 'tenant_id': 'd4eb9645065e4bee94f880d06680b6f6', 'network_id': 'f9758658-9cdf-43f1-8a67-a39d47fcf0da', 'ip_version': 4, 'cidr': '196.240.86.192/26', 'allocation_pools': [{'start': '196.240.86.194', 'end': '196.240.86.254'}], 'gateway_ip': '196.240.86.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.240.86.194', 'tags': [], 'project_id': 'd4eb9645065e4bee94f880d06680b6f6'}} 2025-07-04 15:17:49,805 - INFO - Created VN ctest-ext_vn-46546593 2025-07-04 15:17:49,858 - DEBUG - VN ctest-ext_vn-46546593 UUID is f9758658-9cdf-43f1-8a67-a39d47fcf0da 2025-07-04 15:17:50,020 - DEBUG - Services list from nova: [, , ] 2025-07-04 15:17:51,016 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3597-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3597-1) 2025-07-04 15:17:52,160 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3597-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3597-1) 2025-07-04 15:17:52,231 - INFO - Setting gateway for router ded2aab5-686f-42cd-9bcb-25bbba1594d5 to network f9758658-9cdf-43f1-8a67-a39d47fcf0da 2025-07-04 15:17:52,297 - INFO - Adding interface with subnet_id 27c9fdc3-306d-4d8c-a3c3-cb557999b2f1, port_id None to router ded2aab5-686f-42cd-9bcb-25bbba1594d5 2025-07-04 15:17:52,667 - INFO - Waiting for VM ctest-TestRoutersBasic-50728406-24639566 to be up.. 2025-07-04 15:17:52,858 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-04 15:17:57,947 - DEBUG - VM is in ACTIVE state now 2025-07-04 15:17:57,948 - INFO - VM name : ctest-TestRoutersBasic-50728406-24639566 2025-07-04 15:17:58,052 - DEBUG - VM ctest-TestRoutersBasic-50728406-24639566 ID is e98a70d3-9a15-40d1-9887-b1fde0a7de33 2025-07-04 15:17:58,077 - DEBUG - VM ctest-TestRoutersBasic-50728406-24639566 launched on Node cn-jenkins-deploy-platform-ansible-os-3597-1 2025-07-04 15:17:58,187 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e98a70d3-9a15-40d1-9887-b1fde0a7de33 2025-07-04 15:17:58,482 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e98a70d3-9a15-40d1-9887-b1fde0a7de33 2025-07-04 15:17:58,522 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/bc6f98a2-61dc-4678-8f3c-bcea8bc7674a 2025-07-04 15:18:01,785 - 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') 2025-07-04 15:18:01,785 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50728406-24639566 failed! 2025-07-04 15:18:01,842 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50728406:ctest-vn-06647096 is 66.178.172.65 and allocation pool is NOT set 2025-07-04 15:18:03,900 - 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.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.504 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.504/1.681/2.858/1.177 ms') 2025-07-04 15:18:03,900 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50728406-24639566 passed 2025-07-04 15:18:04,050 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-04 15:18:04,050 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50728406-24639566, IP 66.178.172.67, Port 22 2025-07-04 15:18:04,202 - DEBUG - VM ctest-TestRoutersBasic-50728406-24639566 is ready for SSH connections 2025-07-04 15:18:04,202 - INFO - Waiting for VM ctest-TestRoutersBasic-50728406-64474325 to be up.. 2025-07-04 15:18:04,280 - DEBUG - VM is in ACTIVE state now 2025-07-04 15:18:04,281 - INFO - VM name : ctest-TestRoutersBasic-50728406-64474325 2025-07-04 15:18:04,358 - DEBUG - VM ctest-TestRoutersBasic-50728406-64474325 ID is 33bf5bbb-2a0e-4f95-adc0-fe2977b30365 2025-07-04 15:18:04,359 - DEBUG - VM ctest-TestRoutersBasic-50728406-64474325 launched on Node cn-jenkins-deploy-platform-ansible-os-3597-1 2025-07-04 15:18:04,435 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/33bf5bbb-2a0e-4f95-adc0-fe2977b30365 2025-07-04 15:18:04,444 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/01150e11-86c5-4926-8830-c779d0c184f0 2025-07-04 15:18:05,684 - 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=2.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.688 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.688/1.740/2.793/1.052 ms') 2025-07-04 15:18:05,685 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-50728406-64474325 passed 2025-07-04 15:18:05,834 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-04 15:18:05,834 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50728406-64474325, IP 196.240.86.195, Port 22 2025-07-04 15:18:06,004 - DEBUG - VM ctest-TestRoutersBasic-50728406-64474325 is ready for SSH connections 2025-07-04 15:18:06,004 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-04 15:18:06,004 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.240.86.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-07-04 15:18:06,004 - DEBUG - ping -s 56 -c 3 -W 1 196.240.86.195 2025-07-04 15:18:10,103 - DEBUG - PING 196.240.86.195 (196.240.86.195): 56 data bytes 64 bytes from 196.240.86.195: seq=0 ttl=62 time=7.384 ms 64 bytes from 196.240.86.195: seq=1 ttl=62 time=0.914 ms 64 bytes from 196.240.86.195: seq=2 ttl=62 time=0.963 ms --- 196.240.86.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.914/3.087/7.384 ms 2025-07-04 15:18:10,103 - INFO - Ping to IP 196.240.86.195 from VM ctest-TestRoutersBasic-50728406-24639566 passed 2025-07-04 15:18:10,103 - INFO - Deleting interface with subnet_id 27c9fdc3-306d-4d8c-a3c3-cb557999b2f1, port_id None from router ded2aab5-686f-42cd-9bcb-25bbba1594d5 2025-07-04 15:18:10,308 - INFO - Deleting VM ctest-TestRoutersBasic-50728406-64474325 2025-07-04 15:18:10,378 - INFO - Deleting VM ctest-TestRoutersBasic-50728406-24639566 2025-07-04 15:18:10,463 - INFO - Deleting VN ctest-ext_vn-46546593 2025-07-04 15:18:10,558 - DEBUG - VN f9758658-9cdf-43f1-8a67-a39d47fcf0da still in use: Unable to complete operation on network f9758658-9cdf-43f1-8a67-a39d47fcf0da. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-22b2a795-1dee-4042-bb50-54dd5b4849c7'] 2025-07-04 15:18:10,558 - WARNING - Deleting VN ctest-ext_vn-46546593 failed..Will retry 2025-07-04 15:18:12,662 - DEBUG - Response for deleting network () 2025-07-04 15:18:12,663 - INFO - Deleting VN ctest-vn-06647096 2025-07-04 15:18:12,770 - DEBUG - Response for deleting network () 2025-07-04 15:18:13,024 - DEBUG - No XMPP flaps were noticed during the test 2025-07-04 15:18:13,024 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-07-04 15:18:13,024 - INFO - -------------------------------------------------------------------------------- 2025-07-04 15:18:13,695 - INFO - Deleted project: ctest-TestRoutersBasic-50728406, ID : d4eb9645-065e-4bee-94f8-80d06680b6f6