2024-10-28 11:54:47,261 - INFO - Domain Default found not creating 2024-10-28 11:54:47,440 - INFO - Project ctest-TestRoutersBasic-10128300 not found, creating it 2024-10-28 11:54:47,950 - INFO - Created Project:ctest-TestRoutersBasic-10128300, ID : 69504df6-74eb-4236-8784-3c715b74eaba 2024-10-28 11:54:49,522 - INFO - ================================================================================ 2024-10-28 11:54:49,523 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-28 11:54:49,523 - 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-10-28 11:54:49,776 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.20': '0'}} with 2024-10-28 11:54:49,776 - INFO - Initial checks done. Running the testcase now 2024-10-28 11:54:49,776 - INFO - 2024-10-28 11:54:50,487 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-10128300 2024-10-28 11:54:50,590 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-10128300 2024-10-28 11:54:50,918 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10128300', 'default']} 2024-10-28 11:54:51,239 - DEBUG - Response for create_network : {'network': {'id': '89d526ac-614c-489e-ba9d-44c067d12717', 'name': 'ctest-vn-76478644', 'tenant_id': '69504df674eb423687843c715b74eaba', 'project_id': '69504df674eb423687843c715b74eaba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10128300', 'ctest-vn-76478644'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 11:54:51,439 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f50ee577-6320-4ec5-aa55-005b1d49344c', 'name': '', 'tenant_id': '69504df674eb423687843c715b74eaba', 'network_id': '89d526ac-614c-489e-ba9d-44c067d12717', 'ip_version': 4, 'cidr': '40.123.146.64/26', 'allocation_pools': [{'start': '40.123.146.66', 'end': '40.123.146.126'}], 'gateway_ip': '40.123.146.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.123.146.66', 'tags': [], 'project_id': '69504df674eb423687843c715b74eaba'}} 2024-10-28 11:54:51,461 - INFO - Created VN ctest-vn-76478644 2024-10-28 11:54:51,522 - DEBUG - VN ctest-vn-76478644 UUID is 89d526ac-614c-489e-ba9d-44c067d12717 2024-10-28 11:54:51,876 - DEBUG - Response for create_network : {'network': {'id': '52761b7e-4c5c-42dc-9de8-1e1685c45d5a', 'name': 'ctest-ext_vn-88527484', 'tenant_id': '69504df674eb423687843c715b74eaba', 'project_id': '69504df674eb423687843c715b74eaba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-10128300', 'ctest-ext_vn-88527484'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 11:54:52,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '7209ab3e-494b-43e5-a787-c71ca3f8e3c7', 'name': '', 'tenant_id': '69504df674eb423687843c715b74eaba', 'network_id': '52761b7e-4c5c-42dc-9de8-1e1685c45d5a', 'ip_version': 4, 'cidr': '11.104.85.128/26', 'allocation_pools': [{'start': '11.104.85.130', 'end': '11.104.85.190'}], 'gateway_ip': '11.104.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.104.85.130', 'tags': [], 'project_id': '69504df674eb423687843c715b74eaba'}} 2024-10-28 11:54:52,120 - INFO - Created VN ctest-ext_vn-88527484 2024-10-28 11:54:52,178 - DEBUG - VN ctest-ext_vn-88527484 UUID is 52761b7e-4c5c-42dc-9de8-1e1685c45d5a 2024-10-28 11:54:52,359 - DEBUG - Services list from nova: [, , ] 2024-10-28 11:54:53,433 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2158-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2158-1) 2024-10-28 11:54:54,566 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2158-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2158-1) 2024-10-28 11:54:54,671 - INFO - Setting gateway for router 08c95931-818b-4eae-b994-caa0505df9f3 to network 52761b7e-4c5c-42dc-9de8-1e1685c45d5a 2024-10-28 11:54:54,762 - INFO - Adding interface with subnet_id f50ee577-6320-4ec5-aa55-005b1d49344c, port_id None to router 08c95931-818b-4eae-b994-caa0505df9f3 2024-10-28 11:54:55,171 - INFO - Waiting for VM ctest-TestRoutersBasic-10128300-64048144 to be up.. 2024-10-28 11:54:55,330 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 11:55:00,413 - DEBUG - VM is in ACTIVE state now 2024-10-28 11:55:00,413 - INFO - VM name : ctest-TestRoutersBasic-10128300-64048144 2024-10-28 11:55:00,498 - DEBUG - VM ctest-TestRoutersBasic-10128300-64048144 ID is 2a7817da-b354-4e67-aae3-486ac42c1539 2024-10-28 11:55:00,517 - DEBUG - VM ctest-TestRoutersBasic-10128300-64048144 launched on Node cn-jenkins-deploy-platform-ansible-os-2158-1 2024-10-28 11:55:00,609 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/2a7817da-b354-4e67-aae3-486ac42c1539 2024-10-28 11:55:00,916 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/2a7817da-b354-4e67-aae3-486ac42c1539 2024-10-28 11:55:00,958 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/e614c481-abe5-453d-81b3-8af020cbf04a 2024-10-28 11:55:04,239 - 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 1025ms') 2024-10-28 11:55:04,239 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-10128300-64048144 failed! 2024-10-28 11:55:04,298 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-10128300:ctest-vn-76478644 is 40.123.146.65 and allocation pool is NOT set 2024-10-28 11:55:06,356 - 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.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.438 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.438/3.151/5.865/2.713 ms') 2024-10-28 11:55:06,356 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-10128300-64048144 passed 2024-10-28 11:55:06,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 11:55:06,518 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10128300-64048144, IP 40.123.146.67, Port 22 2024-10-28 11:55:06,674 - DEBUG - VM ctest-TestRoutersBasic-10128300-64048144 is ready for SSH connections 2024-10-28 11:55:06,674 - INFO - Waiting for VM ctest-TestRoutersBasic-10128300-31329749 to be up.. 2024-10-28 11:55:06,768 - DEBUG - VM is in ACTIVE state now 2024-10-28 11:55:06,768 - INFO - VM name : ctest-TestRoutersBasic-10128300-31329749 2024-10-28 11:55:06,862 - DEBUG - VM ctest-TestRoutersBasic-10128300-31329749 ID is 0466da09-3a7b-467c-8929-c03b526f76e3 2024-10-28 11:55:06,862 - DEBUG - VM ctest-TestRoutersBasic-10128300-31329749 launched on Node cn-jenkins-deploy-platform-ansible-os-2158-1 2024-10-28 11:55:06,954 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/0466da09-3a7b-467c-8929-c03b526f76e3 2024-10-28 11:55:06,965 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/7183fa53-7540-45c1-aec0-024ec002b994 2024-10-28 11:55:08,223 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.798 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.798/2.340/3.882/1.542 ms') 2024-10-28 11:55:08,224 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-10128300-31329749 passed 2024-10-28 11:55:08,378 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 11:55:08,378 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-10128300-31329749, IP 11.104.85.131, Port 22 2024-10-28 11:55:08,534 - DEBUG - VM ctest-TestRoutersBasic-10128300-31329749 is ready for SSH connections 2024-10-28 11:55:08,534 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 11:55:08,534 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 11.104.85.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2024-10-28 11:55:08,534 - DEBUG - ping -s 56 -c 3 -W 1 11.104.85.131 2024-10-28 11:55:12,520 - DEBUG - PING 11.104.85.131 (11.104.85.131): 56 data bytes 64 bytes from 11.104.85.131: seq=0 ttl=62 time=4.405 ms 64 bytes from 11.104.85.131: seq=1 ttl=62 time=0.895 ms 64 bytes from 11.104.85.131: seq=2 ttl=62 time=0.917 ms --- 11.104.85.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.895/2.072/4.405 ms 2024-10-28 11:55:12,520 - INFO - Ping to IP 11.104.85.131 from VM ctest-TestRoutersBasic-10128300-64048144 passed 2024-10-28 11:55:12,520 - INFO - Deleting interface with subnet_id f50ee577-6320-4ec5-aa55-005b1d49344c, port_id None from router 08c95931-818b-4eae-b994-caa0505df9f3 2024-10-28 11:55:12,736 - INFO - Deleting VM ctest-TestRoutersBasic-10128300-31329749 2024-10-28 11:55:12,804 - INFO - Deleting VM ctest-TestRoutersBasic-10128300-64048144 2024-10-28 11:55:12,875 - INFO - Deleting VN ctest-ext_vn-88527484 2024-10-28 11:55:12,954 - DEBUG - VN 52761b7e-4c5c-42dc-9de8-1e1685c45d5a still in use: Unable to complete operation on network 52761b7e-4c5c-42dc-9de8-1e1685c45d5a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-188e8909-0553-4450-a3b3-75de4519da8d'] 2024-10-28 11:55:12,954 - WARNING - Deleting VN ctest-ext_vn-88527484 failed..Will retry 2024-10-28 11:55:15,065 - DEBUG - Response for deleting network () 2024-10-28 11:55:15,065 - INFO - Deleting VN ctest-vn-76478644 2024-10-28 11:55:15,169 - DEBUG - Response for deleting network () 2024-10-28 11:55:15,424 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 11:55:15,424 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-10-28 11:55:15,424 - INFO - -------------------------------------------------------------------------------- 2024-10-28 11:55:16,236 - INFO - Deleted project: ctest-TestRoutersBasic-10128300, ID : 69504df6-74eb-4236-8784-3c715b74eaba