2024-09-02 02:44:27,329 - INFO - Domain Default found not creating 2024-09-02 02:44:27,485 - INFO - Project ctest-TestRoutersBasic-72307415 not found, creating it 2024-09-02 02:44:27,931 - INFO - Created Project:ctest-TestRoutersBasic-72307415, ID : 70232ff7-63bc-42b2-8bb7-47b15662bcba 2024-09-02 02:44:29,596 - INFO - ================================================================================ 2024-09-02 02:44:29,596 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-02 02:44:29,596 - 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 02:44:29,851 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.19': '0'}} with 2024-09-02 02:44:29,851 - INFO - Initial checks done. Running the testcase now 2024-09-02 02:44:29,851 - INFO - 2024-09-02 02:44:30,563 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-72307415 2024-09-02 02:44:30,662 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-72307415 2024-09-02 02:44:30,989 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72307415', 'default']} 2024-09-02 02:44:31,294 - DEBUG - Response for create_network : {'network': {'id': '64c23fb3-9c5d-48cc-97f6-9799ce5cb0e6', 'name': 'ctest-vn-46978521', 'tenant_id': '70232ff763bc42b28bb747b15662bcba', 'project_id': '70232ff763bc42b28bb747b15662bcba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72307415', 'ctest-vn-46978521'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 02:44:31,442 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d1ead53-573a-4980-a51c-112895474a25', 'name': '', 'tenant_id': '70232ff763bc42b28bb747b15662bcba', 'network_id': '64c23fb3-9c5d-48cc-97f6-9799ce5cb0e6', 'ip_version': 4, 'cidr': '132.232.5.128/26', 'allocation_pools': [{'start': '132.232.5.130', 'end': '132.232.5.190'}], 'gateway_ip': '132.232.5.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.232.5.130', 'tags': [], 'project_id': '70232ff763bc42b28bb747b15662bcba'}} 2024-09-02 02:44:31,462 - INFO - Created VN ctest-vn-46978521 2024-09-02 02:44:31,514 - DEBUG - VN ctest-vn-46978521 UUID is 64c23fb3-9c5d-48cc-97f6-9799ce5cb0e6 2024-09-02 02:44:31,822 - DEBUG - Response for create_network : {'network': {'id': '452d991d-1886-470a-ae52-8756d8da815c', 'name': 'ctest-ext_vn-54728263', 'tenant_id': '70232ff763bc42b28bb747b15662bcba', 'project_id': '70232ff763bc42b28bb747b15662bcba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72307415', 'ctest-ext_vn-54728263'], 'port_security_enabled': True, 'description': ''}} 2024-09-02 02:44:32,033 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aceda2a4-534e-40be-887e-5bf7bb616b64', 'name': '', 'tenant_id': '70232ff763bc42b28bb747b15662bcba', 'network_id': '452d991d-1886-470a-ae52-8756d8da815c', 'ip_version': 4, 'cidr': '150.147.67.0/26', 'allocation_pools': [{'start': '150.147.67.2', 'end': '150.147.67.62'}], 'gateway_ip': '150.147.67.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.147.67.2', 'tags': [], 'project_id': '70232ff763bc42b28bb747b15662bcba'}} 2024-09-02 02:44:32,055 - INFO - Created VN ctest-ext_vn-54728263 2024-09-02 02:44:32,106 - DEBUG - VN ctest-ext_vn-54728263 UUID is 452d991d-1886-470a-ae52-8756d8da815c 2024-09-02 02:44:32,272 - DEBUG - Services list from nova: [, , ] 2024-09-02 02:44:33,899 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1828-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1828-1) 2024-09-02 02:44:36,138 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1828-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1828-1) 2024-09-02 02:44:36,222 - INFO - Setting gateway for router afe92afc-84fe-453e-b8bc-7198bdb56e27 to network 452d991d-1886-470a-ae52-8756d8da815c 2024-09-02 02:44:36,303 - INFO - Adding interface with subnet_id 7d1ead53-573a-4980-a51c-112895474a25, port_id None to router afe92afc-84fe-453e-b8bc-7198bdb56e27 2024-09-02 02:44:36,759 - INFO - Waiting for VM ctest-TestRoutersBasic-72307415-77195115 to be up.. 2024-09-02 02:44:36,913 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 02:44:41,988 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:44:41,988 - INFO - VM name : ctest-TestRoutersBasic-72307415-77195115 2024-09-02 02:44:42,061 - DEBUG - VM ctest-TestRoutersBasic-72307415-77195115 ID is 100c02ff-7faf-4b20-9b69-6e41a4d1955e 2024-09-02 02:44:42,079 - DEBUG - VM ctest-TestRoutersBasic-72307415-77195115 launched on Node cn-jenkins-deploy-platform-ansible-os-1828-1 2024-09-02 02:44:42,148 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/100c02ff-7faf-4b20-9b69-6e41a4d1955e 2024-09-02 02:44:42,442 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/100c02ff-7faf-4b20-9b69-6e41a4d1955e 2024-09-02 02:44:42,474 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/2fbf3716-862d-4f2b-ab31-ab5b6aa8f4d5 2024-09-02 02:44:45,729 - 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-09-02 02:44:46,901 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-72307415-77195115 failed! 2024-09-02 02:44:46,958 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-72307415:ctest-vn-46978521 is 132.232.5.129 and allocation pool is NOT set 2024-09-02 02:44:49,023 - 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=9.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.05 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 = 3.053/6.485/9.917/3.432 ms') 2024-09-02 02:44:49,023 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-72307415-77195115 passed 2024-09-02 02:44:49,174 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:44:49,174 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72307415-77195115, IP 132.232.5.131, Port 22 2024-09-02 02:44:49,244 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-02 02:44:49,324 - DEBUG - VM ctest-TestRoutersBasic-72307415-77195115 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-02 02:44:54,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:44:54,325 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72307415-77195115, IP 132.232.5.131, Port 22 2024-09-02 02:44:54,477 - DEBUG - VM ctest-TestRoutersBasic-72307415-77195115 is ready for SSH connections 2024-09-02 02:44:54,477 - INFO - Waiting for VM ctest-TestRoutersBasic-72307415-71170443 to be up.. 2024-09-02 02:44:54,552 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:44:54,552 - INFO - VM name : ctest-TestRoutersBasic-72307415-71170443 2024-09-02 02:44:54,626 - DEBUG - VM ctest-TestRoutersBasic-72307415-71170443 ID is ddf912b4-c3d9-4933-b946-3f6e63cebdf0 2024-09-02 02:44:54,626 - DEBUG - VM ctest-TestRoutersBasic-72307415-71170443 launched on Node cn-jenkins-deploy-platform-ansible-os-1828-1 2024-09-02 02:44:54,703 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/ddf912b4-c3d9-4933-b946-3f6e63cebdf0 2024-09-02 02:44:54,712 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/4556f553-1a4c-43b5-a04d-1ed287e3a6e6 2024-09-02 02:44:55,947 - 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.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.332 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.332/2.057/3.783/1.725 ms') 2024-09-02 02:44:55,948 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-72307415-71170443 passed 2024-09-02 02:44:56,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:44:56,102 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72307415-71170443, IP 150.147.67.3, Port 22 2024-09-02 02:44:56,257 - DEBUG - VM ctest-TestRoutersBasic-72307415-71170443 is ready for SSH connections 2024-09-02 02:44:56,257 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:44:56,257 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 150.147.67.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-02 02:44:56,257 - DEBUG - ping -s 56 -c 3 -W 1 150.147.67.3 2024-09-02 02:44:59,921 - DEBUG - PING 150.147.67.3 (150.147.67.3): 56 data bytes 64 bytes from 150.147.67.3: seq=0 ttl=62 time=4.138 ms 64 bytes from 150.147.67.3: seq=1 ttl=62 time=0.917 ms 64 bytes from 150.147.67.3: seq=2 ttl=62 time=0.789 ms --- 150.147.67.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.789/1.948/4.138 ms 2024-09-02 02:44:59,921 - INFO - Ping to IP 150.147.67.3 from VM ctest-TestRoutersBasic-72307415-77195115 passed 2024-09-02 02:44:59,921 - INFO - Deleting interface with subnet_id 7d1ead53-573a-4980-a51c-112895474a25, port_id None from router afe92afc-84fe-453e-b8bc-7198bdb56e27 2024-09-02 02:45:00,109 - INFO - Deleting VM ctest-TestRoutersBasic-72307415-71170443 2024-09-02 02:45:02,159 - INFO - Deleting VM ctest-TestRoutersBasic-72307415-77195115 2024-09-02 02:45:02,230 - INFO - Deleting VN ctest-ext_vn-54728263 2024-09-02 02:45:02,317 - DEBUG - VN 452d991d-1886-470a-ae52-8756d8da815c still in use: Unable to complete operation on network 452d991d-1886-470a-ae52-8756d8da815c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fea4ca6b-4512-4068-9145-21e7314c4c0b'] 2024-09-02 02:45:02,317 - WARNING - Deleting VN ctest-ext_vn-54728263 failed..Will retry 2024-09-02 02:45:04,429 - DEBUG - Response for deleting network () 2024-09-02 02:45:04,429 - INFO - Deleting VN ctest-vn-46978521 2024-09-02 02:45:04,544 - DEBUG - Response for deleting network () 2024-09-02 02:45:04,799 - DEBUG - No XMPP flaps were noticed during the test 2024-09-02 02:45:04,799 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35] 2024-09-02 02:45:04,799 - INFO - -------------------------------------------------------------------------------- 2024-09-02 02:45:05,470 - INFO - Deleted project: ctest-TestRoutersBasic-72307415, ID : 70232ff7-63bc-42b2-8bb7-47b15662bcba