2024-10-18 22:13:41,048 - INFO - Domain Default found not creating 2024-10-18 22:13:41,257 - INFO - Project ctest-TestRoutersBasic-75369596 not found, creating it 2024-10-18 22:13:41,842 - INFO - Created Project:ctest-TestRoutersBasic-75369596, ID : c87982f9-b538-465d-aabc-3d24c21d1beb 2024-10-18 22:13:43,985 - INFO - ================================================================================ 2024-10-18 22:13:43,986 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-18 22:13:43,986 - 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-18 22:13:44,255 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.6': '0'}} with 2024-10-18 22:13:44,255 - INFO - Initial checks done. Running the testcase now 2024-10-18 22:13:44,256 - INFO - 2024-10-18 22:13:45,025 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-75369596 2024-10-18 22:13:45,126 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-75369596 2024-10-18 22:13:45,490 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75369596', 'default']} 2024-10-18 22:13:45,870 - DEBUG - Response for create_network : {'network': {'id': 'aaa677b6-0cc4-445c-a078-3b2977f9d3c7', 'name': 'ctest-vn-51853930', 'tenant_id': 'c87982f9b538465daabc3d24c21d1beb', 'project_id': 'c87982f9b538465daabc3d24c21d1beb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75369596', 'ctest-vn-51853930'], 'port_security_enabled': True, 'description': ''}} 2024-10-18 22:13:46,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '3372305a-8ace-47d0-9b90-3cf78adecafd', 'name': '', 'tenant_id': 'c87982f9b538465daabc3d24c21d1beb', 'network_id': 'aaa677b6-0cc4-445c-a078-3b2977f9d3c7', 'ip_version': 4, 'cidr': '60.209.171.128/26', 'allocation_pools': [{'start': '60.209.171.130', 'end': '60.209.171.190'}], 'gateway_ip': '60.209.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.209.171.130', 'tags': [], 'project_id': 'c87982f9b538465daabc3d24c21d1beb'}} 2024-10-18 22:13:46,114 - INFO - Created VN ctest-vn-51853930 2024-10-18 22:13:46,174 - DEBUG - VN ctest-vn-51853930 UUID is aaa677b6-0cc4-445c-a078-3b2977f9d3c7 2024-10-18 22:13:46,624 - DEBUG - Response for create_network : {'network': {'id': '609b9e1b-33a9-49d2-9495-003d07dd65c4', 'name': 'ctest-ext_vn-53303193', 'tenant_id': 'c87982f9b538465daabc3d24c21d1beb', 'project_id': 'c87982f9b538465daabc3d24c21d1beb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-75369596', 'ctest-ext_vn-53303193'], 'port_security_enabled': True, 'description': ''}} 2024-10-18 22:13:46,836 - DEBUG - Response for create_subnet : {'subnet': {'id': '7de7d071-29f2-43f1-97a4-cfe177f573e3', 'name': '', 'tenant_id': 'c87982f9b538465daabc3d24c21d1beb', 'network_id': '609b9e1b-33a9-49d2-9495-003d07dd65c4', 'ip_version': 4, 'cidr': '211.93.185.128/26', 'allocation_pools': [{'start': '211.93.185.130', 'end': '211.93.185.190'}], 'gateway_ip': '211.93.185.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.93.185.130', 'tags': [], 'project_id': 'c87982f9b538465daabc3d24c21d1beb'}} 2024-10-18 22:13:46,861 - INFO - Created VN ctest-ext_vn-53303193 2024-10-18 22:13:46,922 - DEBUG - VN ctest-ext_vn-53303193 UUID is 609b9e1b-33a9-49d2-9495-003d07dd65c4 2024-10-18 22:13:47,148 - DEBUG - Services list from nova: [, , ] 2024-10-18 22:13:48,307 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2114-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2114-1) 2024-10-18 22:13:49,659 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2114-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2114-1) 2024-10-18 22:13:49,755 - INFO - Setting gateway for router f6e5a314-e7bd-4381-a026-4f381e2cef69 to network 609b9e1b-33a9-49d2-9495-003d07dd65c4 2024-10-18 22:13:49,835 - INFO - Adding interface with subnet_id 3372305a-8ace-47d0-9b90-3cf78adecafd, port_id None to router f6e5a314-e7bd-4381-a026-4f381e2cef69 2024-10-18 22:13:50,311 - INFO - Waiting for VM ctest-TestRoutersBasic-75369596-56160263 to be up.. 2024-10-18 22:13:50,493 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-18 22:13:55,617 - DEBUG - VM is in ACTIVE state now 2024-10-18 22:13:55,617 - INFO - VM name : ctest-TestRoutersBasic-75369596-56160263 2024-10-18 22:13:55,719 - DEBUG - VM ctest-TestRoutersBasic-75369596-56160263 ID is 6d61e71c-1d5f-4d31-92f5-ac39d20cf8ff 2024-10-18 22:13:55,743 - DEBUG - VM ctest-TestRoutersBasic-75369596-56160263 launched on Node cn-jenkins-deploy-platform-ansible-os-2114-1 2024-10-18 22:13:55,861 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/6d61e71c-1d5f-4d31-92f5-ac39d20cf8ff 2024-10-18 22:13:56,175 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/6d61e71c-1d5f-4d31-92f5-ac39d20cf8ff 2024-10-18 22:13:56,219 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/7fc79373-7bbd-4327-b3f5-67b9b7494b9d 2024-10-18 22:13:59,505 - 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-18 22:13:59,505 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-75369596-56160263 failed! 2024-10-18 22:13:59,570 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-75369596:ctest-vn-51853930 is 60.209.171.129 and allocation pool is NOT set 2024-10-18 22:14:01,642 - 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.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.66 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 = 1.660/3.248/4.836/1.588 ms') 2024-10-18 22:14:01,642 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-75369596-56160263 passed 2024-10-18 22:14:01,810 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 22:14:01,811 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75369596-56160263, IP 60.209.171.131, Port 22 2024-10-18 22:14:01,977 - DEBUG - VM ctest-TestRoutersBasic-75369596-56160263 is ready for SSH connections 2024-10-18 22:14:01,977 - INFO - Waiting for VM ctest-TestRoutersBasic-75369596-09344335 to be up.. 2024-10-18 22:14:02,083 - DEBUG - VM is in ACTIVE state now 2024-10-18 22:14:02,083 - INFO - VM name : ctest-TestRoutersBasic-75369596-09344335 2024-10-18 22:14:02,190 - DEBUG - VM ctest-TestRoutersBasic-75369596-09344335 ID is 1305c548-5bed-4cef-b162-702e44a403eb 2024-10-18 22:14:02,190 - DEBUG - VM ctest-TestRoutersBasic-75369596-09344335 launched on Node cn-jenkins-deploy-platform-ansible-os-2114-1 2024-10-18 22:14:02,283 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/1305c548-5bed-4cef-b162-702e44a403eb 2024-10-18 22:14:02,296 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/0809006b-1189-404d-be84-e4123f520373 2024-10-18 22:14:03,574 - 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.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.829 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.829/2.327/3.826/1.498 ms') 2024-10-18 22:14:03,574 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-75369596-09344335 passed 2024-10-18 22:14:03,747 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 22:14:03,747 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-75369596-09344335, IP 211.93.185.131, Port 22 2024-10-18 22:14:03,913 - DEBUG - VM ctest-TestRoutersBasic-75369596-09344335 is ready for SSH connections 2024-10-18 22:14:03,913 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 22:14:03,914 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.93.185.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-10-18 22:14:03,914 - DEBUG - ping -s 56 -c 3 -W 1 211.93.185.131 2024-10-18 22:14:07,636 - DEBUG - PING 211.93.185.131 (211.93.185.131): 56 data bytes 64 bytes from 211.93.185.131: seq=0 ttl=62 time=7.537 ms 64 bytes from 211.93.185.131: seq=1 ttl=62 time=1.194 ms 64 bytes from 211.93.185.131: seq=2 ttl=62 time=1.050 ms --- 211.93.185.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.050/3.260/7.537 ms 2024-10-18 22:14:07,636 - INFO - Ping to IP 211.93.185.131 from VM ctest-TestRoutersBasic-75369596-56160263 passed 2024-10-18 22:14:07,636 - INFO - Deleting interface with subnet_id 3372305a-8ace-47d0-9b90-3cf78adecafd, port_id None from router f6e5a314-e7bd-4381-a026-4f381e2cef69 2024-10-18 22:14:07,918 - INFO - Deleting VM ctest-TestRoutersBasic-75369596-09344335 2024-10-18 22:14:08,029 - INFO - Deleting VM ctest-TestRoutersBasic-75369596-56160263 2024-10-18 22:14:08,142 - INFO - Deleting VN ctest-ext_vn-53303193 2024-10-18 22:14:08,258 - DEBUG - VN 609b9e1b-33a9-49d2-9495-003d07dd65c4 still in use: Unable to complete operation on network 609b9e1b-33a9-49d2-9495-003d07dd65c4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5aac2992-b76f-4f9f-b9bd-a2f75a89780a'] 2024-10-18 22:14:08,258 - WARNING - Deleting VN ctest-ext_vn-53303193 failed..Will retry 2024-10-18 22:14:10,427 - DEBUG - Response for deleting network () 2024-10-18 22:14:10,427 - INFO - Deleting VN ctest-vn-51853930 2024-10-18 22:14:10,577 - DEBUG - Response for deleting network () 2024-10-18 22:14:10,843 - DEBUG - No XMPP flaps were noticed during the test
2024-10-18 22:14:10,843 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-10-18 22:14:10,843 - INFO - -------------------------------------------------------------------------------- 2024-10-18 22:14:11,599 - INFO - Deleted project: ctest-TestRoutersBasic-75369596, ID : c87982f9-b538-465d-aabc-3d24c21d1beb