2024-11-13 12:55:35,815 - INFO - Domain Default found not creating 2024-11-13 12:55:36,009 - INFO - Project ctest-TestRoutersBasic-60850091 not found, creating it 2024-11-13 12:55:36,538 - INFO - Created Project:ctest-TestRoutersBasic-60850091, ID : 2b44eb76-eb58-45d5-b04e-9a40c88672e6 2024-11-13 12:55:38,125 - INFO - ================================================================================ 2024-11-13 12:55:38,126 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-13 12:55:38,126 - 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 12:55:38,387 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.14': '0'}} with 2024-11-13 12:55:38,387 - INFO - Initial checks done. Running the testcase now 2024-11-13 12:55:38,387 - INFO - 2024-11-13 12:55:39,138 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-60850091 2024-11-13 12:55:39,248 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-60850091 2024-11-13 12:55:39,587 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60850091', 'default']} 2024-11-13 12:55:39,915 - DEBUG - Response for create_network : {'network': {'id': '9564c42c-bb8d-4ffe-b3fa-bdc8aa74a955', 'name': 'ctest-vn-65653679', 'tenant_id': '2b44eb76eb5845d5b04e9a40c88672e6', 'project_id': '2b44eb76eb5845d5b04e9a40c88672e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60850091', 'ctest-vn-65653679'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 12:55:40,090 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec43d9cb-0bb2-4239-b4a8-ca1811eea2ea', 'name': '', 'tenant_id': '2b44eb76eb5845d5b04e9a40c88672e6', 'network_id': '9564c42c-bb8d-4ffe-b3fa-bdc8aa74a955', 'ip_version': 4, 'cidr': '164.56.55.192/26', 'allocation_pools': [{'start': '164.56.55.194', 'end': '164.56.55.254'}], 'gateway_ip': '164.56.55.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.56.55.194', 'tags': [], 'project_id': '2b44eb76eb5845d5b04e9a40c88672e6'}} 2024-11-13 12:55:40,112 - INFO - Created VN ctest-vn-65653679 2024-11-13 12:55:40,176 - DEBUG - VN ctest-vn-65653679 UUID is 9564c42c-bb8d-4ffe-b3fa-bdc8aa74a955 2024-11-13 12:55:40,536 - DEBUG - Response for create_network : {'network': {'id': '112e832a-a7c9-41b1-973a-555938a3d92a', 'name': 'ctest-ext_vn-81586102', 'tenant_id': '2b44eb76eb5845d5b04e9a40c88672e6', 'project_id': '2b44eb76eb5845d5b04e9a40c88672e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60850091', 'ctest-ext_vn-81586102'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 12:55:40,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f49fce6-fb00-4f29-a503-20d40cfb395c', 'name': '', 'tenant_id': '2b44eb76eb5845d5b04e9a40c88672e6', 'network_id': '112e832a-a7c9-41b1-973a-555938a3d92a', 'ip_version': 4, 'cidr': '44.145.208.64/26', 'allocation_pools': [{'start': '44.145.208.66', 'end': '44.145.208.126'}], 'gateway_ip': '44.145.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.145.208.66', 'tags': [], 'project_id': '2b44eb76eb5845d5b04e9a40c88672e6'}} 2024-11-13 12:55:40,721 - INFO - Created VN ctest-ext_vn-81586102 2024-11-13 12:55:40,780 - DEBUG - VN ctest-ext_vn-81586102 UUID is 112e832a-a7c9-41b1-973a-555938a3d92a 2024-11-13 12:55:40,979 - DEBUG - Services list from nova: [, , ] 2024-11-13 12:55:42,078 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2286-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2286-1) 2024-11-13 12:55:43,360 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2286-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2286-1) 2024-11-13 12:55:43,458 - INFO - Setting gateway for router eb88521e-e43b-4cf3-87ff-6604e323b5f1 to network 112e832a-a7c9-41b1-973a-555938a3d92a 2024-11-13 12:55:43,542 - INFO - Adding interface with subnet_id ec43d9cb-0bb2-4239-b4a8-ca1811eea2ea, port_id None to router eb88521e-e43b-4cf3-87ff-6604e323b5f1 2024-11-13 12:55:44,068 - INFO - Waiting for VM ctest-TestRoutersBasic-60850091-64916025 to be up.. 2024-11-13 12:55:44,370 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 12:55:49,504 - DEBUG - VM is in ACTIVE state now 2024-11-13 12:55:49,504 - INFO - VM name : ctest-TestRoutersBasic-60850091-64916025 2024-11-13 12:55:49,614 - DEBUG - VM ctest-TestRoutersBasic-60850091-64916025 ID is d3faa7be-add8-4821-8aed-f63619d3e601 2024-11-13 12:55:49,640 - DEBUG - VM ctest-TestRoutersBasic-60850091-64916025 launched on Node cn-jenkins-deploy-platform-ansible-os-2286-1 2024-11-13 12:55:49,771 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/d3faa7be-add8-4821-8aed-f63619d3e601 2024-11-13 12:55:50,092 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/d3faa7be-add8-4821-8aed-f63619d3e601 2024-11-13 12:55:50,136 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/7ee17499-0ab4-42ba-b613-8f82776a96ec 2024-11-13 12:55:53,408 - 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 1010ms') 2024-11-13 12:55:53,409 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60850091-64916025 failed! 2024-11-13 12:55:53,472 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-60850091:ctest-vn-65653679 is 164.56.55.193 and allocation pool is NOT set 2024-11-13 12:55:55,535 - 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.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.477 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.477/2.202/3.928/1.725 ms') 2024-11-13 12:55:55,535 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60850091-64916025 passed 2024-11-13 12:55:55,700 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 12:55:55,700 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60850091-64916025, IP 164.56.55.195, Port 22 2024-11-13 12:55:55,870 - DEBUG - VM ctest-TestRoutersBasic-60850091-64916025 is ready for SSH connections 2024-11-13 12:55:55,870 - INFO - Waiting for VM ctest-TestRoutersBasic-60850091-07906034 to be up.. 2024-11-13 12:55:55,967 - DEBUG - VM is in ACTIVE state now 2024-11-13 12:55:55,967 - INFO - VM name : ctest-TestRoutersBasic-60850091-07906034 2024-11-13 12:55:56,053 - DEBUG - VM ctest-TestRoutersBasic-60850091-07906034 ID is 0fdd8fc2-6f8c-4c41-994e-748262377ceb 2024-11-13 12:55:56,053 - DEBUG - VM ctest-TestRoutersBasic-60850091-07906034 launched on Node cn-jenkins-deploy-platform-ansible-os-2286-1 2024-11-13 12:55:56,146 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/0fdd8fc2-6f8c-4c41-994e-748262377ceb 2024-11-13 12:55:56,156 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/14e8e66c-08c9-488f-a5c4-4a967709e0b7 2024-11-13 12:55:57,434 - 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.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.406 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.406/1.924/3.443/1.518 ms') 2024-11-13 12:55:57,434 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-60850091-07906034 passed 2024-11-13 12:55:57,604 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 12:55:57,604 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60850091-07906034, IP 44.145.208.67, Port 22 2024-11-13 12:55:57,764 - DEBUG - VM ctest-TestRoutersBasic-60850091-07906034 is ready for SSH connections 2024-11-13 12:55:57,764 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 12:55:57,764 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.145.208.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-11-13 12:55:57,764 - DEBUG - ping -s 56 -c 3 -W 1 44.145.208.67 2024-11-13 12:56:01,488 - DEBUG - PING 44.145.208.67 (44.145.208.67): 56 data bytes 64 bytes from 44.145.208.67: seq=0 ttl=62 time=5.226 ms 64 bytes from 44.145.208.67: seq=1 ttl=62 time=1.355 ms 64 bytes from 44.145.208.67: seq=2 ttl=62 time=1.677 ms --- 44.145.208.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.355/2.752/5.226 ms 2024-11-13 12:56:01,489 - INFO - Ping to IP 44.145.208.67 from VM ctest-TestRoutersBasic-60850091-64916025 passed 2024-11-13 12:56:01,489 - INFO - Deleting interface with subnet_id ec43d9cb-0bb2-4239-b4a8-ca1811eea2ea, port_id None from router eb88521e-e43b-4cf3-87ff-6604e323b5f1 2024-11-13 12:56:01,906 - INFO - Deleting VM ctest-TestRoutersBasic-60850091-07906034 2024-11-13 12:56:02,008 - INFO - Deleting VM ctest-TestRoutersBasic-60850091-64916025 2024-11-13 12:56:02,093 - INFO - Deleting VN ctest-ext_vn-81586102 2024-11-13 12:56:02,184 - DEBUG - VN 112e832a-a7c9-41b1-973a-555938a3d92a still in use: Unable to complete operation on network 112e832a-a7c9-41b1-973a-555938a3d92a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c94a743e-a501-4862-8f2a-dd9122e6cedf'] 2024-11-13 12:56:02,184 - WARNING - Deleting VN ctest-ext_vn-81586102 failed..Will retry 2024-11-13 12:56:04,340 - DEBUG - Response for deleting network () 2024-11-13 12:56:04,340 - INFO - Deleting VN ctest-vn-65653679 2024-11-13 12:56:04,474 - DEBUG - Response for deleting network () 2024-11-13 12:56:04,753 - DEBUG - No XMPP flaps were noticed during the test 2024-11-13 12:56:04,753 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-13 12:56:04,753 - INFO - -------------------------------------------------------------------------------- 2024-11-13 12:56:05,532 - INFO - Deleted project: ctest-TestRoutersBasic-60850091, ID : 2b44eb76-eb58-45d5-b04e-9a40c88672e6