2024-09-10 11:27:25,094 - INFO - Domain Default found not creating 2024-09-10 11:27:25,278 - INFO - Project ctest-TestRoutersBasic-55915480 not found, creating it 2024-09-10 11:27:25,790 - INFO - Created Project:ctest-TestRoutersBasic-55915480, ID : 3eefa823-df35-4142-ba85-5664f5a39526 2024-09-10 11:27:27,461 - INFO - ================================================================================ 2024-09-10 11:27:27,461 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-10 11:27:27,461 - 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-09-10 11:27:27,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.8': '0'}} with 2024-09-10 11:27:27,715 - INFO - Initial checks done. Running the testcase now 2024-09-10 11:27:27,715 - INFO - 2024-09-10 11:27:28,435 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-55915480 2024-09-10 11:27:28,529 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-55915480 2024-09-10 11:27:28,861 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55915480', 'default']} 2024-09-10 11:27:29,179 - DEBUG - Response for create_network : {'network': {'id': 'ab1e64ca-9043-46f3-9046-2c333a9cf349', 'name': 'ctest-vn-51188874', 'tenant_id': '3eefa823df354142ba855664f5a39526', 'project_id': '3eefa823df354142ba855664f5a39526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55915480', 'ctest-vn-51188874'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 11:27:29,345 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e5b38f2-fba8-40a1-bd5d-ba42d7ab5ef3', 'name': '', 'tenant_id': '3eefa823df354142ba855664f5a39526', 'network_id': 'ab1e64ca-9043-46f3-9046-2c333a9cf349', 'ip_version': 4, 'cidr': '55.141.154.0/26', 'allocation_pools': [{'start': '55.141.154.2', 'end': '55.141.154.62'}], 'gateway_ip': '55.141.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.141.154.2', 'tags': [], 'project_id': '3eefa823df354142ba855664f5a39526'}} 2024-09-10 11:27:29,367 - INFO - Created VN ctest-vn-51188874 2024-09-10 11:27:29,417 - DEBUG - VN ctest-vn-51188874 UUID is ab1e64ca-9043-46f3-9046-2c333a9cf349 2024-09-10 11:27:29,787 - DEBUG - Response for create_network : {'network': {'id': '724eb021-1a6f-4eeb-abcb-28fcdf161f4c', 'name': 'ctest-ext_vn-81074211', 'tenant_id': '3eefa823df354142ba855664f5a39526', 'project_id': '3eefa823df354142ba855664f5a39526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55915480', 'ctest-ext_vn-81074211'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 11:27:30,026 - DEBUG - Response for create_subnet : {'subnet': {'id': '83f03cf9-f7aa-4e58-bf8b-435ec7b1c779', 'name': '', 'tenant_id': '3eefa823df354142ba855664f5a39526', 'network_id': '724eb021-1a6f-4eeb-abcb-28fcdf161f4c', 'ip_version': 4, 'cidr': '34.114.42.192/26', 'allocation_pools': [{'start': '34.114.42.194', 'end': '34.114.42.254'}], 'gateway_ip': '34.114.42.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.114.42.194', 'tags': [], 'project_id': '3eefa823df354142ba855664f5a39526'}} 2024-09-10 11:27:30,047 - INFO - Created VN ctest-ext_vn-81074211 2024-09-10 11:27:30,101 - DEBUG - VN ctest-ext_vn-81074211 UUID is 724eb021-1a6f-4eeb-abcb-28fcdf161f4c 2024-09-10 11:27:30,299 - DEBUG - Services list from nova: [, , ] 2024-09-10 11:27:31,451 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1882-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1882-1) 2024-09-10 11:27:32,723 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1882-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1882-1) 2024-09-10 11:27:32,831 - INFO - Setting gateway for router f28510a2-a3cc-47ab-b4a2-e0bfa5c06506 to network 724eb021-1a6f-4eeb-abcb-28fcdf161f4c 2024-09-10 11:27:32,937 - INFO - Adding interface with subnet_id 0e5b38f2-fba8-40a1-bd5d-ba42d7ab5ef3, port_id None to router f28510a2-a3cc-47ab-b4a2-e0bfa5c06506 2024-09-10 11:27:33,521 - INFO - Waiting for VM ctest-TestRoutersBasic-55915480-50861475 to be up.. 2024-09-10 11:27:33,707 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-10 11:27:38,822 - DEBUG - VM is in ACTIVE state now 2024-09-10 11:27:38,822 - INFO - VM name : ctest-TestRoutersBasic-55915480-50861475 2024-09-10 11:27:38,939 - DEBUG - VM ctest-TestRoutersBasic-55915480-50861475 ID is 4a4c5579-9991-40e8-aba6-036eaaea893f 2024-09-10 11:27:38,980 - DEBUG - VM ctest-TestRoutersBasic-55915480-50861475 launched on Node cn-jenkins-deploy-platform-ansible-os-1882-1 2024-09-10 11:27:39,106 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/4a4c5579-9991-40e8-aba6-036eaaea893f 2024-09-10 11:27:39,418 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/4a4c5579-9991-40e8-aba6-036eaaea893f 2024-09-10 11:27:39,475 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/7e8bcbdc-0038-4d10-aed1-d9cb0876566d 2024-09-10 11:27:42,758 - 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 1013ms') 2024-09-10 11:27:42,758 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-55915480-50861475 failed! 2024-09-10 11:27:42,817 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-55915480:ctest-vn-51188874 is 55.141.154.1 and allocation pool is NOT set 2024-09-10 11:27:44,886 - 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=7.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.01 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 = 1.005/4.359/7.713/3.354 ms') 2024-09-10 11:27:44,886 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-55915480-50861475 passed 2024-09-10 11:27:45,041 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 11:27:45,041 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-55915480-50861475, IP 55.141.154.3, Port 22 2024-09-10 11:27:45,201 - DEBUG - VM ctest-TestRoutersBasic-55915480-50861475 is ready for SSH connections 2024-09-10 11:27:45,201 - INFO - Waiting for VM ctest-TestRoutersBasic-55915480-83733155 to be up.. 2024-09-10 11:27:45,317 - DEBUG - VM is in ACTIVE state now 2024-09-10 11:27:45,317 - INFO - VM name : ctest-TestRoutersBasic-55915480-83733155 2024-09-10 11:27:45,429 - DEBUG - VM ctest-TestRoutersBasic-55915480-83733155 ID is e1f44c42-d26e-49b5-8b34-40dff9bfdf5b 2024-09-10 11:27:45,429 - DEBUG - VM ctest-TestRoutersBasic-55915480-83733155 launched on Node cn-jenkins-deploy-platform-ansible-os-1882-1 2024-09-10 11:27:45,519 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/e1f44c42-d26e-49b5-8b34-40dff9bfdf5b 2024-09-10 11:27:45,529 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/60e0f6d0-7bbe-4c68-9591-75abdef7a781 2024-09-10 11:27:46,770 - 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.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.907 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.907/2.254/3.602/1.347 ms') 2024-09-10 11:27:46,770 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-55915480-83733155 passed 2024-09-10 11:27:46,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 11:27:46,921 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-55915480-83733155, IP 34.114.42.195, Port 22 2024-09-10 11:27:47,099 - DEBUG - VM ctest-TestRoutersBasic-55915480-83733155 is ready for SSH connections 2024-09-10 11:27:47,099 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 11:27:47,099 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.114.42.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-09-10 11:27:47,099 - DEBUG - ping -s 56 -c 3 -W 1 34.114.42.195 2024-09-10 11:27:50,824 - DEBUG - PING 34.114.42.195 (34.114.42.195): 56 data bytes 64 bytes from 34.114.42.195: seq=0 ttl=62 time=7.351 ms 64 bytes from 34.114.42.195: seq=1 ttl=62 time=1.088 ms 64 bytes from 34.114.42.195: seq=2 ttl=62 time=1.574 ms --- 34.114.42.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.088/3.337/7.351 ms 2024-09-10 11:27:50,825 - INFO - Ping to IP 34.114.42.195 from VM ctest-TestRoutersBasic-55915480-50861475 passed 2024-09-10 11:27:50,825 - INFO - Deleting interface with subnet_id 0e5b38f2-fba8-40a1-bd5d-ba42d7ab5ef3, port_id None from router f28510a2-a3cc-47ab-b4a2-e0bfa5c06506 2024-09-10 11:27:51,028 - INFO - Deleting VM ctest-TestRoutersBasic-55915480-83733155 2024-09-10 11:27:51,101 - INFO - Deleting VM ctest-TestRoutersBasic-55915480-50861475 2024-09-10 11:27:51,179 - INFO - Deleting VN ctest-ext_vn-81074211 2024-09-10 11:27:51,264 - DEBUG - VN 724eb021-1a6f-4eeb-abcb-28fcdf161f4c still in use: Unable to complete operation on network 724eb021-1a6f-4eeb-abcb-28fcdf161f4c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cb8ec6f8-f409-4810-acf7-e3f55c3c70b9'] 2024-09-10 11:27:51,264 - WARNING - Deleting VN ctest-ext_vn-81074211 failed..Will retry 2024-09-10 11:27:53,405 - DEBUG - Response for deleting network () 2024-09-10 11:27:53,405 - INFO - Deleting VN ctest-vn-51188874 2024-09-10 11:27:53,542 - DEBUG - Response for deleting network () 2024-09-10 11:27:53,805 - DEBUG - No XMPP flaps were noticed during the test 2024-09-10 11:27:53,805 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-10 11:27:53,805 - INFO - -------------------------------------------------------------------------------- 2024-09-10 11:27:54,523 - INFO - Deleted project: ctest-TestRoutersBasic-55915480, ID : 3eefa823-df35-4142-ba85-5664f5a39526