2025-01-13 06:52:35,727 - INFO - Domain Default found not creating 2025-01-13 06:52:35,884 - INFO - Project ctest-TestRoutersBasic-83430993 not found, creating it 2025-01-13 06:52:36,413 - INFO - Created Project:ctest-TestRoutersBasic-83430993, ID : 34ccf36d-2cb3-4a8a-81d7-3a6f8263a504 2025-01-13 06:52:37,846 - INFO - ================================================================================ 2025-01-13 06:52:37,846 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-13 06:52:37,846 - 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 2025-01-13 06:52:38,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.8': '0'}} with 2025-01-13 06:52:38,103 - INFO - Initial checks done. Running the testcase now 2025-01-13 06:52:38,103 - INFO - 2025-01-13 06:52:38,820 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-83430993 2025-01-13 06:52:38,920 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-83430993 2025-01-13 06:52:39,240 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83430993', 'default']} 2025-01-13 06:52:39,553 - DEBUG - Response for create_network : {'network': {'id': '31584b60-8180-4810-b72e-644fe192c8b3', 'name': 'ctest-vn-27903446', 'tenant_id': '34ccf36d2cb34a8a81d73a6f8263a504', 'project_id': '34ccf36d2cb34a8a81d73a6f8263a504', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83430993', 'ctest-vn-27903446'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 06:52:39,757 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be531032-3229-443c-b33a-869ede114fdd', 'name': '', 'tenant_id': '34ccf36d2cb34a8a81d73a6f8263a504', 'network_id': '31584b60-8180-4810-b72e-644fe192c8b3', 'ip_version': 4, 'cidr': '166.102.101.0/26', 'allocation_pools': [{'start': '166.102.101.2', 'end': '166.102.101.62'}], 'gateway_ip': '166.102.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.102.101.2', 'tags': [], 'project_id': '34ccf36d2cb34a8a81d73a6f8263a504'}} 2025-01-13 06:52:39,775 - INFO - Created VN ctest-vn-27903446 2025-01-13 06:52:39,832 - DEBUG - VN ctest-vn-27903446 UUID is 31584b60-8180-4810-b72e-644fe192c8b3 2025-01-13 06:52:40,245 - DEBUG - Response for create_network : {'network': {'id': '48f0b3ce-e2ad-4870-bb99-cf34836a90c6', 'name': 'ctest-ext_vn-54225020', 'tenant_id': '34ccf36d2cb34a8a81d73a6f8263a504', 'project_id': '34ccf36d2cb34a8a81d73a6f8263a504', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83430993', 'ctest-ext_vn-54225020'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 06:52:40,451 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a0d74ce-e7de-49a2-ae8f-89e2dd009d44', 'name': '', 'tenant_id': '34ccf36d2cb34a8a81d73a6f8263a504', 'network_id': '48f0b3ce-e2ad-4870-bb99-cf34836a90c6', 'ip_version': 4, 'cidr': '150.202.134.64/26', 'allocation_pools': [{'start': '150.202.134.66', 'end': '150.202.134.126'}], 'gateway_ip': '150.202.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.202.134.66', 'tags': [], 'project_id': '34ccf36d2cb34a8a81d73a6f8263a504'}} 2025-01-13 06:52:40,469 - INFO - Created VN ctest-ext_vn-54225020 2025-01-13 06:52:40,524 - DEBUG - VN ctest-ext_vn-54225020 UUID is 48f0b3ce-e2ad-4870-bb99-cf34836a90c6 2025-01-13 06:52:40,732 - DEBUG - Services list from nova: [, , ] 2025-01-13 06:52:41,746 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2608-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2608-1) 2025-01-13 06:52:42,911 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2608-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2608-1) 2025-01-13 06:52:42,986 - INFO - Setting gateway for router 1d307f74-5e0f-4e05-a8fd-8cde80b821e2 to network 48f0b3ce-e2ad-4870-bb99-cf34836a90c6 2025-01-13 06:52:43,065 - INFO - Adding interface with subnet_id be531032-3229-443c-b33a-869ede114fdd, port_id None to router 1d307f74-5e0f-4e05-a8fd-8cde80b821e2 2025-01-13 06:52:43,497 - INFO - Waiting for VM ctest-TestRoutersBasic-83430993-65201247 to be up.. 2025-01-13 06:52:43,693 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 06:52:48,781 - DEBUG - VM is in ACTIVE state now 2025-01-13 06:52:48,781 - INFO - VM name : ctest-TestRoutersBasic-83430993-65201247 2025-01-13 06:52:48,858 - DEBUG - VM ctest-TestRoutersBasic-83430993-65201247 ID is f713cc33-c5d4-4771-b573-0f367cec4e2d 2025-01-13 06:52:48,876 - DEBUG - VM ctest-TestRoutersBasic-83430993-65201247 launched on Node cn-jenkins-deploy-platform-ansible-os-2608-1 2025-01-13 06:52:48,956 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/f713cc33-c5d4-4771-b573-0f367cec4e2d 2025-01-13 06:52:49,250 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/f713cc33-c5d4-4771-b573-0f367cec4e2d 2025-01-13 06:52:49,283 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/237c0e86-465f-47dc-a2f0-1dc5d1cb07a9 2025-01-13 06:52:52,549 - 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 1022ms') 2025-01-13 06:52:52,550 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83430993-65201247 failed! 2025-01-13 06:52:52,608 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-83430993:ctest-vn-27903446 is 166.102.101.1 and allocation pool is NOT set 2025-01-13 06:52:54,675 - 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.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.06 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 = 1.060/2.380/3.700/1.320 ms') 2025-01-13 06:52:54,675 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83430993-65201247 passed 2025-01-13 06:52:54,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 06:52:54,788 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83430993-65201247, IP 166.102.101.3, Port 22 2025-01-13 06:52:54,944 - DEBUG - VM ctest-TestRoutersBasic-83430993-65201247 is ready for SSH connections 2025-01-13 06:52:54,944 - INFO - Waiting for VM ctest-TestRoutersBasic-83430993-29455979 to be up.. 2025-01-13 06:52:55,020 - DEBUG - VM is in ACTIVE state now 2025-01-13 06:52:55,021 - INFO - VM name : ctest-TestRoutersBasic-83430993-29455979 2025-01-13 06:52:55,095 - DEBUG - VM ctest-TestRoutersBasic-83430993-29455979 ID is e522e8eb-998b-4353-93a1-9f034b69e8d9 2025-01-13 06:52:55,095 - DEBUG - VM ctest-TestRoutersBasic-83430993-29455979 launched on Node cn-jenkins-deploy-platform-ansible-os-2608-1 2025-01-13 06:52:55,168 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/e522e8eb-998b-4353-93a1-9f034b69e8d9 2025-01-13 06:52:55,177 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/384a3065-8735-4c49-b7bf-c48dff6ec7eb 2025-01-13 06:52:56,426 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.401 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.401/2.094/3.788/1.693 ms') 2025-01-13 06:52:56,426 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-83430993-29455979 passed 2025-01-13 06:52:56,576 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 06:52:56,576 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83430993-29455979, IP 150.202.134.67, Port 22 2025-01-13 06:52:56,732 - DEBUG - VM ctest-TestRoutersBasic-83430993-29455979 is ready for SSH connections 2025-01-13 06:52:56,732 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 06:52:56,732 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.202.134.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-01-13 06:52:56,732 - DEBUG - ping -s 56 -c 3 -W 1 150.202.134.67 2025-01-13 06:53:00,710 - DEBUG - PING 150.202.134.67 (150.202.134.67): 56 data bytes 64 bytes from 150.202.134.67: seq=0 ttl=62 time=8.138 ms 64 bytes from 150.202.134.67: seq=1 ttl=62 time=1.257 ms 64 bytes from 150.202.134.67: seq=2 ttl=62 time=0.935 ms --- 150.202.134.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.935/3.443/8.138 ms 2025-01-13 06:53:00,710 - INFO - Ping to IP 150.202.134.67 from VM ctest-TestRoutersBasic-83430993-65201247 passed 2025-01-13 06:53:00,710 - INFO - Deleting interface with subnet_id be531032-3229-443c-b33a-869ede114fdd, port_id None from router 1d307f74-5e0f-4e05-a8fd-8cde80b821e2 2025-01-13 06:53:00,921 - INFO - Deleting VM ctest-TestRoutersBasic-83430993-29455979 2025-01-13 06:53:00,999 - INFO - Deleting VM ctest-TestRoutersBasic-83430993-65201247 2025-01-13 06:53:01,075 - INFO - Deleting VN ctest-ext_vn-54225020 2025-01-13 06:53:01,153 - DEBUG - VN 48f0b3ce-e2ad-4870-bb99-cf34836a90c6 still in use: Unable to complete operation on network 48f0b3ce-e2ad-4870-bb99-cf34836a90c6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-52371090-7461-47a4-b9c4-2accd00d26ed'] 2025-01-13 06:53:01,153 - WARNING - Deleting VN ctest-ext_vn-54225020 failed..Will retry 2025-01-13 06:53:03,265 - DEBUG - Response for deleting network () 2025-01-13 06:53:03,265 - INFO - Deleting VN ctest-vn-27903446 2025-01-13 06:53:03,381 - DEBUG - Response for deleting network () 2025-01-13 06:53:03,634 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 06:53:03,634 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-13 06:53:03,634 - INFO - -------------------------------------------------------------------------------- 2025-01-13 06:53:04,317 - INFO - Deleted project: ctest-TestRoutersBasic-83430993, ID : 34ccf36d-2cb3-4a8a-81d7-3a6f8263a504