2025-04-22 23:12:44,696 - INFO - Domain Default found not creating 2025-04-22 23:12:44,828 - INFO - Project ctest-TestRoutersBasic-26531986 not found, creating it 2025-04-22 23:12:45,268 - INFO - Created Project:ctest-TestRoutersBasic-26531986, ID : e88fa0fe-0cd9-492b-a289-7e5caf3b18c8 2025-04-22 23:12:46,732 - INFO - ================================================================================ 2025-04-22 23:12:46,732 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-22 23:12:46,732 - 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-04-22 23:12:46,994 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-04-22 23:12:46,994 - INFO - Initial checks done. Running the testcase now 2025-04-22 23:12:46,994 - INFO - 2025-04-22 23:12:47,764 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-26531986 2025-04-22 23:12:47,860 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-26531986 2025-04-22 23:12:48,192 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26531986', 'default']} 2025-04-22 23:12:48,476 - DEBUG - Response for create_network : {'network': {'id': 'ccdc38c5-2ff9-43f0-93c8-33166423c60d', 'name': 'ctest-vn-35597261', 'tenant_id': 'e88fa0fe0cd9492ba2897e5caf3b18c8', 'project_id': 'e88fa0fe0cd9492ba2897e5caf3b18c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26531986', 'ctest-vn-35597261'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 23:12:48,672 - DEBUG - Response for create_subnet : {'subnet': {'id': '85c0a5e0-9ced-4a69-b252-afd690f99427', 'name': '', 'tenant_id': 'e88fa0fe0cd9492ba2897e5caf3b18c8', 'network_id': 'ccdc38c5-2ff9-43f0-93c8-33166423c60d', 'ip_version': 4, 'cidr': '135.13.173.0/26', 'allocation_pools': [{'start': '135.13.173.2', 'end': '135.13.173.62'}], 'gateway_ip': '135.13.173.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.13.173.2', 'tags': [], 'project_id': 'e88fa0fe0cd9492ba2897e5caf3b18c8'}} 2025-04-22 23:12:48,689 - INFO - Created VN ctest-vn-35597261 2025-04-22 23:12:48,740 - DEBUG - VN ctest-vn-35597261 UUID is ccdc38c5-2ff9-43f0-93c8-33166423c60d 2025-04-22 23:12:49,102 - DEBUG - Response for create_network : {'network': {'id': 'ecc5f81d-f6fd-41e1-868a-9c99f0446f24', 'name': 'ctest-ext_vn-72776222', 'tenant_id': 'e88fa0fe0cd9492ba2897e5caf3b18c8', 'project_id': 'e88fa0fe0cd9492ba2897e5caf3b18c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26531986', 'ctest-ext_vn-72776222'], 'port_security_enabled': True, 'description': ''}} 2025-04-22 23:12:49,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ea9156d-25ba-43f5-a123-b7f995d8680f', 'name': '', 'tenant_id': 'e88fa0fe0cd9492ba2897e5caf3b18c8', 'network_id': 'ecc5f81d-f6fd-41e1-868a-9c99f0446f24', 'ip_version': 4, 'cidr': '85.125.170.64/26', 'allocation_pools': [{'start': '85.125.170.66', 'end': '85.125.170.126'}], 'gateway_ip': '85.125.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.125.170.66', 'tags': [], 'project_id': 'e88fa0fe0cd9492ba2897e5caf3b18c8'}} 2025-04-22 23:12:49,292 - INFO - Created VN ctest-ext_vn-72776222 2025-04-22 23:12:49,344 - DEBUG - VN ctest-ext_vn-72776222 UUID is ecc5f81d-f6fd-41e1-868a-9c99f0446f24 2025-04-22 23:12:49,537 - DEBUG - Services list from nova: [, , ] 2025-04-22 23:12:50,578 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3175-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3175-1) 2025-04-22 23:12:51,727 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3175-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3175-1) 2025-04-22 23:12:51,812 - INFO - Setting gateway for router 104021aa-ad8b-4d81-9fbc-6a2d8aee5fdc to network ecc5f81d-f6fd-41e1-868a-9c99f0446f24 2025-04-22 23:12:51,901 - INFO - Adding interface with subnet_id 85c0a5e0-9ced-4a69-b252-afd690f99427, port_id None to router 104021aa-ad8b-4d81-9fbc-6a2d8aee5fdc 2025-04-22 23:12:52,344 - INFO - Waiting for VM ctest-TestRoutersBasic-26531986-80420296 to be up.. 2025-04-22 23:12:52,528 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-22 23:12:57,602 - DEBUG - VM is in ACTIVE state now 2025-04-22 23:12:57,603 - INFO - VM name : ctest-TestRoutersBasic-26531986-80420296 2025-04-22 23:12:57,672 - DEBUG - VM ctest-TestRoutersBasic-26531986-80420296 ID is b00d906b-e684-4ce5-aab3-47d7f7321e06 2025-04-22 23:12:57,690 - DEBUG - VM ctest-TestRoutersBasic-26531986-80420296 launched on Node cn-jenkins-deploy-platform-ansible-os-3175-1 2025-04-22 23:12:57,760 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/b00d906b-e684-4ce5-aab3-47d7f7321e06 2025-04-22 23:12:58,089 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/b00d906b-e684-4ce5-aab3-47d7f7321e06 2025-04-22 23:12:58,128 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/8ecbe4cd-63f4-4aaa-9499-7a5bbddc03fa 2025-04-22 23:13:01,477 - 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 1030ms') 2025-04-22 23:13:01,477 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26531986-80420296 failed! 2025-04-22 23:13:01,536 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-26531986:ctest-vn-35597261 is 135.13.173.1 and allocation pool is NOT set 2025-04-22 23:13:03,597 - 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.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.403 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.403/1.611/2.819/1.208 ms') 2025-04-22 23:13:03,597 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26531986-80420296 passed 2025-04-22 23:13:03,748 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 23:13:03,748 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26531986-80420296, IP 135.13.173.3, Port 22 2025-04-22 23:13:03,908 - DEBUG - VM ctest-TestRoutersBasic-26531986-80420296 is ready for SSH connections 2025-04-22 23:13:03,908 - INFO - Waiting for VM ctest-TestRoutersBasic-26531986-81984488 to be up.. 2025-04-22 23:13:04,022 - DEBUG - VM is in ACTIVE state now 2025-04-22 23:13:04,022 - INFO - VM name : ctest-TestRoutersBasic-26531986-81984488 2025-04-22 23:13:04,119 - DEBUG - VM ctest-TestRoutersBasic-26531986-81984488 ID is 7a7c6297-4c8d-4729-b520-01c30f33d6d3 2025-04-22 23:13:04,119 - DEBUG - VM ctest-TestRoutersBasic-26531986-81984488 launched on Node cn-jenkins-deploy-platform-ansible-os-3175-1 2025-04-22 23:13:04,229 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/7a7c6297-4c8d-4729-b520-01c30f33d6d3 2025-04-22 23:13:04,238 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/71cb8c1c-9d4b-468c-9e49-4b3413df8084 2025-04-22 23:13:05,495 - 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=9.11 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.61 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 = 1.613/5.360/9.108/3.747 ms') 2025-04-22 23:13:05,496 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-26531986-81984488 passed 2025-04-22 23:13:05,652 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 23:13:05,652 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26531986-81984488, IP 85.125.170.67, Port 22 2025-04-22 23:13:05,710 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-22 23:13:05,787 - DEBUG - VM ctest-TestRoutersBasic-26531986-81984488 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-22 23:13:10,789 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 23:13:10,789 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26531986-81984488, IP 85.125.170.67, Port 22 2025-04-22 23:13:10,952 - DEBUG - VM ctest-TestRoutersBasic-26531986-81984488 is ready for SSH connections 2025-04-22 23:13:10,952 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-22 23:13:10,952 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.125.170.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-04-22 23:13:10,952 - DEBUG - ping -s 56 -c 3 -W 1 85.125.170.67 2025-04-22 23:13:14,985 - DEBUG - PING 85.125.170.67 (85.125.170.67): 56 data bytes 64 bytes from 85.125.170.67: seq=0 ttl=62 time=5.641 ms 64 bytes from 85.125.170.67: seq=1 ttl=62 time=0.798 ms 64 bytes from 85.125.170.67: seq=2 ttl=62 time=0.741 ms --- 85.125.170.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.741/2.393/5.641 ms 2025-04-22 23:13:14,985 - INFO - Ping to IP 85.125.170.67 from VM ctest-TestRoutersBasic-26531986-80420296 passed 2025-04-22 23:13:14,985 - INFO - Deleting interface with subnet_id 85c0a5e0-9ced-4a69-b252-afd690f99427, port_id None from router 104021aa-ad8b-4d81-9fbc-6a2d8aee5fdc 2025-04-22 23:13:15,173 - INFO - Deleting VM ctest-TestRoutersBasic-26531986-81984488 2025-04-22 23:13:15,243 - INFO - Deleting VM ctest-TestRoutersBasic-26531986-80420296 2025-04-22 23:13:15,319 - INFO - Deleting VN ctest-ext_vn-72776222 2025-04-22 23:13:15,401 - DEBUG - VN ecc5f81d-f6fd-41e1-868a-9c99f0446f24 still in use: Unable to complete operation on network ecc5f81d-f6fd-41e1-868a-9c99f0446f24. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-64663257-4baa-4010-af2a-266dfdfd4dbb'] 2025-04-22 23:13:15,401 - WARNING - Deleting VN ctest-ext_vn-72776222 failed..Will retry 2025-04-22 23:13:17,510 - DEBUG - Response for deleting network () 2025-04-22 23:13:17,510 - INFO - Deleting VN ctest-vn-35597261 2025-04-22 23:13:17,615 - DEBUG - Response for deleting network () 2025-04-22 23:13:17,882 - DEBUG - No XMPP flaps were noticed during the test 2025-04-22 23:13:17,882 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-04-22 23:13:17,882 - INFO - -------------------------------------------------------------------------------- 2025-04-22 23:13:18,597 - INFO - Deleted project: ctest-TestRoutersBasic-26531986, ID : e88fa0fe-0cd9-492b-a289-7e5caf3b18c8