2024-08-26 22:24:44,031 - INFO - Domain Default found not creating 2024-08-26 22:24:44,212 - INFO - Project ctest-TestRoutersBasic-20568709 not found, creating it 2024-08-26 22:24:44,734 - INFO - Created Project:ctest-TestRoutersBasic-20568709, ID : 7a39905d-8841-45d2-aa75-7a773d791cd5 2024-08-26 22:24:46,340 - INFO - ================================================================================ 2024-08-26 22:24:46,341 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 22:24:46,341 - 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 2024-08-26 22:24:46,600 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.14': '0'}} with 2024-08-26 22:24:46,600 - INFO - Initial checks done. Running the testcase now 2024-08-26 22:24:46,600 - INFO - 2024-08-26 22:24:47,316 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-20568709 2024-08-26 22:24:47,413 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-20568709 2024-08-26 22:24:47,756 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20568709', 'default']} 2024-08-26 22:24:49,649 - DEBUG - Response for create_network : {'network': {'id': 'd0389315-b5b7-4807-9ba7-cf52f7062673', 'name': 'ctest-vn-95360411', 'tenant_id': '7a39905d884145d2aa757a773d791cd5', 'project_id': '7a39905d884145d2aa757a773d791cd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20568709', 'ctest-vn-95360411'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 22:24:50,062 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3137a56-77f0-40a5-8570-c4bc3958cfb0', 'name': '', 'tenant_id': '7a39905d884145d2aa757a773d791cd5', 'network_id': 'd0389315-b5b7-4807-9ba7-cf52f7062673', 'ip_version': 4, 'cidr': '21.249.77.64/26', 'allocation_pools': [{'start': '21.249.77.66', 'end': '21.249.77.126'}], 'gateway_ip': '21.249.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.249.77.66', 'tags': [], 'project_id': '7a39905d884145d2aa757a773d791cd5'}} 2024-08-26 22:24:50,094 - INFO - Created VN ctest-vn-95360411 2024-08-26 22:24:50,145 - DEBUG - VN ctest-vn-95360411 UUID is d0389315-b5b7-4807-9ba7-cf52f7062673 2024-08-26 22:24:50,474 - DEBUG - Response for create_network : {'network': {'id': '541d4b33-697e-4a6b-8e1b-ded4c5050d2b', 'name': 'ctest-ext_vn-70225081', 'tenant_id': '7a39905d884145d2aa757a773d791cd5', 'project_id': '7a39905d884145d2aa757a773d791cd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20568709', 'ctest-ext_vn-70225081'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 22:24:50,645 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f5172f3-f4b3-4c00-91f4-230c842ce3c1', 'name': '', 'tenant_id': '7a39905d884145d2aa757a773d791cd5', 'network_id': '541d4b33-697e-4a6b-8e1b-ded4c5050d2b', 'ip_version': 4, 'cidr': '120.29.35.64/26', 'allocation_pools': [{'start': '120.29.35.66', 'end': '120.29.35.126'}], 'gateway_ip': '120.29.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.29.35.66', 'tags': [], 'project_id': '7a39905d884145d2aa757a773d791cd5'}} 2024-08-26 22:24:50,664 - INFO - Created VN ctest-ext_vn-70225081 2024-08-26 22:24:50,717 - DEBUG - VN ctest-ext_vn-70225081 UUID is 541d4b33-697e-4a6b-8e1b-ded4c5050d2b 2024-08-26 22:24:50,894 - DEBUG - Services list from nova: [, , ] 2024-08-26 22:24:51,928 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1776-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1776-1) 2024-08-26 22:24:53,063 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1776-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1776-1) 2024-08-26 22:24:53,141 - INFO - Setting gateway for router b8ada6b9-9f92-405e-b790-c45ece6c5800 to network 541d4b33-697e-4a6b-8e1b-ded4c5050d2b 2024-08-26 22:24:53,277 - INFO - Adding interface with subnet_id d3137a56-77f0-40a5-8570-c4bc3958cfb0, port_id None to router b8ada6b9-9f92-405e-b790-c45ece6c5800 2024-08-26 22:24:53,669 - INFO - Waiting for VM ctest-TestRoutersBasic-20568709-30401130 to be up.. 2024-08-26 22:24:53,884 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 22:24:58,966 - DEBUG - VM is in ACTIVE state now 2024-08-26 22:24:58,966 - INFO - VM name : ctest-TestRoutersBasic-20568709-30401130 2024-08-26 22:24:59,046 - DEBUG - VM ctest-TestRoutersBasic-20568709-30401130 ID is 57a02fae-d091-4a97-9063-eb6740374b24 2024-08-26 22:24:59,065 - DEBUG - VM ctest-TestRoutersBasic-20568709-30401130 launched on Node cn-jenkins-deploy-platform-ansible-os-1776-1 2024-08-26 22:24:59,142 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/57a02fae-d091-4a97-9063-eb6740374b24 2024-08-26 22:24:59,436 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/57a02fae-d091-4a97-9063-eb6740374b24 2024-08-26 22:24:59,471 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/aaef25c4-725b-4fbb-a4d7-daeb4f77cae5 2024-08-26 22:25:02,743 - 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 1023ms') 2024-08-26 22:25:02,743 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-20568709-30401130 failed! 2024-08-26 22:25:02,796 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-20568709:ctest-vn-95360411 is 21.249.77.65 and allocation pool is NOT set 2024-08-26 22:25:04,866 - 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.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.57 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 = 2.572/2.632/2.692/0.060 ms') 2024-08-26 22:25:04,866 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-20568709-30401130 passed 2024-08-26 22:25:05,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 22:25:05,021 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20568709-30401130, IP 21.249.77.67, Port 22 2024-08-26 22:25:05,176 - DEBUG - VM ctest-TestRoutersBasic-20568709-30401130 is ready for SSH connections 2024-08-26 22:25:05,177 - INFO - Waiting for VM ctest-TestRoutersBasic-20568709-01687065 to be up.. 2024-08-26 22:25:05,259 - DEBUG - VM is in ACTIVE state now 2024-08-26 22:25:05,259 - INFO - VM name : ctest-TestRoutersBasic-20568709-01687065 2024-08-26 22:25:05,338 - DEBUG - VM ctest-TestRoutersBasic-20568709-01687065 ID is 563aabd2-98e3-4680-a976-db6d41012792 2024-08-26 22:25:05,338 - DEBUG - VM ctest-TestRoutersBasic-20568709-01687065 launched on Node cn-jenkins-deploy-platform-ansible-os-1776-1 2024-08-26 22:25:05,415 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/563aabd2-98e3-4680-a976-db6d41012792 2024-08-26 22:25:05,424 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/89acf51c-ca7f-4cc5-b1f2-128f9b2acd2d 2024-08-26 22:25:06,657 - 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=4.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.37 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 = 1.367/2.689/4.011/1.322 ms') 2024-08-26 22:25:06,657 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-20568709-01687065 passed 2024-08-26 22:25:06,808 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 22:25:06,809 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20568709-01687065, IP 120.29.35.67, Port 22 2024-08-26 22:25:06,975 - DEBUG - VM ctest-TestRoutersBasic-20568709-01687065 is ready for SSH connections 2024-08-26 22:25:06,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 22:25:06,975 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.29.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-08-26 22:25:06,975 - DEBUG - ping -s 56 -c 3 -W 1 120.29.35.67 2024-08-26 22:25:10,954 - DEBUG - PING 120.29.35.67 (120.29.35.67): 56 data bytes 64 bytes from 120.29.35.67: seq=0 ttl=62 time=6.075 ms 64 bytes from 120.29.35.67: seq=1 ttl=62 time=0.836 ms 64 bytes from 120.29.35.67: seq=2 ttl=62 time=0.818 ms --- 120.29.35.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.818/2.576/6.075 ms 2024-08-26 22:25:10,954 - INFO - Ping to IP 120.29.35.67 from VM ctest-TestRoutersBasic-20568709-30401130 passed 2024-08-26 22:25:10,954 - INFO - Deleting interface with subnet_id d3137a56-77f0-40a5-8570-c4bc3958cfb0, port_id None from router b8ada6b9-9f92-405e-b790-c45ece6c5800 2024-08-26 22:25:11,165 - INFO - Deleting VM ctest-TestRoutersBasic-20568709-01687065 2024-08-26 22:25:11,238 - INFO - Deleting VM ctest-TestRoutersBasic-20568709-30401130 2024-08-26 22:25:11,315 - INFO - Deleting VN ctest-ext_vn-70225081 2024-08-26 22:25:11,388 - DEBUG - VN 541d4b33-697e-4a6b-8e1b-ded4c5050d2b still in use: Unable to complete operation on network 541d4b33-697e-4a6b-8e1b-ded4c5050d2b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-37b89117-e19f-45ba-9021-d862e8640c10'] 2024-08-26 22:25:11,388 - WARNING - Deleting VN ctest-ext_vn-70225081 failed..Will retry 2024-08-26 22:25:13,515 - DEBUG - Response for deleting network () 2024-08-26 22:25:13,515 - INFO - Deleting VN ctest-vn-95360411 2024-08-26 22:25:13,636 - DEBUG - Response for deleting network () 2024-08-26 22:25:13,893 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 22:25:13,893 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-08-26 22:25:13,893 - INFO - -------------------------------------------------------------------------------- 2024-08-26 22:25:14,583 - INFO - Deleted project: ctest-TestRoutersBasic-20568709, ID : 7a39905d-8841-45d2-aa75-7a773d791cd5