2024-08-21 12:01:55,864 - INFO - Domain Default found not creating 2024-08-21 12:01:56,124 - INFO - Project ctest-TestRoutersBasic-26622584 not found, creating it 2024-08-21 12:01:56,767 - INFO - Created Project:ctest-TestRoutersBasic-26622584, ID : 39b6a8e3-5fb7-4311-88b4-5956700f2113 2024-08-21 12:01:58,906 - INFO - ================================================================================ 2024-08-21 12:01:58,907 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 12:01:58,907 - 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 12:01:59,188 - DEBUG - Nothing to compare xmpp stats {'10.0.0.60': {'10.20.0.18': '0'}} with 2024-08-21 12:01:59,188 - INFO - Initial checks done. Running the testcase now 2024-08-21 12:01:59,189 - INFO - 2024-08-21 12:02:00,018 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-26622584 2024-08-21 12:02:00,130 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-26622584 2024-08-21 12:02:00,525 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26622584', 'default']} 2024-08-21 12:02:00,923 - DEBUG - Response for create_network : {'network': {'id': '6beced1b-bbe7-4ff4-a89d-3abff297d0ed', 'name': 'ctest-vn-72421512', 'tenant_id': '39b6a8e35fb7431188b45956700f2113', 'project_id': '39b6a8e35fb7431188b45956700f2113', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26622584', 'ctest-vn-72421512'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:02:01,143 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ad86b8d-822e-4ee7-ace0-7f3cad9491b4', 'name': '', 'tenant_id': '39b6a8e35fb7431188b45956700f2113', 'network_id': '6beced1b-bbe7-4ff4-a89d-3abff297d0ed', 'ip_version': 4, 'cidr': '173.142.217.64/26', 'allocation_pools': [{'start': '173.142.217.66', 'end': '173.142.217.126'}], 'gateway_ip': '173.142.217.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.142.217.66', 'tags': [], 'project_id': '39b6a8e35fb7431188b45956700f2113'}} 2024-08-21 12:02:01,172 - INFO - Created VN ctest-vn-72421512 2024-08-21 12:02:01,226 - DEBUG - VN ctest-vn-72421512 UUID is 6beced1b-bbe7-4ff4-a89d-3abff297d0ed 2024-08-21 12:02:01,740 - DEBUG - Response for create_network : {'network': {'id': '4ef02b46-148a-43ef-8cd5-4756dce8317d', 'name': 'ctest-ext_vn-51226277', 'tenant_id': '39b6a8e35fb7431188b45956700f2113', 'project_id': '39b6a8e35fb7431188b45956700f2113', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26622584', 'ctest-ext_vn-51226277'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:02:01,961 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b22d10f4-5c5e-47b7-ac5a-5f01feba1be2', 'name': '', 'tenant_id': '39b6a8e35fb7431188b45956700f2113', 'network_id': '4ef02b46-148a-43ef-8cd5-4756dce8317d', 'ip_version': 4, 'cidr': '133.153.44.192/26', 'allocation_pools': [{'start': '133.153.44.194', 'end': '133.153.44.254'}], 'gateway_ip': '133.153.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.153.44.194', 'tags': [], 'project_id': '39b6a8e35fb7431188b45956700f2113'}} 2024-08-21 12:02:01,993 - INFO - Created VN ctest-ext_vn-51226277 2024-08-21 12:02:02,050 - DEBUG - VN ctest-ext_vn-51226277 UUID is 4ef02b46-148a-43ef-8cd5-4756dce8317d 2024-08-21 12:02:02,327 - DEBUG - Services list from nova: [, , ] 2024-08-21 12:02:03,888 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1684-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1684-1) 2024-08-21 12:02:05,494 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1684-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1684-1) 2024-08-21 12:02:05,596 - INFO - Setting gateway for router 5218d83d-3304-49d8-a1cb-54bfdbcd37a2 to network 4ef02b46-148a-43ef-8cd5-4756dce8317d 2024-08-21 12:02:05,667 - INFO - Adding interface with subnet_id 6ad86b8d-822e-4ee7-ace0-7f3cad9491b4, port_id None to router 5218d83d-3304-49d8-a1cb-54bfdbcd37a2 2024-08-21 12:02:06,070 - INFO - Waiting for VM ctest-TestRoutersBasic-26622584-51519502 to be up.. 2024-08-21 12:02:06,299 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 12:02:11,424 - DEBUG - VM is in ACTIVE state now 2024-08-21 12:02:11,424 - INFO - VM name : ctest-TestRoutersBasic-26622584-51519502 2024-08-21 12:02:11,545 - DEBUG - VM ctest-TestRoutersBasic-26622584-51519502 ID is c29f0e8c-cbe0-4df5-9f94-a39d333f9b91 2024-08-21 12:02:11,578 - DEBUG - VM ctest-TestRoutersBasic-26622584-51519502 launched on Node cn-jenkins-deploy-platform-ansible-os-1684-1 2024-08-21 12:02:11,693 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine/c29f0e8c-cbe0-4df5-9f94-a39d333f9b91 2024-08-21 12:02:12,035 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine/c29f0e8c-cbe0-4df5-9f94-a39d333f9b91 2024-08-21 12:02:12,077 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine-interface/ee9f4316-d225-4897-bc8d-a2bc39f37d9c 2024-08-21 12:02:15,359 - 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 1036ms') 2024-08-21 12:02:15,360 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26622584-51519502 failed! 2024-08-21 12:02:15,417 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-26622584:ctest-vn-72421512 is 173.142.217.65 and allocation pool is NOT set 2024-08-21 12:02:19,521 - 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=2 ttl=63 time=18.5 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1032ms\r\nrtt min/avg/max/mdev = 18.507/18.507/18.507/0.000 ms') 2024-08-21 12:02:19,521 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26622584-51519502 passed 2024-08-21 12:02:19,698 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:02:19,698 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26622584-51519502, IP 173.142.217.67, Port 22 2024-08-21 12:02:19,869 - DEBUG - VM ctest-TestRoutersBasic-26622584-51519502 is ready for SSH connections 2024-08-21 12:02:19,869 - INFO - Waiting for VM ctest-TestRoutersBasic-26622584-40151586 to be up.. 2024-08-21 12:02:20,077 - DEBUG - VM is in ACTIVE state now 2024-08-21 12:02:20,077 - INFO - VM name : ctest-TestRoutersBasic-26622584-40151586 2024-08-21 12:02:20,281 - DEBUG - VM ctest-TestRoutersBasic-26622584-40151586 ID is 244a9383-c09e-4756-a723-3a139e58c06e 2024-08-21 12:02:20,282 - DEBUG - VM ctest-TestRoutersBasic-26622584-40151586 launched on Node cn-jenkins-deploy-platform-ansible-os-1684-1 2024-08-21 12:02:20,475 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine/244a9383-c09e-4756-a723-3a139e58c06e 2024-08-21 12:02:20,498 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-machine-interface/492edc20-a99f-4a35-9117-e890d976cfd0 2024-08-21 12:02:21,841 - 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.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.765 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.765/2.525/4.286/1.760 ms') 2024-08-21 12:02:21,841 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-26622584-40151586 passed 2024-08-21 12:02:22,022 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:02:22,023 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26622584-40151586, IP 133.153.44.195, Port 22 2024-08-21 12:02:22,209 - DEBUG - VM ctest-TestRoutersBasic-26622584-40151586 is ready for SSH connections 2024-08-21 12:02:22,209 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:02:22,209 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.153.44.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.60, gateway password: c0ntrail123 2024-08-21 12:02:22,209 - DEBUG - ping -s 56 -c 3 -W 1 133.153.44.195 2024-08-21 12:02:26,136 - DEBUG - PING 133.153.44.195 (133.153.44.195): 56 data bytes 64 bytes from 133.153.44.195: seq=0 ttl=62 time=8.640 ms 64 bytes from 133.153.44.195: seq=1 ttl=62 time=1.779 ms 64 bytes from 133.153.44.195: seq=2 ttl=62 time=1.761 ms --- 133.153.44.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.761/4.060/8.640 ms 2024-08-21 12:02:26,136 - INFO - Ping to IP 133.153.44.195 from VM ctest-TestRoutersBasic-26622584-51519502 passed 2024-08-21 12:02:26,136 - INFO - Deleting interface with subnet_id 6ad86b8d-822e-4ee7-ace0-7f3cad9491b4, port_id None from router 5218d83d-3304-49d8-a1cb-54bfdbcd37a2 2024-08-21 12:02:26,534 - INFO - Deleting VM ctest-TestRoutersBasic-26622584-40151586 2024-08-21 12:02:26,623 - INFO - Deleting VM ctest-TestRoutersBasic-26622584-51519502 2024-08-21 12:02:26,712 - INFO - Deleting VN ctest-ext_vn-51226277 2024-08-21 12:02:26,794 - DEBUG - VN 4ef02b46-148a-43ef-8cd5-4756dce8317d still in use: Unable to complete operation on network 4ef02b46-148a-43ef-8cd5-4756dce8317d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8fc43e46-2c5f-441c-a3ad-20fe921359e1'] 2024-08-21 12:02:26,794 - WARNING - Deleting VN ctest-ext_vn-51226277 failed..Will retry 2024-08-21 12:02:29,023 - DEBUG - Response for deleting network () 2024-08-21 12:02:29,023 - INFO - Deleting VN ctest-vn-72421512 2024-08-21 12:02:29,209 - DEBUG - Response for deleting network () 2024-08-21 12:02:29,506 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 12:02:29,507 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2024-08-21 12:02:29,507 - INFO - -------------------------------------------------------------------------------- 2024-08-21 12:02:30,339 - INFO - Deleted project: ctest-TestRoutersBasic-26622584, ID : 39b6a8e3-5fb7-4311-88b4-5956700f2113