2024-10-26 12:31:40,853 - INFO - Domain Default found not creating 2024-10-26 12:31:41,103 - INFO - Project ctest-TestRoutersBasic-10510348 not found, creating it 2024-10-26 12:31:42,254 - INFO - Created Project:ctest-TestRoutersBasic-10510348, ID : 234899bd-aaab-4f44-8edc-a73b20a1acd8 2024-10-26 12:31:44,636 - INFO - ================================================================================ 2024-10-26 12:31:44,637 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-26 12:31:44,637 - 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-26 12:31:44,919 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with 2024-10-26 12:31:44,920 - INFO - Initial checks done. Running the testcase now 2024-10-26 12:31:44,920 - INFO - 2024-10-26 12:31:45,903 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-10510348 2024-10-26 12:31:46,007 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-10510348 2024-10-26 12:31:46,394 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10510348', 'default']} 2024-10-26 12:31:46,838 - DEBUG - Response for create_network : {'network': {'id': '43e32916-9bb5-47b2-bfbb-b84885e4f8e3', 'name': 'ctest-vn-26112056', 'tenant_id': '234899bdaaab4f448edca73b20a1acd8', 'project_id': '234899bdaaab4f448edca73b20a1acd8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10510348', 'ctest-vn-26112056'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 12:31:47,103 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edc07fbf-2c5e-483c-9e91-f279b6e2deeb', 'name': '', 'tenant_id': '234899bdaaab4f448edca73b20a1acd8', 'network_id': '43e32916-9bb5-47b2-bfbb-b84885e4f8e3', 'ip_version': 4, 'cidr': '76.159.21.128/26', 'allocation_pools': [{'start': '76.159.21.130', 'end': '76.159.21.190'}], 'gateway_ip': '76.159.21.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.159.21.130', 'tags': [], 'project_id': '234899bdaaab4f448edca73b20a1acd8'}} 2024-10-26 12:31:47,136 - INFO - Created VN ctest-vn-26112056 2024-10-26 12:31:47,204 - DEBUG - VN ctest-vn-26112056 UUID is 43e32916-9bb5-47b2-bfbb-b84885e4f8e3 2024-10-26 12:31:47,706 - DEBUG - Response for create_network : {'network': {'id': '0b40df28-b8f2-425d-b83c-3e6e070d5e38', 'name': 'ctest-ext_vn-29836628', 'tenant_id': '234899bdaaab4f448edca73b20a1acd8', 'project_id': '234899bdaaab4f448edca73b20a1acd8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10510348', 'ctest-ext_vn-29836628'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 12:31:47,933 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e557c1cc-c71f-49f3-8753-d3997edbf834', 'name': '', 'tenant_id': '234899bdaaab4f448edca73b20a1acd8', 'network_id': '0b40df28-b8f2-425d-b83c-3e6e070d5e38', 'ip_version': 4, 'cidr': '221.197.99.64/26', 'allocation_pools': [{'start': '221.197.99.66', 'end': '221.197.99.126'}], 'gateway_ip': '221.197.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.197.99.66', 'tags': [], 'project_id': '234899bdaaab4f448edca73b20a1acd8'}} 2024-10-26 12:31:47,963 - INFO - Created VN ctest-ext_vn-29836628 2024-10-26 12:31:48,023 - DEBUG - VN ctest-ext_vn-29836628 UUID is 0b40df28-b8f2-425d-b83c-3e6e070d5e38 2024-10-26 12:31:48,248 - DEBUG - Services list from nova: [, , ] 2024-10-26 12:31:49,588 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2150-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2150-1) 2024-10-26 12:31:51,222 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2150-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2150-1) 2024-10-26 12:31:51,326 - INFO - Setting gateway for router 6ddf25f0-50c1-4048-875c-86f282db004e to network 0b40df28-b8f2-425d-b83c-3e6e070d5e38 2024-10-26 12:31:51,432 - INFO - Adding interface with subnet_id edc07fbf-2c5e-483c-9e91-f279b6e2deeb, port_id None to router 6ddf25f0-50c1-4048-875c-86f282db004e 2024-10-26 12:31:51,967 - INFO - Waiting for VM ctest-TestRoutersBasic-10510348-53410422 to be up.. 2024-10-26 12:31:52,226 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 12:31:57,336 - DEBUG - VM is in ACTIVE state now 2024-10-26 12:31:57,336 - INFO - VM name : ctest-TestRoutersBasic-10510348-53410422 2024-10-26 12:31:57,436 - DEBUG - VM ctest-TestRoutersBasic-10510348-53410422 ID is 272529be-5b75-4114-9787-80e86bc6f376 2024-10-26 12:31:57,462 - DEBUG - VM ctest-TestRoutersBasic-10510348-53410422 launched on Node cn-jenkins-deploy-platform-ansible-os-2150-1 2024-10-26 12:31:57,574 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/272529be-5b75-4114-9787-80e86bc6f376 2024-10-26 12:31:57,947 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/272529be-5b75-4114-9787-80e86bc6f376 2024-10-26 12:31:57,998 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/6de1fd82-20c7-4e76-bb18-9e4a3271c53b 2024-10-26 12:32:01,301 - 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 1025ms') 2024-10-26 12:32:01,301 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-10510348-53410422 failed! 2024-10-26 12:32:01,367 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-10510348:ctest-vn-26112056 is 76.159.21.129 and allocation pool is NOT set 2024-10-26 12:32:03,432 - 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=7.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.11 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.108/4.445/7.782/3.337 ms') 2024-10-26 12:32:03,432 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-10510348-53410422 passed 2024-10-26 12:32:03,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:32:03,603 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10510348-53410422, IP 76.159.21.131, Port 22 2024-10-26 12:32:03,669 - 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-10-26 12:32:03,806 - DEBUG - VM ctest-TestRoutersBasic-10510348-53410422 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-26 12:32:08,808 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:32:08,808 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10510348-53410422, IP 76.159.21.131, Port 22 2024-10-26 12:32:08,977 - DEBUG - VM ctest-TestRoutersBasic-10510348-53410422 is ready for SSH connections 2024-10-26 12:32:08,977 - INFO - Waiting for VM ctest-TestRoutersBasic-10510348-82152703 to be up.. 2024-10-26 12:32:09,085 - DEBUG - VM is in ACTIVE state now 2024-10-26 12:32:09,086 - INFO - VM name : ctest-TestRoutersBasic-10510348-82152703 2024-10-26 12:32:09,200 - DEBUG - VM ctest-TestRoutersBasic-10510348-82152703 ID is 8505147f-b7d1-4872-a55e-549bf7a08510 2024-10-26 12:32:09,201 - DEBUG - VM ctest-TestRoutersBasic-10510348-82152703 launched on Node cn-jenkins-deploy-platform-ansible-os-2150-1 2024-10-26 12:32:09,308 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/8505147f-b7d1-4872-a55e-549bf7a08510 2024-10-26 12:32:09,324 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/4d50fba2-1938-4be2-a6d6-afa3db1592d0 2024-10-26 12:32:10,635 - 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=4.32 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.532 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.532/2.423/4.315/1.891 ms') 2024-10-26 12:32:10,636 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-10510348-82152703 passed 2024-10-26 12:32:10,799 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:32:10,799 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10510348-82152703, IP 221.197.99.67, Port 22 2024-10-26 12:32:10,974 - DEBUG - VM ctest-TestRoutersBasic-10510348-82152703 is ready for SSH connections 2024-10-26 12:32:10,974 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 12:32:10,974 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.197.99.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-10-26 12:32:10,975 - DEBUG - ping -s 56 -c 3 -W 1 221.197.99.67 2024-10-26 12:32:14,780 - DEBUG - PING 221.197.99.67 (221.197.99.67): 56 data bytes 64 bytes from 221.197.99.67: seq=0 ttl=62 time=5.209 ms 64 bytes from 221.197.99.67: seq=1 ttl=62 time=1.320 ms 64 bytes from 221.197.99.67: seq=2 ttl=62 time=1.222 ms --- 221.197.99.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.222/2.583/5.209 ms 2024-10-26 12:32:14,780 - INFO - Ping to IP 221.197.99.67 from VM ctest-TestRoutersBasic-10510348-53410422 passed 2024-10-26 12:32:14,781 - INFO - Deleting interface with subnet_id edc07fbf-2c5e-483c-9e91-f279b6e2deeb, port_id None from router 6ddf25f0-50c1-4048-875c-86f282db004e 2024-10-26 12:32:15,117 - INFO - Deleting VM ctest-TestRoutersBasic-10510348-82152703 2024-10-26 12:32:15,257 - INFO - Deleting VM ctest-TestRoutersBasic-10510348-53410422 2024-10-26 12:32:15,435 - INFO - Deleting VN ctest-ext_vn-29836628 2024-10-26 12:32:15,590 - DEBUG - VN 0b40df28-b8f2-425d-b83c-3e6e070d5e38 still in use: Unable to complete operation on network 0b40df28-b8f2-425d-b83c-3e6e070d5e38. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d6c308f2-f85d-4583-baa9-b8a33a4277aa'] 2024-10-26 12:32:15,590 - WARNING - Deleting VN ctest-ext_vn-29836628 failed..Will retry 2024-10-26 12:32:17,735 - DEBUG - Response for deleting network () 2024-10-26 12:32:17,735 - INFO - Deleting VN ctest-vn-26112056 2024-10-26 12:32:17,872 - DEBUG - Response for deleting network () 2024-10-26 12:32:18,149 - DEBUG - No XMPP flaps were noticed during the test
2024-10-26 12:32:18,150 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34]
2024-10-26 12:32:18,150 - INFO - -------------------------------------------------------------------------------- 2024-10-26 12:32:18,949 - INFO - Deleted project: ctest-TestRoutersBasic-10510348, ID : 234899bd-aaab-4f44-8edc-a73b20a1acd8