2025-02-03 17:18:02,536 - INFO - Domain Default found not creating 2025-02-03 17:18:02,703 - INFO - Project ctest-TestRoutersBasic-45699972 not found, creating it 2025-02-03 17:18:03,207 - INFO - Created Project:ctest-TestRoutersBasic-45699972, ID : 74564606-8eb6-4935-b1ed-809d67c3f7ec 2025-02-03 17:18:04,856 - INFO - ================================================================================ 2025-02-03 17:18:04,856 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-03 17:18:04,856 - 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-02-03 17:18:05,131 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.19': '0'}} with 2025-02-03 17:18:05,131 - INFO - Initial checks done. Running the testcase now 2025-02-03 17:18:05,131 - INFO - 2025-02-03 17:18:05,946 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-45699972 2025-02-03 17:18:06,046 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-45699972 2025-02-03 17:18:06,405 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-45699972', 'default']} 2025-02-03 17:18:06,750 - DEBUG - Response for create_network : {'network': {'id': 'ace006b8-153e-4e40-9504-72c262c4362c', 'name': 'ctest-vn-93677152', 'tenant_id': '745646068eb64935b1ed809d67c3f7ec', 'project_id': '745646068eb64935b1ed809d67c3f7ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-45699972', 'ctest-vn-93677152'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 17:18:06,997 - DEBUG - Response for create_subnet : {'subnet': {'id': '57a9229b-cf45-4402-99e9-21620f201d60', 'name': '', 'tenant_id': '745646068eb64935b1ed809d67c3f7ec', 'network_id': 'ace006b8-153e-4e40-9504-72c262c4362c', 'ip_version': 4, 'cidr': '57.91.78.64/26', 'allocation_pools': [{'start': '57.91.78.66', 'end': '57.91.78.126'}], 'gateway_ip': '57.91.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.91.78.66', 'tags': [], 'project_id': '745646068eb64935b1ed809d67c3f7ec'}} 2025-02-03 17:18:07,021 - INFO - Created VN ctest-vn-93677152 2025-02-03 17:18:07,077 - DEBUG - VN ctest-vn-93677152 UUID is ace006b8-153e-4e40-9504-72c262c4362c 2025-02-03 17:18:07,474 - DEBUG - Response for create_network : {'network': {'id': '06aaaeb4-13e3-4ca6-a3eb-32eacb142157', 'name': 'ctest-ext_vn-83131811', 'tenant_id': '745646068eb64935b1ed809d67c3f7ec', 'project_id': '745646068eb64935b1ed809d67c3f7ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-45699972', 'ctest-ext_vn-83131811'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 17:18:07,661 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc6dd5e1-06e6-42a7-b035-c56aa442c06a', 'name': '', 'tenant_id': '745646068eb64935b1ed809d67c3f7ec', 'network_id': '06aaaeb4-13e3-4ca6-a3eb-32eacb142157', 'ip_version': 4, 'cidr': '148.170.117.0/26', 'allocation_pools': [{'start': '148.170.117.2', 'end': '148.170.117.62'}], 'gateway_ip': '148.170.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.170.117.2', 'tags': [], 'project_id': '745646068eb64935b1ed809d67c3f7ec'}} 2025-02-03 17:18:07,683 - INFO - Created VN ctest-ext_vn-83131811 2025-02-03 17:18:07,741 - DEBUG - VN ctest-ext_vn-83131811 UUID is 06aaaeb4-13e3-4ca6-a3eb-32eacb142157 2025-02-03 17:18:07,946 - DEBUG - Services list from nova: [, , ] 2025-02-03 17:18:09,156 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2681-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2681-1) 2025-02-03 17:18:10,504 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2681-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2681-1) 2025-02-03 17:18:10,622 - INFO - Setting gateway for router 14cd3648-7ab9-43ad-81b3-d6bf042c1a0a to network 06aaaeb4-13e3-4ca6-a3eb-32eacb142157 2025-02-03 17:18:10,738 - INFO - Adding interface with subnet_id 57a9229b-cf45-4402-99e9-21620f201d60, port_id None to router 14cd3648-7ab9-43ad-81b3-d6bf042c1a0a 2025-02-03 17:18:11,308 - INFO - Waiting for VM ctest-TestRoutersBasic-45699972-68211279 to be up.. 2025-02-03 17:18:11,547 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-03 17:18:16,644 - DEBUG - VM is in ACTIVE state now 2025-02-03 17:18:16,644 - INFO - VM name : ctest-TestRoutersBasic-45699972-68211279 2025-02-03 17:18:16,737 - DEBUG - VM ctest-TestRoutersBasic-45699972-68211279 ID is 993f94f5-001b-484a-94a9-8232aa7cf73b 2025-02-03 17:18:16,758 - DEBUG - VM ctest-TestRoutersBasic-45699972-68211279 launched on Node cn-jenkins-deploy-platform-ansible-os-2681-1 2025-02-03 17:18:16,865 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/993f94f5-001b-484a-94a9-8232aa7cf73b 2025-02-03 17:18:17,203 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/993f94f5-001b-484a-94a9-8232aa7cf73b 2025-02-03 17:18:17,238 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/a41ddcb6-d1f5-418b-9fcc-1d5e0f0736cd 2025-02-03 17:18:20,516 - 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-02-03 17:18:20,516 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-45699972-68211279 failed! 2025-02-03 17:18:20,582 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-45699972:ctest-vn-93677152 is 57.91.78.65 and allocation pool is NOT set 2025-02-03 17:18:22,650 - 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.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.472 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.472/2.411/4.350/1.939 ms') 2025-02-03 17:18:22,650 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-45699972-68211279 passed 2025-02-03 17:18:22,806 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:18:22,806 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-45699972-68211279, IP 57.91.78.67, Port 22 2025-02-03 17:18:22,962 - DEBUG - VM ctest-TestRoutersBasic-45699972-68211279 is ready for SSH connections 2025-02-03 17:18:22,962 - INFO - Waiting for VM ctest-TestRoutersBasic-45699972-76051953 to be up.. 2025-02-03 17:18:23,058 - DEBUG - VM is in ACTIVE state now 2025-02-03 17:18:23,059 - INFO - VM name : ctest-TestRoutersBasic-45699972-76051953 2025-02-03 17:18:23,144 - DEBUG - VM ctest-TestRoutersBasic-45699972-76051953 ID is 40eebdc5-2ef0-4203-be6f-ec097c79401d 2025-02-03 17:18:23,145 - DEBUG - VM ctest-TestRoutersBasic-45699972-76051953 launched on Node cn-jenkins-deploy-platform-ansible-os-2681-1 2025-02-03 17:18:23,252 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/40eebdc5-2ef0-4203-be6f-ec097c79401d 2025-02-03 17:18:23,263 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/38f2d5bc-f27f-4052-9d1e-2c193b72c1b9 2025-02-03 17:18:24,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=4.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.00 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 = 2.001/3.473/4.946/1.472 ms') 2025-02-03 17:18:24,513 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-45699972-76051953 passed 2025-02-03 17:18:24,665 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:18:24,666 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-45699972-76051953, IP 148.170.117.3, Port 22 2025-02-03 17:18:24,732 - 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-02-03 17:18:24,826 - DEBUG - VM ctest-TestRoutersBasic-45699972-76051953 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-03 17:18:29,827 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:18:29,827 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-45699972-76051953, IP 148.170.117.3, Port 22 2025-02-03 17:18:29,995 - DEBUG - VM ctest-TestRoutersBasic-45699972-76051953 is ready for SSH connections 2025-02-03 17:18:29,995 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 17:18:29,996 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 148.170.117.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2025-02-03 17:18:29,996 - DEBUG - ping -s 56 -c 3 -W 1 148.170.117.3 2025-02-03 17:18:33,745 - DEBUG - PING 148.170.117.3 (148.170.117.3): 56 data bytes 64 bytes from 148.170.117.3: seq=0 ttl=62 time=6.701 ms 64 bytes from 148.170.117.3: seq=1 ttl=62 time=1.113 ms 64 bytes from 148.170.117.3: seq=2 ttl=62 time=1.002 ms --- 148.170.117.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.002/2.938/6.701 ms 2025-02-03 17:18:33,745 - INFO - Ping to IP 148.170.117.3 from VM ctest-TestRoutersBasic-45699972-68211279 passed 2025-02-03 17:18:33,745 - INFO - Deleting interface with subnet_id 57a9229b-cf45-4402-99e9-21620f201d60, port_id None from router 14cd3648-7ab9-43ad-81b3-d6bf042c1a0a 2025-02-03 17:18:34,025 - INFO - Deleting VM ctest-TestRoutersBasic-45699972-76051953 2025-02-03 17:18:34,118 - INFO - Deleting VM ctest-TestRoutersBasic-45699972-68211279 2025-02-03 17:18:34,218 - INFO - Deleting VN ctest-ext_vn-83131811 2025-02-03 17:18:34,342 - DEBUG - VN 06aaaeb4-13e3-4ca6-a3eb-32eacb142157 still in use: Unable to complete operation on network 06aaaeb4-13e3-4ca6-a3eb-32eacb142157. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8b677c7b-551f-4e03-bef7-dfe9392604f3'] 2025-02-03 17:18:34,342 - WARNING - Deleting VN ctest-ext_vn-83131811 failed..Will retry 2025-02-03 17:18:36,458 - DEBUG - Response for deleting network () 2025-02-03 17:18:36,458 - INFO - Deleting VN ctest-vn-93677152 2025-02-03 17:18:36,585 - DEBUG - Response for deleting network () 2025-02-03 17:18:36,844 - DEBUG - No XMPP flaps were noticed during the test
2025-02-03 17:18:36,844 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-02-03 17:18:36,844 - INFO - -------------------------------------------------------------------------------- 2025-02-03 17:18:37,556 - INFO - Deleted project: ctest-TestRoutersBasic-45699972, ID : 74564606-8eb6-4935-b1ed-809d67c3f7ec