2025-07-08 11:39:46,082 - INFO - Domain Default found not creating 2025-07-08 11:39:46,236 - INFO - Project ctest-TestRoutersBasic-48986428 not found, creating it 2025-07-08 11:39:46,718 - INFO - Created Project:ctest-TestRoutersBasic-48986428, ID : b3ebb6ae-c7d4-4d73-9fa9-4cf0ceaf6373 2025-07-08 11:39:48,242 - INFO - ================================================================================ 2025-07-08 11:39:48,242 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-08 11:39:48,242 - 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-08 11:39:48,501 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with 2025-07-08 11:39:48,501 - INFO - Initial checks done. Running the testcase now 2025-07-08 11:39:48,501 - INFO - 2025-07-08 11:39:49,189 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-48986428 2025-07-08 11:39:49,291 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-48986428 2025-07-08 11:39:49,618 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48986428', 'default']} 2025-07-08 11:39:49,920 - DEBUG - Response for create_network : {'network': {'id': '90ab6652-19a3-4370-8b34-18d7151e2e95', 'name': 'ctest-vn-05425207', 'tenant_id': 'b3ebb6aec7d44d739fa94cf0ceaf6373', 'project_id': 'b3ebb6aec7d44d739fa94cf0ceaf6373', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48986428', 'ctest-vn-05425207'], 'port_security_enabled': True, 'description': ''}} 2025-07-08 11:39:50,080 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec891ce7-d369-4aa3-842d-aca78149a57a', 'name': '', 'tenant_id': 'b3ebb6aec7d44d739fa94cf0ceaf6373', 'network_id': '90ab6652-19a3-4370-8b34-18d7151e2e95', 'ip_version': 4, 'cidr': '8.7.7.0/26', 'allocation_pools': [{'start': '8.7.7.2', 'end': '8.7.7.62'}], 'gateway_ip': '8.7.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.7.7.2', 'tags': [], 'project_id': 'b3ebb6aec7d44d739fa94cf0ceaf6373'}} 2025-07-08 11:39:50,097 - INFO - Created VN ctest-vn-05425207 2025-07-08 11:39:50,150 - DEBUG - VN ctest-vn-05425207 UUID is 90ab6652-19a3-4370-8b34-18d7151e2e95 2025-07-08 11:39:50,505 - DEBUG - Response for create_network : {'network': {'id': '5078add4-0bb9-43c3-84a3-2debadc9fd68', 'name': 'ctest-ext_vn-25359974', 'tenant_id': 'b3ebb6aec7d44d739fa94cf0ceaf6373', 'project_id': 'b3ebb6aec7d44d739fa94cf0ceaf6373', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48986428', 'ctest-ext_vn-25359974'], 'port_security_enabled': True, 'description': ''}} 2025-07-08 11:39:50,726 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a83c5cd2-b3f7-42e5-b792-d7d8053dd67b', 'name': '', 'tenant_id': 'b3ebb6aec7d44d739fa94cf0ceaf6373', 'network_id': '5078add4-0bb9-43c3-84a3-2debadc9fd68', 'ip_version': 4, 'cidr': '200.163.224.192/26', 'allocation_pools': [{'start': '200.163.224.194', 'end': '200.163.224.254'}], 'gateway_ip': '200.163.224.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.163.224.194', 'tags': [], 'project_id': 'b3ebb6aec7d44d739fa94cf0ceaf6373'}} 2025-07-08 11:39:50,748 - INFO - Created VN ctest-ext_vn-25359974 2025-07-08 11:39:50,806 - DEBUG - VN ctest-ext_vn-25359974 UUID is 5078add4-0bb9-43c3-84a3-2debadc9fd68 2025-07-08 11:39:51,020 - DEBUG - Services list from nova: [, , ] 2025-07-08 11:39:52,056 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3612-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3612-1) 2025-07-08 11:39:53,320 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3612-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3612-1) 2025-07-08 11:39:53,385 - INFO - Setting gateway for router bc1905d5-8b87-433f-a37b-183b25d35571 to network 5078add4-0bb9-43c3-84a3-2debadc9fd68 2025-07-08 11:39:53,457 - INFO - Adding interface with subnet_id ec891ce7-d369-4aa3-842d-aca78149a57a, port_id None to router bc1905d5-8b87-433f-a37b-183b25d35571 2025-07-08 11:39:53,937 - INFO - Waiting for VM ctest-TestRoutersBasic-48986428-05392139 to be up.. 2025-07-08 11:39:54,083 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-08 11:39:59,164 - DEBUG - VM is in ACTIVE state now 2025-07-08 11:39:59,164 - INFO - VM name : ctest-TestRoutersBasic-48986428-05392139 2025-07-08 11:39:59,244 - DEBUG - VM ctest-TestRoutersBasic-48986428-05392139 ID is 889c1746-3036-4bc1-b6de-7482ff0cb5b7 2025-07-08 11:39:59,263 - DEBUG - VM ctest-TestRoutersBasic-48986428-05392139 launched on Node cn-jenkins-deploy-platform-ansible-os-3612-1 2025-07-08 11:39:59,342 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/889c1746-3036-4bc1-b6de-7482ff0cb5b7 2025-07-08 11:39:59,635 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/889c1746-3036-4bc1-b6de-7482ff0cb5b7 2025-07-08 11:39:59,667 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/16d3a7da-1dcb-4893-b020-a3756a368fe5 2025-07-08 11:40:02,909 - 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 1003ms') 2025-07-08 11:40:02,909 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-48986428-05392139 failed! 2025-07-08 11:40:02,962 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-48986428:ctest-vn-05425207 is 8.7.7.1 and allocation pool is NOT set 2025-07-08 11:40:05,027 - 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.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.867 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 = 0.867/2.382/3.898/1.515 ms') 2025-07-08 11:40:05,027 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-48986428-05392139 passed 2025-07-08 11:40:05,179 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-08 11:40:05,179 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-48986428-05392139, IP 8.7.7.3, Port 22 2025-07-08 11:40:05,342 - DEBUG - VM ctest-TestRoutersBasic-48986428-05392139 is ready for SSH connections 2025-07-08 11:40:05,342 - INFO - Waiting for VM ctest-TestRoutersBasic-48986428-95788367 to be up.. 2025-07-08 11:40:05,429 - DEBUG - VM is in ACTIVE state now 2025-07-08 11:40:05,429 - INFO - VM name : ctest-TestRoutersBasic-48986428-95788367 2025-07-08 11:40:05,514 - DEBUG - VM ctest-TestRoutersBasic-48986428-95788367 ID is adb68000-44b6-43fb-8185-87f47e03822b 2025-07-08 11:40:05,514 - DEBUG - VM ctest-TestRoutersBasic-48986428-95788367 launched on Node cn-jenkins-deploy-platform-ansible-os-3612-1 2025-07-08 11:40:05,593 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/adb68000-44b6-43fb-8185-87f47e03822b 2025-07-08 11:40:05,602 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/52336971-cea7-491c-89af-3eafef7aa6c7 2025-07-08 11:40:06,843 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.505 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.505/2.076/3.647/1.571 ms') 2025-07-08 11:40:06,844 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-48986428-95788367 passed 2025-07-08 11:40:06,999 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-08 11:40:06,999 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-48986428-95788367, IP 200.163.224.195, Port 22 2025-07-08 11:40:07,158 - DEBUG - VM ctest-TestRoutersBasic-48986428-95788367 is ready for SSH connections 2025-07-08 11:40:07,159 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-08 11:40:07,159 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.163.224.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-07-08 11:40:07,159 - DEBUG - ping -s 56 -c 3 -W 1 200.163.224.195 2025-07-08 11:40:10,867 - DEBUG - PING 200.163.224.195 (200.163.224.195): 56 data bytes 64 bytes from 200.163.224.195: seq=0 ttl=62 time=7.691 ms 64 bytes from 200.163.224.195: seq=1 ttl=62 time=0.808 ms 64 bytes from 200.163.224.195: seq=2 ttl=62 time=0.942 ms --- 200.163.224.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.808/3.147/7.691 ms 2025-07-08 11:40:10,867 - INFO - Ping to IP 200.163.224.195 from VM ctest-TestRoutersBasic-48986428-05392139 passed 2025-07-08 11:40:10,867 - INFO - Deleting interface with subnet_id ec891ce7-d369-4aa3-842d-aca78149a57a, port_id None from router bc1905d5-8b87-433f-a37b-183b25d35571 2025-07-08 11:40:11,113 - INFO - Deleting VM ctest-TestRoutersBasic-48986428-95788367 2025-07-08 11:40:11,177 - INFO - Deleting VM ctest-TestRoutersBasic-48986428-05392139 2025-07-08 11:40:11,261 - INFO - Deleting VN ctest-ext_vn-25359974 2025-07-08 11:40:11,329 - DEBUG - VN 5078add4-0bb9-43c3-84a3-2debadc9fd68 still in use: Unable to complete operation on network 5078add4-0bb9-43c3-84a3-2debadc9fd68. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-06817155-7850-411c-b263-02f038e57dce'] 2025-07-08 11:40:11,329 - WARNING - Deleting VN ctest-ext_vn-25359974 failed..Will retry 2025-07-08 11:40:13,450 - DEBUG - Response for deleting network () 2025-07-08 11:40:13,450 - INFO - Deleting VN ctest-vn-05425207 2025-07-08 11:40:13,573 - DEBUG - Response for deleting network () 2025-07-08 11:40:13,829 - DEBUG - No XMPP flaps were noticed during the test
2025-07-08 11:40:13,829 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-07-08 11:40:13,829 - INFO - -------------------------------------------------------------------------------- 2025-07-08 11:40:14,501 - INFO - Deleted project: ctest-TestRoutersBasic-48986428, ID : b3ebb6ae-c7d4-4d73-9fa9-4cf0ceaf6373