2024-11-08 18:27:07,922 - INFO - Domain Default found not creating 2024-11-08 18:27:08,096 - INFO - Project ctest-TestRoutersBasic-98830983 not found, creating it 2024-11-08 18:27:08,624 - INFO - Created Project:ctest-TestRoutersBasic-98830983, ID : b033bacc-cdd9-4c10-be0a-57ad1e564d01 2024-11-08 18:27:10,341 - INFO - ================================================================================ 2024-11-08 18:27:10,341 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-08 18:27:10,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-11-08 18:27:10,602 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with 2024-11-08 18:27:10,602 - INFO - Initial checks done. Running the testcase now 2024-11-08 18:27:10,602 - INFO - 2024-11-08 18:27:11,444 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-98830983 2024-11-08 18:27:11,545 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-98830983 2024-11-08 18:27:11,888 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98830983', 'default']} 2024-11-08 18:27:12,210 - DEBUG - Response for create_network : {'network': {'id': '45e91d51-3690-4615-ad66-6a0ae550d9df', 'name': 'ctest-vn-46448417', 'tenant_id': 'b033bacccdd94c10be0a57ad1e564d01', 'project_id': 'b033bacccdd94c10be0a57ad1e564d01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98830983', 'ctest-vn-46448417'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:27:12,412 - DEBUG - Response for create_subnet : {'subnet': {'id': '8dbbbc72-b888-42a9-bd56-c94e0a416470', 'name': '', 'tenant_id': 'b033bacccdd94c10be0a57ad1e564d01', 'network_id': '45e91d51-3690-4615-ad66-6a0ae550d9df', 'ip_version': 4, 'cidr': '38.243.251.128/26', 'allocation_pools': [{'start': '38.243.251.130', 'end': '38.243.251.190'}], 'gateway_ip': '38.243.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.243.251.130', 'tags': [], 'project_id': 'b033bacccdd94c10be0a57ad1e564d01'}} 2024-11-08 18:27:12,434 - INFO - Created VN ctest-vn-46448417 2024-11-08 18:27:12,496 - DEBUG - VN ctest-vn-46448417 UUID is 45e91d51-3690-4615-ad66-6a0ae550d9df 2024-11-08 18:27:12,869 - DEBUG - Response for create_network : {'network': {'id': 'b30d6fad-d0cf-4eba-9a67-54d59170a32b', 'name': 'ctest-ext_vn-24972574', 'tenant_id': 'b033bacccdd94c10be0a57ad1e564d01', 'project_id': 'b033bacccdd94c10be0a57ad1e564d01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98830983', 'ctest-ext_vn-24972574'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:27:13,114 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da2d7e30-bcd1-4d0b-88ca-c54addc5a85c', 'name': '', 'tenant_id': 'b033bacccdd94c10be0a57ad1e564d01', 'network_id': 'b30d6fad-d0cf-4eba-9a67-54d59170a32b', 'ip_version': 4, 'cidr': '45.130.228.64/26', 'allocation_pools': [{'start': '45.130.228.66', 'end': '45.130.228.126'}], 'gateway_ip': '45.130.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.130.228.66', 'tags': [], 'project_id': 'b033bacccdd94c10be0a57ad1e564d01'}} 2024-11-08 18:27:13,137 - INFO - Created VN ctest-ext_vn-24972574 2024-11-08 18:27:13,200 - DEBUG - VN ctest-ext_vn-24972574 UUID is b30d6fad-d0cf-4eba-9a67-54d59170a32b 2024-11-08 18:27:13,402 - DEBUG - Services list from nova: [, , ] 2024-11-08 18:27:14,691 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2239-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2239-1) 2024-11-08 18:27:16,219 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2239-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2239-1) 2024-11-08 18:27:16,340 - INFO - Setting gateway for router c55afb37-4fa7-428a-ba1a-df915f6ead35 to network b30d6fad-d0cf-4eba-9a67-54d59170a32b 2024-11-08 18:27:16,417 - INFO - Adding interface with subnet_id 8dbbbc72-b888-42a9-bd56-c94e0a416470, port_id None to router c55afb37-4fa7-428a-ba1a-df915f6ead35 2024-11-08 18:27:17,023 - INFO - Waiting for VM ctest-TestRoutersBasic-98830983-68096734 to be up.. 2024-11-08 18:27:17,211 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 18:27:22,312 - DEBUG - VM is in ACTIVE state now 2024-11-08 18:27:22,313 - INFO - VM name : ctest-TestRoutersBasic-98830983-68096734 2024-11-08 18:27:22,402 - DEBUG - VM ctest-TestRoutersBasic-98830983-68096734 ID is cab3bb3e-81bb-4cfb-874f-50a9780307dd 2024-11-08 18:27:22,423 - DEBUG - VM ctest-TestRoutersBasic-98830983-68096734 launched on Node cn-jenkins-deploy-platform-ansible-os-2239-1 2024-11-08 18:27:22,522 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/cab3bb3e-81bb-4cfb-874f-50a9780307dd 2024-11-08 18:27:22,870 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/cab3bb3e-81bb-4cfb-874f-50a9780307dd 2024-11-08 18:27:22,909 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/1f081136-401f-4181-9ef9-d65a3e67a8db 2024-11-08 18:27:26,188 - 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 1015ms') 2024-11-08 18:27:26,188 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98830983-68096734 failed! 2024-11-08 18:27:26,248 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98830983:ctest-vn-46448417 is 38.243.251.129 and allocation pool is NOT set 2024-11-08 18:27:28,320 - 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=4.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.00 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 = 2.999/3.785/4.572/0.786 ms') 2024-11-08 18:27:28,321 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98830983-68096734 passed 2024-11-08 18:27:28,484 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:27:28,484 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98830983-68096734, IP 38.243.251.131, Port 22 2024-11-08 18:27:28,640 - DEBUG - VM ctest-TestRoutersBasic-98830983-68096734 is ready for SSH connections 2024-11-08 18:27:28,640 - INFO - Waiting for VM ctest-TestRoutersBasic-98830983-69784698 to be up.. 2024-11-08 18:27:28,725 - DEBUG - VM is in ACTIVE state now 2024-11-08 18:27:28,725 - INFO - VM name : ctest-TestRoutersBasic-98830983-69784698 2024-11-08 18:27:28,808 - DEBUG - VM ctest-TestRoutersBasic-98830983-69784698 ID is 58a7bf87-98fb-46fb-a406-c21c6f63f26b 2024-11-08 18:27:28,808 - DEBUG - VM ctest-TestRoutersBasic-98830983-69784698 launched on Node cn-jenkins-deploy-platform-ansible-os-2239-1 2024-11-08 18:27:28,896 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/58a7bf87-98fb-46fb-a406-c21c6f63f26b 2024-11-08 18:27:28,908 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/cb82fd98-bb5b-4e91-b6bf-b3c0e442909d 2024-11-08 18:27:30,165 - 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.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.08 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.078/2.534/3.990/1.456 ms') 2024-11-08 18:27:30,165 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-98830983-69784698 passed 2024-11-08 18:27:30,324 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:27:30,324 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98830983-69784698, IP 45.130.228.67, Port 22 2024-11-08 18:27:30,491 - DEBUG - VM ctest-TestRoutersBasic-98830983-69784698 is ready for SSH connections 2024-11-08 18:27:30,491 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:27:30,491 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 45.130.228.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-11-08 18:27:30,491 - DEBUG - ping -s 56 -c 3 -W 1 45.130.228.67 2024-11-08 18:27:34,203 - DEBUG - PING 45.130.228.67 (45.130.228.67): 56 data bytes 64 bytes from 45.130.228.67: seq=0 ttl=62 time=7.724 ms 64 bytes from 45.130.228.67: seq=1 ttl=62 time=1.047 ms 64 bytes from 45.130.228.67: seq=2 ttl=62 time=0.816 ms --- 45.130.228.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.816/3.195/7.724 ms 2024-11-08 18:27:34,203 - INFO - Ping to IP 45.130.228.67 from VM ctest-TestRoutersBasic-98830983-68096734 passed 2024-11-08 18:27:34,203 - INFO - Deleting interface with subnet_id 8dbbbc72-b888-42a9-bd56-c94e0a416470, port_id None from router c55afb37-4fa7-428a-ba1a-df915f6ead35 2024-11-08 18:27:34,429 - INFO - Deleting VM ctest-TestRoutersBasic-98830983-69784698 2024-11-08 18:27:34,498 - INFO - Deleting VM ctest-TestRoutersBasic-98830983-68096734 2024-11-08 18:27:34,589 - INFO - Deleting VN ctest-ext_vn-24972574 2024-11-08 18:27:34,682 - DEBUG - VN b30d6fad-d0cf-4eba-9a67-54d59170a32b still in use: Unable to complete operation on network b30d6fad-d0cf-4eba-9a67-54d59170a32b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-36742d7f-e4dc-4eb0-9ca1-c9fc66c6bbf4'] 2024-11-08 18:27:34,682 - WARNING - Deleting VN ctest-ext_vn-24972574 failed..Will retry 2024-11-08 18:27:36,796 - DEBUG - Response for deleting network () 2024-11-08 18:27:36,796 - INFO - Deleting VN ctest-vn-46448417 2024-11-08 18:27:36,906 - DEBUG - Response for deleting network () 2024-11-08 18:27:37,162 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 18:27:37,162 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-11-08 18:27:37,162 - INFO - -------------------------------------------------------------------------------- 2024-11-08 18:27:37,932 - INFO - Deleted project: ctest-TestRoutersBasic-98830983, ID : b033bacc-cdd9-4c10-be0a-57ad1e564d01