2025-01-07 18:41:19,172 - INFO - Domain Default found not creating 2025-01-07 18:41:19,303 - INFO - Project ctest-TestRoutersBasic-25290595 not found, creating it 2025-01-07 18:41:19,742 - INFO - Created Project:ctest-TestRoutersBasic-25290595, ID : 58d48b40-437b-4ef6-9c7a-39a71524d791 2025-01-07 18:41:21,250 - INFO - ================================================================================ 2025-01-07 18:41:21,250 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-07 18:41:21,250 - 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 2025-01-07 18:41:21,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.20': '0'}} with 2025-01-07 18:41:21,507 - INFO - Initial checks done. Running the testcase now 2025-01-07 18:41:21,507 - INFO - 2025-01-07 18:41:22,218 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-25290595 2025-01-07 18:41:22,317 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-25290595 2025-01-07 18:41:22,649 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25290595', 'default']} 2025-01-07 18:41:22,938 - DEBUG - Response for create_network : {'network': {'id': '884a7a2e-7614-4259-9b09-4771f869f8c8', 'name': 'ctest-vn-42426453', 'tenant_id': '58d48b40437b4ef69c7a39a71524d791', 'project_id': '58d48b40437b4ef69c7a39a71524d791', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25290595', 'ctest-vn-42426453'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 18:41:23,106 - DEBUG - Response for create_subnet : {'subnet': {'id': '8aba723a-d81a-429e-818a-2d8d455bc842', 'name': '', 'tenant_id': '58d48b40437b4ef69c7a39a71524d791', 'network_id': '884a7a2e-7614-4259-9b09-4771f869f8c8', 'ip_version': 4, 'cidr': '181.17.197.64/26', 'allocation_pools': [{'start': '181.17.197.66', 'end': '181.17.197.126'}], 'gateway_ip': '181.17.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.17.197.66', 'tags': [], 'project_id': '58d48b40437b4ef69c7a39a71524d791'}} 2025-01-07 18:41:23,125 - INFO - Created VN ctest-vn-42426453 2025-01-07 18:41:23,177 - DEBUG - VN ctest-vn-42426453 UUID is 884a7a2e-7614-4259-9b09-4771f869f8c8 2025-01-07 18:41:23,572 - DEBUG - Response for create_network : {'network': {'id': '5bcf65cc-6262-43b5-bebc-3c728cc18fac', 'name': 'ctest-ext_vn-97770842', 'tenant_id': '58d48b40437b4ef69c7a39a71524d791', 'project_id': '58d48b40437b4ef69c7a39a71524d791', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25290595', 'ctest-ext_vn-97770842'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 18:41:23,718 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab546381-aecf-44c2-b162-1d1dab09296f', 'name': '', 'tenant_id': '58d48b40437b4ef69c7a39a71524d791', 'network_id': '5bcf65cc-6262-43b5-bebc-3c728cc18fac', 'ip_version': 4, 'cidr': '65.116.199.128/26', 'allocation_pools': [{'start': '65.116.199.130', 'end': '65.116.199.190'}], 'gateway_ip': '65.116.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.116.199.130', 'tags': [], 'project_id': '58d48b40437b4ef69c7a39a71524d791'}} 2025-01-07 18:41:23,735 - INFO - Created VN ctest-ext_vn-97770842 2025-01-07 18:41:23,789 - DEBUG - VN ctest-ext_vn-97770842 UUID is 5bcf65cc-6262-43b5-bebc-3c728cc18fac 2025-01-07 18:41:23,984 - DEBUG - Services list from nova: [, , ] 2025-01-07 18:41:24,975 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2553-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2553-1) 2025-01-07 18:41:26,093 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2553-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2553-1) 2025-01-07 18:41:26,157 - INFO - Setting gateway for router ed454f49-7543-43bc-b4d2-fb780e949ca2 to network 5bcf65cc-6262-43b5-bebc-3c728cc18fac 2025-01-07 18:41:26,237 - INFO - Adding interface with subnet_id 8aba723a-d81a-429e-818a-2d8d455bc842, port_id None to router ed454f49-7543-43bc-b4d2-fb780e949ca2 2025-01-07 18:41:26,581 - INFO - Waiting for VM ctest-TestRoutersBasic-25290595-95915960 to be up.. 2025-01-07 18:41:26,745 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-07 18:41:31,814 - DEBUG - VM is in ACTIVE state now 2025-01-07 18:41:31,814 - INFO - VM name : ctest-TestRoutersBasic-25290595-95915960 2025-01-07 18:41:31,883 - DEBUG - VM ctest-TestRoutersBasic-25290595-95915960 ID is 19ddf4af-de90-4e3f-9fbb-677b0a90b284 2025-01-07 18:41:31,904 - DEBUG - VM ctest-TestRoutersBasic-25290595-95915960 launched on Node cn-jenkins-deploy-platform-ansible-os-2553-1 2025-01-07 18:41:31,983 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/19ddf4af-de90-4e3f-9fbb-677b0a90b284 2025-01-07 18:41:32,288 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/19ddf4af-de90-4e3f-9fbb-677b0a90b284 2025-01-07 18:41:32,319 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/ea142c9b-c8e5-4d38-8861-e8db89c09f9b 2025-01-07 18:41:35,591 - 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 1027ms') 2025-01-07 18:41:35,591 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25290595-95915960 failed! 2025-01-07 18:41:35,649 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-25290595:ctest-vn-42426453 is 181.17.197.65 and allocation pool is NOT set 2025-01-07 18:41:37,710 - 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=2.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.405 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 = 0.405/1.640/2.876/1.235 ms') 2025-01-07 18:41:37,711 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25290595-95915960 passed 2025-01-07 18:41:37,861 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 18:41:37,861 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25290595-95915960, IP 181.17.197.67, Port 22 2025-01-07 18:41:38,016 - DEBUG - VM ctest-TestRoutersBasic-25290595-95915960 is ready for SSH connections 2025-01-07 18:41:38,017 - INFO - Waiting for VM ctest-TestRoutersBasic-25290595-27369006 to be up.. 2025-01-07 18:41:38,089 - DEBUG - VM is in ACTIVE state now 2025-01-07 18:41:38,089 - INFO - VM name : ctest-TestRoutersBasic-25290595-27369006 2025-01-07 18:41:38,169 - DEBUG - VM ctest-TestRoutersBasic-25290595-27369006 ID is 9d37b785-8d52-4777-8256-ab72c462596d 2025-01-07 18:41:38,170 - DEBUG - VM ctest-TestRoutersBasic-25290595-27369006 launched on Node cn-jenkins-deploy-platform-ansible-os-2553-1 2025-01-07 18:41:38,241 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/9d37b785-8d52-4777-8256-ab72c462596d 2025-01-07 18:41:38,251 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/05570e87-8fa5-46d6-ac8b-68d9f3abb1cb 2025-01-07 18:41:39,502 - 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.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.445 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.445/1.864/3.284/1.419 ms') 2025-01-07 18:41:39,502 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-25290595-27369006 passed 2025-01-07 18:41:39,657 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 18:41:39,657 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25290595-27369006, IP 65.116.199.131, Port 22 2025-01-07 18:41:39,812 - DEBUG - VM ctest-TestRoutersBasic-25290595-27369006 is ready for SSH connections 2025-01-07 18:41:39,812 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 18:41:39,812 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.116.199.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-01-07 18:41:39,812 - DEBUG - ping -s 56 -c 3 -W 1 65.116.199.131 2025-01-07 18:41:43,514 - DEBUG - PING 65.116.199.131 (65.116.199.131): 56 data bytes 64 bytes from 65.116.199.131: seq=0 ttl=62 time=5.505 ms 64 bytes from 65.116.199.131: seq=1 ttl=62 time=0.921 ms 64 bytes from 65.116.199.131: seq=2 ttl=62 time=0.952 ms --- 65.116.199.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.921/2.459/5.505 ms 2025-01-07 18:41:43,514 - INFO - Ping to IP 65.116.199.131 from VM ctest-TestRoutersBasic-25290595-95915960 passed 2025-01-07 18:41:43,514 - INFO - Deleting interface with subnet_id 8aba723a-d81a-429e-818a-2d8d455bc842, port_id None from router ed454f49-7543-43bc-b4d2-fb780e949ca2 2025-01-07 18:41:43,769 - INFO - Deleting VM ctest-TestRoutersBasic-25290595-27369006 2025-01-07 18:41:43,836 - INFO - Deleting VM ctest-TestRoutersBasic-25290595-95915960 2025-01-07 18:41:43,914 - INFO - Deleting VN ctest-ext_vn-97770842 2025-01-07 18:41:44,004 - DEBUG - VN 5bcf65cc-6262-43b5-bebc-3c728cc18fac still in use: Unable to complete operation on network 5bcf65cc-6262-43b5-bebc-3c728cc18fac. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c93243ae-9426-45d7-8504-4a2121a8301f'] 2025-01-07 18:41:44,004 - WARNING - Deleting VN ctest-ext_vn-97770842 failed..Will retry 2025-01-07 18:41:46,100 - DEBUG - Response for deleting network () 2025-01-07 18:41:46,100 - INFO - Deleting VN ctest-vn-42426453 2025-01-07 18:41:46,205 - DEBUG - Response for deleting network () 2025-01-07 18:41:46,462 - DEBUG - No XMPP flaps were noticed during the test 2025-01-07 18:41:46,462 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-01-07 18:41:46,462 - INFO - -------------------------------------------------------------------------------- 2025-01-07 18:41:47,122 - INFO - Deleted project: ctest-TestRoutersBasic-25290595, ID : 58d48b40-437b-4ef6-9c7a-39a71524d791