2024-09-17 09:25:00,049 - INFO - Domain Default found not creating 2024-09-17 09:25:00,228 - INFO - Project ctest-TestRoutersBasic-65773394 not found, creating it 2024-09-17 09:25:00,708 - INFO - Created Project:ctest-TestRoutersBasic-65773394, ID : dd9d949f-2230-4057-b72f-e6221f0db756 2024-09-17 09:25:02,283 - INFO - ================================================================================ 2024-09-17 09:25:02,283 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 09:25:02,283 - 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-09-17 09:25:02,537 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.18': '0'}} with 2024-09-17 09:25:02,537 - INFO - Initial checks done. Running the testcase now 2024-09-17 09:25:02,537 - INFO - 2024-09-17 09:25:03,272 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-65773394 2024-09-17 09:25:03,371 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-65773394 2024-09-17 09:25:03,715 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65773394', 'default']} 2024-09-17 09:25:04,059 - DEBUG - Response for create_network : {'network': {'id': '0c245bf0-5c73-4d83-84cd-106c014440c6', 'name': 'ctest-vn-32727704', 'tenant_id': 'dd9d949f22304057b72fe6221f0db756', 'project_id': 'dd9d949f22304057b72fe6221f0db756', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65773394', 'ctest-vn-32727704'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:25:04,236 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af352750-6ce6-4af3-aff1-bb3343b2790b', 'name': '', 'tenant_id': 'dd9d949f22304057b72fe6221f0db756', 'network_id': '0c245bf0-5c73-4d83-84cd-106c014440c6', 'ip_version': 4, 'cidr': '32.212.192.192/26', 'allocation_pools': [{'start': '32.212.192.194', 'end': '32.212.192.254'}], 'gateway_ip': '32.212.192.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.212.192.194', 'tags': [], 'project_id': 'dd9d949f22304057b72fe6221f0db756'}} 2024-09-17 09:25:04,257 - INFO - Created VN ctest-vn-32727704 2024-09-17 09:25:04,315 - DEBUG - VN ctest-vn-32727704 UUID is 0c245bf0-5c73-4d83-84cd-106c014440c6 2024-09-17 09:25:04,683 - DEBUG - Response for create_network : {'network': {'id': '21e54959-8de2-4835-9d21-e7ab7b919070', 'name': 'ctest-ext_vn-98100608', 'tenant_id': 'dd9d949f22304057b72fe6221f0db756', 'project_id': 'dd9d949f22304057b72fe6221f0db756', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-65773394', 'ctest-ext_vn-98100608'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:25:04,932 - DEBUG - Response for create_subnet : {'subnet': {'id': '43044c41-8534-4615-bae7-b737969c926d', 'name': '', 'tenant_id': 'dd9d949f22304057b72fe6221f0db756', 'network_id': '21e54959-8de2-4835-9d21-e7ab7b919070', 'ip_version': 4, 'cidr': '42.201.208.128/26', 'allocation_pools': [{'start': '42.201.208.130', 'end': '42.201.208.190'}], 'gateway_ip': '42.201.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.201.208.130', 'tags': [], 'project_id': 'dd9d949f22304057b72fe6221f0db756'}} 2024-09-17 09:25:04,951 - INFO - Created VN ctest-ext_vn-98100608 2024-09-17 09:25:05,007 - DEBUG - VN ctest-ext_vn-98100608 UUID is 21e54959-8de2-4835-9d21-e7ab7b919070 2024-09-17 09:25:05,188 - DEBUG - Services list from nova: [, , ] 2024-09-17 09:25:06,199 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1957-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1957-1) 2024-09-17 09:25:07,360 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1957-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1957-1) 2024-09-17 09:25:07,446 - INFO - Setting gateway for router 161ead5c-7f0b-44d6-9c4f-1e5c93535029 to network 21e54959-8de2-4835-9d21-e7ab7b919070 2024-09-17 09:25:07,516 - INFO - Adding interface with subnet_id af352750-6ce6-4af3-aff1-bb3343b2790b, port_id None to router 161ead5c-7f0b-44d6-9c4f-1e5c93535029 2024-09-17 09:25:07,940 - INFO - Waiting for VM ctest-TestRoutersBasic-65773394-76407484 to be up.. 2024-09-17 09:25:08,167 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 09:25:13,248 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:25:13,249 - INFO - VM name : ctest-TestRoutersBasic-65773394-76407484 2024-09-17 09:25:13,329 - DEBUG - VM ctest-TestRoutersBasic-65773394-76407484 ID is 760c3b6c-13a0-4aa0-bffd-7f573e7f0862 2024-09-17 09:25:13,346 - DEBUG - VM ctest-TestRoutersBasic-65773394-76407484 launched on Node cn-jenkins-deploy-platform-ansible-os-1957-1 2024-09-17 09:25:13,420 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/760c3b6c-13a0-4aa0-bffd-7f573e7f0862 2024-09-17 09:25:13,722 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/760c3b6c-13a0-4aa0-bffd-7f573e7f0862 2024-09-17 09:25:13,756 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/bbe9d031-4d2d-41dc-91f4-16a5dbb8ccbc 2024-09-17 09:25:17,028 - 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 1015ms') 2024-09-17 09:25:17,028 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-65773394-76407484 failed! 2024-09-17 09:25:17,087 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-65773394:ctest-vn-32727704 is 32.212.192.193 and allocation pool is NOT set 2024-09-17 09:25:19,145 - 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.55 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.457 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.457/2.004/3.552/1.547 ms') 2024-09-17 09:25:19,145 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-65773394-76407484 passed 2024-09-17 09:25:19,307 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:25:19,307 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65773394-76407484, IP 32.212.192.195, Port 22 2024-09-17 09:25:19,481 - DEBUG - VM ctest-TestRoutersBasic-65773394-76407484 is ready for SSH connections 2024-09-17 09:25:19,481 - INFO - Waiting for VM ctest-TestRoutersBasic-65773394-58951150 to be up.. 2024-09-17 09:25:19,559 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:25:19,559 - INFO - VM name : ctest-TestRoutersBasic-65773394-58951150 2024-09-17 09:25:19,643 - DEBUG - VM ctest-TestRoutersBasic-65773394-58951150 ID is aeaa6d2c-6951-4927-9531-e23d00321161 2024-09-17 09:25:19,643 - DEBUG - VM ctest-TestRoutersBasic-65773394-58951150 launched on Node cn-jenkins-deploy-platform-ansible-os-1957-1 2024-09-17 09:25:19,734 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/aeaa6d2c-6951-4927-9531-e23d00321161 2024-09-17 09:25:19,746 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/e9107d03-44e5-4664-9fcd-4866c6232ed2 2024-09-17 09:25:21,001 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.389/2.075/3.761/1.686 ms') 2024-09-17 09:25:21,001 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-65773394-58951150 passed 2024-09-17 09:25:21,155 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:25:21,155 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-65773394-58951150, IP 42.201.208.131, Port 22 2024-09-17 09:25:21,310 - DEBUG - VM ctest-TestRoutersBasic-65773394-58951150 is ready for SSH connections 2024-09-17 09:25:21,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:25:21,310 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.201.208.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-17 09:25:21,310 - DEBUG - ping -s 56 -c 3 -W 1 42.201.208.131 2024-09-17 09:25:25,302 - DEBUG - PING 42.201.208.131 (42.201.208.131): 56 data bytes 64 bytes from 42.201.208.131: seq=0 ttl=62 time=6.851 ms 64 bytes from 42.201.208.131: seq=1 ttl=62 time=0.876 ms 64 bytes from 42.201.208.131: seq=2 ttl=62 time=1.392 ms --- 42.201.208.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.876/3.039/6.851 ms 2024-09-17 09:25:25,302 - INFO - Ping to IP 42.201.208.131 from VM ctest-TestRoutersBasic-65773394-76407484 passed 2024-09-17 09:25:25,302 - INFO - Deleting interface with subnet_id af352750-6ce6-4af3-aff1-bb3343b2790b, port_id None from router 161ead5c-7f0b-44d6-9c4f-1e5c93535029 2024-09-17 09:25:25,558 - INFO - Deleting VM ctest-TestRoutersBasic-65773394-58951150 2024-09-17 09:25:25,624 - INFO - Deleting VM ctest-TestRoutersBasic-65773394-76407484 2024-09-17 09:25:25,706 - INFO - Deleting VN ctest-ext_vn-98100608 2024-09-17 09:25:25,776 - DEBUG - VN 21e54959-8de2-4835-9d21-e7ab7b919070 still in use: Unable to complete operation on network 21e54959-8de2-4835-9d21-e7ab7b919070. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-693d21e5-c751-45f7-86d5-18906288228c'] 2024-09-17 09:25:25,777 - WARNING - Deleting VN ctest-ext_vn-98100608 failed..Will retry 2024-09-17 09:25:27,888 - DEBUG - Response for deleting network () 2024-09-17 09:25:27,888 - INFO - Deleting VN ctest-vn-32727704 2024-09-17 09:25:27,995 - DEBUG - Response for deleting network () 2024-09-17 09:25:28,253 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 09:25:28,253 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-17 09:25:28,253 - INFO - -------------------------------------------------------------------------------- 2024-09-17 09:25:28,939 - INFO - Deleted project: ctest-TestRoutersBasic-65773394, ID : dd9d949f-2230-4057-b72f-e6221f0db756