2024-10-25 17:14:40,047 - INFO - Domain Default found not creating 2024-10-25 17:14:40,232 - INFO - Project ctest-TestRoutersBasic-89943392 not found, creating it 2024-10-25 17:14:40,763 - INFO - Created Project:ctest-TestRoutersBasic-89943392, ID : af2809db-a229-41e5-9aab-ddb8bbe4b4a5 2024-10-25 17:14:42,310 - INFO - ================================================================================ 2024-10-25 17:14:42,311 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-25 17:14:42,311 - 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-25 17:14:42,564 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.7': '0'}} with 2024-10-25 17:14:42,564 - INFO - Initial checks done. Running the testcase now 2024-10-25 17:14:42,564 - INFO - 2024-10-25 17:14:43,336 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-89943392 2024-10-25 17:14:43,442 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-89943392 2024-10-25 17:14:43,790 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89943392', 'default']} 2024-10-25 17:14:44,137 - DEBUG - Response for create_network : {'network': {'id': 'cd0f905e-b88c-4c03-840d-3e352321b5d5', 'name': 'ctest-vn-85501252', 'tenant_id': 'af2809dba22941e59aabddb8bbe4b4a5', 'project_id': 'af2809dba22941e59aabddb8bbe4b4a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89943392', 'ctest-vn-85501252'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 17:14:44,336 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16fde23-62b3-4769-84c6-8047b9b81765', 'name': '', 'tenant_id': 'af2809dba22941e59aabddb8bbe4b4a5', 'network_id': 'cd0f905e-b88c-4c03-840d-3e352321b5d5', 'ip_version': 4, 'cidr': '60.103.159.64/26', 'allocation_pools': [{'start': '60.103.159.66', 'end': '60.103.159.126'}], 'gateway_ip': '60.103.159.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.103.159.66', 'tags': [], 'project_id': 'af2809dba22941e59aabddb8bbe4b4a5'}} 2024-10-25 17:14:44,357 - INFO - Created VN ctest-vn-85501252 2024-10-25 17:14:44,414 - DEBUG - VN ctest-vn-85501252 UUID is cd0f905e-b88c-4c03-840d-3e352321b5d5 2024-10-25 17:14:44,792 - DEBUG - Response for create_network : {'network': {'id': 'cf96e6d6-2bab-4834-be06-92a82cd9cca0', 'name': 'ctest-ext_vn-35678433', 'tenant_id': 'af2809dba22941e59aabddb8bbe4b4a5', 'project_id': 'af2809dba22941e59aabddb8bbe4b4a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89943392', 'ctest-ext_vn-35678433'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 17:14:45,051 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cd2f5c2-2490-411d-8566-fe90a3b471f3', 'name': '', 'tenant_id': 'af2809dba22941e59aabddb8bbe4b4a5', 'network_id': 'cf96e6d6-2bab-4834-be06-92a82cd9cca0', 'ip_version': 4, 'cidr': '92.132.171.128/26', 'allocation_pools': [{'start': '92.132.171.130', 'end': '92.132.171.190'}], 'gateway_ip': '92.132.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.132.171.130', 'tags': [], 'project_id': 'af2809dba22941e59aabddb8bbe4b4a5'}} 2024-10-25 17:14:45,082 - INFO - Created VN ctest-ext_vn-35678433 2024-10-25 17:14:45,142 - DEBUG - VN ctest-ext_vn-35678433 UUID is cf96e6d6-2bab-4834-be06-92a82cd9cca0 2024-10-25 17:14:45,358 - DEBUG - Services list from nova: [, , ] 2024-10-25 17:14:46,535 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2146-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2146-1) 2024-10-25 17:14:47,901 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2146-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2146-1) 2024-10-25 17:14:48,005 - INFO - Setting gateway for router 2e4001c5-6488-4b69-9a70-fcd5b9f50dca to network cf96e6d6-2bab-4834-be06-92a82cd9cca0 2024-10-25 17:14:48,102 - INFO - Adding interface with subnet_id e16fde23-62b3-4769-84c6-8047b9b81765, port_id None to router 2e4001c5-6488-4b69-9a70-fcd5b9f50dca 2024-10-25 17:14:48,679 - INFO - Waiting for VM ctest-TestRoutersBasic-89943392-60248744 to be up.. 2024-10-25 17:14:48,995 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-25 17:14:54,101 - DEBUG - VM is in ACTIVE state now 2024-10-25 17:14:54,101 - INFO - VM name : ctest-TestRoutersBasic-89943392-60248744 2024-10-25 17:14:54,188 - DEBUG - VM ctest-TestRoutersBasic-89943392-60248744 ID is db7e2c5b-b524-4bf6-8004-0eb255d4f076 2024-10-25 17:14:54,208 - DEBUG - VM ctest-TestRoutersBasic-89943392-60248744 launched on Node cn-jenkins-deploy-platform-ansible-os-2146-1 2024-10-25 17:14:54,292 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/db7e2c5b-b524-4bf6-8004-0eb255d4f076 2024-10-25 17:14:54,594 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/db7e2c5b-b524-4bf6-8004-0eb255d4f076 2024-10-25 17:14:54,635 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/9ba20358-0fef-422a-856e-5452e7b1a911 2024-10-25 17:14:57,906 - 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 1016ms') 2024-10-25 17:14:57,906 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89943392-60248744 failed! 2024-10-25 17:14:57,970 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-89943392:ctest-vn-85501252 is 60.103.159.65 and allocation pool is NOT set 2024-10-25 17:15:00,036 - 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.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.433 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.433/2.059/3.686/1.626 ms') 2024-10-25 17:15:00,036 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89943392-60248744 passed 2024-10-25 17:15:00,158 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 17:15:00,158 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89943392-60248744, IP 60.103.159.67, Port 22 2024-10-25 17:15:00,327 - DEBUG - VM ctest-TestRoutersBasic-89943392-60248744 is ready for SSH connections 2024-10-25 17:15:00,327 - INFO - Waiting for VM ctest-TestRoutersBasic-89943392-27319654 to be up.. 2024-10-25 17:15:00,428 - DEBUG - VM is in ACTIVE state now 2024-10-25 17:15:00,428 - INFO - VM name : ctest-TestRoutersBasic-89943392-27319654 2024-10-25 17:15:00,528 - DEBUG - VM ctest-TestRoutersBasic-89943392-27319654 ID is fefd7b73-696e-4304-a7d6-e12d73aa1ccc 2024-10-25 17:15:00,528 - DEBUG - VM ctest-TestRoutersBasic-89943392-27319654 launched on Node cn-jenkins-deploy-platform-ansible-os-2146-1 2024-10-25 17:15:00,634 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/fefd7b73-696e-4304-a7d6-e12d73aa1ccc 2024-10-25 17:15:00,657 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/42f483f1-109b-498a-a92d-0b87095314ac 2024-10-25 17:15:01,915 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.591 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.591/2.369/4.148/1.778 ms') 2024-10-25 17:15:01,915 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-89943392-27319654 passed 2024-10-25 17:15:02,078 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 17:15:02,078 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89943392-27319654, IP 92.132.171.131, Port 22 2024-10-25 17:15:02,242 - DEBUG - VM ctest-TestRoutersBasic-89943392-27319654 is ready for SSH connections 2024-10-25 17:15:02,242 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 17:15:02,242 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.132.171.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-10-25 17:15:02,242 - DEBUG - ping -s 56 -c 3 -W 1 92.132.171.131 2024-10-25 17:15:05,944 - DEBUG - PING 92.132.171.131 (92.132.171.131): 56 data bytes 64 bytes from 92.132.171.131: seq=0 ttl=62 time=5.326 ms 64 bytes from 92.132.171.131: seq=1 ttl=62 time=1.213 ms 64 bytes from 92.132.171.131: seq=2 ttl=62 time=1.119 ms --- 92.132.171.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.119/2.552/5.326 ms 2024-10-25 17:15:05,944 - INFO - Ping to IP 92.132.171.131 from VM ctest-TestRoutersBasic-89943392-60248744 passed 2024-10-25 17:15:05,944 - INFO - Deleting interface with subnet_id e16fde23-62b3-4769-84c6-8047b9b81765, port_id None from router 2e4001c5-6488-4b69-9a70-fcd5b9f50dca 2024-10-25 17:15:06,183 - INFO - Deleting VM ctest-TestRoutersBasic-89943392-27319654 2024-10-25 17:15:06,280 - INFO - Deleting VM ctest-TestRoutersBasic-89943392-60248744 2024-10-25 17:15:06,373 - INFO - Deleting VN ctest-ext_vn-35678433 2024-10-25 17:15:06,454 - DEBUG - VN cf96e6d6-2bab-4834-be06-92a82cd9cca0 still in use: Unable to complete operation on network cf96e6d6-2bab-4834-be06-92a82cd9cca0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-78e0bc5c-cf87-471b-a22d-9671efba42ba'] 2024-10-25 17:15:06,454 - WARNING - Deleting VN ctest-ext_vn-35678433 failed..Will retry 2024-10-25 17:15:08,568 - DEBUG - Response for deleting network () 2024-10-25 17:15:08,569 - INFO - Deleting VN ctest-vn-85501252 2024-10-25 17:15:08,684 - DEBUG - Response for deleting network () 2024-10-25 17:15:08,940 - DEBUG - No XMPP flaps were noticed during the test
2024-10-25 17:15:08,940 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-10-25 17:15:08,940 - INFO - -------------------------------------------------------------------------------- 2024-10-25 17:15:09,635 - INFO - Deleted project: ctest-TestRoutersBasic-89943392, ID : af2809db-a229-41e5-9aab-ddb8bbe4b4a5