2024-09-02 17:12:15,094 - INFO - Domain Default found not creating 2024-09-02 17:12:15,273 - INFO - Project ctest-TestRoutersBasic-57099976 not found, creating it 2024-09-02 17:12:15,756 - INFO - Created Project:ctest-TestRoutersBasic-57099976, ID : 1697890b-5c3e-403a-8476-104b4ad02cf5 2024-09-02 17:12:17,589 - INFO - ================================================================================ 2024-09-02 17:12:17,589 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-02 17:12:17,589 - 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-02 17:12:17,853 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.14': '0'}} with 2024-09-02 17:12:17,853 - INFO - Initial checks done. Running the testcase now 2024-09-02 17:12:17,853 - INFO - 2024-09-02 17:12:18,615 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-57099976 2024-09-02 17:12:18,711 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-57099976 2024-09-02 17:12:19,027 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57099976', 'default']} 2024-09-02 17:12:19,342 - DEBUG - Response for create_network : {'network': {'id': 'dc15f2cc-d197-4219-bc0d-d6b9c6a41b1f', 'name': 'ctest-vn-23192217', 'tenant_id': '1697890b5c3e403a8476104b4ad02cf5', 'project_id': '1697890b5c3e403a8476104b4ad02cf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57099976', 'ctest-vn-23192217'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 17:12:19,509 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c05b1126-c7fc-47ca-8baa-8976f2b0bc14', 'name': '', 'tenant_id': '1697890b5c3e403a8476104b4ad02cf5', 'network_id': 'dc15f2cc-d197-4219-bc0d-d6b9c6a41b1f', 'ip_version': 4, 'cidr': '4.147.188.64/26', 'allocation_pools': [{'start': '4.147.188.66', 'end': '4.147.188.126'}], 'gateway_ip': '4.147.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.147.188.66', 'tags': [], 'project_id': '1697890b5c3e403a8476104b4ad02cf5'}} 2024-09-02 17:12:19,528 - INFO - Created VN ctest-vn-23192217 2024-09-02 17:12:19,579 - DEBUG - VN ctest-vn-23192217 UUID is dc15f2cc-d197-4219-bc0d-d6b9c6a41b1f 2024-09-02 17:12:19,926 - DEBUG - Response for create_network : {'network': {'id': '48f65360-c98e-4b30-91e0-980161f98759', 'name': 'ctest-ext_vn-48415999', 'tenant_id': '1697890b5c3e403a8476104b4ad02cf5', 'project_id': '1697890b5c3e403a8476104b4ad02cf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57099976', 'ctest-ext_vn-48415999'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 17:12:20,213 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df2f30ca-16f5-4370-a66f-25c748836d86', 'name': '', 'tenant_id': '1697890b5c3e403a8476104b4ad02cf5', 'network_id': '48f65360-c98e-4b30-91e0-980161f98759', 'ip_version': 4, 'cidr': '22.31.30.128/26', 'allocation_pools': [{'start': '22.31.30.130', 'end': '22.31.30.190'}], 'gateway_ip': '22.31.30.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.31.30.130', 'tags': [], 'project_id': '1697890b5c3e403a8476104b4ad02cf5'}} 2024-09-02 17:12:20,232 - INFO - Created VN ctest-ext_vn-48415999 2024-09-02 17:12:20,287 - DEBUG - VN ctest-ext_vn-48415999 UUID is 48f65360-c98e-4b30-91e0-980161f98759 2024-09-02 17:12:20,466 - DEBUG - Services list from nova: [, , ] 2024-09-02 17:12:21,905 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1831-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1831-1) 2024-09-02 17:12:23,257 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1831-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1831-1) 2024-09-02 17:12:23,336 - INFO - Setting gateway for router 5523b0d9-29da-406c-8ac3-bf491d81cf09 to network 48f65360-c98e-4b30-91e0-980161f98759 2024-09-02 17:12:23,415 - INFO - Adding interface with subnet_id c05b1126-c7fc-47ca-8baa-8976f2b0bc14, port_id None to router 5523b0d9-29da-406c-8ac3-bf491d81cf09 2024-09-02 17:12:23,814 - INFO - Waiting for VM ctest-TestRoutersBasic-57099976-82532647 to be up.. 2024-09-02 17:12:23,996 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 17:12:29,101 - DEBUG - VM is in ACTIVE state now 2024-09-02 17:12:29,101 - INFO - VM name : ctest-TestRoutersBasic-57099976-82532647 2024-09-02 17:12:29,192 - DEBUG - VM ctest-TestRoutersBasic-57099976-82532647 ID is aa7622bb-d908-4081-9118-90654c28b3a3 2024-09-02 17:12:29,220 - DEBUG - VM ctest-TestRoutersBasic-57099976-82532647 launched on Node cn-jenkins-deploy-platform-ansible-os-1831-1 2024-09-02 17:12:29,325 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/aa7622bb-d908-4081-9118-90654c28b3a3 2024-09-02 17:12:29,647 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/aa7622bb-d908-4081-9118-90654c28b3a3 2024-09-02 17:12:29,679 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/0074747f-dda4-4ca2-8c73-99ba405ee211 2024-09-02 17:12:32,957 - 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 1020ms') 2024-09-02 17:12:32,957 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57099976-82532647 failed! 2024-09-02 17:12:33,016 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-57099976:ctest-vn-23192217 is 4.147.188.65 and allocation pool is NOT set 2024-09-02 17:12:35,079 - 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=4.48 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.93 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 = 1.927/3.205/4.483/1.278 ms') 2024-09-02 17:12:35,080 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57099976-82532647 passed 2024-09-02 17:12:35,227 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 17:12:35,227 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57099976-82532647, IP 4.147.188.67, Port 22 2024-09-02 17:12:35,410 - DEBUG - VM ctest-TestRoutersBasic-57099976-82532647 is ready for SSH connections 2024-09-02 17:12:35,410 - INFO - Waiting for VM ctest-TestRoutersBasic-57099976-11999271 to be up.. 2024-09-02 17:12:35,525 - DEBUG - VM is in ACTIVE state now 2024-09-02 17:12:35,530 - INFO - VM name : ctest-TestRoutersBasic-57099976-11999271 2024-09-02 17:12:35,631 - DEBUG - VM ctest-TestRoutersBasic-57099976-11999271 ID is 433d7c9c-21ec-43fe-98f2-2cb3c4c5acf0 2024-09-02 17:12:35,631 - DEBUG - VM ctest-TestRoutersBasic-57099976-11999271 launched on Node cn-jenkins-deploy-platform-ansible-os-1831-1 2024-09-02 17:12:35,709 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/433d7c9c-21ec-43fe-98f2-2cb3c4c5acf0 2024-09-02 17:12:35,719 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/6d9d0835-ff46-45db-93b6-1e6830b488dd 2024-09-02 17:12:36,957 - 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=2.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.364 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.364/1.435/2.507/1.071 ms') 2024-09-02 17:12:36,957 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-57099976-11999271 passed 2024-09-02 17:12:37,119 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 17:12:37,119 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57099976-11999271, IP 22.31.30.131, Port 22 2024-09-02 17:12:37,275 - DEBUG - VM ctest-TestRoutersBasic-57099976-11999271 is ready for SSH connections 2024-09-02 17:12:37,275 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 17:12:37,275 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.31.30.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-02 17:12:37,275 - DEBUG - ping -s 56 -c 3 -W 1 22.31.30.131 2024-09-02 17:12:41,429 - DEBUG - PING 22.31.30.131 (22.31.30.131): 56 data bytes 64 bytes from 22.31.30.131: seq=0 ttl=62 time=6.568 ms 64 bytes from 22.31.30.131: seq=1 ttl=62 time=1.037 ms 64 bytes from 22.31.30.131: seq=2 ttl=62 time=0.763 ms --- 22.31.30.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.763/2.789/6.568 ms 2024-09-02 17:12:41,429 - INFO - Ping to IP 22.31.30.131 from VM ctest-TestRoutersBasic-57099976-82532647 passed 2024-09-02 17:12:41,429 - INFO - Deleting interface with subnet_id c05b1126-c7fc-47ca-8baa-8976f2b0bc14, port_id None from router 5523b0d9-29da-406c-8ac3-bf491d81cf09 2024-09-02 17:12:41,623 - INFO - Deleting VM ctest-TestRoutersBasic-57099976-11999271 2024-09-02 17:12:41,695 - INFO - Deleting VM ctest-TestRoutersBasic-57099976-82532647 2024-09-02 17:12:41,770 - INFO - Deleting VN ctest-ext_vn-48415999 2024-09-02 17:12:41,851 - DEBUG - VN 48f65360-c98e-4b30-91e0-980161f98759 still in use: Unable to complete operation on network 48f65360-c98e-4b30-91e0-980161f98759. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-646fd8d0-19ba-416c-82cb-f4f0b0b35fc1'] 2024-09-02 17:12:41,851 - WARNING - Deleting VN ctest-ext_vn-48415999 failed..Will retry 2024-09-02 17:12:43,962 - DEBUG - Response for deleting network () 2024-09-02 17:12:43,962 - INFO - Deleting VN ctest-vn-23192217 2024-09-02 17:12:44,060 - DEBUG - Response for deleting network () 2024-09-02 17:12:44,316 - DEBUG - No XMPP flaps were noticed during the test
2024-09-02 17:12:44,316 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-09-02 17:12:44,316 - INFO - -------------------------------------------------------------------------------- 2024-09-02 17:12:45,004 - INFO - Deleted project: ctest-TestRoutersBasic-57099976, ID : 1697890b-5c3e-403a-8476-104b4ad02cf5