2024-08-23 15:29:53,493 - INFO - Domain Default found not creating 2024-08-23 15:29:53,663 - INFO - Project ctest-TestRoutersBasic-84312609 not found, creating it 2024-08-23 15:29:54,154 - INFO - Created Project:ctest-TestRoutersBasic-84312609, ID : fecb5b46-82ec-4dc8-85b9-0aa7aae1e217 2024-08-23 15:29:55,775 - INFO - ================================================================================ 2024-08-23 15:29:55,775 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-23 15:29:55,775 - 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-23 15:29:56,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.6': '0'}} with 2024-08-23 15:29:56,036 - INFO - Initial checks done. Running the testcase now 2024-08-23 15:29:56,036 - INFO - 2024-08-23 15:29:56,754 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-84312609 2024-08-23 15:29:56,850 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-84312609 2024-08-23 15:29:57,182 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84312609', 'default']} 2024-08-23 15:29:57,515 - DEBUG - Response for create_network : {'network': {'id': '143d0ba7-f4a8-4b6b-af02-0287f20b74b6', 'name': 'ctest-vn-04886417', 'tenant_id': 'fecb5b4682ec4dc885b90aa7aae1e217', 'project_id': 'fecb5b4682ec4dc885b90aa7aae1e217', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84312609', 'ctest-vn-04886417'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 15:29:57,732 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8f79fbe-03c4-4c0c-a505-99fc20cddd57', 'name': '', 'tenant_id': 'fecb5b4682ec4dc885b90aa7aae1e217', 'network_id': '143d0ba7-f4a8-4b6b-af02-0287f20b74b6', 'ip_version': 4, 'cidr': '70.43.93.192/26', 'allocation_pools': [{'start': '70.43.93.194', 'end': '70.43.93.254'}], 'gateway_ip': '70.43.93.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.43.93.194', 'tags': [], 'project_id': 'fecb5b4682ec4dc885b90aa7aae1e217'}} 2024-08-23 15:29:57,754 - INFO - Created VN ctest-vn-04886417 2024-08-23 15:29:57,806 - DEBUG - VN ctest-vn-04886417 UUID is 143d0ba7-f4a8-4b6b-af02-0287f20b74b6 2024-08-23 15:29:58,130 - DEBUG - Response for create_network : {'network': {'id': '441452b6-4706-4cb9-8762-7059927744b6', 'name': 'ctest-ext_vn-78919850', 'tenant_id': 'fecb5b4682ec4dc885b90aa7aae1e217', 'project_id': 'fecb5b4682ec4dc885b90aa7aae1e217', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-84312609', 'ctest-ext_vn-78919850'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 15:29:58,330 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e779bfa-b37c-4d06-85b1-82931a46eae4', 'name': '', 'tenant_id': 'fecb5b4682ec4dc885b90aa7aae1e217', 'network_id': '441452b6-4706-4cb9-8762-7059927744b6', 'ip_version': 4, 'cidr': '65.44.251.64/26', 'allocation_pools': [{'start': '65.44.251.66', 'end': '65.44.251.126'}], 'gateway_ip': '65.44.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.44.251.66', 'tags': [], 'project_id': 'fecb5b4682ec4dc885b90aa7aae1e217'}} 2024-08-23 15:29:58,351 - INFO - Created VN ctest-ext_vn-78919850 2024-08-23 15:29:58,406 - DEBUG - VN ctest-ext_vn-78919850 UUID is 441452b6-4706-4cb9-8762-7059927744b6 2024-08-23 15:29:58,583 - DEBUG - Services list from nova: [, , ] 2024-08-23 15:29:59,615 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1720-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1720-1) 2024-08-23 15:30:00,898 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1720-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1720-1) 2024-08-23 15:30:00,965 - INFO - Setting gateway for router 591b1d6f-7f5c-4859-9662-c99623d0ba15 to network 441452b6-4706-4cb9-8762-7059927744b6 2024-08-23 15:30:01,033 - INFO - Adding interface with subnet_id c8f79fbe-03c4-4c0c-a505-99fc20cddd57, port_id None to router 591b1d6f-7f5c-4859-9662-c99623d0ba15 2024-08-23 15:30:01,344 - INFO - Waiting for VM ctest-TestRoutersBasic-84312609-47217895 to be up.. 2024-08-23 15:30:01,573 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 15:30:06,681 - DEBUG - VM is in ACTIVE state now 2024-08-23 15:30:06,681 - INFO - VM name : ctest-TestRoutersBasic-84312609-47217895 2024-08-23 15:30:06,769 - DEBUG - VM ctest-TestRoutersBasic-84312609-47217895 ID is 11d913d4-3eb0-4493-af36-45f8820ca498 2024-08-23 15:30:06,791 - DEBUG - VM ctest-TestRoutersBasic-84312609-47217895 launched on Node cn-jenkins-deploy-platform-ansible-os-1720-1 2024-08-23 15:30:06,878 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/11d913d4-3eb0-4493-af36-45f8820ca498 2024-08-23 15:30:07,182 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/11d913d4-3eb0-4493-af36-45f8820ca498 2024-08-23 15:30:07,220 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/7c4eb875-f0dc-48fa-872f-c24db894e513 2024-08-23 15:30:10,492 - 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 1019ms') 2024-08-23 15:30:10,492 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-84312609-47217895 failed! 2024-08-23 15:30:10,546 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-84312609:ctest-vn-04886417 is 70.43.93.193 and allocation pool is NOT set 2024-08-23 15:30:12,613 - 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=2.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.468 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.468/1.565/2.662/1.097 ms') 2024-08-23 15:30:12,613 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-84312609-47217895 passed 2024-08-23 15:30:12,762 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 15:30:12,762 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-84312609-47217895, IP 70.43.93.195, Port 22 2024-08-23 15:30:12,921 - DEBUG - VM ctest-TestRoutersBasic-84312609-47217895 is ready for SSH connections 2024-08-23 15:30:12,921 - INFO - Waiting for VM ctest-TestRoutersBasic-84312609-75550604 to be up.. 2024-08-23 15:30:13,000 - DEBUG - VM is in ACTIVE state now 2024-08-23 15:30:13,000 - INFO - VM name : ctest-TestRoutersBasic-84312609-75550604 2024-08-23 15:30:13,080 - DEBUG - VM ctest-TestRoutersBasic-84312609-75550604 ID is c4a04370-0990-47e6-80f8-440e18bf0d0e 2024-08-23 15:30:13,080 - DEBUG - VM ctest-TestRoutersBasic-84312609-75550604 launched on Node cn-jenkins-deploy-platform-ansible-os-1720-1 2024-08-23 15:30:13,155 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/c4a04370-0990-47e6-80f8-440e18bf0d0e 2024-08-23 15:30:13,165 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/ea7683c3-38d4-4fc0-b7a1-4bb4de3ea347 2024-08-23 15:30:14,403 - 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.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.556 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.556/2.095/3.635/1.539 ms') 2024-08-23 15:30:14,404 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-84312609-75550604 passed 2024-08-23 15:30:14,558 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 15:30:14,558 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-84312609-75550604, IP 65.44.251.67, Port 22 2024-08-23 15:30:14,728 - DEBUG - VM ctest-TestRoutersBasic-84312609-75550604 is ready for SSH connections 2024-08-23 15:30:14,729 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 15:30:14,729 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.44.251.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2024-08-23 15:30:14,729 - DEBUG - ping -s 56 -c 3 -W 1 65.44.251.67 2024-08-23 15:30:18,707 - DEBUG - PING 65.44.251.67 (65.44.251.67): 56 data bytes 64 bytes from 65.44.251.67: seq=0 ttl=62 time=7.651 ms 64 bytes from 65.44.251.67: seq=1 ttl=62 time=0.928 ms 64 bytes from 65.44.251.67: seq=2 ttl=62 time=1.021 ms --- 65.44.251.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.928/3.200/7.651 ms 2024-08-23 15:30:18,707 - INFO - Ping to IP 65.44.251.67 from VM ctest-TestRoutersBasic-84312609-47217895 passed 2024-08-23 15:30:18,707 - INFO - Deleting interface with subnet_id c8f79fbe-03c4-4c0c-a505-99fc20cddd57, port_id None from router 591b1d6f-7f5c-4859-9662-c99623d0ba15 2024-08-23 15:30:18,938 - INFO - Deleting VM ctest-TestRoutersBasic-84312609-75550604 2024-08-23 15:30:19,001 - INFO - Deleting VM ctest-TestRoutersBasic-84312609-47217895 2024-08-23 15:30:19,066 - INFO - Deleting VN ctest-ext_vn-78919850 2024-08-23 15:30:19,138 - DEBUG - VN 441452b6-4706-4cb9-8762-7059927744b6 still in use: Unable to complete operation on network 441452b6-4706-4cb9-8762-7059927744b6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ab0d9355-a1c5-49ef-96c5-1bb0dc261b05'] 2024-08-23 15:30:19,138 - WARNING - Deleting VN ctest-ext_vn-78919850 failed..Will retry 2024-08-23 15:30:21,259 - DEBUG - Response for deleting network () 2024-08-23 15:30:21,259 - INFO - Deleting VN ctest-vn-04886417 2024-08-23 15:30:21,376 - DEBUG - Response for deleting network () 2024-08-23 15:30:21,631 - DEBUG - No XMPP flaps were noticed during the test
2024-08-23 15:30:21,631 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-08-23 15:30:21,631 - INFO - -------------------------------------------------------------------------------- 2024-08-23 15:30:22,341 - INFO - Deleted project: ctest-TestRoutersBasic-84312609, ID : fecb5b46-82ec-4dc8-85b9-0aa7aae1e217