2024-11-10 21:06:44,937 - INFO - Domain Default found not creating 2024-11-10 21:06:45,126 - INFO - Project ctest-TestRoutersBasic-25806747 not found, creating it 2024-11-10 21:06:45,618 - INFO - Created Project:ctest-TestRoutersBasic-25806747, ID : 4feb4392-22cc-49dc-b073-b4c32e046827 2024-11-10 21:06:47,383 - INFO - ================================================================================ 2024-11-10 21:06:47,383 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 21:06:47,383 - 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-10 21:06:47,654 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with 2024-11-10 21:06:47,654 - INFO - Initial checks done. Running the testcase now 2024-11-10 21:06:47,654 - INFO - 2024-11-10 21:06:48,400 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-25806747 2024-11-10 21:06:48,503 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-25806747 2024-11-10 21:06:48,854 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25806747', 'default']} 2024-11-10 21:06:49,219 - DEBUG - Response for create_network : {'network': {'id': '8e006bd1-0482-4b35-8b78-18343c912a2d', 'name': 'ctest-vn-89582774', 'tenant_id': '4feb439222cc49dcb073b4c32e046827', 'project_id': '4feb439222cc49dcb073b4c32e046827', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25806747', 'ctest-vn-89582774'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:06:49,459 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e43b8614-b6f4-4b62-9583-8abe661c4549', 'name': '', 'tenant_id': '4feb439222cc49dcb073b4c32e046827', 'network_id': '8e006bd1-0482-4b35-8b78-18343c912a2d', 'ip_version': 4, 'cidr': '112.97.226.192/26', 'allocation_pools': [{'start': '112.97.226.194', 'end': '112.97.226.254'}], 'gateway_ip': '112.97.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.97.226.194', 'tags': [], 'project_id': '4feb439222cc49dcb073b4c32e046827'}} 2024-11-10 21:06:49,481 - INFO - Created VN ctest-vn-89582774 2024-11-10 21:06:49,539 - DEBUG - VN ctest-vn-89582774 UUID is 8e006bd1-0482-4b35-8b78-18343c912a2d 2024-11-10 21:06:49,945 - DEBUG - Response for create_network : {'network': {'id': 'ba22e79a-fa09-4fab-889e-ccdcf2ba6108', 'name': 'ctest-ext_vn-90863211', 'tenant_id': '4feb439222cc49dcb073b4c32e046827', 'project_id': '4feb439222cc49dcb073b4c32e046827', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25806747', 'ctest-ext_vn-90863211'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 21:06:50,118 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c17d8c4e-1f71-4f64-b948-37e3bd49b567', 'name': '', 'tenant_id': '4feb439222cc49dcb073b4c32e046827', 'network_id': 'ba22e79a-fa09-4fab-889e-ccdcf2ba6108', 'ip_version': 4, 'cidr': '121.158.166.192/26', 'allocation_pools': [{'start': '121.158.166.194', 'end': '121.158.166.254'}], 'gateway_ip': '121.158.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.158.166.194', 'tags': [], 'project_id': '4feb439222cc49dcb073b4c32e046827'}} 2024-11-10 21:06:50,142 - INFO - Created VN ctest-ext_vn-90863211 2024-11-10 21:06:50,199 - DEBUG - VN ctest-ext_vn-90863211 UUID is ba22e79a-fa09-4fab-889e-ccdcf2ba6108 2024-11-10 21:06:50,398 - DEBUG - Services list from nova: [, , ] 2024-11-10 21:06:51,519 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2265-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2265-1) 2024-11-10 21:06:52,748 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2265-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2265-1) 2024-11-10 21:06:52,840 - INFO - Setting gateway for router 49976e9e-f947-41da-a039-e380d9d2c86b to network ba22e79a-fa09-4fab-889e-ccdcf2ba6108 2024-11-10 21:06:52,969 - INFO - Adding interface with subnet_id e43b8614-b6f4-4b62-9583-8abe661c4549, port_id None to router 49976e9e-f947-41da-a039-e380d9d2c86b 2024-11-10 21:06:53,580 - INFO - Waiting for VM ctest-TestRoutersBasic-25806747-83358186 to be up.. 2024-11-10 21:06:53,780 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 21:06:58,883 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:06:58,883 - INFO - VM name : ctest-TestRoutersBasic-25806747-83358186 2024-11-10 21:06:59,001 - DEBUG - VM ctest-TestRoutersBasic-25806747-83358186 ID is 30c680a3-af9c-4836-ade4-a527b9feaa5a 2024-11-10 21:06:59,036 - DEBUG - VM ctest-TestRoutersBasic-25806747-83358186 launched on Node cn-jenkins-deploy-platform-ansible-os-2265-1 2024-11-10 21:06:59,151 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/30c680a3-af9c-4836-ade4-a527b9feaa5a 2024-11-10 21:06:59,459 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/30c680a3-af9c-4836-ade4-a527b9feaa5a 2024-11-10 21:06:59,510 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/a6bcf06a-7db7-4813-a474-365798c715c3 2024-11-10 21:07:02,776 - 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 1001ms') 2024-11-10 21:07:02,776 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25806747-83358186 failed! 2024-11-10 21:07:02,843 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-25806747:ctest-vn-89582774 is 112.97.226.193 and allocation pool is NOT set 2024-11-10 21:07:04,910 - 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=3.51 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.542 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 = 0.542/2.026/3.511/1.484 ms') 2024-11-10 21:07:04,910 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25806747-83358186 passed 2024-11-10 21:07:05,035 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:07:05,035 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25806747-83358186, IP 112.97.226.195, Port 22 2024-11-10 21:07:05,195 - DEBUG - VM ctest-TestRoutersBasic-25806747-83358186 is ready for SSH connections 2024-11-10 21:07:05,195 - INFO - Waiting for VM ctest-TestRoutersBasic-25806747-88241678 to be up.. 2024-11-10 21:07:05,293 - DEBUG - VM is in ACTIVE state now 2024-11-10 21:07:05,293 - INFO - VM name : ctest-TestRoutersBasic-25806747-88241678 2024-11-10 21:07:05,390 - DEBUG - VM ctest-TestRoutersBasic-25806747-88241678 ID is 7ce5d931-79e2-4b1b-add3-371f01b88847 2024-11-10 21:07:05,390 - DEBUG - VM ctest-TestRoutersBasic-25806747-88241678 launched on Node cn-jenkins-deploy-platform-ansible-os-2265-1 2024-11-10 21:07:05,495 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/7ce5d931-79e2-4b1b-add3-371f01b88847 2024-11-10 21:07:05,512 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/9c439b6a-1fbf-45bb-9278-818d44ee3e3b 2024-11-10 21:07:06,788 - 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.31 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.451 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 = 0.451/1.882/3.314/1.431 ms') 2024-11-10 21:07:06,788 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-25806747-88241678 passed 2024-11-10 21:07:06,959 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:07:06,959 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25806747-88241678, IP 121.158.166.195, Port 22 2024-11-10 21:07:07,125 - DEBUG - VM ctest-TestRoutersBasic-25806747-88241678 is ready for SSH connections 2024-11-10 21:07:07,125 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 21:07:07,126 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.158.166.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-10 21:07:07,126 - DEBUG - ping -s 56 -c 3 -W 1 121.158.166.195 2024-11-10 21:07:10,817 - DEBUG - PING 121.158.166.195 (121.158.166.195): 56 data bytes 64 bytes from 121.158.166.195: seq=0 ttl=62 time=6.949 ms 64 bytes from 121.158.166.195: seq=1 ttl=62 time=0.893 ms 64 bytes from 121.158.166.195: seq=2 ttl=62 time=1.270 ms --- 121.158.166.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.893/3.037/6.949 ms 2024-11-10 21:07:10,817 - INFO - Ping to IP 121.158.166.195 from VM ctest-TestRoutersBasic-25806747-83358186 passed 2024-11-10 21:07:10,817 - INFO - Deleting interface with subnet_id e43b8614-b6f4-4b62-9583-8abe661c4549, port_id None from router 49976e9e-f947-41da-a039-e380d9d2c86b 2024-11-10 21:07:11,046 - INFO - Deleting VM ctest-TestRoutersBasic-25806747-88241678 2024-11-10 21:07:11,119 - INFO - Deleting VM ctest-TestRoutersBasic-25806747-83358186 2024-11-10 21:07:11,211 - INFO - Deleting VN ctest-ext_vn-90863211 2024-11-10 21:07:11,286 - DEBUG - VN ba22e79a-fa09-4fab-889e-ccdcf2ba6108 still in use: Unable to complete operation on network ba22e79a-fa09-4fab-889e-ccdcf2ba6108. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-216d5435-b67d-411c-8682-1b4848fea414'] 2024-11-10 21:07:11,286 - WARNING - Deleting VN ctest-ext_vn-90863211 failed..Will retry 2024-11-10 21:07:13,417 - DEBUG - Response for deleting network () 2024-11-10 21:07:13,417 - INFO - Deleting VN ctest-vn-89582774 2024-11-10 21:07:13,573 - DEBUG - Response for deleting network () 2024-11-10 21:07:13,830 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 21:07:13,830 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-11-10 21:07:13,830 - INFO - -------------------------------------------------------------------------------- 2024-11-10 21:07:14,561 - INFO - Deleted project: ctest-TestRoutersBasic-25806747, ID : 4feb4392-22cc-49dc-b073-b4c32e046827