2024-11-09 08:54:10,920 - INFO - Domain Default found not creating 2024-11-09 08:54:11,135 - INFO - Project ctest-TestRoutersBasic-45382202 not found, creating it 2024-11-09 08:54:11,664 - INFO - Created Project:ctest-TestRoutersBasic-45382202, ID : 5dbc4120-f8c7-48e1-bb5d-92ba7a97d5e3 2024-11-09 08:54:13,234 - INFO - ================================================================================ 2024-11-09 08:54:13,235 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-09 08:54:13,235 - 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-11-09 08:54:13,499 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.29': '0'}} with 2024-11-09 08:54:13,499 - INFO - Initial checks done. Running the testcase now 2024-11-09 08:54:13,499 - INFO - 2024-11-09 08:54:14,259 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-45382202 2024-11-09 08:54:14,357 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-45382202 2024-11-09 08:54:14,689 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-45382202', 'default']} 2024-11-09 08:54:15,063 - DEBUG - Response for create_network : {'network': {'id': '486aacdf-96b3-4358-962b-856c43587158', 'name': 'ctest-vn-92292084', 'tenant_id': '5dbc4120f8c748e1bb5d92ba7a97d5e3', 'project_id': '5dbc4120f8c748e1bb5d92ba7a97d5e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-45382202', 'ctest-vn-92292084'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 08:54:15,292 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f2818d9-bdff-4029-8080-6bae8ca8368f', 'name': '', 'tenant_id': '5dbc4120f8c748e1bb5d92ba7a97d5e3', 'network_id': '486aacdf-96b3-4358-962b-856c43587158', 'ip_version': 4, 'cidr': '143.17.78.64/26', 'allocation_pools': [{'start': '143.17.78.66', 'end': '143.17.78.126'}], 'gateway_ip': '143.17.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.17.78.66', 'tags': [], 'project_id': '5dbc4120f8c748e1bb5d92ba7a97d5e3'}} 2024-11-09 08:54:15,314 - INFO - Created VN ctest-vn-92292084 2024-11-09 08:54:15,375 - DEBUG - VN ctest-vn-92292084 UUID is 486aacdf-96b3-4358-962b-856c43587158 2024-11-09 08:54:15,740 - DEBUG - Response for create_network : {'network': {'id': '6a43eb6b-6777-48d6-8657-1c7cbf21ca91', 'name': 'ctest-ext_vn-67679606', 'tenant_id': '5dbc4120f8c748e1bb5d92ba7a97d5e3', 'project_id': '5dbc4120f8c748e1bb5d92ba7a97d5e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-45382202', 'ctest-ext_vn-67679606'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 08:54:15,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '779a94b5-1262-41ea-9d42-90df937f153c', 'name': '', 'tenant_id': '5dbc4120f8c748e1bb5d92ba7a97d5e3', 'network_id': '6a43eb6b-6777-48d6-8657-1c7cbf21ca91', 'ip_version': 4, 'cidr': '143.204.34.128/26', 'allocation_pools': [{'start': '143.204.34.130', 'end': '143.204.34.190'}], 'gateway_ip': '143.204.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.204.34.130', 'tags': [], 'project_id': '5dbc4120f8c748e1bb5d92ba7a97d5e3'}} 2024-11-09 08:54:15,942 - INFO - Created VN ctest-ext_vn-67679606 2024-11-09 08:54:16,009 - DEBUG - VN ctest-ext_vn-67679606 UUID is 6a43eb6b-6777-48d6-8657-1c7cbf21ca91 2024-11-09 08:54:16,190 - DEBUG - Services list from nova: [, , ] 2024-11-09 08:54:17,289 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2244-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2244-1) 2024-11-09 08:54:18,523 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2244-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2244-1) 2024-11-09 08:54:18,618 - INFO - Setting gateway for router bce1f5fc-c969-45db-9a7d-9af2c84aaefe to network 6a43eb6b-6777-48d6-8657-1c7cbf21ca91 2024-11-09 08:54:18,705 - INFO - Adding interface with subnet_id 6f2818d9-bdff-4029-8080-6bae8ca8368f, port_id None to router bce1f5fc-c969-45db-9a7d-9af2c84aaefe 2024-11-09 08:54:19,133 - INFO - Waiting for VM ctest-TestRoutersBasic-45382202-45297422 to be up.. 2024-11-09 08:54:19,387 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 08:54:24,484 - DEBUG - VM is in ACTIVE state now 2024-11-09 08:54:24,484 - INFO - VM name : ctest-TestRoutersBasic-45382202-45297422 2024-11-09 08:54:24,586 - DEBUG - VM ctest-TestRoutersBasic-45382202-45297422 ID is 5230e9de-1743-4114-a1f1-88efa22b8265 2024-11-09 08:54:24,605 - DEBUG - VM ctest-TestRoutersBasic-45382202-45297422 launched on Node cn-jenkins-deploy-platform-ansible-os-2244-1 2024-11-09 08:54:24,691 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/5230e9de-1743-4114-a1f1-88efa22b8265 2024-11-09 08:54:25,005 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/5230e9de-1743-4114-a1f1-88efa22b8265 2024-11-09 08:54:25,051 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/496f9ba1-0e4e-4f89-86fe-eff945aca8c9 2024-11-09 08:54:28,354 - 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 1011ms') 2024-11-09 08:54:28,354 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-45382202-45297422 failed! 2024-11-09 08:54:28,413 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-45382202:ctest-vn-92292084 is 143.17.78.65 and allocation pool is NOT set 2024-11-09 08:54:30,472 - 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=3.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.492 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.492/1.792/3.093/1.300 ms') 2024-11-09 08:54:30,472 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-45382202-45297422 passed 2024-11-09 08:54:30,629 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 08:54:30,629 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-45382202-45297422, IP 143.17.78.67, Port 22 2024-11-09 08:54:30,789 - DEBUG - VM ctest-TestRoutersBasic-45382202-45297422 is ready for SSH connections 2024-11-09 08:54:30,789 - INFO - Waiting for VM ctest-TestRoutersBasic-45382202-55104376 to be up.. 2024-11-09 08:54:30,874 - DEBUG - VM is in ACTIVE state now 2024-11-09 08:54:30,874 - INFO - VM name : ctest-TestRoutersBasic-45382202-55104376 2024-11-09 08:54:30,972 - DEBUG - VM ctest-TestRoutersBasic-45382202-55104376 ID is f430af4e-671b-4ee1-8037-3fdb613b88a8 2024-11-09 08:54:30,972 - DEBUG - VM ctest-TestRoutersBasic-45382202-55104376 launched on Node cn-jenkins-deploy-platform-ansible-os-2244-1 2024-11-09 08:54:31,060 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/f430af4e-671b-4ee1-8037-3fdb613b88a8 2024-11-09 08:54:31,070 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/cd5205b0-5cfd-4824-bf16-36f46c7d5a38 2024-11-09 08:54:32,329 - 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.26 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.369 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.369/1.816/3.263/1.447 ms') 2024-11-09 08:54:32,329 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-45382202-55104376 passed 2024-11-09 08:54:32,493 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 08:54:32,493 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-45382202-55104376, IP 143.204.34.131, Port 22 2024-11-09 08:54:32,652 - DEBUG - VM ctest-TestRoutersBasic-45382202-55104376 is ready for SSH connections 2024-11-09 08:54:32,652 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 08:54:32,653 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 143.204.34.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-11-09 08:54:32,653 - DEBUG - ping -s 56 -c 3 -W 1 143.204.34.131 2024-11-09 08:54:36,352 - DEBUG - PING 143.204.34.131 (143.204.34.131): 56 data bytes 64 bytes from 143.204.34.131: seq=0 ttl=62 time=7.758 ms 64 bytes from 143.204.34.131: seq=1 ttl=62 time=0.952 ms 64 bytes from 143.204.34.131: seq=2 ttl=62 time=0.854 ms --- 143.204.34.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.854/3.188/7.758 ms 2024-11-09 08:54:36,352 - INFO - Ping to IP 143.204.34.131 from VM ctest-TestRoutersBasic-45382202-45297422 passed 2024-11-09 08:54:36,352 - INFO - Deleting interface with subnet_id 6f2818d9-bdff-4029-8080-6bae8ca8368f, port_id None from router bce1f5fc-c969-45db-9a7d-9af2c84aaefe 2024-11-09 08:54:36,571 - INFO - Deleting VM ctest-TestRoutersBasic-45382202-55104376 2024-11-09 08:54:36,646 - INFO - Deleting VM ctest-TestRoutersBasic-45382202-45297422 2024-11-09 08:54:36,730 - INFO - Deleting VN ctest-ext_vn-67679606 2024-11-09 08:54:36,833 - DEBUG - VN 6a43eb6b-6777-48d6-8657-1c7cbf21ca91 still in use: Unable to complete operation on network 6a43eb6b-6777-48d6-8657-1c7cbf21ca91. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-56360c3e-d860-46f4-a8d6-e62144f424fd'] 2024-11-09 08:54:36,833 - WARNING - Deleting VN ctest-ext_vn-67679606 failed..Will retry 2024-11-09 08:54:39,112 - DEBUG - Response for deleting network () 2024-11-09 08:54:39,112 - INFO - Deleting VN ctest-vn-92292084 2024-11-09 08:54:39,362 - DEBUG - Response for deleting network () 2024-11-09 08:54:39,630 - DEBUG - No XMPP flaps were noticed during the test
2024-11-09 08:54:39,631 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-11-09 08:54:39,631 - INFO - -------------------------------------------------------------------------------- 2024-11-09 08:54:40,320 - INFO - Deleted project: ctest-TestRoutersBasic-45382202, ID : 5dbc4120-f8c7-48e1-bb5d-92ba7a97d5e3