2024-11-07 17:48:34,740 - INFO - Domain Default found not creating 2024-11-07 17:48:34,914 - INFO - Project ctest-TestRoutersBasic-94327924 not found, creating it 2024-11-07 17:48:35,394 - INFO - Created Project:ctest-TestRoutersBasic-94327924, ID : ea42f390-b3d9-4a45-a4c2-3d8705409b85 2024-11-07 17:48:37,070 - INFO - ================================================================================ 2024-11-07 17:48:37,070 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-07 17:48:37,070 - 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-11-07 17:48:37,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.24': '0'}} with 2024-11-07 17:48:37,326 - INFO - Initial checks done. Running the testcase now 2024-11-07 17:48:37,326 - INFO - 2024-11-07 17:48:38,361 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94327924 2024-11-07 17:48:38,485 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94327924 2024-11-07 17:48:38,851 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94327924', 'default']} 2024-11-07 17:48:39,202 - DEBUG - Response for create_network : {'network': {'id': '28d075fa-c5bb-4c17-91f0-e3d96526a870', 'name': 'ctest-vn-20371479', 'tenant_id': 'ea42f390b3d94a45a4c23d8705409b85', 'project_id': 'ea42f390b3d94a45a4c23d8705409b85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94327924', 'ctest-vn-20371479'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 17:48:39,408 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7fde4e2-f50a-423f-8be8-da06307edf97', 'name': '', 'tenant_id': 'ea42f390b3d94a45a4c23d8705409b85', 'network_id': '28d075fa-c5bb-4c17-91f0-e3d96526a870', 'ip_version': 4, 'cidr': '161.51.232.192/26', 'allocation_pools': [{'start': '161.51.232.194', 'end': '161.51.232.254'}], 'gateway_ip': '161.51.232.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.51.232.194', 'tags': [], 'project_id': 'ea42f390b3d94a45a4c23d8705409b85'}} 2024-11-07 17:48:39,429 - INFO - Created VN ctest-vn-20371479 2024-11-07 17:48:39,488 - DEBUG - VN ctest-vn-20371479 UUID is 28d075fa-c5bb-4c17-91f0-e3d96526a870 2024-11-07 17:48:39,864 - DEBUG - Response for create_network : {'network': {'id': '1eda1800-9fee-43bb-a10b-87f072643dc4', 'name': 'ctest-ext_vn-85512333', 'tenant_id': 'ea42f390b3d94a45a4c23d8705409b85', 'project_id': 'ea42f390b3d94a45a4c23d8705409b85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94327924', 'ctest-ext_vn-85512333'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 17:48:40,098 - DEBUG - Response for create_subnet : {'subnet': {'id': '539ae402-01ac-48ba-8a13-f189bbc7fcd8', 'name': '', 'tenant_id': 'ea42f390b3d94a45a4c23d8705409b85', 'network_id': '1eda1800-9fee-43bb-a10b-87f072643dc4', 'ip_version': 4, 'cidr': '4.202.78.64/26', 'allocation_pools': [{'start': '4.202.78.66', 'end': '4.202.78.126'}], 'gateway_ip': '4.202.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.202.78.66', 'tags': [], 'project_id': 'ea42f390b3d94a45a4c23d8705409b85'}} 2024-11-07 17:48:40,125 - INFO - Created VN ctest-ext_vn-85512333 2024-11-07 17:48:40,184 - DEBUG - VN ctest-ext_vn-85512333 UUID is 1eda1800-9fee-43bb-a10b-87f072643dc4 2024-11-07 17:48:40,389 - DEBUG - Services list from nova: [, , ] 2024-11-07 17:48:41,574 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2221-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2221-1) 2024-11-07 17:48:42,878 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2221-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2221-1) 2024-11-07 17:48:42,976 - INFO - Setting gateway for router 1b890e21-74e5-4569-85d0-097cf9fc61e9 to network 1eda1800-9fee-43bb-a10b-87f072643dc4 2024-11-07 17:48:43,049 - INFO - Adding interface with subnet_id f7fde4e2-f50a-423f-8be8-da06307edf97, port_id None to router 1b890e21-74e5-4569-85d0-097cf9fc61e9 2024-11-07 17:48:43,718 - INFO - Waiting for VM ctest-TestRoutersBasic-94327924-84233429 to be up.. 2024-11-07 17:48:43,989 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 17:48:49,081 - DEBUG - VM is in ACTIVE state now 2024-11-07 17:48:49,081 - INFO - VM name : ctest-TestRoutersBasic-94327924-84233429 2024-11-07 17:48:49,180 - DEBUG - VM ctest-TestRoutersBasic-94327924-84233429 ID is a160c3b7-ccfc-48de-b412-e7b8f29beab1 2024-11-07 17:48:49,202 - DEBUG - VM ctest-TestRoutersBasic-94327924-84233429 launched on Node cn-jenkins-deploy-platform-ansible-os-2221-1 2024-11-07 17:48:49,296 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/a160c3b7-ccfc-48de-b412-e7b8f29beab1 2024-11-07 17:48:49,644 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/a160c3b7-ccfc-48de-b412-e7b8f29beab1 2024-11-07 17:48:49,689 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/981a063b-ce0a-41fe-ae6d-e21ae5fd0dee 2024-11-07 17:48:52,986 - 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') 2024-11-07 17:48:52,986 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94327924-84233429 failed! 2024-11-07 17:48:53,048 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94327924:ctest-vn-20371479 is 161.51.232.193 and allocation pool is NOT set 2024-11-07 17:48:55,115 - 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.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.43 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 = 2.432/2.882/3.333/0.450 ms') 2024-11-07 17:48:55,115 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94327924-84233429 passed 2024-11-07 17:48:55,276 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:48:55,276 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94327924-84233429, IP 161.51.232.195, Port 22 2024-11-07 17:48:55,342 - 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-11-07 17:48:55,436 - DEBUG - VM ctest-TestRoutersBasic-94327924-84233429 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-07 17:49:00,436 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:49:00,436 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94327924-84233429, IP 161.51.232.195, Port 22 2024-11-07 17:49:00,596 - DEBUG - VM ctest-TestRoutersBasic-94327924-84233429 is ready for SSH connections 2024-11-07 17:49:00,596 - INFO - Waiting for VM ctest-TestRoutersBasic-94327924-35441493 to be up.. 2024-11-07 17:49:00,693 - DEBUG - VM is in ACTIVE state now 2024-11-07 17:49:00,693 - INFO - VM name : ctest-TestRoutersBasic-94327924-35441493 2024-11-07 17:49:00,782 - DEBUG - VM ctest-TestRoutersBasic-94327924-35441493 ID is c14c7069-4e84-4eb0-abdd-879f6ae49942 2024-11-07 17:49:00,782 - DEBUG - VM ctest-TestRoutersBasic-94327924-35441493 launched on Node cn-jenkins-deploy-platform-ansible-os-2221-1 2024-11-07 17:49:00,893 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/c14c7069-4e84-4eb0-abdd-879f6ae49942 2024-11-07 17:49:00,978 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/3d712d0b-0ace-4904-abd6-b8444b27916a 2024-11-07 17:49:02,236 - 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.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.420 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.420/1.838/3.257/1.418 ms') 2024-11-07 17:49:02,236 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94327924-35441493 passed 2024-11-07 17:49:02,400 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:49:02,400 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94327924-35441493, IP 4.202.78.67, Port 22 2024-11-07 17:49:02,569 - DEBUG - VM ctest-TestRoutersBasic-94327924-35441493 is ready for SSH connections 2024-11-07 17:49:02,570 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:49:02,570 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.202.78.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2024-11-07 17:49:02,570 - DEBUG - ping -s 56 -c 3 -W 1 4.202.78.67 2024-11-07 17:49:06,352 - DEBUG - PING 4.202.78.67 (4.202.78.67): 56 data bytes 64 bytes from 4.202.78.67: seq=0 ttl=62 time=4.904 ms 64 bytes from 4.202.78.67: seq=1 ttl=62 time=1.021 ms 64 bytes from 4.202.78.67: seq=2 ttl=62 time=0.965 ms --- 4.202.78.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.965/2.296/4.904 ms 2024-11-07 17:49:06,352 - INFO - Ping to IP 4.202.78.67 from VM ctest-TestRoutersBasic-94327924-84233429 passed 2024-11-07 17:49:06,352 - INFO - Deleting interface with subnet_id f7fde4e2-f50a-423f-8be8-da06307edf97, port_id None from router 1b890e21-74e5-4569-85d0-097cf9fc61e9 2024-11-07 17:49:06,636 - INFO - Deleting VM ctest-TestRoutersBasic-94327924-35441493 2024-11-07 17:49:06,705 - INFO - Deleting VM ctest-TestRoutersBasic-94327924-84233429 2024-11-07 17:49:06,782 - INFO - Deleting VN ctest-ext_vn-85512333 2024-11-07 17:49:06,860 - DEBUG - VN 1eda1800-9fee-43bb-a10b-87f072643dc4 still in use: Unable to complete operation on network 1eda1800-9fee-43bb-a10b-87f072643dc4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-31b4512f-a6a3-4372-9bcc-f93763b7ecbb'] 2024-11-07 17:49:06,861 - WARNING - Deleting VN ctest-ext_vn-85512333 failed..Will retry 2024-11-07 17:49:08,975 - DEBUG - Response for deleting network () 2024-11-07 17:49:08,975 - INFO - Deleting VN ctest-vn-20371479 2024-11-07 17:49:09,109 - DEBUG - Response for deleting network () 2024-11-07 17:49:09,363 - DEBUG - No XMPP flaps were noticed during the test 2024-11-07 17:49:09,363 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-11-07 17:49:09,363 - INFO - -------------------------------------------------------------------------------- 2024-11-07 17:49:10,118 - INFO - Deleted project: ctest-TestRoutersBasic-94327924, ID : ea42f390-b3d9-4a45-a4c2-3d8705409b85