2024-11-13 09:02:07,757 - INFO - Domain Default found not creating 2024-11-13 09:02:07,947 - INFO - Project ctest-TestRoutersBasic-14201218 not found, creating it 2024-11-13 09:02:08,466 - INFO - Created Project:ctest-TestRoutersBasic-14201218, ID : a9c8d56e-a350-49cf-85f3-24638edd4fbc 2024-11-13 09:02:10,074 - INFO - ================================================================================ 2024-11-13 09:02:10,075 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-13 09:02:10,075 - 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-13 09:02:10,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with 2024-11-13 09:02:10,338 - INFO - Initial checks done. Running the testcase now 2024-11-13 09:02:10,338 - INFO - 2024-11-13 09:02:11,103 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-14201218 2024-11-13 09:02:11,203 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-14201218 2024-11-13 09:02:11,555 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14201218', 'default']} 2024-11-13 09:02:11,913 - DEBUG - Response for create_network : {'network': {'id': 'fce263a6-9c15-42b5-a4ba-bb117d99bde5', 'name': 'ctest-vn-11124476', 'tenant_id': 'a9c8d56ea35049cf85f324638edd4fbc', 'project_id': 'a9c8d56ea35049cf85f324638edd4fbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14201218', 'ctest-vn-11124476'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 09:02:12,196 - DEBUG - Response for create_subnet : {'subnet': {'id': '66388601-95f4-4e0d-a715-812cd7df7bb9', 'name': '', 'tenant_id': 'a9c8d56ea35049cf85f324638edd4fbc', 'network_id': 'fce263a6-9c15-42b5-a4ba-bb117d99bde5', 'ip_version': 4, 'cidr': '192.229.170.0/26', 'allocation_pools': [{'start': '192.229.170.2', 'end': '192.229.170.62'}], 'gateway_ip': '192.229.170.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.229.170.2', 'tags': [], 'project_id': 'a9c8d56ea35049cf85f324638edd4fbc'}} 2024-11-13 09:02:12,221 - INFO - Created VN ctest-vn-11124476 2024-11-13 09:02:12,283 - DEBUG - VN ctest-vn-11124476 UUID is fce263a6-9c15-42b5-a4ba-bb117d99bde5 2024-11-13 09:02:12,679 - DEBUG - Response for create_network : {'network': {'id': 'bba3ad42-4bd4-46e1-bf71-be33347f65f0', 'name': 'ctest-ext_vn-56457347', 'tenant_id': 'a9c8d56ea35049cf85f324638edd4fbc', 'project_id': 'a9c8d56ea35049cf85f324638edd4fbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14201218', 'ctest-ext_vn-56457347'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 09:02:12,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '69c4d1cc-f487-43b6-821d-5c2bf8af8b07', 'name': '', 'tenant_id': 'a9c8d56ea35049cf85f324638edd4fbc', 'network_id': 'bba3ad42-4bd4-46e1-bf71-be33347f65f0', 'ip_version': 4, 'cidr': '77.100.118.192/26', 'allocation_pools': [{'start': '77.100.118.194', 'end': '77.100.118.254'}], 'gateway_ip': '77.100.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.100.118.194', 'tags': [], 'project_id': 'a9c8d56ea35049cf85f324638edd4fbc'}} 2024-11-13 09:02:12,934 - INFO - Created VN ctest-ext_vn-56457347 2024-11-13 09:02:12,991 - DEBUG - VN ctest-ext_vn-56457347 UUID is bba3ad42-4bd4-46e1-bf71-be33347f65f0 2024-11-13 09:02:13,192 - DEBUG - Services list from nova: [, , ] 2024-11-13 09:02:14,311 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2282-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2282-1) 2024-11-13 09:02:15,608 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2282-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2282-1) 2024-11-13 09:02:15,696 - INFO - Setting gateway for router 3f11a34b-3944-42c1-a529-b83291d5cd61 to network bba3ad42-4bd4-46e1-bf71-be33347f65f0 2024-11-13 09:02:15,766 - INFO - Adding interface with subnet_id 66388601-95f4-4e0d-a715-812cd7df7bb9, port_id None to router 3f11a34b-3944-42c1-a529-b83291d5cd61 2024-11-13 09:02:16,352 - INFO - Waiting for VM ctest-TestRoutersBasic-14201218-90742507 to be up.. 2024-11-13 09:02:16,514 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 09:02:21,613 - DEBUG - VM is in ACTIVE state now 2024-11-13 09:02:21,613 - INFO - VM name : ctest-TestRoutersBasic-14201218-90742507 2024-11-13 09:02:21,709 - DEBUG - VM ctest-TestRoutersBasic-14201218-90742507 ID is 130e5bd2-7273-459e-81e6-aeaf0cde3d03 2024-11-13 09:02:21,734 - DEBUG - VM ctest-TestRoutersBasic-14201218-90742507 launched on Node cn-jenkins-deploy-platform-ansible-os-2282-1 2024-11-13 09:02:21,845 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/130e5bd2-7273-459e-81e6-aeaf0cde3d03 2024-11-13 09:02:22,143 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/130e5bd2-7273-459e-81e6-aeaf0cde3d03 2024-11-13 09:02:22,183 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/d0f4aea0-f6e7-423c-b87c-041abf91aee6 2024-11-13 09:02:25,475 - 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 1018ms') 2024-11-13 09:02:25,475 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14201218-90742507 failed! 2024-11-13 09:02:25,535 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-14201218:ctest-vn-11124476 is 192.229.170.1 and allocation pool is NOT set 2024-11-13 09:02:27,596 - 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.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.495 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.495/2.656/4.818/2.161 ms') 2024-11-13 09:02:27,597 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14201218-90742507 passed 2024-11-13 09:02:27,759 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 09:02:27,759 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14201218-90742507, IP 192.229.170.3, Port 22 2024-11-13 09:02:27,930 - DEBUG - VM ctest-TestRoutersBasic-14201218-90742507 is ready for SSH connections 2024-11-13 09:02:27,930 - INFO - Waiting for VM ctest-TestRoutersBasic-14201218-37024508 to be up.. 2024-11-13 09:02:28,021 - DEBUG - VM is in ACTIVE state now 2024-11-13 09:02:28,021 - INFO - VM name : ctest-TestRoutersBasic-14201218-37024508 2024-11-13 09:02:28,129 - DEBUG - VM ctest-TestRoutersBasic-14201218-37024508 ID is e80650c9-9782-4ee3-a7c7-0227eb29a149 2024-11-13 09:02:28,129 - DEBUG - VM ctest-TestRoutersBasic-14201218-37024508 launched on Node cn-jenkins-deploy-platform-ansible-os-2282-1 2024-11-13 09:02:28,220 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/e80650c9-9782-4ee3-a7c7-0227eb29a149 2024-11-13 09:02:28,231 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/63ac6172-1cca-4c45-ae1a-92489c714987 2024-11-13 09:02:29,513 - 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=2.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.507 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.507/1.684/2.861/1.177 ms') 2024-11-13 09:02:29,513 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-14201218-37024508 passed 2024-11-13 09:02:29,671 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 09:02:29,671 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14201218-37024508, IP 77.100.118.195, Port 22 2024-11-13 09:02:29,835 - DEBUG - VM ctest-TestRoutersBasic-14201218-37024508 is ready for SSH connections 2024-11-13 09:02:29,835 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 09:02:29,835 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.100.118.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-13 09:02:29,835 - DEBUG - ping -s 56 -c 3 -W 1 77.100.118.195 2024-11-13 09:02:33,882 - DEBUG - PING 77.100.118.195 (77.100.118.195): 56 data bytes 64 bytes from 77.100.118.195: seq=0 ttl=62 time=8.210 ms 64 bytes from 77.100.118.195: seq=1 ttl=62 time=1.104 ms 64 bytes from 77.100.118.195: seq=2 ttl=62 time=1.170 ms --- 77.100.118.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.104/3.494/8.210 ms 2024-11-13 09:02:33,882 - INFO - Ping to IP 77.100.118.195 from VM ctest-TestRoutersBasic-14201218-90742507 passed 2024-11-13 09:02:33,882 - INFO - Deleting interface with subnet_id 66388601-95f4-4e0d-a715-812cd7df7bb9, port_id None from router 3f11a34b-3944-42c1-a529-b83291d5cd61 2024-11-13 09:02:34,113 - INFO - Deleting VM ctest-TestRoutersBasic-14201218-37024508 2024-11-13 09:02:34,191 - INFO - Deleting VM ctest-TestRoutersBasic-14201218-90742507 2024-11-13 09:02:34,278 - INFO - Deleting VN ctest-ext_vn-56457347 2024-11-13 09:02:34,442 - DEBUG - VN bba3ad42-4bd4-46e1-bf71-be33347f65f0 still in use: Unable to complete operation on network bba3ad42-4bd4-46e1-bf71-be33347f65f0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8c1a8230-c08e-4cb5-807e-dce269deae46'] 2024-11-13 09:02:34,443 - WARNING - Deleting VN ctest-ext_vn-56457347 failed..Will retry 2024-11-13 09:02:36,573 - DEBUG - Response for deleting network () 2024-11-13 09:02:36,573 - INFO - Deleting VN ctest-vn-11124476 2024-11-13 09:02:36,697 - DEBUG - Response for deleting network () 2024-11-13 09:02:36,963 - DEBUG - No XMPP flaps were noticed during the test 2024-11-13 09:02:36,963 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-13 09:02:36,963 - INFO - -------------------------------------------------------------------------------- 2024-11-13 09:02:37,692 - INFO - Deleted project: ctest-TestRoutersBasic-14201218, ID : a9c8d56e-a350-49cf-85f3-24638edd4fbc