2025-08-31 07:21:47,208 - INFO - Domain Default found not creating 2025-08-31 07:21:47,356 - INFO - Project ctest-TestRoutersBasic-13900598 not found, creating it 2025-08-31 07:21:47,812 - INFO - Created Project:ctest-TestRoutersBasic-13900598, ID : be06c091-278f-491b-af80-13bfa08eac9a 2025-08-31 07:21:49,269 - INFO - ================================================================================ 2025-08-31 07:21:49,269 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-31 07:21:49,269 - 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-31 07:21:49,523 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-08-31 07:21:49,523 - INFO - Initial checks done. Running the testcase now 2025-08-31 07:21:49,523 - INFO - 2025-08-31 07:21:50,233 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-13900598 2025-08-31 07:21:50,329 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-13900598 2025-08-31 07:21:50,649 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13900598', 'default']} 2025-08-31 07:21:50,930 - DEBUG - Response for create_network : {'network': {'id': '8b6650ce-cbff-48d1-b773-59c326d5a019', 'name': 'ctest-vn-21014316', 'tenant_id': 'be06c091278f491baf8013bfa08eac9a', 'project_id': 'be06c091278f491baf8013bfa08eac9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13900598', 'ctest-vn-21014316'], 'port_security_enabled': True, 'description': ''}} 2025-08-31 07:21:51,102 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ece61dd8-f871-4ab2-8fee-d411dbb0863d', 'name': '', 'tenant_id': 'be06c091278f491baf8013bfa08eac9a', 'network_id': '8b6650ce-cbff-48d1-b773-59c326d5a019', 'ip_version': 4, 'cidr': '202.251.170.192/26', 'allocation_pools': [{'start': '202.251.170.194', 'end': '202.251.170.254'}], 'gateway_ip': '202.251.170.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.251.170.194', 'tags': [], 'project_id': 'be06c091278f491baf8013bfa08eac9a'}} 2025-08-31 07:21:51,120 - INFO - Created VN ctest-vn-21014316 2025-08-31 07:21:51,174 - DEBUG - VN ctest-vn-21014316 UUID is 8b6650ce-cbff-48d1-b773-59c326d5a019 2025-08-31 07:21:51,479 - DEBUG - Response for create_network : {'network': {'id': '3e3a4c38-44d9-4051-ac76-fd6bc68f4435', 'name': 'ctest-ext_vn-99467036', 'tenant_id': 'be06c091278f491baf8013bfa08eac9a', 'project_id': 'be06c091278f491baf8013bfa08eac9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13900598', 'ctest-ext_vn-99467036'], 'port_security_enabled': True, 'description': ''}} 2025-08-31 07:21:51,624 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fba2b8ec-f14d-4ac1-8961-bdd9fef9c921', 'name': '', 'tenant_id': 'be06c091278f491baf8013bfa08eac9a', 'network_id': '3e3a4c38-44d9-4051-ac76-fd6bc68f4435', 'ip_version': 4, 'cidr': '95.45.148.64/26', 'allocation_pools': [{'start': '95.45.148.66', 'end': '95.45.148.126'}], 'gateway_ip': '95.45.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.45.148.66', 'tags': [], 'project_id': 'be06c091278f491baf8013bfa08eac9a'}} 2025-08-31 07:21:51,641 - INFO - Created VN ctest-ext_vn-99467036 2025-08-31 07:21:51,694 - DEBUG - VN ctest-ext_vn-99467036 UUID is 3e3a4c38-44d9-4051-ac76-fd6bc68f4435 2025-08-31 07:21:51,887 - DEBUG - Services list from nova: [, , ] 2025-08-31 07:21:52,877 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3989-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3989-1) 2025-08-31 07:21:54,053 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3989-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3989-1) 2025-08-31 07:21:54,114 - INFO - Setting gateway for router 1590996d-7327-4536-8c64-8d5bc69cbf6f to network 3e3a4c38-44d9-4051-ac76-fd6bc68f4435 2025-08-31 07:21:54,171 - INFO - Adding interface with subnet_id ece61dd8-f871-4ab2-8fee-d411dbb0863d, port_id None to router 1590996d-7327-4536-8c64-8d5bc69cbf6f 2025-08-31 07:21:54,497 - INFO - Waiting for VM ctest-TestRoutersBasic-13900598-27783647 to be up.. 2025-08-31 07:21:54,640 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-31 07:21:59,714 - DEBUG - VM is in ACTIVE state now 2025-08-31 07:21:59,714 - INFO - VM name : ctest-TestRoutersBasic-13900598-27783647 2025-08-31 07:21:59,787 - DEBUG - VM ctest-TestRoutersBasic-13900598-27783647 ID is 12974753-279e-48a0-8f25-5e9dd573e81a 2025-08-31 07:21:59,805 - DEBUG - VM ctest-TestRoutersBasic-13900598-27783647 launched on Node cn-jenkins-deploy-platform-ansible-os-3989-1 2025-08-31 07:21:59,871 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/12974753-279e-48a0-8f25-5e9dd573e81a 2025-08-31 07:22:00,172 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/12974753-279e-48a0-8f25-5e9dd573e81a 2025-08-31 07:22:00,203 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/17da72dd-5c75-466f-9254-4cec1de986a4 2025-08-31 07:22:03,461 - 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 1023ms') 2025-08-31 07:22:03,461 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13900598-27783647 failed! 2025-08-31 07:22:03,514 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-13900598:ctest-vn-21014316 is 202.251.170.193 and allocation pool is NOT set 2025-08-31 07:22:05,574 - 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=4.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.38 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.379/2.873/4.368/1.494 ms') 2025-08-31 07:22:05,575 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13900598-27783647 passed 2025-08-31 07:22:05,729 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-31 07:22:05,730 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13900598-27783647, IP 202.251.170.195, Port 22 2025-08-31 07:22:05,885 - DEBUG - VM ctest-TestRoutersBasic-13900598-27783647 is ready for SSH connections 2025-08-31 07:22:05,885 - INFO - Waiting for VM ctest-TestRoutersBasic-13900598-02861563 to be up.. 2025-08-31 07:22:05,959 - DEBUG - VM is in ACTIVE state now 2025-08-31 07:22:05,959 - INFO - VM name : ctest-TestRoutersBasic-13900598-02861563 2025-08-31 07:22:06,028 - DEBUG - VM ctest-TestRoutersBasic-13900598-02861563 ID is 9882848f-1ccc-427b-9883-7962df1979eb 2025-08-31 07:22:06,028 - DEBUG - VM ctest-TestRoutersBasic-13900598-02861563 launched on Node cn-jenkins-deploy-platform-ansible-os-3989-1 2025-08-31 07:22:06,104 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/9882848f-1ccc-427b-9883-7962df1979eb 2025-08-31 07:22:06,113 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/12f62712-6abd-4a6e-a017-eeb96d5aaf56 2025-08-31 07:22:07,354 - 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.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.981 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.981/2.042/3.103/1.061 ms') 2025-08-31 07:22:07,354 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-13900598-02861563 passed 2025-08-31 07:22:07,501 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-31 07:22:07,502 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13900598-02861563, IP 95.45.148.67, Port 22 2025-08-31 07:22:07,557 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-31 07:22:07,629 - DEBUG - VM ctest-TestRoutersBasic-13900598-02861563 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-31 07:22:12,629 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-31 07:22:12,629 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13900598-02861563, IP 95.45.148.67, Port 22 2025-08-31 07:22:12,789 - DEBUG - VM ctest-TestRoutersBasic-13900598-02861563 is ready for SSH connections 2025-08-31 07:22:12,789 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-31 07:22:12,789 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.45.148.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-08-31 07:22:12,789 - DEBUG - ping -s 56 -c 3 -W 1 95.45.148.67 2025-08-31 07:22:16,499 - DEBUG - PING 95.45.148.67 (95.45.148.67): 56 data bytes 64 bytes from 95.45.148.67: seq=0 ttl=62 time=6.705 ms 64 bytes from 95.45.148.67: seq=1 ttl=62 time=1.139 ms 64 bytes from 95.45.148.67: seq=2 ttl=62 time=0.825 ms --- 95.45.148.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.825/2.889/6.705 ms 2025-08-31 07:22:16,499 - INFO - Ping to IP 95.45.148.67 from VM ctest-TestRoutersBasic-13900598-27783647 passed 2025-08-31 07:22:16,499 - INFO - Deleting interface with subnet_id ece61dd8-f871-4ab2-8fee-d411dbb0863d, port_id None from router 1590996d-7327-4536-8c64-8d5bc69cbf6f 2025-08-31 07:22:16,685 - INFO - Deleting VM ctest-TestRoutersBasic-13900598-02861563 2025-08-31 07:22:16,755 - INFO - Deleting VM ctest-TestRoutersBasic-13900598-27783647 2025-08-31 07:22:16,844 - INFO - Deleting VN ctest-ext_vn-99467036 2025-08-31 07:22:16,903 - DEBUG - VN 3e3a4c38-44d9-4051-ac76-fd6bc68f4435 still in use: Unable to complete operation on network 3e3a4c38-44d9-4051-ac76-fd6bc68f4435. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0cae35a0-56cf-494a-bd9e-28ea3ccd3d6c'] 2025-08-31 07:22:16,903 - WARNING - Deleting VN ctest-ext_vn-99467036 failed..Will retry 2025-08-31 07:22:19,007 - DEBUG - Response for deleting network () 2025-08-31 07:22:19,007 - INFO - Deleting VN ctest-vn-21014316 2025-08-31 07:22:19,103 - DEBUG - Response for deleting network () 2025-08-31 07:22:19,362 - DEBUG - No XMPP flaps were noticed during the test
2025-08-31 07:22:19,362 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-08-31 07:22:19,362 - INFO - -------------------------------------------------------------------------------- 2025-08-31 07:22:20,034 - INFO - Deleted project: ctest-TestRoutersBasic-13900598, ID : be06c091-278f-491b-af80-13bfa08eac9a