2024-09-03 13:51:31,515 - INFO - Domain Default found not creating 2024-09-03 13:51:31,685 - INFO - Project ctest-TestRoutersBasic-22566734 not found, creating it 2024-09-03 13:51:32,177 - INFO - Created Project:ctest-TestRoutersBasic-22566734, ID : 1e916a97-d5b6-4786-96d8-8623d961cd07 2024-09-03 13:51:33,784 - INFO - ================================================================================ 2024-09-03 13:51:33,784 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-03 13:51:33,784 - 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-03 13:51:34,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.6': '0'}} with 2024-09-03 13:51:34,036 - INFO - Initial checks done. Running the testcase now 2024-09-03 13:51:34,036 - INFO - 2024-09-03 13:51:34,759 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-22566734 2024-09-03 13:51:34,859 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-22566734 2024-09-03 13:51:35,190 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22566734', 'default']} 2024-09-03 13:51:35,521 - DEBUG - Response for create_network : {'network': {'id': '96b92474-a0c2-4f5c-83f2-217412b08c3a', 'name': 'ctest-vn-84248883', 'tenant_id': '1e916a97d5b6478696d88623d961cd07', 'project_id': '1e916a97d5b6478696d88623d961cd07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22566734', 'ctest-vn-84248883'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 13:51:35,716 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1a7f668-5732-43ce-851e-4be1e3bc2048', 'name': '', 'tenant_id': '1e916a97d5b6478696d88623d961cd07', 'network_id': '96b92474-a0c2-4f5c-83f2-217412b08c3a', 'ip_version': 4, 'cidr': '82.148.247.192/26', 'allocation_pools': [{'start': '82.148.247.194', 'end': '82.148.247.254'}], 'gateway_ip': '82.148.247.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.148.247.194', 'tags': [], 'project_id': '1e916a97d5b6478696d88623d961cd07'}} 2024-09-03 13:51:35,738 - INFO - Created VN ctest-vn-84248883 2024-09-03 13:51:35,791 - DEBUG - VN ctest-vn-84248883 UUID is 96b92474-a0c2-4f5c-83f2-217412b08c3a 2024-09-03 13:51:36,114 - DEBUG - Response for create_network : {'network': {'id': '5786ae08-f259-4df3-a2b2-153ce9fb61a3', 'name': 'ctest-ext_vn-34049247', 'tenant_id': '1e916a97d5b6478696d88623d961cd07', 'project_id': '1e916a97d5b6478696d88623d961cd07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22566734', 'ctest-ext_vn-34049247'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 13:51:36,271 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc7c1f19-7f8e-44c7-a811-e2663db0773a', 'name': '', 'tenant_id': '1e916a97d5b6478696d88623d961cd07', 'network_id': '5786ae08-f259-4df3-a2b2-153ce9fb61a3', 'ip_version': 4, 'cidr': '163.32.227.64/26', 'allocation_pools': [{'start': '163.32.227.66', 'end': '163.32.227.126'}], 'gateway_ip': '163.32.227.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.32.227.66', 'tags': [], 'project_id': '1e916a97d5b6478696d88623d961cd07'}} 2024-09-03 13:51:36,294 - INFO - Created VN ctest-ext_vn-34049247 2024-09-03 13:51:36,351 - DEBUG - VN ctest-ext_vn-34049247 UUID is 5786ae08-f259-4df3-a2b2-153ce9fb61a3 2024-09-03 13:51:36,584 - DEBUG - Services list from nova: [, , ] 2024-09-03 13:51:37,625 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1835-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1835-1) 2024-09-03 13:51:38,815 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1835-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1835-1) 2024-09-03 13:51:38,891 - INFO - Setting gateway for router 8ce766da-df6b-4839-9376-d369054d8e4a to network 5786ae08-f259-4df3-a2b2-153ce9fb61a3 2024-09-03 13:51:38,966 - INFO - Adding interface with subnet_id d1a7f668-5732-43ce-851e-4be1e3bc2048, port_id None to router 8ce766da-df6b-4839-9376-d369054d8e4a 2024-09-03 13:51:39,409 - INFO - Waiting for VM ctest-TestRoutersBasic-22566734-41688223 to be up.. 2024-09-03 13:51:39,584 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 13:51:44,673 - DEBUG - VM is in ACTIVE state now 2024-09-03 13:51:44,673 - INFO - VM name : ctest-TestRoutersBasic-22566734-41688223 2024-09-03 13:51:44,763 - DEBUG - VM ctest-TestRoutersBasic-22566734-41688223 ID is 18129c55-61a5-4990-80d4-b597cc5749c0 2024-09-03 13:51:44,781 - DEBUG - VM ctest-TestRoutersBasic-22566734-41688223 launched on Node cn-jenkins-deploy-platform-ansible-os-1835-1 2024-09-03 13:51:44,870 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/18129c55-61a5-4990-80d4-b597cc5749c0 2024-09-03 13:51:45,174 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/18129c55-61a5-4990-80d4-b597cc5749c0 2024-09-03 13:51:45,209 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/ae9a8971-6910-4d35-a9b0-1c247bd4eaa0 2024-09-03 13:51:48,452 - 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 1007ms') 2024-09-03 13:51:48,452 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22566734-41688223 failed! 2024-09-03 13:51:48,507 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-22566734:ctest-vn-84248883 is 82.148.247.193 and allocation pool is NOT set 2024-09-03 13:51:50,569 - 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=2.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.442 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.442/1.620/2.799/1.178 ms') 2024-09-03 13:51:50,570 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22566734-41688223 passed 2024-09-03 13:51:50,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 13:51:50,727 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22566734-41688223, IP 82.148.247.195, Port 22 2024-09-03 13:51:50,898 - DEBUG - VM ctest-TestRoutersBasic-22566734-41688223 is ready for SSH connections 2024-09-03 13:51:50,898 - INFO - Waiting for VM ctest-TestRoutersBasic-22566734-10371887 to be up.. 2024-09-03 13:51:50,982 - DEBUG - VM is in ACTIVE state now 2024-09-03 13:51:50,982 - INFO - VM name : ctest-TestRoutersBasic-22566734-10371887 2024-09-03 13:51:51,062 - DEBUG - VM ctest-TestRoutersBasic-22566734-10371887 ID is 748ae161-1aec-4408-9307-e744c7ed650a 2024-09-03 13:51:51,062 - DEBUG - VM ctest-TestRoutersBasic-22566734-10371887 launched on Node cn-jenkins-deploy-platform-ansible-os-1835-1 2024-09-03 13:51:51,152 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/748ae161-1aec-4408-9307-e744c7ed650a 2024-09-03 13:51:51,163 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/5fe66070-e13b-4fac-bbb9-d6770b40539c 2024-09-03 13:51:52,417 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.367 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.367/1.697/3.027/1.330 ms') 2024-09-03 13:51:52,417 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-22566734-10371887 passed 2024-09-03 13:51:52,579 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 13:51:52,579 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22566734-10371887, IP 163.32.227.67, Port 22 2024-09-03 13:51:52,733 - DEBUG - VM ctest-TestRoutersBasic-22566734-10371887 is ready for SSH connections 2024-09-03 13:51:52,734 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 13:51:52,734 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 163.32.227.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-03 13:51:52,734 - DEBUG - ping -s 56 -c 3 -W 1 163.32.227.67 2024-09-03 13:51:56,423 - DEBUG - PING 163.32.227.67 (163.32.227.67): 56 data bytes 64 bytes from 163.32.227.67: seq=0 ttl=62 time=8.080 ms 64 bytes from 163.32.227.67: seq=1 ttl=62 time=0.865 ms 64 bytes from 163.32.227.67: seq=2 ttl=62 time=0.827 ms --- 163.32.227.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.827/3.257/8.080 ms 2024-09-03 13:51:56,424 - INFO - Ping to IP 163.32.227.67 from VM ctest-TestRoutersBasic-22566734-41688223 passed 2024-09-03 13:51:56,424 - INFO - Deleting interface with subnet_id d1a7f668-5732-43ce-851e-4be1e3bc2048, port_id None from router 8ce766da-df6b-4839-9376-d369054d8e4a 2024-09-03 13:51:56,651 - INFO - Deleting VM ctest-TestRoutersBasic-22566734-10371887 2024-09-03 13:51:56,723 - INFO - Deleting VM ctest-TestRoutersBasic-22566734-41688223 2024-09-03 13:51:56,816 - INFO - Deleting VN ctest-ext_vn-34049247 2024-09-03 13:51:56,909 - DEBUG - VN 5786ae08-f259-4df3-a2b2-153ce9fb61a3 still in use: Unable to complete operation on network 5786ae08-f259-4df3-a2b2-153ce9fb61a3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9d640b04-0bff-472d-96d0-7e9e09a11353'] 2024-09-03 13:51:56,909 - WARNING - Deleting VN ctest-ext_vn-34049247 failed..Will retry 2024-09-03 13:51:59,024 - DEBUG - Response for deleting network () 2024-09-03 13:51:59,024 - INFO - Deleting VN ctest-vn-84248883 2024-09-03 13:51:59,132 - DEBUG - Response for deleting network () 2024-09-03 13:51:59,390 - DEBUG - No XMPP flaps were noticed during the test
2024-09-03 13:51:59,390 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-03 13:51:59,390 - INFO - -------------------------------------------------------------------------------- 2024-09-03 13:52:00,077 - INFO - Deleted project: ctest-TestRoutersBasic-22566734, ID : 1e916a97-d5b6-4786-96d8-8623d961cd07