2024-09-02 02:28:59,768 - INFO - Reading existing Domain with UUID defd8f32-afd5-4b15-a3c8-9368d3af4005 2024-09-02 02:28:59,781 - INFO - Using existing domain ['admin_domain'](defd8f32-afd5-4b15-a3c8-9368d3af4005) 2024-09-02 02:29:00,008 - INFO - Project ctest-TestRoutersBasic-16329494 not found, creating it 2024-09-02 02:29:00,565 - INFO - Created Project:ctest-TestRoutersBasic-16329494, ID : c88ec31c-f28f-4fb5-9ff0-29b803565982 2024-09-02 02:29:03,372 - INFO - ================================================================================ 2024-09-02 02:29:03,372 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-02 02:29:03,372 - 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-09-02 02:29:03,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.0.0.24': '0'}} with 2024-09-02 02:29:03,767 - INFO - Initial checks done. Running the testcase now 2024-09-02 02:29:03,767 - INFO - 2024-09-02 02:29:04,653 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-16329494 2024-09-02 02:29:06,529 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-16329494 2024-09-02 02:29:06,942 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-16329494', 'default']} 2024-09-02 02:29:07,553 - DEBUG - Response for create_network : {'network': {'id': '276fd44a-95d3-45aa-ab3f-c86b04ba05bb', 'name': 'ctest-vn-37320036', 'tenant_id': 'c88ec31cf28f4fb59ff029b803565982', 'project_id': 'c88ec31cf28f4fb59ff029b803565982', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-16329494', 'ctest-vn-37320036'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 02:29:07,802 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a913cac-cba2-46cc-af92-24e019da99a7', 'name': '', 'tenant_id': 'c88ec31cf28f4fb59ff029b803565982', 'network_id': '276fd44a-95d3-45aa-ab3f-c86b04ba05bb', 'ip_version': 4, 'cidr': '36.109.29.64/26', 'allocation_pools': [{'start': '36.109.29.66', 'end': '36.109.29.126'}], 'gateway_ip': '36.109.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T02:29:07.698834', 'updated_at': '2024-09-02T02:29:07.698834', 'dns_server_address': '36.109.29.66', 'tags': [], 'project_id': 'c88ec31cf28f4fb59ff029b803565982'}} 2024-09-02 02:29:07,867 - INFO - Created VN ctest-vn-37320036 2024-09-02 02:29:07,921 - DEBUG - VN ctest-vn-37320036 UUID is 276fd44a-95d3-45aa-ab3f-c86b04ba05bb 2024-09-02 02:29:08,458 - DEBUG - Response for create_network : {'network': {'id': '1ece1fcd-672e-4434-b9e8-f097f1244059', 'name': 'ctest-ext_vn-74675348', 'tenant_id': 'c88ec31cf28f4fb59ff029b803565982', 'project_id': 'c88ec31cf28f4fb59ff029b803565982', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-16329494', 'ctest-ext_vn-74675348'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 02:29:08,670 - DEBUG - Response for create_subnet : {'subnet': {'id': '4351187c-5ec3-4567-a0cc-d284e18aeed5', 'name': '', 'tenant_id': 'c88ec31cf28f4fb59ff029b803565982', 'network_id': '1ece1fcd-672e-4434-b9e8-f097f1244059', 'ip_version': 4, 'cidr': '6.224.149.0/26', 'allocation_pools': [{'start': '6.224.149.2', 'end': '6.224.149.62'}], 'gateway_ip': '6.224.149.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T02:29:08.566978', 'updated_at': '2024-09-02T02:29:08.566978', 'dns_server_address': '6.224.149.2', 'tags': [], 'project_id': 'c88ec31cf28f4fb59ff029b803565982'}} 2024-09-02 02:29:08,735 - INFO - Created VN ctest-ext_vn-74675348 2024-09-02 02:29:08,789 - DEBUG - VN ctest-ext_vn-74675348 UUID is 1ece1fcd-672e-4434-b9e8-f097f1244059 2024-09-02 02:29:09,052 - DEBUG - Services list from nova: [, , ] 2024-09-02 02:29:11,180 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-390-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-390-1) 2024-09-02 02:29:13,377 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-390-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-390-1) 2024-09-02 02:29:15,399 - INFO - Setting gateway for router f82ecbce-0402-42a4-a3f3-6496c660b669 to network 1ece1fcd-672e-4434-b9e8-f097f1244059 2024-09-02 02:29:15,553 - INFO - Adding interface with subnet_id 6a913cac-cba2-46cc-af92-24e019da99a7, port_id None to router f82ecbce-0402-42a4-a3f3-6496c660b669 2024-09-02 02:29:15,908 - INFO - Waiting for VM ctest-TestRoutersBasic-16329494-33929085 to be up.. 2024-09-02 02:29:15,999 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 02:29:21,130 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 02:29:26,284 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:29:26,284 - INFO - VM name : ctest-TestRoutersBasic-16329494-33929085 2024-09-02 02:29:26,428 - DEBUG - VM ctest-TestRoutersBasic-16329494-33929085 ID is 5395ad2e-5c83-4857-add1-20fcbe0d66ed 2024-09-02 02:29:26,465 - DEBUG - VM ctest-TestRoutersBasic-16329494-33929085 launched on Node cn-jenkins-deploy-platform-juju-os-390-1 2024-09-02 02:29:26,627 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine/5395ad2e-5c83-4857-add1-20fcbe0d66ed 2024-09-02 02:29:27,015 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine/5395ad2e-5c83-4857-add1-20fcbe0d66ed 2024-09-02 02:29:27,127 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine-interface/ee7ce6f1-9cf8-47e0-9914-a3d8fe7b30e9 2024-09-02 02:29:30,588 - 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-09-02 02:29:30,588 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16329494-33929085 failed! 2024-09-02 02:29:30,645 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-16329494:ctest-vn-37320036 is 36.109.29.65 and allocation pool is NOT set 2024-09-02 02:29:32,731 - 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.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.82 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.817/2.689/3.562/0.872 ms') 2024-09-02 02:29:32,732 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-16329494-33929085 passed 2024-09-02 02:29:32,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:29:32,881 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16329494-33929085, IP 36.109.29.67, Port 22 2024-09-02 02:29:33,078 - DEBUG - VM ctest-TestRoutersBasic-16329494-33929085 is ready for SSH connections 2024-09-02 02:29:33,078 - INFO - Waiting for VM ctest-TestRoutersBasic-16329494-34686983 to be up.. 2024-09-02 02:29:33,223 - DEBUG - VM is in ACTIVE state now 2024-09-02 02:29:33,223 - INFO - VM name : ctest-TestRoutersBasic-16329494-34686983 2024-09-02 02:29:33,374 - DEBUG - VM ctest-TestRoutersBasic-16329494-34686983 ID is 0fc0a3be-9a27-417c-9942-b0468eacff37 2024-09-02 02:29:33,374 - DEBUG - VM ctest-TestRoutersBasic-16329494-34686983 launched on Node cn-jenkins-deploy-platform-juju-os-390-1 2024-09-02 02:29:33,506 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine/0fc0a3be-9a27-417c-9942-b0468eacff37 2024-09-02 02:29:33,558 - DEBUG - Requesting: https://10.0.0.24:8082/virtual-machine-interface/d0de3df3-388e-4983-b7b3-9faacba03467 2024-09-02 02:29:34,999 - 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=2.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/1.654/2.892/1.238 ms') 2024-09-02 02:29:34,999 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-16329494-34686983 passed 2024-09-02 02:29:35,150 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:29:35,150 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-16329494-34686983, IP 6.224.149.4, Port 22 2024-09-02 02:29:35,364 - DEBUG - VM ctest-TestRoutersBasic-16329494-34686983 is ready for SSH connections 2024-09-02 02:29:35,364 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 02:29:35,364 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 6.224.149.4, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-09-02 02:29:35,364 - DEBUG - ping -s 56 -c 3 -W 1 6.224.149.4 2024-09-02 02:29:39,059 - DEBUG - PING 6.224.149.4 (6.224.149.4): 56 data bytes 64 bytes from 6.224.149.4: seq=0 ttl=62 time=7.231 ms 64 bytes from 6.224.149.4: seq=1 ttl=62 time=0.870 ms 64 bytes from 6.224.149.4: seq=2 ttl=62 time=0.865 ms --- 6.224.149.4 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.865/2.988/7.231 ms 2024-09-02 02:29:39,059 - INFO - Ping to IP 6.224.149.4 from VM ctest-TestRoutersBasic-16329494-33929085 passed 2024-09-02 02:29:39,059 - INFO - Deleting interface with subnet_id 6a913cac-cba2-46cc-af92-24e019da99a7, port_id None from router f82ecbce-0402-42a4-a3f3-6496c660b669 2024-09-02 02:29:39,887 - INFO - Deleting VM ctest-TestRoutersBasic-16329494-34686983 2024-09-02 02:29:40,100 - INFO - Deleting VM ctest-TestRoutersBasic-16329494-33929085 2024-09-02 02:29:40,202 - INFO - Deleting VN ctest-ext_vn-74675348 2024-09-02 02:29:40,433 - DEBUG - VN 1ece1fcd-672e-4434-b9e8-f097f1244059 still in use: Unable to complete operation on network 1ece1fcd-672e-4434-b9e8-f097f1244059. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-22810e0d-1cc2-4884-96c1-e618a8dfc0b3'] 2024-09-02 02:29:40,433 - WARNING - Deleting VN ctest-ext_vn-74675348 failed..Will retry 2024-09-02 02:29:42,632 - DEBUG - Response for deleting network () 2024-09-02 02:29:42,632 - INFO - Deleting VN ctest-vn-37320036 2024-09-02 02:29:42,795 - DEBUG - Response for deleting network () 2024-09-02 02:29:43,178 - DEBUG - No XMPP flaps were noticed during the test 2024-09-02 02:29:43,179 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:40] 2024-09-02 02:29:43,179 - INFO - -------------------------------------------------------------------------------- 2024-09-02 02:29:43,903 - INFO - Deleted project: ctest-TestRoutersBasic-16329494, ID : c88ec31c-f28f-4fb5-9ff0-29b803565982