2024-11-03 22:12:28,607 - INFO - Domain Default found not creating 2024-11-03 22:12:28,817 - INFO - Project ctest-TestRoutersBasic-33787687 not found, creating it 2024-11-03 22:12:29,347 - INFO - Created Project:ctest-TestRoutersBasic-33787687, ID : 31b21a4d-70ca-410a-bfec-01e89ee11602 2024-11-03 22:12:31,362 - INFO - ================================================================================ 2024-11-03 22:12:31,362 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-03 22:12:31,362 - 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-03 22:12:31,635 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.10': '0'}} with 2024-11-03 22:12:31,635 - INFO - Initial checks done. Running the testcase now 2024-11-03 22:12:31,636 - INFO - 2024-11-03 22:12:32,526 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-33787687 2024-11-03 22:12:32,629 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-33787687 2024-11-03 22:12:32,989 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33787687', 'default']} 2024-11-03 22:12:33,802 - DEBUG - Response for create_network : {'network': {'id': 'c6f84058-b400-4f0b-95b0-a2830d1e7299', 'name': 'ctest-vn-58128353', 'tenant_id': '31b21a4d70ca410abfec01e89ee11602', 'project_id': '31b21a4d70ca410abfec01e89ee11602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33787687', 'ctest-vn-58128353'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 22:12:34,053 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd576f7c7-79a1-43d7-b145-45c4bee82da4', 'name': '', 'tenant_id': '31b21a4d70ca410abfec01e89ee11602', 'network_id': 'c6f84058-b400-4f0b-95b0-a2830d1e7299', 'ip_version': 4, 'cidr': '34.66.128.64/26', 'allocation_pools': [{'start': '34.66.128.66', 'end': '34.66.128.126'}], 'gateway_ip': '34.66.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.66.128.66', 'tags': [], 'project_id': '31b21a4d70ca410abfec01e89ee11602'}} 2024-11-03 22:12:34,079 - INFO - Created VN ctest-vn-58128353 2024-11-03 22:12:34,141 - DEBUG - VN ctest-vn-58128353 UUID is c6f84058-b400-4f0b-95b0-a2830d1e7299 2024-11-03 22:12:34,537 - DEBUG - Response for create_network : {'network': {'id': 'a5550594-226b-4b92-b727-cf578ddfe280', 'name': 'ctest-ext_vn-11327398', 'tenant_id': '31b21a4d70ca410abfec01e89ee11602', 'project_id': '31b21a4d70ca410abfec01e89ee11602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33787687', 'ctest-ext_vn-11327398'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 22:12:34,749 - DEBUG - Response for create_subnet : {'subnet': {'id': '3965ffea-c9be-4c98-aff5-a2e85d57cebf', 'name': '', 'tenant_id': '31b21a4d70ca410abfec01e89ee11602', 'network_id': 'a5550594-226b-4b92-b727-cf578ddfe280', 'ip_version': 4, 'cidr': '116.157.68.128/26', 'allocation_pools': [{'start': '116.157.68.130', 'end': '116.157.68.190'}], 'gateway_ip': '116.157.68.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.157.68.130', 'tags': [], 'project_id': '31b21a4d70ca410abfec01e89ee11602'}} 2024-11-03 22:12:34,775 - INFO - Created VN ctest-ext_vn-11327398 2024-11-03 22:12:34,837 - DEBUG - VN ctest-ext_vn-11327398 UUID is a5550594-226b-4b92-b727-cf578ddfe280 2024-11-03 22:12:35,047 - DEBUG - Services list from nova: [, , ] 2024-11-03 22:12:36,328 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2191-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2191-1) 2024-11-03 22:12:38,101 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2191-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2191-1) 2024-11-03 22:12:38,280 - INFO - Setting gateway for router 07975659-c57d-4b94-af1e-5a73520c2c37 to network a5550594-226b-4b92-b727-cf578ddfe280 2024-11-03 22:12:38,402 - INFO - Adding interface with subnet_id d576f7c7-79a1-43d7-b145-45c4bee82da4, port_id None to router 07975659-c57d-4b94-af1e-5a73520c2c37 2024-11-03 22:12:38,984 - INFO - Waiting for VM ctest-TestRoutersBasic-33787687-28226046 to be up.. 2024-11-03 22:12:39,225 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-03 22:12:44,325 - DEBUG - VM is in ACTIVE state now 2024-11-03 22:12:44,325 - INFO - VM name : ctest-TestRoutersBasic-33787687-28226046 2024-11-03 22:12:44,439 - DEBUG - VM ctest-TestRoutersBasic-33787687-28226046 ID is 5740815f-4d89-447d-ba68-d12a863e2a8c 2024-11-03 22:12:44,462 - DEBUG - VM ctest-TestRoutersBasic-33787687-28226046 launched on Node cn-jenkins-deploy-platform-ansible-os-2191-1 2024-11-03 22:12:44,570 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/5740815f-4d89-447d-ba68-d12a863e2a8c 2024-11-03 22:12:44,916 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/5740815f-4d89-447d-ba68-d12a863e2a8c 2024-11-03 22:12:44,963 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/45f59a02-580e-40cc-9439-03b20e2342db 2024-11-03 22:12:48,257 - 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 1021ms') 2024-11-03 22:12:48,258 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-33787687-28226046 failed! 2024-11-03 22:12:48,321 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-33787687:ctest-vn-58128353 is 34.66.128.65 and allocation pool is NOT set 2024-11-03 22:12:50,390 - 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.21 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.667 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.667/2.440/4.213/1.773 ms') 2024-11-03 22:12:50,390 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-33787687-28226046 passed 2024-11-03 22:12:50,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:12:50,557 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33787687-28226046, IP 34.66.128.67, Port 22 2024-11-03 22:12:50,724 - DEBUG - VM ctest-TestRoutersBasic-33787687-28226046 is ready for SSH connections 2024-11-03 22:12:50,725 - INFO - Waiting for VM ctest-TestRoutersBasic-33787687-83729270 to be up.. 2024-11-03 22:12:50,837 - DEBUG - VM is in ACTIVE state now 2024-11-03 22:12:50,838 - INFO - VM name : ctest-TestRoutersBasic-33787687-83729270 2024-11-03 22:12:50,940 - DEBUG - VM ctest-TestRoutersBasic-33787687-83729270 ID is 02b71619-aa1e-4f44-8b3d-dba002cbab35 2024-11-03 22:12:50,940 - DEBUG - VM ctest-TestRoutersBasic-33787687-83729270 launched on Node cn-jenkins-deploy-platform-ansible-os-2191-1 2024-11-03 22:12:51,053 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/02b71619-aa1e-4f44-8b3d-dba002cbab35 2024-11-03 22:12:51,071 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/552ad25b-8fde-4161-94af-afa0babf1519 2024-11-03 22:12:52,360 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.51 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 = 1.506/3.094/4.682/1.588 ms') 2024-11-03 22:12:52,360 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-33787687-83729270 passed 2024-11-03 22:12:52,524 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:12:52,525 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33787687-83729270, IP 116.157.68.131, Port 22 2024-11-03 22:12:52,591 - 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-11-03 22:12:52,693 - DEBUG - VM ctest-TestRoutersBasic-33787687-83729270 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-03 22:12:57,693 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:12:57,694 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33787687-83729270, IP 116.157.68.131, Port 22 2024-11-03 22:12:57,861 - DEBUG - VM ctest-TestRoutersBasic-33787687-83729270 is ready for SSH connections 2024-11-03 22:12:57,861 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:12:57,861 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 116.157.68.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-11-03 22:12:57,861 - DEBUG - ping -s 56 -c 3 -W 1 116.157.68.131 2024-11-03 22:13:01,622 - DEBUG - PING 116.157.68.131 (116.157.68.131): 56 data bytes 64 bytes from 116.157.68.131: seq=0 ttl=62 time=8.202 ms 64 bytes from 116.157.68.131: seq=1 ttl=62 time=1.484 ms 64 bytes from 116.157.68.131: seq=2 ttl=62 time=1.362 ms --- 116.157.68.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.362/3.682/8.202 ms 2024-11-03 22:13:01,622 - INFO - Ping to IP 116.157.68.131 from VM ctest-TestRoutersBasic-33787687-28226046 passed 2024-11-03 22:13:01,622 - INFO - Deleting interface with subnet_id d576f7c7-79a1-43d7-b145-45c4bee82da4, port_id None from router 07975659-c57d-4b94-af1e-5a73520c2c37 2024-11-03 22:13:01,934 - INFO - Deleting VM ctest-TestRoutersBasic-33787687-83729270 2024-11-03 22:13:02,030 - INFO - Deleting VM ctest-TestRoutersBasic-33787687-28226046 2024-11-03 22:13:02,142 - INFO - Deleting VN ctest-ext_vn-11327398 2024-11-03 22:13:02,232 - DEBUG - VN a5550594-226b-4b92-b727-cf578ddfe280 still in use: Unable to complete operation on network a5550594-226b-4b92-b727-cf578ddfe280. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9f2b4039-2bf6-4ca4-8fb8-b46a2fb980db'] 2024-11-03 22:13:02,233 - WARNING - Deleting VN ctest-ext_vn-11327398 failed..Will retry 2024-11-03 22:13:04,393 - DEBUG - Response for deleting network () 2024-11-03 22:13:04,393 - INFO - Deleting VN ctest-vn-58128353 2024-11-03 22:13:04,540 - DEBUG - Response for deleting network () 2024-11-03 22:13:04,821 - DEBUG - No XMPP flaps were noticed during the test
2024-11-03 22:13:04,821 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2024-11-03 22:13:04,821 - INFO - -------------------------------------------------------------------------------- 2024-11-03 22:13:05,692 - INFO - Deleted project: ctest-TestRoutersBasic-33787687, ID : 31b21a4d-70ca-410a-bfec-01e89ee11602