2024-08-26 13:05:53,485 - INFO - Domain Default found not creating 2024-08-26 13:05:53,682 - INFO - Project ctest-TestRoutersBasic-21340138 not found, creating it 2024-08-26 13:05:54,198 - INFO - Created Project:ctest-TestRoutersBasic-21340138, ID : 3baf16dd-0b4e-4ca5-ad18-a936d68c565c 2024-08-26 13:05:55,867 - INFO - ================================================================================ 2024-08-26 13:05:55,867 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 13:05:55,867 - 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 13:05:56,150 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.6': '0'}} with 2024-08-26 13:05:56,150 - INFO - Initial checks done. Running the testcase now 2024-08-26 13:05:56,150 - INFO - 2024-08-26 13:05:56,905 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21340138 2024-08-26 13:05:57,005 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21340138 2024-08-26 13:05:57,340 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21340138', 'default']} 2024-08-26 13:05:57,680 - DEBUG - Response for create_network : {'network': {'id': '41d7e9e3-61b9-4d1b-bd1c-32dc0f2e76f7', 'name': 'ctest-vn-41262493', 'tenant_id': '3baf16dd0b4e4ca5ad18a936d68c565c', 'project_id': '3baf16dd0b4e4ca5ad18a936d68c565c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21340138', 'ctest-vn-41262493'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 13:05:57,895 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd068cfc8-eeee-40d8-aae6-112afd16cf98', 'name': '', 'tenant_id': '3baf16dd0b4e4ca5ad18a936d68c565c', 'network_id': '41d7e9e3-61b9-4d1b-bd1c-32dc0f2e76f7', 'ip_version': 4, 'cidr': '92.51.245.64/26', 'allocation_pools': [{'start': '92.51.245.66', 'end': '92.51.245.126'}], 'gateway_ip': '92.51.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.51.245.66', 'tags': [], 'project_id': '3baf16dd0b4e4ca5ad18a936d68c565c'}} 2024-08-26 13:05:57,918 - INFO - Created VN ctest-vn-41262493 2024-08-26 13:05:57,972 - DEBUG - VN ctest-vn-41262493 UUID is 41d7e9e3-61b9-4d1b-bd1c-32dc0f2e76f7 2024-08-26 13:05:58,357 - DEBUG - Response for create_network : {'network': {'id': '2a6e1888-b46a-45c1-9d51-aa0f4bfedd0f', 'name': 'ctest-ext_vn-30782086', 'tenant_id': '3baf16dd0b4e4ca5ad18a936d68c565c', 'project_id': '3baf16dd0b4e4ca5ad18a936d68c565c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21340138', 'ctest-ext_vn-30782086'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 13:05:58,527 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ae764f1-37fb-4bd9-af33-810f05606580', 'name': '', 'tenant_id': '3baf16dd0b4e4ca5ad18a936d68c565c', 'network_id': '2a6e1888-b46a-45c1-9d51-aa0f4bfedd0f', 'ip_version': 4, 'cidr': '146.224.49.192/26', 'allocation_pools': [{'start': '146.224.49.194', 'end': '146.224.49.254'}], 'gateway_ip': '146.224.49.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.224.49.194', 'tags': [], 'project_id': '3baf16dd0b4e4ca5ad18a936d68c565c'}} 2024-08-26 13:05:58,550 - INFO - Created VN ctest-ext_vn-30782086 2024-08-26 13:05:58,604 - DEBUG - VN ctest-ext_vn-30782086 UUID is 2a6e1888-b46a-45c1-9d51-aa0f4bfedd0f 2024-08-26 13:05:58,812 - DEBUG - Services list from nova: [, , ] 2024-08-26 13:06:00,010 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1758-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1758-1) 2024-08-26 13:06:01,533 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1758-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1758-1) 2024-08-26 13:06:01,621 - INFO - Setting gateway for router fbc960dd-fc0c-44eb-98b8-59795a1054e7 to network 2a6e1888-b46a-45c1-9d51-aa0f4bfedd0f 2024-08-26 13:06:01,689 - INFO - Adding interface with subnet_id d068cfc8-eeee-40d8-aae6-112afd16cf98, port_id None to router fbc960dd-fc0c-44eb-98b8-59795a1054e7 2024-08-26 13:06:02,083 - INFO - Waiting for VM ctest-TestRoutersBasic-21340138-61289859 to be up.. 2024-08-26 13:06:02,309 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 13:06:07,418 - DEBUG - VM is in ACTIVE state now 2024-08-26 13:06:07,418 - INFO - VM name : ctest-TestRoutersBasic-21340138-61289859 2024-08-26 13:06:07,537 - DEBUG - VM ctest-TestRoutersBasic-21340138-61289859 ID is 3582e4f8-ecbf-4464-878f-fd689be7d7a7 2024-08-26 13:06:07,570 - DEBUG - VM ctest-TestRoutersBasic-21340138-61289859 launched on Node cn-jenkins-deploy-platform-ansible-os-1758-1 2024-08-26 13:06:07,689 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/3582e4f8-ecbf-4464-878f-fd689be7d7a7 2024-08-26 13:06:08,002 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/3582e4f8-ecbf-4464-878f-fd689be7d7a7 2024-08-26 13:06:08,075 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/fb970742-603b-49ee-bb44-c85f2c574262 2024-08-26 13:06:11,379 - 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 1029ms') 2024-08-26 13:06:11,379 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21340138-61289859 failed! 2024-08-26 13:06:11,440 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21340138:ctest-vn-41262493 is 92.51.245.65 and allocation pool is NOT set 2024-08-26 13:06:13,514 - 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=5.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.906 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 = 0.906/3.195/5.485/2.289 ms') 2024-08-26 13:06:13,515 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21340138-61289859 passed 2024-08-26 13:06:13,672 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 13:06:13,673 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21340138-61289859, IP 92.51.245.67, Port 22 2024-08-26 13:06:13,839 - DEBUG - VM ctest-TestRoutersBasic-21340138-61289859 is ready for SSH connections 2024-08-26 13:06:13,840 - INFO - Waiting for VM ctest-TestRoutersBasic-21340138-58800171 to be up.. 2024-08-26 13:06:13,942 - DEBUG - VM is in ACTIVE state now 2024-08-26 13:06:13,942 - INFO - VM name : ctest-TestRoutersBasic-21340138-58800171 2024-08-26 13:06:14,049 - DEBUG - VM ctest-TestRoutersBasic-21340138-58800171 ID is a0ff032a-b98d-4636-821e-c7ab2b9dd88e 2024-08-26 13:06:14,049 - DEBUG - VM ctest-TestRoutersBasic-21340138-58800171 launched on Node cn-jenkins-deploy-platform-ansible-os-1758-1 2024-08-26 13:06:14,161 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/a0ff032a-b98d-4636-821e-c7ab2b9dd88e 2024-08-26 13:06:14,173 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/2f9042ee-d820-46ea-8b24-7778474eae19 2024-08-26 13:06:15,430 - 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.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.623 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.623/2.144/3.665/1.521 ms') 2024-08-26 13:06:15,430 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21340138-58800171 passed 2024-08-26 13:06:15,588 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 13:06:15,589 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21340138-58800171, IP 146.224.49.195, Port 22 2024-08-26 13:06:15,755 - DEBUG - VM ctest-TestRoutersBasic-21340138-58800171 is ready for SSH connections 2024-08-26 13:06:15,755 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 13:06:15,755 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.224.49.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-08-26 13:06:15,755 - DEBUG - ping -s 56 -c 3 -W 1 146.224.49.195 2024-08-26 13:06:19,484 - DEBUG - PING 146.224.49.195 (146.224.49.195): 56 data bytes 64 bytes from 146.224.49.195: seq=0 ttl=62 time=7.086 ms 64 bytes from 146.224.49.195: seq=1 ttl=62 time=0.966 ms 64 bytes from 146.224.49.195: seq=2 ttl=62 time=0.950 ms --- 146.224.49.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.950/3.000/7.086 ms 2024-08-26 13:06:19,484 - INFO - Ping to IP 146.224.49.195 from VM ctest-TestRoutersBasic-21340138-61289859 passed 2024-08-26 13:06:19,484 - INFO - Deleting interface with subnet_id d068cfc8-eeee-40d8-aae6-112afd16cf98, port_id None from router fbc960dd-fc0c-44eb-98b8-59795a1054e7 2024-08-26 13:06:19,870 - INFO - Deleting VM ctest-TestRoutersBasic-21340138-58800171 2024-08-26 13:06:19,953 - INFO - Deleting VM ctest-TestRoutersBasic-21340138-61289859 2024-08-26 13:06:20,049 - INFO - Deleting VN ctest-ext_vn-30782086 2024-08-26 13:06:20,143 - DEBUG - VN 2a6e1888-b46a-45c1-9d51-aa0f4bfedd0f still in use: Unable to complete operation on network 2a6e1888-b46a-45c1-9d51-aa0f4bfedd0f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6b674bae-6de8-4a4f-a8cc-377dc81c2308'] 2024-08-26 13:06:20,143 - WARNING - Deleting VN ctest-ext_vn-30782086 failed..Will retry 2024-08-26 13:06:22,271 - DEBUG - Response for deleting network () 2024-08-26 13:06:22,271 - INFO - Deleting VN ctest-vn-41262493 2024-08-26 13:06:22,422 - DEBUG - Response for deleting network () 2024-08-26 13:06:22,689 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 13:06:22,689 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-08-26 13:06:22,689 - INFO - -------------------------------------------------------------------------------- 2024-08-26 13:06:23,468 - INFO - Deleted project: ctest-TestRoutersBasic-21340138, ID : 3baf16dd-0b4e-4ca5-ad18-a936d68c565c