2024-09-19 21:55:36,803 - INFO - Domain Default found not creating 2024-09-19 21:55:36,974 - INFO - Project ctest-TestRoutersBasic-79971909 not found, creating it 2024-09-19 21:55:37,454 - INFO - Created Project:ctest-TestRoutersBasic-79971909, ID : 95d92b67-d898-4322-9ebd-a6fc630759ef 2024-09-19 21:55:38,928 - INFO - ================================================================================ 2024-09-19 21:55:38,929 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-19 21:55:38,929 - 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-19 21:55:39,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.13': '0'}} with 2024-09-19 21:55:39,183 - INFO - Initial checks done. Running the testcase now 2024-09-19 21:55:39,183 - INFO - 2024-09-19 21:55:39,909 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-79971909 2024-09-19 21:55:40,009 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-79971909 2024-09-19 21:55:40,348 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79971909', 'default']} 2024-09-19 21:55:40,667 - DEBUG - Response for create_network : {'network': {'id': 'e3339de7-a8e2-432d-ac0f-ab6f038fb66c', 'name': 'ctest-vn-24858260', 'tenant_id': '95d92b67d89843229ebda6fc630759ef', 'project_id': '95d92b67d89843229ebda6fc630759ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79971909', 'ctest-vn-24858260'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 21:55:40,883 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd513acef-23b9-43e2-8991-626bd45b9c9b', 'name': '', 'tenant_id': '95d92b67d89843229ebda6fc630759ef', 'network_id': 'e3339de7-a8e2-432d-ac0f-ab6f038fb66c', 'ip_version': 4, 'cidr': '59.88.74.128/26', 'allocation_pools': [{'start': '59.88.74.130', 'end': '59.88.74.190'}], 'gateway_ip': '59.88.74.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.88.74.130', 'tags': [], 'project_id': '95d92b67d89843229ebda6fc630759ef'}} 2024-09-19 21:55:40,902 - INFO - Created VN ctest-vn-24858260 2024-09-19 21:55:40,960 - DEBUG - VN ctest-vn-24858260 UUID is e3339de7-a8e2-432d-ac0f-ab6f038fb66c 2024-09-19 21:55:41,291 - DEBUG - Response for create_network : {'network': {'id': '9b91b534-a1f9-4df3-822f-71fa877f9698', 'name': 'ctest-ext_vn-47365461', 'tenant_id': '95d92b67d89843229ebda6fc630759ef', 'project_id': '95d92b67d89843229ebda6fc630759ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79971909', 'ctest-ext_vn-47365461'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 21:55:41,444 - DEBUG - Response for create_subnet : {'subnet': {'id': '47333d67-a41e-4b1a-acfc-0697dded0e68', 'name': '', 'tenant_id': '95d92b67d89843229ebda6fc630759ef', 'network_id': '9b91b534-a1f9-4df3-822f-71fa877f9698', 'ip_version': 4, 'cidr': '15.28.192.128/26', 'allocation_pools': [{'start': '15.28.192.130', 'end': '15.28.192.190'}], 'gateway_ip': '15.28.192.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.28.192.130', 'tags': [], 'project_id': '95d92b67d89843229ebda6fc630759ef'}} 2024-09-19 21:55:41,464 - INFO - Created VN ctest-ext_vn-47365461 2024-09-19 21:55:41,520 - DEBUG - VN ctest-ext_vn-47365461 UUID is 9b91b534-a1f9-4df3-822f-71fa877f9698 2024-09-19 21:55:41,692 - DEBUG - Services list from nova: [, , ] 2024-09-19 21:55:42,739 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2007-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2007-1) 2024-09-19 21:55:43,926 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2007-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2007-1) 2024-09-19 21:55:44,035 - INFO - Setting gateway for router 70dbfdc0-2451-4548-b8a4-12e94eefa92d to network 9b91b534-a1f9-4df3-822f-71fa877f9698 2024-09-19 21:55:44,146 - INFO - Adding interface with subnet_id d513acef-23b9-43e2-8991-626bd45b9c9b, port_id None to router 70dbfdc0-2451-4548-b8a4-12e94eefa92d 2024-09-19 21:55:44,557 - INFO - Waiting for VM ctest-TestRoutersBasic-79971909-02839295 to be up.. 2024-09-19 21:55:44,773 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 21:55:49,879 - DEBUG - VM is in ACTIVE state now 2024-09-19 21:55:49,879 - INFO - VM name : ctest-TestRoutersBasic-79971909-02839295 2024-09-19 21:55:49,964 - DEBUG - VM ctest-TestRoutersBasic-79971909-02839295 ID is c038b79e-9437-494b-86fe-773bb4bbb5ce 2024-09-19 21:55:49,985 - DEBUG - VM ctest-TestRoutersBasic-79971909-02839295 launched on Node cn-jenkins-deploy-platform-ansible-os-2007-1 2024-09-19 21:55:50,075 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/c038b79e-9437-494b-86fe-773bb4bbb5ce 2024-09-19 21:55:50,375 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/c038b79e-9437-494b-86fe-773bb4bbb5ce 2024-09-19 21:55:50,416 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/c3bb47e2-f760-46d5-a9bb-63b2cc4fe5cf 2024-09-19 21:55:53,675 - 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 1007ms') 2024-09-19 21:55:53,676 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-79971909-02839295 failed! 2024-09-19 21:55:53,736 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-79971909:ctest-vn-24858260 is 59.88.74.129 and allocation pool is NOT set 2024-09-19 21:55:55,794 - 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.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.510 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.510/1.778/3.047/1.268 ms') 2024-09-19 21:55:55,795 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-79971909-02839295 passed 2024-09-19 21:55:55,964 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 21:55:55,964 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79971909-02839295, IP 59.88.74.131, Port 22 2024-09-19 21:55:56,134 - DEBUG - VM ctest-TestRoutersBasic-79971909-02839295 is ready for SSH connections 2024-09-19 21:55:56,135 - INFO - Waiting for VM ctest-TestRoutersBasic-79971909-54614850 to be up.. 2024-09-19 21:55:56,226 - DEBUG - VM is in ACTIVE state now 2024-09-19 21:55:56,226 - INFO - VM name : ctest-TestRoutersBasic-79971909-54614850 2024-09-19 21:55:56,317 - DEBUG - VM ctest-TestRoutersBasic-79971909-54614850 ID is fbd31ef4-8d15-40dc-90bd-97a0c7ebfc04 2024-09-19 21:55:56,317 - DEBUG - VM ctest-TestRoutersBasic-79971909-54614850 launched on Node cn-jenkins-deploy-platform-ansible-os-2007-1 2024-09-19 21:55:56,407 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/fbd31ef4-8d15-40dc-90bd-97a0c7ebfc04 2024-09-19 21:55:56,418 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/a180c4e4-90ef-443d-ad9c-7055dc613e8f 2024-09-19 21:55:57,670 - 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.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.392 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.392/1.819/3.246/1.427 ms') 2024-09-19 21:55:57,670 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-79971909-54614850 passed 2024-09-19 21:55:57,832 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 21:55:57,832 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79971909-54614850, IP 15.28.192.131, Port 22 2024-09-19 21:55:58,007 - DEBUG - VM ctest-TestRoutersBasic-79971909-54614850 is ready for SSH connections 2024-09-19 21:55:58,007 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 21:55:58,007 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.28.192.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-19 21:55:58,007 - DEBUG - ping -s 56 -c 3 -W 1 15.28.192.131 2024-09-19 21:56:01,695 - DEBUG - PING 15.28.192.131 (15.28.192.131): 56 data bytes 64 bytes from 15.28.192.131: seq=0 ttl=62 time=6.778 ms 64 bytes from 15.28.192.131: seq=1 ttl=62 time=0.903 ms 64 bytes from 15.28.192.131: seq=2 ttl=62 time=1.229 ms --- 15.28.192.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.903/2.970/6.778 ms 2024-09-19 21:56:01,695 - INFO - Ping to IP 15.28.192.131 from VM ctest-TestRoutersBasic-79971909-02839295 passed 2024-09-19 21:56:01,695 - INFO - Deleting interface with subnet_id d513acef-23b9-43e2-8991-626bd45b9c9b, port_id None from router 70dbfdc0-2451-4548-b8a4-12e94eefa92d 2024-09-19 21:56:01,922 - INFO - Deleting VM ctest-TestRoutersBasic-79971909-54614850 2024-09-19 21:56:02,004 - INFO - Deleting VM ctest-TestRoutersBasic-79971909-02839295 2024-09-19 21:56:02,092 - INFO - Deleting VN ctest-ext_vn-47365461 2024-09-19 21:56:02,200 - DEBUG - VN 9b91b534-a1f9-4df3-822f-71fa877f9698 still in use: Unable to complete operation on network 9b91b534-a1f9-4df3-822f-71fa877f9698. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c36050e9-6cc4-41b0-9273-80287b02e8d0'] 2024-09-19 21:56:02,200 - WARNING - Deleting VN ctest-ext_vn-47365461 failed..Will retry 2024-09-19 21:56:04,314 - DEBUG - Response for deleting network () 2024-09-19 21:56:04,315 - INFO - Deleting VN ctest-vn-24858260 2024-09-19 21:56:04,431 - DEBUG - Response for deleting network () 2024-09-19 21:56:04,687 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 21:56:04,688 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-19 21:56:04,688 - INFO - -------------------------------------------------------------------------------- 2024-09-19 21:56:05,444 - INFO - Deleted project: ctest-TestRoutersBasic-79971909, ID : 95d92b67-d898-4322-9ebd-a6fc630759ef