2025-06-02 08:43:04,680 - INFO - Domain Default found not creating 2025-06-02 08:43:04,851 - INFO - Project ctest-TestRoutersBasic-85900726 not found, creating it 2025-06-02 08:43:05,366 - INFO - Created Project:ctest-TestRoutersBasic-85900726, ID : 5d22f42f-40db-4bff-bc68-a27c77e48613 2025-06-02 08:43:07,007 - INFO - ================================================================================ 2025-06-02 08:43:07,007 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-02 08:43:07,008 - 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-06-02 08:43:07,266 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-06-02 08:43:07,266 - INFO - Initial checks done. Running the testcase now 2025-06-02 08:43:07,266 - INFO - 2025-06-02 08:43:08,116 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-85900726 2025-06-02 08:43:08,216 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-85900726 2025-06-02 08:43:08,544 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85900726', 'default']} 2025-06-02 08:43:08,888 - DEBUG - Response for create_network : {'network': {'id': '2e4e361d-9a48-41d7-9d55-7d28df10f839', 'name': 'ctest-vn-67389226', 'tenant_id': '5d22f42f40db4bffbc68a27c77e48613', 'project_id': '5d22f42f40db4bffbc68a27c77e48613', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85900726', 'ctest-vn-67389226'], 'port_security_enabled': True, 'description': ''}} 2025-06-02 08:43:09,050 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0b0d827-202f-449e-a6b4-4d817cdb1836', 'name': '', 'tenant_id': '5d22f42f40db4bffbc68a27c77e48613', 'network_id': '2e4e361d-9a48-41d7-9d55-7d28df10f839', 'ip_version': 4, 'cidr': '57.0.136.192/26', 'allocation_pools': [{'start': '57.0.136.194', 'end': '57.0.136.254'}], 'gateway_ip': '57.0.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.0.136.194', 'tags': [], 'project_id': '5d22f42f40db4bffbc68a27c77e48613'}} 2025-06-02 08:43:09,072 - INFO - Created VN ctest-vn-67389226 2025-06-02 08:43:09,127 - DEBUG - VN ctest-vn-67389226 UUID is 2e4e361d-9a48-41d7-9d55-7d28df10f839 2025-06-02 08:43:09,483 - DEBUG - Response for create_network : {'network': {'id': 'f71a5325-8ade-408a-ab9a-720312045b15', 'name': 'ctest-ext_vn-82625009', 'tenant_id': '5d22f42f40db4bffbc68a27c77e48613', 'project_id': '5d22f42f40db4bffbc68a27c77e48613', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85900726', 'ctest-ext_vn-82625009'], 'port_security_enabled': True, 'description': ''}} 2025-06-02 08:43:09,672 - DEBUG - Response for create_subnet : {'subnet': {'id': '16ad4efd-656b-4a0b-8fda-9d1273760eb5', 'name': '', 'tenant_id': '5d22f42f40db4bffbc68a27c77e48613', 'network_id': 'f71a5325-8ade-408a-ab9a-720312045b15', 'ip_version': 4, 'cidr': '119.214.106.0/26', 'allocation_pools': [{'start': '119.214.106.2', 'end': '119.214.106.62'}], 'gateway_ip': '119.214.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.214.106.2', 'tags': [], 'project_id': '5d22f42f40db4bffbc68a27c77e48613'}} 2025-06-02 08:43:09,691 - INFO - Created VN ctest-ext_vn-82625009 2025-06-02 08:43:09,747 - DEBUG - VN ctest-ext_vn-82625009 UUID is f71a5325-8ade-408a-ab9a-720312045b15 2025-06-02 08:43:09,917 - DEBUG - Services list from nova: [, , ] 2025-06-02 08:43:11,062 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3387-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3387-1) 2025-06-02 08:43:12,364 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3387-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3387-1) 2025-06-02 08:43:12,459 - INFO - Setting gateway for router e418dc0e-d80e-49a5-a985-b51d19a64221 to network f71a5325-8ade-408a-ab9a-720312045b15 2025-06-02 08:43:12,543 - INFO - Adding interface with subnet_id d0b0d827-202f-449e-a6b4-4d817cdb1836, port_id None to router e418dc0e-d80e-49a5-a985-b51d19a64221 2025-06-02 08:43:13,001 - INFO - Waiting for VM ctest-TestRoutersBasic-85900726-47546025 to be up.. 2025-06-02 08:43:13,174 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-02 08:43:18,268 - DEBUG - VM is in ACTIVE state now 2025-06-02 08:43:18,269 - INFO - VM name : ctest-TestRoutersBasic-85900726-47546025 2025-06-02 08:43:18,369 - DEBUG - VM ctest-TestRoutersBasic-85900726-47546025 ID is 94ba5038-d7d2-4e7b-8899-29874559a30e 2025-06-02 08:43:18,391 - DEBUG - VM ctest-TestRoutersBasic-85900726-47546025 launched on Node cn-jenkins-deploy-platform-ansible-os-3387-1 2025-06-02 08:43:18,482 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/94ba5038-d7d2-4e7b-8899-29874559a30e 2025-06-02 08:43:18,823 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/94ba5038-d7d2-4e7b-8899-29874559a30e 2025-06-02 08:43:18,860 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/998b352f-4132-4c94-b297-389f22819801 2025-06-02 08:43:22,132 - 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 1006ms') 2025-06-02 08:43:22,132 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85900726-47546025 failed! 2025-06-02 08:43:22,191 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-85900726:ctest-vn-67389226 is 57.0.136.193 and allocation pool is NOT set 2025-06-02 08:43:24,255 - 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=5.16 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.26 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 = 2.263/3.710/5.157/1.447 ms') 2025-06-02 08:43:24,255 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85900726-47546025 passed 2025-06-02 08:43:24,408 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 08:43:24,408 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85900726-47546025, IP 57.0.136.195, Port 22 2025-06-02 08:43:24,473 - 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-06-02 08:43:24,586 - DEBUG - VM ctest-TestRoutersBasic-85900726-47546025 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-02 08:43:29,587 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 08:43:29,587 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85900726-47546025, IP 57.0.136.195, Port 22 2025-06-02 08:43:29,747 - DEBUG - VM ctest-TestRoutersBasic-85900726-47546025 is ready for SSH connections 2025-06-02 08:43:29,747 - INFO - Waiting for VM ctest-TestRoutersBasic-85900726-73921311 to be up.. 2025-06-02 08:43:29,841 - DEBUG - VM is in ACTIVE state now 2025-06-02 08:43:29,841 - INFO - VM name : ctest-TestRoutersBasic-85900726-73921311 2025-06-02 08:43:29,928 - DEBUG - VM ctest-TestRoutersBasic-85900726-73921311 ID is 542c8629-d336-41cc-a00a-391f7477bb95 2025-06-02 08:43:29,928 - DEBUG - VM ctest-TestRoutersBasic-85900726-73921311 launched on Node cn-jenkins-deploy-platform-ansible-os-3387-1 2025-06-02 08:43:30,026 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/542c8629-d336-41cc-a00a-391f7477bb95 2025-06-02 08:43:30,038 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/e567fba5-4f66-4175-87bc-8c6cbc6219d8 2025-06-02 08:43:31,297 - 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.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.410 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.410/1.913/3.417/1.503 ms') 2025-06-02 08:43:31,297 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-85900726-73921311 passed 2025-06-02 08:43:31,451 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 08:43:31,452 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85900726-73921311, IP 119.214.106.3, Port 22 2025-06-02 08:43:31,607 - DEBUG - VM ctest-TestRoutersBasic-85900726-73921311 is ready for SSH connections 2025-06-02 08:43:31,607 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-02 08:43:31,608 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 119.214.106.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-06-02 08:43:31,608 - DEBUG - ping -s 56 -c 3 -W 1 119.214.106.3 2025-06-02 08:43:35,345 - DEBUG - PING 119.214.106.3 (119.214.106.3): 56 data bytes 64 bytes from 119.214.106.3: seq=0 ttl=62 time=7.696 ms 64 bytes from 119.214.106.3: seq=1 ttl=62 time=1.016 ms 64 bytes from 119.214.106.3: seq=2 ttl=62 time=0.969 ms --- 119.214.106.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.969/3.227/7.696 ms 2025-06-02 08:43:35,345 - INFO - Ping to IP 119.214.106.3 from VM ctest-TestRoutersBasic-85900726-47546025 passed 2025-06-02 08:43:35,345 - INFO - Deleting interface with subnet_id d0b0d827-202f-449e-a6b4-4d817cdb1836, port_id None from router e418dc0e-d80e-49a5-a985-b51d19a64221 2025-06-02 08:43:35,573 - INFO - Deleting VM ctest-TestRoutersBasic-85900726-73921311 2025-06-02 08:43:35,648 - INFO - Deleting VM ctest-TestRoutersBasic-85900726-47546025 2025-06-02 08:43:35,752 - INFO - Deleting VN ctest-ext_vn-82625009 2025-06-02 08:43:35,854 - DEBUG - VN f71a5325-8ade-408a-ab9a-720312045b15 still in use: Unable to complete operation on network f71a5325-8ade-408a-ab9a-720312045b15. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-548f5fd0-62f4-4556-afe1-7fb10afcb8d0'] 2025-06-02 08:43:35,854 - WARNING - Deleting VN ctest-ext_vn-82625009 failed..Will retry 2025-06-02 08:43:37,983 - DEBUG - Response for deleting network () 2025-06-02 08:43:37,984 - INFO - Deleting VN ctest-vn-67389226 2025-06-02 08:43:38,111 - DEBUG - Response for deleting network () 2025-06-02 08:43:38,372 - DEBUG - No XMPP flaps were noticed during the test
2025-06-02 08:43:38,373 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-06-02 08:43:38,373 - INFO - -------------------------------------------------------------------------------- 2025-06-02 08:43:39,143 - INFO - Deleted project: ctest-TestRoutersBasic-85900726, ID : 5d22f42f-40db-4bff-bc68-a27c77e48613