2024-08-26 17:11:21,985 - INFO - Domain Default found not creating 2024-08-26 17:11:22,149 - INFO - Project ctest-TestRoutersBasic-51820673 not found, creating it 2024-08-26 17:11:22,623 - INFO - Created Project:ctest-TestRoutersBasic-51820673, ID : d9062c45-b5bf-431e-b967-9d11659a171c 2024-08-26 17:11:24,367 - INFO - ================================================================================ 2024-08-26 17:11:24,367 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 17:11:24,367 - 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-08-26 17:11:24,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.11': '0'}} with 2024-08-26 17:11:24,626 - INFO - Initial checks done. Running the testcase now 2024-08-26 17:11:24,626 - INFO - 2024-08-26 17:11:25,329 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-51820673 2024-08-26 17:11:25,424 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-51820673 2024-08-26 17:11:25,748 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51820673', 'default']} 2024-08-26 17:11:26,046 - DEBUG - Response for create_network : {'network': {'id': '100cefc2-747e-4e6c-8aea-e15e418b1ce2', 'name': 'ctest-vn-63095224', 'tenant_id': 'd9062c45b5bf431eb9679d11659a171c', 'project_id': 'd9062c45b5bf431eb9679d11659a171c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51820673', 'ctest-vn-63095224'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 17:11:26,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '89dd05e1-903b-4c22-b601-d0e1aecba0e0', 'name': '', 'tenant_id': 'd9062c45b5bf431eb9679d11659a171c', 'network_id': '100cefc2-747e-4e6c-8aea-e15e418b1ce2', 'ip_version': 4, 'cidr': '17.93.57.192/26', 'allocation_pools': [{'start': '17.93.57.194', 'end': '17.93.57.254'}], 'gateway_ip': '17.93.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.93.57.194', 'tags': [], 'project_id': 'd9062c45b5bf431eb9679d11659a171c'}} 2024-08-26 17:11:26,223 - INFO - Created VN ctest-vn-63095224 2024-08-26 17:11:26,276 - DEBUG - VN ctest-vn-63095224 UUID is 100cefc2-747e-4e6c-8aea-e15e418b1ce2 2024-08-26 17:11:26,618 - DEBUG - Response for create_network : {'network': {'id': '86bde92d-5247-493c-8c25-f6ac9f6d3f94', 'name': 'ctest-ext_vn-09466323', 'tenant_id': 'd9062c45b5bf431eb9679d11659a171c', 'project_id': 'd9062c45b5bf431eb9679d11659a171c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-51820673', 'ctest-ext_vn-09466323'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 17:11:26,777 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f94baf9a-64b2-4e5e-9984-f64d1f8f5137', 'name': '', 'tenant_id': 'd9062c45b5bf431eb9679d11659a171c', 'network_id': '86bde92d-5247-493c-8c25-f6ac9f6d3f94', 'ip_version': 4, 'cidr': '67.16.120.64/26', 'allocation_pools': [{'start': '67.16.120.66', 'end': '67.16.120.126'}], 'gateway_ip': '67.16.120.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.16.120.66', 'tags': [], 'project_id': 'd9062c45b5bf431eb9679d11659a171c'}} 2024-08-26 17:11:26,796 - INFO - Created VN ctest-ext_vn-09466323 2024-08-26 17:11:26,848 - DEBUG - VN ctest-ext_vn-09466323 UUID is 86bde92d-5247-493c-8c25-f6ac9f6d3f94 2024-08-26 17:11:27,014 - DEBUG - Services list from nova: [, , ] 2024-08-26 17:11:28,037 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1764-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1764-1) 2024-08-26 17:11:29,125 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1764-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1764-1) 2024-08-26 17:11:29,194 - INFO - Setting gateway for router 27fd2b1f-fad4-404f-9997-ce6ce67dcf20 to network 86bde92d-5247-493c-8c25-f6ac9f6d3f94 2024-08-26 17:11:29,319 - INFO - Adding interface with subnet_id 89dd05e1-903b-4c22-b601-d0e1aecba0e0, port_id None to router 27fd2b1f-fad4-404f-9997-ce6ce67dcf20 2024-08-26 17:11:30,244 - INFO - Waiting for VM ctest-TestRoutersBasic-51820673-78059605 to be up.. 2024-08-26 17:11:30,403 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 17:11:35,504 - DEBUG - VM is in ACTIVE state now 2024-08-26 17:11:35,504 - INFO - VM name : ctest-TestRoutersBasic-51820673-78059605 2024-08-26 17:11:35,610 - DEBUG - VM ctest-TestRoutersBasic-51820673-78059605 ID is 8cf5eb0a-9949-475a-8e16-930c0532a22b 2024-08-26 17:11:35,635 - DEBUG - VM ctest-TestRoutersBasic-51820673-78059605 launched on Node cn-jenkins-deploy-platform-ansible-os-1764-1 2024-08-26 17:11:35,742 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/8cf5eb0a-9949-475a-8e16-930c0532a22b 2024-08-26 17:11:36,046 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/8cf5eb0a-9949-475a-8e16-930c0532a22b 2024-08-26 17:11:36,083 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/8d1324c1-bf07-486c-8818-3ee1d1f76a9d 2024-08-26 17:11:39,334 - 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 1012ms') 2024-08-26 17:11:39,334 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51820673-78059605 failed! 2024-08-26 17:11:39,388 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-51820673:ctest-vn-63095224 is 17.93.57.193 and allocation pool is NOT set 2024-08-26 17:11:43,463 - 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=2 ttl=63 time=9.87 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1015ms\r\nrtt min/avg/max/mdev = 9.874/9.874/9.874/0.000 ms') 2024-08-26 17:11:43,464 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-51820673-78059605 passed 2024-08-26 17:11:43,616 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 17:11:43,616 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51820673-78059605, IP 17.93.57.195, Port 22 2024-08-26 17:11:43,672 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-26 17:11:43,750 - DEBUG - VM ctest-TestRoutersBasic-51820673-78059605 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 17:11:48,751 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 17:11:48,751 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51820673-78059605, IP 17.93.57.195, Port 22 2024-08-26 17:11:48,908 - DEBUG - VM ctest-TestRoutersBasic-51820673-78059605 is ready for SSH connections 2024-08-26 17:11:48,908 - INFO - Waiting for VM ctest-TestRoutersBasic-51820673-60931474 to be up.. 2024-08-26 17:11:48,987 - DEBUG - VM is in ACTIVE state now 2024-08-26 17:11:48,988 - INFO - VM name : ctest-TestRoutersBasic-51820673-60931474 2024-08-26 17:11:49,064 - DEBUG - VM ctest-TestRoutersBasic-51820673-60931474 ID is 147a3e87-4afb-467b-b38f-9dde347b7601 2024-08-26 17:11:49,064 - DEBUG - VM ctest-TestRoutersBasic-51820673-60931474 launched on Node cn-jenkins-deploy-platform-ansible-os-1764-1 2024-08-26 17:11:49,143 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/147a3e87-4afb-467b-b38f-9dde347b7601 2024-08-26 17:11:49,151 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/297e41cf-eee5-4bba-bf4f-8e22dbb653ed 2024-08-26 17:11:50,385 - 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.27 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.348 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.348/1.808/3.269/1.460 ms') 2024-08-26 17:11:50,386 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-51820673-60931474 passed 2024-08-26 17:11:50,541 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 17:11:50,541 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-51820673-60931474, IP 67.16.120.67, Port 22 2024-08-26 17:11:50,696 - DEBUG - VM ctest-TestRoutersBasic-51820673-60931474 is ready for SSH connections 2024-08-26 17:11:50,696 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 17:11:50,696 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.16.120.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-08-26 17:11:50,696 - DEBUG - ping -s 56 -c 3 -W 1 67.16.120.67 2024-08-26 17:11:54,390 - DEBUG - PING 67.16.120.67 (67.16.120.67): 56 data bytes 64 bytes from 67.16.120.67: seq=0 ttl=62 time=4.597 ms 64 bytes from 67.16.120.67: seq=1 ttl=62 time=0.905 ms 64 bytes from 67.16.120.67: seq=2 ttl=62 time=0.900 ms --- 67.16.120.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.900/2.134/4.597 ms 2024-08-26 17:11:54,391 - INFO - Ping to IP 67.16.120.67 from VM ctest-TestRoutersBasic-51820673-78059605 passed 2024-08-26 17:11:54,391 - INFO - Deleting interface with subnet_id 89dd05e1-903b-4c22-b601-d0e1aecba0e0, port_id None from router 27fd2b1f-fad4-404f-9997-ce6ce67dcf20 2024-08-26 17:11:54,634 - INFO - Deleting VM ctest-TestRoutersBasic-51820673-60931474 2024-08-26 17:11:54,719 - INFO - Deleting VM ctest-TestRoutersBasic-51820673-78059605 2024-08-26 17:11:54,809 - INFO - Deleting VN ctest-ext_vn-09466323 2024-08-26 17:11:54,887 - DEBUG - VN 86bde92d-5247-493c-8c25-f6ac9f6d3f94 still in use: Unable to complete operation on network 86bde92d-5247-493c-8c25-f6ac9f6d3f94. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-79a307df-0b41-497e-ac6f-0dba54040b14'] 2024-08-26 17:11:54,887 - WARNING - Deleting VN ctest-ext_vn-09466323 failed..Will retry 2024-08-26 17:11:57,004 - DEBUG - Response for deleting network () 2024-08-26 17:11:57,004 - INFO - Deleting VN ctest-vn-63095224 2024-08-26 17:11:57,106 - DEBUG - Response for deleting network () 2024-08-26 17:11:57,366 - DEBUG - No XMPP flaps were noticed during the test
2024-08-26 17:11:57,366 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2024-08-26 17:11:57,366 - INFO - -------------------------------------------------------------------------------- 2024-08-26 17:11:58,126 - INFO - Deleted project: ctest-TestRoutersBasic-51820673, ID : d9062c45-b5bf-431e-b967-9d11659a171c