2025-08-10 11:11:38,558 - INFO - Domain Default found not creating 2025-08-10 11:11:38,673 - INFO - Project ctest-TestRoutersBasic-13123019 not found, creating it 2025-08-10 11:11:39,228 - INFO - Created Project:ctest-TestRoutersBasic-13123019, ID : baeaa0de-2d12-4cbb-b6f7-756f5b11e0d8 2025-08-10 11:11:40,532 - INFO - ================================================================================ 2025-08-10 11:11:40,532 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-10 11:11:40,532 - 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-08-10 11:11:41,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.56': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2025-08-10 11:11:41,770 - INFO - Initial checks done. Running the testcase now 2025-08-10 11:11:41,770 - INFO - 2025-08-10 11:11:42,466 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-13123019 2025-08-10 11:11:42,520 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-13123019 2025-08-10 11:11:42,812 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13123019', 'default']} 2025-08-10 11:11:43,193 - DEBUG - Response for create_network : {'network': {'id': 'adc37d04-57ab-4eab-a804-952cfbbda2fe', 'name': 'ctest-vn-69467205', 'tenant_id': 'baeaa0de2d124cbbb6f7756f5b11e0d8', 'project_id': 'baeaa0de2d124cbbb6f7756f5b11e0d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13123019', 'ctest-vn-69467205'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 11:11:43,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '72ff67cc-c896-4557-b516-3957144c8f02', 'name': '', 'tenant_id': 'baeaa0de2d124cbbb6f7756f5b11e0d8', 'network_id': 'adc37d04-57ab-4eab-a804-952cfbbda2fe', 'ip_version': 4, 'cidr': '43.201.0.128/26', 'allocation_pools': [{'start': '43.201.0.130', 'end': '43.201.0.190'}], 'gateway_ip': '43.201.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.201.0.130', 'tags': [], 'project_id': 'baeaa0de2d124cbbb6f7756f5b11e0d8'}} 2025-08-10 11:11:43,468 - INFO - Created VN ctest-vn-69467205 2025-08-10 11:11:43,481 - DEBUG - VN ctest-vn-69467205 UUID is adc37d04-57ab-4eab-a804-952cfbbda2fe 2025-08-10 11:11:43,889 - DEBUG - Response for create_network : {'network': {'id': 'a40cbe03-1e7c-40c1-998a-573e96d84088', 'name': 'ctest-ext_vn-64009602', 'tenant_id': 'baeaa0de2d124cbbb6f7756f5b11e0d8', 'project_id': 'baeaa0de2d124cbbb6f7756f5b11e0d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13123019', 'ctest-ext_vn-64009602'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 11:11:44,140 - DEBUG - Response for create_subnet : {'subnet': {'id': '36b68149-a91a-4940-9f02-9ec30d2c99a6', 'name': '', 'tenant_id': 'baeaa0de2d124cbbb6f7756f5b11e0d8', 'network_id': 'a40cbe03-1e7c-40c1-998a-573e96d84088', 'ip_version': 4, 'cidr': '102.229.178.64/26', 'allocation_pools': [{'start': '102.229.178.66', 'end': '102.229.178.126'}], 'gateway_ip': '102.229.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.229.178.66', 'tags': [], 'project_id': 'baeaa0de2d124cbbb6f7756f5b11e0d8'}} 2025-08-10 11:11:44,160 - INFO - Created VN ctest-ext_vn-64009602 2025-08-10 11:11:44,169 - DEBUG - VN ctest-ext_vn-64009602 UUID is a40cbe03-1e7c-40c1-998a-573e96d84088 2025-08-10 11:11:44,320 - DEBUG - Services list from nova: [, , , ] 2025-08-10 11:11:45,262 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3786-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3786-1) 2025-08-10 11:11:46,881 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3786-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3786-2) 2025-08-10 11:11:46,964 - INFO - Setting gateway for router 8dfe62dd-da4d-4a69-9c26-bd5ec3c885d6 to network a40cbe03-1e7c-40c1-998a-573e96d84088 2025-08-10 11:11:47,062 - INFO - Adding interface with subnet_id 72ff67cc-c896-4557-b516-3957144c8f02, port_id None to router 8dfe62dd-da4d-4a69-9c26-bd5ec3c885d6 2025-08-10 11:11:47,560 - INFO - Waiting for VM ctest-TestRoutersBasic-13123019-17357975 to be up.. 2025-08-10 11:11:47,685 - DEBUG - VM is in ACTIVE state now 2025-08-10 11:11:47,685 - INFO - VM name : ctest-TestRoutersBasic-13123019-17357975 2025-08-10 11:11:47,791 - DEBUG - VM ctest-TestRoutersBasic-13123019-17357975 ID is 4f163a24-210f-4712-9f6b-f01f84a4b523 2025-08-10 11:11:47,839 - DEBUG - VM ctest-TestRoutersBasic-13123019-17357975 launched on Node an-jenkins-deploy-platform-ansible-os-3786-1 2025-08-10 11:11:47,994 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/4f163a24-210f-4712-9f6b-f01f84a4b523 2025-08-10 11:11:48,636 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/4f163a24-210f-4712-9f6b-f01f84a4b523 2025-08-10 11:11:48,710 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/dc3938ed-75df-45d9-80f5-a1d0dd992b4b 2025-08-10 11:11:51,960 - 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 1012ms') 2025-08-10 11:11:51,960 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13123019-17357975 failed! 2025-08-10 11:11:51,975 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-13123019:ctest-vn-69467205 is 43.201.0.129 and allocation pool is NOT set 2025-08-10 11:11:56,065 - 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=2 ttl=63 time=12.0 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1028ms\r\nrtt min/avg/max/mdev = 12.031/12.031/12.031/0.000 ms') 2025-08-10 11:11:56,065 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13123019-17357975 passed 2025-08-10 11:11:56,177 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:11:56,177 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13123019-17357975, IP 43.201.0.131, Port 22 2025-08-10 11:11:56,232 - 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': ''} 2025-08-10 11:11:56,311 - DEBUG - VM ctest-TestRoutersBasic-13123019-17357975 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-10 11:12:01,311 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:12:01,312 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13123019-17357975, IP 43.201.0.131, Port 22 2025-08-10 11:12:01,464 - DEBUG - VM ctest-TestRoutersBasic-13123019-17357975 is ready for SSH connections 2025-08-10 11:12:01,464 - INFO - Waiting for VM ctest-TestRoutersBasic-13123019-09495475 to be up.. 2025-08-10 11:12:01,543 - DEBUG - VM is in ACTIVE state now 2025-08-10 11:12:01,543 - INFO - VM name : ctest-TestRoutersBasic-13123019-09495475 2025-08-10 11:12:01,619 - DEBUG - VM ctest-TestRoutersBasic-13123019-09495475 ID is fc36f5c8-7a86-4649-aa24-4c2331a670ac 2025-08-10 11:12:01,619 - DEBUG - VM ctest-TestRoutersBasic-13123019-09495475 launched on Node an-jenkins-deploy-platform-ansible-os-3786-2 2025-08-10 11:12:01,681 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/fc36f5c8-7a86-4649-aa24-4c2331a670ac 2025-08-10 11:12:01,689 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/72c2589b-271a-4591-9351-afa37b7da3aa 2025-08-10 11:12:02,881 - 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.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.293 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.293/1.562/2.832/1.269 ms') 2025-08-10 11:12:02,881 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13123019-09495475 passed 2025-08-10 11:12:02,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:12:02,991 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13123019-09495475, IP 102.229.178.67, Port 22 2025-08-10 11:12:03,142 - DEBUG - VM ctest-TestRoutersBasic-13123019-09495475 is ready for SSH connections 2025-08-10 11:12:03,142 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-10 11:12:03,142 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.229.178.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-10 11:12:03,142 - DEBUG - ping -s 56 -c 3 -W 1 102.229.178.67 2025-08-10 11:12:06,745 - DEBUG - PING 102.229.178.67 (102.229.178.67): 56 data bytes 64 bytes from 102.229.178.67: seq=0 ttl=62 time=5.945 ms 64 bytes from 102.229.178.67: seq=1 ttl=62 time=0.849 ms 64 bytes from 102.229.178.67: seq=2 ttl=62 time=0.903 ms --- 102.229.178.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.849/2.565/5.945 ms 2025-08-10 11:12:06,745 - INFO - Ping to IP 102.229.178.67 from VM ctest-TestRoutersBasic-13123019-17357975 passed 2025-08-10 11:12:06,745 - INFO - Deleting interface with subnet_id 72ff67cc-c896-4557-b516-3957144c8f02, port_id None from router 8dfe62dd-da4d-4a69-9c26-bd5ec3c885d6 2025-08-10 11:12:07,024 - INFO - Deleting VM ctest-TestRoutersBasic-13123019-09495475 2025-08-10 11:12:07,124 - INFO - Deleting VM ctest-TestRoutersBasic-13123019-17357975 2025-08-10 11:12:07,208 - INFO - Deleting VN ctest-ext_vn-64009602 2025-08-10 11:12:07,327 - DEBUG - VN a40cbe03-1e7c-40c1-998a-573e96d84088 still in use: Unable to complete operation on network a40cbe03-1e7c-40c1-998a-573e96d84088. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9322287b-10a7-4897-b970-f85ed5536d18'] 2025-08-10 11:12:07,327 - WARNING - Deleting VN ctest-ext_vn-64009602 failed..Will retry 2025-08-10 11:12:09,482 - DEBUG - Response for deleting network () 2025-08-10 11:12:09,482 - INFO - Deleting VN ctest-vn-69467205 2025-08-10 11:12:09,633 - DEBUG - Response for deleting network () 2025-08-10 11:12:10,877 - DEBUG - No XMPP flaps were noticed during the test
2025-08-10 11:12:10,877 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-08-10 11:12:10,877 - INFO - -------------------------------------------------------------------------------- 2025-08-10 11:12:11,535 - INFO - Deleted project: ctest-TestRoutersBasic-13123019, ID : baeaa0de-2d12-4cbb-b6f7-756f5b11e0d8