2024-10-24 14:43:15,190 - INFO - Domain Default found not creating 2024-10-24 14:43:15,391 - INFO - Project ctest-TestRoutersBasic-49072087 not found, creating it 2024-10-24 14:43:15,937 - INFO - Created Project:ctest-TestRoutersBasic-49072087, ID : 7b0786ad-b7aa-465d-add4-6bbdec9efe88 2024-10-24 14:43:17,679 - INFO - ================================================================================ 2024-10-24 14:43:17,679 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-24 14:43:17,679 - 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-10-24 14:43:17,947 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.8': '0'}} with 2024-10-24 14:43:17,947 - INFO - Initial checks done. Running the testcase now 2024-10-24 14:43:17,947 - INFO - 2024-10-24 14:43:18,787 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-49072087 2024-10-24 14:43:18,889 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-49072087 2024-10-24 14:43:19,237 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49072087', 'default']} 2024-10-24 14:43:19,596 - DEBUG - Response for create_network : {'network': {'id': '48d471bc-5643-4fed-9c5c-61b6d09ce2a3', 'name': 'ctest-vn-66796618', 'tenant_id': '7b0786adb7aa465dadd46bbdec9efe88', 'project_id': '7b0786adb7aa465dadd46bbdec9efe88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49072087', 'ctest-vn-66796618'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:43:19,821 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8a4fc02-5a5e-410d-a4a2-e74947c9356c', 'name': '', 'tenant_id': '7b0786adb7aa465dadd46bbdec9efe88', 'network_id': '48d471bc-5643-4fed-9c5c-61b6d09ce2a3', 'ip_version': 4, 'cidr': '44.53.191.192/26', 'allocation_pools': [{'start': '44.53.191.194', 'end': '44.53.191.254'}], 'gateway_ip': '44.53.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.53.191.194', 'tags': [], 'project_id': '7b0786adb7aa465dadd46bbdec9efe88'}} 2024-10-24 14:43:19,848 - INFO - Created VN ctest-vn-66796618 2024-10-24 14:43:19,909 - DEBUG - VN ctest-vn-66796618 UUID is 48d471bc-5643-4fed-9c5c-61b6d09ce2a3 2024-10-24 14:43:20,325 - DEBUG - Response for create_network : {'network': {'id': '768741bc-fa4f-47a3-a8f9-509a85f5a28d', 'name': 'ctest-ext_vn-11316450', 'tenant_id': '7b0786adb7aa465dadd46bbdec9efe88', 'project_id': '7b0786adb7aa465dadd46bbdec9efe88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-49072087', 'ctest-ext_vn-11316450'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:43:20,537 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cbb482e1-3c12-4be3-b7d0-c6aebd8bf0b9', 'name': '', 'tenant_id': '7b0786adb7aa465dadd46bbdec9efe88', 'network_id': '768741bc-fa4f-47a3-a8f9-509a85f5a28d', 'ip_version': 4, 'cidr': '180.238.43.0/26', 'allocation_pools': [{'start': '180.238.43.2', 'end': '180.238.43.62'}], 'gateway_ip': '180.238.43.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.238.43.2', 'tags': [], 'project_id': '7b0786adb7aa465dadd46bbdec9efe88'}} 2024-10-24 14:43:20,559 - INFO - Created VN ctest-ext_vn-11316450 2024-10-24 14:43:20,626 - DEBUG - VN ctest-ext_vn-11316450 UUID is 768741bc-fa4f-47a3-a8f9-509a85f5a28d 2024-10-24 14:43:20,829 - DEBUG - Services list from nova: [, , ] 2024-10-24 14:43:22,039 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2142-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2142-1) 2024-10-24 14:43:23,486 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2142-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2142-1) 2024-10-24 14:43:23,594 - INFO - Setting gateway for router b94f12d8-d604-445e-8e2c-b8c96fca97b6 to network 768741bc-fa4f-47a3-a8f9-509a85f5a28d 2024-10-24 14:43:23,686 - INFO - Adding interface with subnet_id c8a4fc02-5a5e-410d-a4a2-e74947c9356c, port_id None to router b94f12d8-d604-445e-8e2c-b8c96fca97b6 2024-10-24 14:43:24,102 - INFO - Waiting for VM ctest-TestRoutersBasic-49072087-16553875 to be up.. 2024-10-24 14:43:24,276 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 14:43:29,372 - DEBUG - VM is in ACTIVE state now 2024-10-24 14:43:29,372 - INFO - VM name : ctest-TestRoutersBasic-49072087-16553875 2024-10-24 14:43:29,465 - DEBUG - VM ctest-TestRoutersBasic-49072087-16553875 ID is dc3abae2-a2c1-48b5-ab50-6554264cc0a8 2024-10-24 14:43:29,489 - DEBUG - VM ctest-TestRoutersBasic-49072087-16553875 launched on Node cn-jenkins-deploy-platform-ansible-os-2142-1 2024-10-24 14:43:29,584 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/dc3abae2-a2c1-48b5-ab50-6554264cc0a8 2024-10-24 14:43:29,937 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/dc3abae2-a2c1-48b5-ab50-6554264cc0a8 2024-10-24 14:43:29,981 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/20a41b89-bf7c-418d-a083-d2e0499e7cb4 2024-10-24 14:43:33,264 - 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') 2024-10-24 14:43:33,264 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-49072087-16553875 failed! 2024-10-24 14:43:33,329 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-49072087:ctest-vn-66796618 is 44.53.191.193 and allocation pool is NOT set 2024-10-24 14:43:35,400 - 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=8.16 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.83 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.828/4.991/8.155/3.163 ms') 2024-10-24 14:43:35,400 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-49072087-16553875 passed 2024-10-24 14:43:35,561 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:43:35,562 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-49072087-16553875, IP 44.53.191.195, Port 22 2024-10-24 14:43:35,627 - 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-10-24 14:43:35,738 - DEBUG - VM ctest-TestRoutersBasic-49072087-16553875 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-24 14:43:40,738 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:43:40,738 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-49072087-16553875, IP 44.53.191.195, Port 22 2024-10-24 14:43:40,904 - DEBUG - VM ctest-TestRoutersBasic-49072087-16553875 is ready for SSH connections 2024-10-24 14:43:40,904 - INFO - Waiting for VM ctest-TestRoutersBasic-49072087-40868275 to be up.. 2024-10-24 14:43:40,996 - DEBUG - VM is in ACTIVE state now 2024-10-24 14:43:40,996 - INFO - VM name : ctest-TestRoutersBasic-49072087-40868275 2024-10-24 14:43:41,090 - DEBUG - VM ctest-TestRoutersBasic-49072087-40868275 ID is ac7a1a9e-8bde-4547-9816-d39332eb7936 2024-10-24 14:43:41,090 - DEBUG - VM ctest-TestRoutersBasic-49072087-40868275 launched on Node cn-jenkins-deploy-platform-ansible-os-2142-1 2024-10-24 14:43:41,178 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/ac7a1a9e-8bde-4547-9816-d39332eb7936 2024-10-24 14:43:41,189 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/4df449a8-e25c-4a56-afbf-8e91aec4ccbf 2024-10-24 14:43:42,452 - 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.491 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.491/1.878/3.266/1.387 ms') 2024-10-24 14:43:42,453 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-49072087-40868275 passed 2024-10-24 14:43:42,613 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:43:42,613 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-49072087-40868275, IP 180.238.43.3, Port 22 2024-10-24 14:43:42,784 - DEBUG - VM ctest-TestRoutersBasic-49072087-40868275 is ready for SSH connections 2024-10-24 14:43:42,784 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:43:42,785 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.238.43.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-24 14:43:42,785 - DEBUG - ping -s 56 -c 3 -W 1 180.238.43.3 2024-10-24 14:43:46,562 - DEBUG - PING 180.238.43.3 (180.238.43.3): 56 data bytes 64 bytes from 180.238.43.3: seq=0 ttl=62 time=8.020 ms 64 bytes from 180.238.43.3: seq=1 ttl=62 time=1.030 ms 64 bytes from 180.238.43.3: seq=2 ttl=62 time=1.050 ms --- 180.238.43.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.030/3.366/8.020 ms 2024-10-24 14:43:46,562 - INFO - Ping to IP 180.238.43.3 from VM ctest-TestRoutersBasic-49072087-16553875 passed 2024-10-24 14:43:46,562 - INFO - Deleting interface with subnet_id c8a4fc02-5a5e-410d-a4a2-e74947c9356c, port_id None from router b94f12d8-d604-445e-8e2c-b8c96fca97b6 2024-10-24 14:43:46,825 - INFO - Deleting VM ctest-TestRoutersBasic-49072087-40868275 2024-10-24 14:43:46,914 - INFO - Deleting VM ctest-TestRoutersBasic-49072087-16553875 2024-10-24 14:43:47,025 - INFO - Deleting VN ctest-ext_vn-11316450 2024-10-24 14:43:47,129 - DEBUG - VN 768741bc-fa4f-47a3-a8f9-509a85f5a28d still in use: Unable to complete operation on network 768741bc-fa4f-47a3-a8f9-509a85f5a28d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-63f1c181-cf5d-4d7d-90c6-96fd9c60a050'] 2024-10-24 14:43:47,129 - WARNING - Deleting VN ctest-ext_vn-11316450 failed..Will retry 2024-10-24 14:43:49,256 - DEBUG - Response for deleting network () 2024-10-24 14:43:49,256 - INFO - Deleting VN ctest-vn-66796618 2024-10-24 14:43:49,379 - DEBUG - Response for deleting network () 2024-10-24 14:43:49,639 - DEBUG - No XMPP flaps were noticed during the test 2024-10-24 14:43:49,640 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-10-24 14:43:49,640 - INFO - -------------------------------------------------------------------------------- 2024-10-24 14:43:50,412 - INFO - Deleted project: ctest-TestRoutersBasic-49072087, ID : 7b0786ad-b7aa-465d-add4-6bbdec9efe88