2024-08-21 17:20:43,582 - INFO - Domain Default found not creating 2024-08-21 17:20:43,762 - INFO - Project ctest-TestRoutersBasic-09678848 not found, creating it 2024-08-21 17:20:44,451 - INFO - Created Project:ctest-TestRoutersBasic-09678848, ID : 99346c37-f36f-4fc5-8585-e4012af3fe19 2024-08-21 17:20:47,076 - INFO - ================================================================================ 2024-08-21 17:20:47,076 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 17:20:47,077 - 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-21 17:20:47,337 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.26': '0'}} with 2024-08-21 17:20:47,337 - INFO - Initial checks done. Running the testcase now 2024-08-21 17:20:47,337 - INFO - 2024-08-21 17:20:48,161 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-09678848 2024-08-21 17:20:48,262 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-09678848 2024-08-21 17:20:48,594 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09678848', 'default']} 2024-08-21 17:20:48,918 - DEBUG - Response for create_network : {'network': {'id': 'c7abf785-efd3-41c9-8b97-d2a1fcb45e57', 'name': 'ctest-vn-30281773', 'tenant_id': '99346c37f36f4fc58585e4012af3fe19', 'project_id': '99346c37f36f4fc58585e4012af3fe19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09678848', 'ctest-vn-30281773'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 17:20:49,139 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e343e93-d751-4f78-b78d-b9c1471def72', 'name': '', 'tenant_id': '99346c37f36f4fc58585e4012af3fe19', 'network_id': 'c7abf785-efd3-41c9-8b97-d2a1fcb45e57', 'ip_version': 4, 'cidr': '213.211.86.128/26', 'allocation_pools': [{'start': '213.211.86.130', 'end': '213.211.86.190'}], 'gateway_ip': '213.211.86.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.211.86.130', 'tags': [], 'project_id': '99346c37f36f4fc58585e4012af3fe19'}} 2024-08-21 17:20:49,169 - INFO - Created VN ctest-vn-30281773 2024-08-21 17:20:49,226 - DEBUG - VN ctest-vn-30281773 UUID is c7abf785-efd3-41c9-8b97-d2a1fcb45e57 2024-08-21 17:20:49,590 - DEBUG - Response for create_network : {'network': {'id': 'ea6d5bfc-0ab4-4a71-b6d0-8073a19c9a3c', 'name': 'ctest-ext_vn-05794763', 'tenant_id': '99346c37f36f4fc58585e4012af3fe19', 'project_id': '99346c37f36f4fc58585e4012af3fe19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-09678848', 'ctest-ext_vn-05794763'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 17:20:49,995 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5744887-95f8-4466-b7f4-972dc5999388', 'name': '', 'tenant_id': '99346c37f36f4fc58585e4012af3fe19', 'network_id': 'ea6d5bfc-0ab4-4a71-b6d0-8073a19c9a3c', 'ip_version': 4, 'cidr': '101.161.228.0/26', 'allocation_pools': [{'start': '101.161.228.2', 'end': '101.161.228.62'}], 'gateway_ip': '101.161.228.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.161.228.2', 'tags': [], 'project_id': '99346c37f36f4fc58585e4012af3fe19'}} 2024-08-21 17:20:50,018 - INFO - Created VN ctest-ext_vn-05794763 2024-08-21 17:20:50,074 - DEBUG - VN ctest-ext_vn-05794763 UUID is ea6d5bfc-0ab4-4a71-b6d0-8073a19c9a3c 2024-08-21 17:20:50,276 - DEBUG - Services list from nova: [, , ] 2024-08-21 17:20:51,463 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1695-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1695-1) 2024-08-21 17:20:52,798 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1695-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1695-1) 2024-08-21 17:20:52,900 - INFO - Setting gateway for router beca3831-6d0c-4c17-92f4-b16debda8cda to network ea6d5bfc-0ab4-4a71-b6d0-8073a19c9a3c 2024-08-21 17:20:52,986 - INFO - Adding interface with subnet_id 7e343e93-d751-4f78-b78d-b9c1471def72, port_id None to router beca3831-6d0c-4c17-92f4-b16debda8cda 2024-08-21 17:20:53,597 - INFO - Waiting for VM ctest-TestRoutersBasic-09678848-66087028 to be up.. 2024-08-21 17:20:53,818 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 17:20:58,912 - DEBUG - VM is in ACTIVE state now 2024-08-21 17:20:58,912 - INFO - VM name : ctest-TestRoutersBasic-09678848-66087028 2024-08-21 17:20:59,012 - DEBUG - VM ctest-TestRoutersBasic-09678848-66087028 ID is ca5032d3-e1b4-4094-b14c-d43a4e5ee5ff 2024-08-21 17:20:59,035 - DEBUG - VM ctest-TestRoutersBasic-09678848-66087028 launched on Node cn-jenkins-deploy-platform-ansible-os-1695-1 2024-08-21 17:20:59,125 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/ca5032d3-e1b4-4094-b14c-d43a4e5ee5ff 2024-08-21 17:20:59,469 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/ca5032d3-e1b4-4094-b14c-d43a4e5ee5ff 2024-08-21 17:20:59,512 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/73cda761-ebcf-4ae1-8b76-fbdb309e55ed 2024-08-21 17:21:02,793 - 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 1029ms') 2024-08-21 17:21:02,793 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09678848-66087028 failed! 2024-08-21 17:21:02,850 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-09678848:ctest-vn-30281773 is 213.211.86.129 and allocation pool is NOT set 2024-08-21 17:21:04,913 - 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.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.494 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.494/2.236/3.979/1.742 ms') 2024-08-21 17:21:04,913 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-09678848-66087028 passed 2024-08-21 17:21:05,066 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 17:21:05,066 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09678848-66087028, IP 213.211.86.131, Port 22 2024-08-21 17:21:05,222 - DEBUG - VM ctest-TestRoutersBasic-09678848-66087028 is ready for SSH connections 2024-08-21 17:21:05,222 - INFO - Waiting for VM ctest-TestRoutersBasic-09678848-06939622 to be up.. 2024-08-21 17:21:05,342 - DEBUG - VM is in ACTIVE state now 2024-08-21 17:21:05,342 - INFO - VM name : ctest-TestRoutersBasic-09678848-06939622 2024-08-21 17:21:05,442 - DEBUG - VM ctest-TestRoutersBasic-09678848-06939622 ID is 37dcad2d-0413-4bcf-845f-33e7b0bbab3a 2024-08-21 17:21:05,443 - DEBUG - VM ctest-TestRoutersBasic-09678848-06939622 launched on Node cn-jenkins-deploy-platform-ansible-os-1695-1 2024-08-21 17:21:05,538 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/37dcad2d-0413-4bcf-845f-33e7b0bbab3a 2024-08-21 17:21:05,547 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/289a7c8d-3a74-413a-9cc6-960a2db7f36a 2024-08-21 17:21:06,785 - 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=5.37 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.946 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.946/3.158/5.371/2.212 ms') 2024-08-21 17:21:06,786 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-09678848-06939622 passed 2024-08-21 17:21:06,938 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 17:21:06,938 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-09678848-06939622, IP 101.161.228.3, Port 22 2024-08-21 17:21:07,094 - DEBUG - VM ctest-TestRoutersBasic-09678848-06939622 is ready for SSH connections 2024-08-21 17:21:07,094 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 17:21:07,094 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 101.161.228.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-21 17:21:07,094 - DEBUG - ping -s 56 -c 3 -W 1 101.161.228.3 2024-08-21 17:21:10,851 - DEBUG - PING 101.161.228.3 (101.161.228.3): 56 data bytes 64 bytes from 101.161.228.3: seq=0 ttl=62 time=5.536 ms 64 bytes from 101.161.228.3: seq=1 ttl=62 time=1.049 ms 64 bytes from 101.161.228.3: seq=2 ttl=62 time=0.957 ms --- 101.161.228.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.957/2.514/5.536 ms 2024-08-21 17:21:10,851 - INFO - Ping to IP 101.161.228.3 from VM ctest-TestRoutersBasic-09678848-66087028 passed 2024-08-21 17:21:10,852 - INFO - Deleting interface with subnet_id 7e343e93-d751-4f78-b78d-b9c1471def72, port_id None from router beca3831-6d0c-4c17-92f4-b16debda8cda 2024-08-21 17:21:11,109 - INFO - Deleting VM ctest-TestRoutersBasic-09678848-06939622 2024-08-21 17:21:11,185 - INFO - Deleting VM ctest-TestRoutersBasic-09678848-66087028 2024-08-21 17:21:11,268 - INFO - Deleting VN ctest-ext_vn-05794763 2024-08-21 17:21:11,372 - DEBUG - VN ea6d5bfc-0ab4-4a71-b6d0-8073a19c9a3c still in use: Unable to complete operation on network ea6d5bfc-0ab4-4a71-b6d0-8073a19c9a3c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3da65d17-4e76-4595-bd65-04777051b138'] 2024-08-21 17:21:11,372 - WARNING - Deleting VN ctest-ext_vn-05794763 failed..Will retry 2024-08-21 17:21:13,498 - DEBUG - Response for deleting network () 2024-08-21 17:21:13,498 - INFO - Deleting VN ctest-vn-30281773 2024-08-21 17:21:13,637 - DEBUG - Response for deleting network () 2024-08-21 17:21:13,906 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 17:21:13,906 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-21 17:21:13,906 - INFO - -------------------------------------------------------------------------------- 2024-08-21 17:21:14,668 - INFO - Deleted project: ctest-TestRoutersBasic-09678848, ID : 99346c37-f36f-4fc5-8585-e4012af3fe19