2024-09-03 17:52:14,736 - INFO - Domain Default found not creating 2024-09-03 17:52:14,931 - INFO - Project ctest-TestRoutersBasic-67397308 not found, creating it 2024-09-03 17:52:15,426 - INFO - Created Project:ctest-TestRoutersBasic-67397308, ID : 00d32c74-8aa3-4f9d-a454-63c65e410662 2024-09-03 17:52:17,242 - INFO - ================================================================================ 2024-09-03 17:52:17,242 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-03 17:52:17,242 - 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-09-03 17:52:17,510 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.5': '0'}} with 2024-09-03 17:52:17,510 - INFO - Initial checks done. Running the testcase now 2024-09-03 17:52:17,511 - INFO - 2024-09-03 17:52:18,328 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-67397308 2024-09-03 17:52:18,426 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-67397308 2024-09-03 17:52:18,746 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67397308', 'default']} 2024-09-03 17:52:19,084 - DEBUG - Response for create_network : {'network': {'id': 'a2a216d5-8ff9-46f2-93fc-dd686630f204', 'name': 'ctest-vn-36361611', 'tenant_id': '00d32c748aa34f9da45463c65e410662', 'project_id': '00d32c748aa34f9da45463c65e410662', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67397308', 'ctest-vn-36361611'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 17:52:19,277 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6a60130-2f47-488e-be9e-c921873368e8', 'name': '', 'tenant_id': '00d32c748aa34f9da45463c65e410662', 'network_id': 'a2a216d5-8ff9-46f2-93fc-dd686630f204', 'ip_version': 4, 'cidr': '76.118.35.192/26', 'allocation_pools': [{'start': '76.118.35.194', 'end': '76.118.35.254'}], 'gateway_ip': '76.118.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.118.35.194', 'tags': [], 'project_id': '00d32c748aa34f9da45463c65e410662'}} 2024-09-03 17:52:19,301 - INFO - Created VN ctest-vn-36361611 2024-09-03 17:52:19,354 - DEBUG - VN ctest-vn-36361611 UUID is a2a216d5-8ff9-46f2-93fc-dd686630f204 2024-09-03 17:52:19,706 - DEBUG - Response for create_network : {'network': {'id': '8d5adc60-c21d-4de1-9f2a-cc02da5e8052', 'name': 'ctest-ext_vn-11991725', 'tenant_id': '00d32c748aa34f9da45463c65e410662', 'project_id': '00d32c748aa34f9da45463c65e410662', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67397308', 'ctest-ext_vn-11991725'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 17:52:19,884 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b1ac482-bc45-482d-a6c1-945ff2c15d19', 'name': '', 'tenant_id': '00d32c748aa34f9da45463c65e410662', 'network_id': '8d5adc60-c21d-4de1-9f2a-cc02da5e8052', 'ip_version': 4, 'cidr': '184.58.149.64/26', 'allocation_pools': [{'start': '184.58.149.66', 'end': '184.58.149.126'}], 'gateway_ip': '184.58.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.58.149.66', 'tags': [], 'project_id': '00d32c748aa34f9da45463c65e410662'}} 2024-09-03 17:52:19,906 - INFO - Created VN ctest-ext_vn-11991725 2024-09-03 17:52:19,958 - DEBUG - VN ctest-ext_vn-11991725 UUID is 8d5adc60-c21d-4de1-9f2a-cc02da5e8052 2024-09-03 17:52:20,143 - DEBUG - Services list from nova: [, , ] 2024-09-03 17:52:21,325 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1840-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1840-1) 2024-09-03 17:52:22,610 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1840-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1840-1) 2024-09-03 17:52:22,689 - INFO - Setting gateway for router d9e88f2b-e4f8-43a7-bc88-61108ebf934a to network 8d5adc60-c21d-4de1-9f2a-cc02da5e8052 2024-09-03 17:52:22,775 - INFO - Adding interface with subnet_id f6a60130-2f47-488e-be9e-c921873368e8, port_id None to router d9e88f2b-e4f8-43a7-bc88-61108ebf934a 2024-09-03 17:52:23,137 - INFO - Waiting for VM ctest-TestRoutersBasic-67397308-62543525 to be up.. 2024-09-03 17:52:23,287 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 17:52:28,406 - DEBUG - VM is in ACTIVE state now 2024-09-03 17:52:28,406 - INFO - VM name : ctest-TestRoutersBasic-67397308-62543525 2024-09-03 17:52:28,510 - DEBUG - VM ctest-TestRoutersBasic-67397308-62543525 ID is e3fc3e24-b68c-45f1-a955-564608ce4f1a 2024-09-03 17:52:28,545 - DEBUG - VM ctest-TestRoutersBasic-67397308-62543525 launched on Node cn-jenkins-deploy-platform-ansible-os-1840-1 2024-09-03 17:52:28,657 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/e3fc3e24-b68c-45f1-a955-564608ce4f1a 2024-09-03 17:52:28,997 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/e3fc3e24-b68c-45f1-a955-564608ce4f1a 2024-09-03 17:52:29,036 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/80644444-f00c-4873-9fd9-add2ed63a9dd 2024-09-03 17:52:32,305 - 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 1018ms') 2024-09-03 17:52:32,306 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67397308-62543525 failed! 2024-09-03 17:52:32,362 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-67397308:ctest-vn-36361611 is 76.118.35.193 and allocation pool is NOT set 2024-09-03 17:52:34,433 - 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=7.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.658 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.658/4.284/7.910/3.626 ms') 2024-09-03 17:52:34,433 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67397308-62543525 passed 2024-09-03 17:52:34,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:52:34,586 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67397308-62543525, IP 76.118.35.195, Port 22 2024-09-03 17:52:34,766 - DEBUG - VM ctest-TestRoutersBasic-67397308-62543525 is ready for SSH connections 2024-09-03 17:52:34,766 - INFO - Waiting for VM ctest-TestRoutersBasic-67397308-09095951 to be up.. 2024-09-03 17:52:34,863 - DEBUG - VM is in ACTIVE state now 2024-09-03 17:52:34,864 - INFO - VM name : ctest-TestRoutersBasic-67397308-09095951 2024-09-03 17:52:34,949 - DEBUG - VM ctest-TestRoutersBasic-67397308-09095951 ID is dce4b488-71ec-40d1-b913-4eb125c60a76 2024-09-03 17:52:34,949 - DEBUG - VM ctest-TestRoutersBasic-67397308-09095951 launched on Node cn-jenkins-deploy-platform-ansible-os-1840-1 2024-09-03 17:52:35,039 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/dce4b488-71ec-40d1-b913-4eb125c60a76 2024-09-03 17:52:35,049 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/fa9d635a-26c3-4614-8550-d67b4bdd5563 2024-09-03 17:52:36,289 - 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=2.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.570 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.570/1.560/2.550/0.990 ms') 2024-09-03 17:52:36,289 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-67397308-09095951 passed 2024-09-03 17:52:36,450 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:52:36,450 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67397308-09095951, IP 184.58.149.67, Port 22 2024-09-03 17:52:36,516 - 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': ''} 2024-09-03 17:52:36,610 - DEBUG - VM ctest-TestRoutersBasic-67397308-09095951 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-03 17:52:41,611 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:52:41,611 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67397308-09095951, IP 184.58.149.67, Port 22 2024-09-03 17:52:41,788 - DEBUG - VM ctest-TestRoutersBasic-67397308-09095951 is ready for SSH connections 2024-09-03 17:52:41,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:52:41,788 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.58.149.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-03 17:52:41,788 - DEBUG - ping -s 56 -c 3 -W 1 184.58.149.67 2024-09-03 17:52:45,946 - DEBUG - PING 184.58.149.67 (184.58.149.67): 56 data bytes 64 bytes from 184.58.149.67: seq=0 ttl=62 time=6.106 ms 64 bytes from 184.58.149.67: seq=1 ttl=62 time=1.322 ms 64 bytes from 184.58.149.67: seq=2 ttl=62 time=1.101 ms --- 184.58.149.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.101/2.843/6.106 ms 2024-09-03 17:52:45,946 - INFO - Ping to IP 184.58.149.67 from VM ctest-TestRoutersBasic-67397308-62543525 passed 2024-09-03 17:52:45,947 - INFO - Deleting interface with subnet_id f6a60130-2f47-488e-be9e-c921873368e8, port_id None from router d9e88f2b-e4f8-43a7-bc88-61108ebf934a 2024-09-03 17:52:46,192 - INFO - Deleting VM ctest-TestRoutersBasic-67397308-09095951 2024-09-03 17:52:46,279 - INFO - Deleting VM ctest-TestRoutersBasic-67397308-62543525 2024-09-03 17:52:46,378 - INFO - Deleting VN ctest-ext_vn-11991725 2024-09-03 17:52:46,486 - DEBUG - VN 8d5adc60-c21d-4de1-9f2a-cc02da5e8052 still in use: Unable to complete operation on network 8d5adc60-c21d-4de1-9f2a-cc02da5e8052. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d3d2ce2f-eee6-4458-b7be-6385585e7f1d'] 2024-09-03 17:52:46,486 - WARNING - Deleting VN ctest-ext_vn-11991725 failed..Will retry 2024-09-03 17:52:48,618 - DEBUG - Response for deleting network () 2024-09-03 17:52:48,618 - INFO - Deleting VN ctest-vn-36361611 2024-09-03 17:52:48,739 - DEBUG - Response for deleting network () 2024-09-03 17:52:48,996 - DEBUG - No XMPP flaps were noticed during the test
2024-09-03 17:52:48,996 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2024-09-03 17:52:48,996 - INFO - -------------------------------------------------------------------------------- 2024-09-03 17:52:49,757 - INFO - Deleted project: ctest-TestRoutersBasic-67397308, ID : 00d32c74-8aa3-4f9d-a454-63c65e410662