2024-09-10 20:59:29,467 - INFO - Domain Default found not creating 2024-09-10 20:59:29,645 - INFO - Project ctest-TestRoutersBasic-89350479 not found, creating it 2024-09-10 20:59:30,123 - INFO - Created Project:ctest-TestRoutersBasic-89350479, ID : b2d2eab9-b128-40aa-aea9-e9f3b0ef87f9 2024-09-10 20:59:31,782 - INFO - ================================================================================ 2024-09-10 20:59:31,782 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-10 20:59:31,782 - 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 20:59:32,038 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with 2024-09-10 20:59:32,038 - INFO - Initial checks done. Running the testcase now 2024-09-10 20:59:32,038 - INFO - 2024-09-10 20:59:32,774 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-89350479 2024-09-10 20:59:32,869 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-89350479 2024-09-10 20:59:33,200 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89350479', 'default']} 2024-09-10 20:59:33,536 - DEBUG - Response for create_network : {'network': {'id': '36eb7c3a-6d3e-4740-bd47-a037eb603ac4', 'name': 'ctest-vn-92921417', 'tenant_id': 'b2d2eab9b12840aaaea9e9f3b0ef87f9', 'project_id': 'b2d2eab9b12840aaaea9e9f3b0ef87f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89350479', 'ctest-vn-92921417'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 20:59:33,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '0502ac75-90f9-4413-8176-4f3da1f43d6f', 'name': '', 'tenant_id': 'b2d2eab9b12840aaaea9e9f3b0ef87f9', 'network_id': '36eb7c3a-6d3e-4740-bd47-a037eb603ac4', 'ip_version': 4, 'cidr': '171.254.43.64/26', 'allocation_pools': [{'start': '171.254.43.66', 'end': '171.254.43.126'}], 'gateway_ip': '171.254.43.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.254.43.66', 'tags': [], 'project_id': 'b2d2eab9b12840aaaea9e9f3b0ef87f9'}} 2024-09-10 20:59:33,739 - INFO - Created VN ctest-vn-92921417 2024-09-10 20:59:33,788 - DEBUG - VN ctest-vn-92921417 UUID is 36eb7c3a-6d3e-4740-bd47-a037eb603ac4 2024-09-10 20:59:34,173 - DEBUG - Response for create_network : {'network': {'id': '2eab37d4-fdc0-4d45-ae2c-de588d373451', 'name': 'ctest-ext_vn-73168177', 'tenant_id': 'b2d2eab9b12840aaaea9e9f3b0ef87f9', 'project_id': 'b2d2eab9b12840aaaea9e9f3b0ef87f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89350479', 'ctest-ext_vn-73168177'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 20:59:34,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d505533-e74e-4094-a82b-0a8df5a09112', 'name': '', 'tenant_id': 'b2d2eab9b12840aaaea9e9f3b0ef87f9', 'network_id': '2eab37d4-fdc0-4d45-ae2c-de588d373451', 'ip_version': 4, 'cidr': '180.197.56.0/26', 'allocation_pools': [{'start': '180.197.56.2', 'end': '180.197.56.62'}], 'gateway_ip': '180.197.56.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.197.56.2', 'tags': [], 'project_id': 'b2d2eab9b12840aaaea9e9f3b0ef87f9'}} 2024-09-10 20:59:34,416 - INFO - Created VN ctest-ext_vn-73168177 2024-09-10 20:59:34,468 - DEBUG - VN ctest-ext_vn-73168177 UUID is 2eab37d4-fdc0-4d45-ae2c-de588d373451 2024-09-10 20:59:34,645 - DEBUG - Services list from nova: [, , ] 2024-09-10 20:59:35,683 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1887-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1887-1) 2024-09-10 20:59:36,894 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1887-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1887-1) 2024-09-10 20:59:36,974 - INFO - Setting gateway for router d402e925-2ff3-4061-9cc1-c5f0b50c27d8 to network 2eab37d4-fdc0-4d45-ae2c-de588d373451 2024-09-10 20:59:37,040 - INFO - Adding interface with subnet_id 0502ac75-90f9-4413-8176-4f3da1f43d6f, port_id None to router d402e925-2ff3-4061-9cc1-c5f0b50c27d8 2024-09-10 20:59:37,342 - INFO - Waiting for VM ctest-TestRoutersBasic-89350479-85740763 to be up.. 2024-09-10 20:59:37,486 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-10 20:59:42,573 - DEBUG - VM is in ACTIVE state now 2024-09-10 20:59:42,573 - INFO - VM name : ctest-TestRoutersBasic-89350479-85740763 2024-09-10 20:59:42,649 - DEBUG - VM ctest-TestRoutersBasic-89350479-85740763 ID is 087934e3-5366-4054-9bc1-50fadb84965e 2024-09-10 20:59:42,668 - DEBUG - VM ctest-TestRoutersBasic-89350479-85740763 launched on Node cn-jenkins-deploy-platform-ansible-os-1887-1 2024-09-10 20:59:42,752 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/087934e3-5366-4054-9bc1-50fadb84965e 2024-09-10 20:59:43,058 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/087934e3-5366-4054-9bc1-50fadb84965e 2024-09-10 20:59:43,097 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/d353e72b-af8d-4df8-9223-0ea886690c26 2024-09-10 20:59:46,376 - 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 1020ms') 2024-09-10 20:59:46,376 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89350479-85740763 failed! 2024-09-10 20:59:46,429 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-89350479:ctest-vn-92921417 is 171.254.43.65 and allocation pool is NOT set 2024-09-10 20:59:48,494 - 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.70 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 1002ms\r\nrtt min/avg/max/mdev = 1.009/2.854/4.700/1.845 ms') 2024-09-10 20:59:48,494 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89350479-85740763 passed 2024-09-10 20:59:48,656 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 20:59:48,656 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89350479-85740763, IP 171.254.43.67, Port 22 2024-09-10 20:59:48,812 - DEBUG - VM ctest-TestRoutersBasic-89350479-85740763 is ready for SSH connections 2024-09-10 20:59:48,812 - INFO - Waiting for VM ctest-TestRoutersBasic-89350479-43078562 to be up.. 2024-09-10 20:59:48,900 - DEBUG - VM is in ACTIVE state now 2024-09-10 20:59:48,901 - INFO - VM name : ctest-TestRoutersBasic-89350479-43078562 2024-09-10 20:59:49,000 - DEBUG - VM ctest-TestRoutersBasic-89350479-43078562 ID is a06d9d98-1ed4-4435-9454-b7417178b4c4 2024-09-10 20:59:49,000 - DEBUG - VM ctest-TestRoutersBasic-89350479-43078562 launched on Node cn-jenkins-deploy-platform-ansible-os-1887-1 2024-09-10 20:59:49,097 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/a06d9d98-1ed4-4435-9454-b7417178b4c4 2024-09-10 20:59:49,107 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/c5e22f78-43e2-4ba5-8b7c-e9f3bc31a8b5 2024-09-10 20:59:50,385 - 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.47 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.797 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.797/2.131/3.465/1.334 ms') 2024-09-10 20:59:50,385 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-89350479-43078562 passed 2024-09-10 20:59:50,541 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 20:59:50,541 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89350479-43078562, IP 180.197.56.3, Port 22 2024-09-10 20:59:50,700 - DEBUG - VM ctest-TestRoutersBasic-89350479-43078562 is ready for SSH connections 2024-09-10 20:59:50,700 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 20:59:50,700 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.197.56.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-09-10 20:59:50,701 - DEBUG - ping -s 56 -c 3 -W 1 180.197.56.3 2024-09-10 20:59:54,702 - DEBUG - PING 180.197.56.3 (180.197.56.3): 56 data bytes 64 bytes from 180.197.56.3: seq=0 ttl=62 time=7.743 ms 64 bytes from 180.197.56.3: seq=1 ttl=62 time=1.712 ms 64 bytes from 180.197.56.3: seq=2 ttl=62 time=1.131 ms --- 180.197.56.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.131/3.528/7.743 ms 2024-09-10 20:59:54,702 - INFO - Ping to IP 180.197.56.3 from VM ctest-TestRoutersBasic-89350479-85740763 passed 2024-09-10 20:59:54,702 - INFO - Deleting interface with subnet_id 0502ac75-90f9-4413-8176-4f3da1f43d6f, port_id None from router d402e925-2ff3-4061-9cc1-c5f0b50c27d8 2024-09-10 20:59:54,902 - INFO - Deleting VM ctest-TestRoutersBasic-89350479-43078562 2024-09-10 20:59:54,966 - INFO - Deleting VM ctest-TestRoutersBasic-89350479-85740763 2024-09-10 20:59:55,025 - INFO - Deleting VN ctest-ext_vn-73168177 2024-09-10 20:59:55,090 - DEBUG - VN 2eab37d4-fdc0-4d45-ae2c-de588d373451 still in use: Unable to complete operation on network 2eab37d4-fdc0-4d45-ae2c-de588d373451. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-37712028-2357-467b-8a67-d12a0161e6b5'] 2024-09-10 20:59:55,090 - WARNING - Deleting VN ctest-ext_vn-73168177 failed..Will retry 2024-09-10 20:59:57,188 - DEBUG - Response for deleting network () 2024-09-10 20:59:57,188 - INFO - Deleting VN ctest-vn-92921417 2024-09-10 20:59:57,294 - DEBUG - Response for deleting network () 2024-09-10 20:59:57,551 - DEBUG - No XMPP flaps were noticed during the test
2024-09-10 20:59:57,551 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-10 20:59:57,551 - INFO - -------------------------------------------------------------------------------- 2024-09-10 20:59:58,223 - INFO - Deleted project: ctest-TestRoutersBasic-89350479, ID : b2d2eab9-b128-40aa-aea9-e9f3b0ef87f9