2025-01-06 13:03:20,553 - INFO - Domain Default found not creating 2025-01-06 13:03:20,686 - INFO - Project ctest-TestRoutersBasic-38661852 not found, creating it 2025-01-06 13:03:21,290 - INFO - Created Project:ctest-TestRoutersBasic-38661852, ID : d307f78f-3a09-4a7e-829b-7d7f8130d011 2025-01-06 13:03:22,837 - INFO - ================================================================================ 2025-01-06 13:03:22,837 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-06 13:03:22,837 - 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-01-06 13:03:23,092 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.19': '0'}} with 2025-01-06 13:03:23,093 - INFO - Initial checks done. Running the testcase now 2025-01-06 13:03:23,093 - INFO - 2025-01-06 13:03:23,784 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38661852 2025-01-06 13:03:23,883 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38661852 2025-01-06 13:03:24,219 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38661852', 'default']} 2025-01-06 13:03:24,518 - DEBUG - Response for create_network : {'network': {'id': '6a0249c1-5fb4-4094-8ff4-e3c5e10ec0fb', 'name': 'ctest-vn-81668257', 'tenant_id': 'd307f78f3a094a7e829b7d7f8130d011', 'project_id': 'd307f78f3a094a7e829b7d7f8130d011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38661852', 'ctest-vn-81668257'], 'port_security_enabled': True, 'description': ''}} 2025-01-06 13:03:24,696 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7d3db2f-0077-4c3b-8505-755485cce5b4', 'name': '', 'tenant_id': 'd307f78f3a094a7e829b7d7f8130d011', 'network_id': '6a0249c1-5fb4-4094-8ff4-e3c5e10ec0fb', 'ip_version': 4, 'cidr': '124.71.22.0/26', 'allocation_pools': [{'start': '124.71.22.2', 'end': '124.71.22.62'}], 'gateway_ip': '124.71.22.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.71.22.2', 'tags': [], 'project_id': 'd307f78f3a094a7e829b7d7f8130d011'}} 2025-01-06 13:03:24,715 - INFO - Created VN ctest-vn-81668257 2025-01-06 13:03:24,767 - DEBUG - VN ctest-vn-81668257 UUID is 6a0249c1-5fb4-4094-8ff4-e3c5e10ec0fb 2025-01-06 13:03:25,086 - DEBUG - Response for create_network : {'network': {'id': 'a444e4a2-28bb-4f9e-8c98-f19383b1a0b9', 'name': 'ctest-ext_vn-57498180', 'tenant_id': 'd307f78f3a094a7e829b7d7f8130d011', 'project_id': 'd307f78f3a094a7e829b7d7f8130d011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38661852', 'ctest-ext_vn-57498180'], 'port_security_enabled': True, 'description': ''}} 2025-01-06 13:03:25,282 - DEBUG - Response for create_subnet : {'subnet': {'id': '0baec34d-56f5-478b-a0c8-033ee43c244b', 'name': '', 'tenant_id': 'd307f78f3a094a7e829b7d7f8130d011', 'network_id': 'a444e4a2-28bb-4f9e-8c98-f19383b1a0b9', 'ip_version': 4, 'cidr': '48.111.135.192/26', 'allocation_pools': [{'start': '48.111.135.194', 'end': '48.111.135.254'}], 'gateway_ip': '48.111.135.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.111.135.194', 'tags': [], 'project_id': 'd307f78f3a094a7e829b7d7f8130d011'}} 2025-01-06 13:03:25,299 - INFO - Created VN ctest-ext_vn-57498180 2025-01-06 13:03:25,351 - DEBUG - VN ctest-ext_vn-57498180 UUID is a444e4a2-28bb-4f9e-8c98-f19383b1a0b9 2025-01-06 13:03:25,563 - DEBUG - Services list from nova: [, , ] 2025-01-06 13:03:26,558 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2541-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2541-1) 2025-01-06 13:03:27,697 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2541-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2541-1) 2025-01-06 13:03:27,761 - INFO - Setting gateway for router 15615762-613f-4e6d-b38c-d502220197ec to network a444e4a2-28bb-4f9e-8c98-f19383b1a0b9 2025-01-06 13:03:27,821 - INFO - Adding interface with subnet_id d7d3db2f-0077-4c3b-8505-755485cce5b4, port_id None to router 15615762-613f-4e6d-b38c-d502220197ec 2025-01-06 13:03:28,221 - INFO - Waiting for VM ctest-TestRoutersBasic-38661852-39741889 to be up.. 2025-01-06 13:03:28,410 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-06 13:03:33,487 - DEBUG - VM is in ACTIVE state now 2025-01-06 13:03:33,487 - INFO - VM name : ctest-TestRoutersBasic-38661852-39741889 2025-01-06 13:03:33,583 - DEBUG - VM ctest-TestRoutersBasic-38661852-39741889 ID is 8115cf81-263e-440f-83fe-fda645817c48 2025-01-06 13:03:33,606 - DEBUG - VM ctest-TestRoutersBasic-38661852-39741889 launched on Node cn-jenkins-deploy-platform-ansible-os-2541-1 2025-01-06 13:03:33,684 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/8115cf81-263e-440f-83fe-fda645817c48 2025-01-06 13:03:33,980 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/8115cf81-263e-440f-83fe-fda645817c48 2025-01-06 13:03:34,007 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/7b47049c-31df-4ac7-904f-924a13bb344a 2025-01-06 13:03:37,268 - 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 1027ms') 2025-01-06 13:03:37,268 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38661852-39741889 failed! 2025-01-06 13:03:37,323 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38661852:ctest-vn-81668257 is 124.71.22.1 and allocation pool is NOT set 2025-01-06 13:03:39,387 - 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.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.499 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.499/1.728/2.957/1.229 ms') 2025-01-06 13:03:39,387 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38661852-39741889 passed 2025-01-06 13:03:39,540 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 13:03:39,540 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38661852-39741889, IP 124.71.22.3, Port 22 2025-01-06 13:03:39,694 - DEBUG - VM ctest-TestRoutersBasic-38661852-39741889 is ready for SSH connections 2025-01-06 13:03:39,695 - INFO - Waiting for VM ctest-TestRoutersBasic-38661852-77392872 to be up.. 2025-01-06 13:03:39,771 - DEBUG - VM is in ACTIVE state now 2025-01-06 13:03:39,772 - INFO - VM name : ctest-TestRoutersBasic-38661852-77392872 2025-01-06 13:03:39,847 - DEBUG - VM ctest-TestRoutersBasic-38661852-77392872 ID is 1c07e6a7-a742-4bb4-a6eb-04e6e1d54a1d 2025-01-06 13:03:39,848 - DEBUG - VM ctest-TestRoutersBasic-38661852-77392872 launched on Node cn-jenkins-deploy-platform-ansible-os-2541-1 2025-01-06 13:03:39,928 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/1c07e6a7-a742-4bb4-a6eb-04e6e1d54a1d 2025-01-06 13:03:39,937 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/e3da8920-1a6a-442a-9e8a-298085569622 2025-01-06 13:03:41,177 - 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.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.443 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.443/1.728/3.014/1.285 ms') 2025-01-06 13:03:41,178 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38661852-77392872 passed 2025-01-06 13:03:41,331 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 13:03:41,331 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38661852-77392872, IP 48.111.135.195, Port 22 2025-01-06 13:03:41,487 - DEBUG - VM ctest-TestRoutersBasic-38661852-77392872 is ready for SSH connections 2025-01-06 13:03:41,487 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-06 13:03:41,487 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.111.135.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-01-06 13:03:41,487 - DEBUG - ping -s 56 -c 3 -W 1 48.111.135.195 2025-01-06 13:03:45,497 - DEBUG - PING 48.111.135.195 (48.111.135.195): 56 data bytes 64 bytes from 48.111.135.195: seq=0 ttl=62 time=7.124 ms 64 bytes from 48.111.135.195: seq=1 ttl=62 time=0.762 ms 64 bytes from 48.111.135.195: seq=2 ttl=62 time=1.173 ms --- 48.111.135.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.762/3.019/7.124 ms 2025-01-06 13:03:45,497 - INFO - Ping to IP 48.111.135.195 from VM ctest-TestRoutersBasic-38661852-39741889 passed 2025-01-06 13:03:45,497 - INFO - Deleting interface with subnet_id d7d3db2f-0077-4c3b-8505-755485cce5b4, port_id None from router 15615762-613f-4e6d-b38c-d502220197ec 2025-01-06 13:03:45,734 - INFO - Deleting VM ctest-TestRoutersBasic-38661852-77392872 2025-01-06 13:03:45,808 - INFO - Deleting VM ctest-TestRoutersBasic-38661852-39741889 2025-01-06 13:03:45,890 - INFO - Deleting VN ctest-ext_vn-57498180 2025-01-06 13:03:45,981 - DEBUG - VN a444e4a2-28bb-4f9e-8c98-f19383b1a0b9 still in use: Unable to complete operation on network a444e4a2-28bb-4f9e-8c98-f19383b1a0b9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8067fe96-f8f3-4ee2-90a1-b82b5435b3e0'] 2025-01-06 13:03:45,981 - WARNING - Deleting VN ctest-ext_vn-57498180 failed..Will retry 2025-01-06 13:03:48,094 - DEBUG - Response for deleting network () 2025-01-06 13:03:48,094 - INFO - Deleting VN ctest-vn-81668257 2025-01-06 13:03:48,203 - DEBUG - Response for deleting network () 2025-01-06 13:03:48,462 - DEBUG - No XMPP flaps were noticed during the test 2025-01-06 13:03:48,462 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-06 13:03:48,462 - INFO - -------------------------------------------------------------------------------- 2025-01-06 13:03:49,155 - INFO - Deleted project: ctest-TestRoutersBasic-38661852, ID : d307f78f-3a09-4a7e-829b-7d7f8130d011