2024-11-06 18:56:14,769 - INFO - Domain Default found not creating 2024-11-06 18:56:14,947 - INFO - Project ctest-TestBasicPolicy-89428423 not found, creating it 2024-11-06 18:56:15,465 - INFO - Created Project:ctest-TestBasicPolicy-89428423, ID : 9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9 2024-11-06 18:56:17,135 - INFO - ================================================================================ 2024-11-06 18:56:17,135 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-06 18:56:17,135 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-11-06 18:56:17,395 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.8': '0'}} with 2024-11-06 18:56:17,395 - INFO - Initial checks done. Running the testcase now 2024-11-06 18:56:17,395 - INFO - 2024-11-06 18:56:18,064 - DEBUG - Response for create_network : {'network': {'id': 'f71ffced-417b-405f-8e2c-364bc4d6ce69', 'name': 'ctest-vn-04312204', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-vn-04312204'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 18:56:18,283 - DEBUG - Response for create_subnet : {'subnet': {'id': '237941f7-1189-404d-8374-52699259f54f', 'name': '', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'network_id': 'f71ffced-417b-405f-8e2c-364bc4d6ce69', 'ip_version': 4, 'cidr': '218.31.181.192/26', 'allocation_pools': [{'start': '218.31.181.194', 'end': '218.31.181.254'}], 'gateway_ip': '218.31.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.31.181.194', 'tags': [], 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9'}} 2024-11-06 18:56:18,306 - INFO - Created VN ctest-vn-04312204 2024-11-06 18:56:18,365 - DEBUG - VN ctest-vn-04312204 UUID is f71ffced-417b-405f-8e2c-364bc4d6ce69 2024-11-06 18:56:18,694 - DEBUG - Response for create_network : {'network': {'id': '325df4d2-b5cf-46ce-bcbe-3b070bedb8fe', 'name': 'ctest-vn-06346398', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-vn-06346398'], 'port_security_enabled': True, 'description': ''}} 2024-11-06 18:56:18,946 - DEBUG - Response for create_subnet : {'subnet': {'id': 'affc483e-003b-434c-8059-30b6c529398b', 'name': '', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'network_id': '325df4d2-b5cf-46ce-bcbe-3b070bedb8fe', 'ip_version': 4, 'cidr': '14.25.165.64/26', 'allocation_pools': [{'start': '14.25.165.66', 'end': '14.25.165.126'}], 'gateway_ip': '14.25.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.25.165.66', 'tags': [], 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9'}} 2024-11-06 18:56:18,969 - INFO - Created VN ctest-vn-06346398 2024-11-06 18:56:19,028 - DEBUG - VN ctest-vn-06346398 UUID is 325df4d2-b5cf-46ce-bcbe-3b070bedb8fe 2024-11-06 18:56:19,155 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-11-06 18:56:19,506 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f71ffced-417b-405f-8e2c-364bc4d6ce69', 'name': 'ctest-vn-04312204', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['237941f7-1189-404d-8374-52699259f54f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-vn-04312204'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-policy-allow-all-40162076']], 'subnet_ipam': [{'subnet_cidr': '218.31.181.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-06 18:56:19,776 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '325df4d2-b5cf-46ce-bcbe-3b070bedb8fe', 'name': 'ctest-vn-06346398', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['affc483e-003b-434c-8059-30b6c529398b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-vn-06346398'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-policy-allow-all-40162076']], 'subnet_ipam': [{'subnet_cidr': '14.25.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-06 18:56:19,948 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-06 18:56:20,299 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-06 18:56:20,338 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438 2024-11-06 18:56:20,361 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9 2024-11-06 18:56:20,449 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69 2024-11-06 18:56:20,466 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69 2024-11-06 18:56:20,482 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f 2024-11-06 18:56:20,492 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f 2024-11-06 18:56:20,502 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b7bea891-61bc-4cdb-a616-32cbfee58b51 2024-11-06 18:56:20,511 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-06 18:56:20,511 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69 2024-11-06 18:56:20,527 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f 2024-11-06 18:56:20,550 - INFO - Verified VN network id 7 for VN f71ffced-417b-405f-8e2c-364bc4d6ce69 2024-11-06 18:56:20,550 - INFO - Verifications in API Server for VN ctest-vn-04312204 passed 2024-11-06 18:56:20,550 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69 2024-11-06 18:56:20,567 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f 2024-11-06 18:56:20,576 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f 2024-11-06 18:56:20,585 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b7bea891-61bc-4cdb-a616-32cbfee58b51 2024-11-06 18:56:20,600 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89428423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17807229547582275679', 'uuid-lslong': '10244622951413894761'}, 'enable': 'true', 'created': '2024-11-06T18:56:18', 'last-modified': '2024-11-06T18:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.135598'} 2024-11-06 18:56:20,607 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-06 18:56:20,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04312204 passed 2024-11-06 18:56:20,607 - DEBUG - ====Verifying policy data for ctest-vn-04312204 in API_Server ====== 2024-11-06 18:56:20,607 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-06 18:56:20,615 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438 2024-11-06 18:56:20,631 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9 2024-11-06 18:56:20,718 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69 2024-11-06 18:56:20,734 - DEBUG - ==>Verifying data for policy with id: 1855843e-0ba5-4466-9fed-0b648bdf5838, fqn: ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-policy-allow-all-40162076'] 2024-11-06 18:56:20,734 - INFO - VN ctest-vn-04312204 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-06 18:56:20,734 - DEBUG - Verifying the vn in opserver 2024-11-06 18:56:20,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204 virtual network link through opserver 10.0.0.24 2024-11-06 18:56:20,734 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-06 18:56:21,081 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-06 18:56:21,155 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204?flat'} 2024-11-06 18:56:21,155 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204 is found in opserver 2024-11-06 18:56:21,169 - DEBUG - Do not have enough data to verify VN in agent 2024-11-06 18:56:21,175 - DEBUG - VRF ids for VN ctest-vn-04312204: {} 2024-11-06 18:56:21,175 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-06 18:56:21,181 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438 2024-11-06 18:56:21,197 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9 2024-11-06 18:56:21,278 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe 2024-11-06 18:56:21,300 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe 2024-11-06 18:56:21,316 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c 2024-11-06 18:56:21,327 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c 2024-11-06 18:56:21,339 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/be2fbc63-30a4-4797-9598-238a723387ef 2024-11-06 18:56:21,349 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-06 18:56:21,349 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe 2024-11-06 18:56:21,365 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c 2024-11-06 18:56:21,392 - INFO - Verified VN network id 8 for VN 325df4d2-b5cf-46ce-bcbe-3b070bedb8fe 2024-11-06 18:56:21,392 - INFO - Verifications in API Server for VN ctest-vn-06346398 passed 2024-11-06 18:56:21,393 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe 2024-11-06 18:56:21,415 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c 2024-11-06 18:56:21,428 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c 2024-11-06 18:56:21,438 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/be2fbc63-30a4-4797-9598-238a723387ef 2024-11-06 18:56:21,456 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89428423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3629326060561057486', 'uuid-lslong': '13600372826156415230'}, 'enable': 'true', 'created': '2024-11-06T18:56:18', 'last-modified': '2024-11-06T18:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.710776'} 2024-11-06 18:56:21,464 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-06 18:56:21,464 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06346398 passed 2024-11-06 18:56:21,465 - DEBUG - ====Verifying policy data for ctest-vn-06346398 in API_Server ====== 2024-11-06 18:56:21,465 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-06 18:56:21,471 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438 2024-11-06 18:56:21,486 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9 2024-11-06 18:56:21,572 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe 2024-11-06 18:56:21,590 - DEBUG - ==>Verifying data for policy with id: 1855843e-0ba5-4466-9fed-0b648bdf5838, fqn: ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-policy-allow-all-40162076'] 2024-11-06 18:56:21,590 - INFO - VN ctest-vn-06346398 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-06 18:56:21,590 - DEBUG - Verifying the vn in opserver 2024-11-06 18:56:21,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398 virtual network link through opserver 10.0.0.24 2024-11-06 18:56:21,590 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-06 18:56:21,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398?flat'} 2024-11-06 18:56:21,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398 is found in opserver 2024-11-06 18:56:21,621 - DEBUG - Do not have enough data to verify VN in agent 2024-11-06 18:56:21,626 - DEBUG - VRF ids for VN ctest-vn-06346398: {} 2024-11-06 18:56:21,685 - DEBUG - Services list from nova: [, , ] 2024-11-06 18:56:22,846 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2205-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2205-1) 2024-11-06 18:56:24,297 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2205-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2205-1) 2024-11-06 18:56:24,297 - INFO - Waiting for VM ctest-TestBasicPolicy-89428423-34497442 to be up.. 2024-11-06 18:56:24,393 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-06 18:56:29,515 - DEBUG - VM is in ACTIVE state now 2024-11-06 18:56:29,515 - INFO - VM name : ctest-TestBasicPolicy-89428423-34497442 2024-11-06 18:56:29,621 - DEBUG - VM ctest-TestBasicPolicy-89428423-34497442 ID is 7ef2b0b7-1f7a-46ec-a989-3f432e592837 2024-11-06 18:56:29,662 - DEBUG - VM ctest-TestBasicPolicy-89428423-34497442 launched on Node cn-jenkins-deploy-platform-ansible-os-2205-1 2024-11-06 18:56:29,760 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/7ef2b0b7-1f7a-46ec-a989-3f432e592837 2024-11-06 18:56:29,775 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/9bf1e7e8-07f4-4ee9-ad73-f677a55316e0 2024-11-06 18:56:33,087 - 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 1026ms') 2024-11-06 18:56:33,088 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89428423-34497442 failed! 2024-11-06 18:56:33,153 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204 is 218.31.181.193 and allocation pool is NOT set 2024-11-06 18:56:35,220 - 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.55 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 1002ms\r\nrtt min/avg/max/mdev = 2.260/3.904/5.549/1.644 ms') 2024-11-06 18:56:35,221 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89428423-34497442 passed 2024-11-06 18:56:35,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:56:35,381 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89428423-34497442, IP 218.31.181.195, Port 22 2024-11-06 18:56:35,554 - DEBUG - VM ctest-TestBasicPolicy-89428423-34497442 is ready for SSH connections 2024-11-06 18:56:35,555 - INFO - Waiting for VM ctest-TestBasicPolicy-89428423-24231546 to be up.. 2024-11-06 18:56:35,654 - DEBUG - VM is in ACTIVE state now 2024-11-06 18:56:35,654 - INFO - VM name : ctest-TestBasicPolicy-89428423-24231546 2024-11-06 18:56:35,750 - DEBUG - VM ctest-TestBasicPolicy-89428423-24231546 ID is 1f8b88c0-a9b3-4979-8e29-4643a1897fd5 2024-11-06 18:56:35,750 - DEBUG - VM ctest-TestBasicPolicy-89428423-24231546 launched on Node cn-jenkins-deploy-platform-ansible-os-2205-1 2024-11-06 18:56:35,857 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/1f8b88c0-a9b3-4979-8e29-4643a1897fd5 2024-11-06 18:56:35,873 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/f8bb9d77-8802-4be9-83dc-5eb28979135d 2024-11-06 18:56:37,143 - 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.30 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.74 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.744/3.021/3.299/0.277 ms') 2024-11-06 18:56:37,143 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89428423-24231546 passed 2024-11-06 18:56:37,308 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:56:37,309 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89428423-24231546, IP 14.25.165.67, Port 22 2024-11-06 18:56:37,364 - 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': ''} 2024-11-06 18:56:37,459 - DEBUG - VM ctest-TestBasicPolicy-89428423-24231546 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-06 18:56:42,460 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:56:42,460 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89428423-24231546, IP 14.25.165.67, Port 22 2024-11-06 18:56:42,636 - DEBUG - VM ctest-TestBasicPolicy-89428423-24231546 is ready for SSH connections 2024-11-06 18:56:42,637 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:56:42,637 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.25.165.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-11-06 18:56:42,637 - DEBUG - ping -s 56 -c 3 -W 1 14.25.165.67 2024-11-06 18:56:46,715 - DEBUG - PING 14.25.165.67 (14.25.165.67): 56 data bytes 64 bytes from 14.25.165.67: seq=0 ttl=63 time=4.312 ms 64 bytes from 14.25.165.67: seq=1 ttl=63 time=1.100 ms 64 bytes from 14.25.165.67: seq=2 ttl=63 time=0.841 ms --- 14.25.165.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.841/2.084/4.312 ms 2024-11-06 18:56:46,715 - INFO - Ping to IP 14.25.165.67 from VM ctest-TestBasicPolicy-89428423-34497442 passed 2024-11-06 18:56:46,916 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1855843e-0ba5-4466-9fed-0b648bdf5838", "href": "http://10.0.0.24:8082/network-policy/1855843e-0ba5-4466-9fed-0b648bdf5838"}} 2024-11-06 18:56:46,916 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-06 18:56:46,917 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 14.25.165.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-11-06 18:56:46,917 - DEBUG - ping -s 56 -c 3 -W 1 14.25.165.67 2024-11-06 18:56:50,143 - DEBUG - PING 14.25.165.67 (14.25.165.67): 56 data bytes 64 bytes from 14.25.165.67: seq=0 ttl=63 time=1.441 ms --- 14.25.165.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.441/1.441/1.441 ms 2024-11-06 18:56:50,143 - WARNING - Ping to IP 14.25.165.67 from VM ctest-TestBasicPolicy-89428423-34497442 failed 2024-11-06 18:56:50,143 - INFO - Deleting VM ctest-TestBasicPolicy-89428423-24231546 2024-11-06 18:56:50,211 - INFO - Deleting VM ctest-TestBasicPolicy-89428423-34497442 2024-11-06 18:56:50,684 - INFO - Deleted policy ctest-policy-allow-all-40162076 2024-11-06 18:56:50,685 - INFO - Deleting VN ctest-vn-06346398 2024-11-06 18:56:50,749 - DEBUG - VN 325df4d2-b5cf-46ce-bcbe-3b070bedb8fe still in use: Unable to complete operation on network 325df4d2-b5cf-46ce-bcbe-3b070bedb8fe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-82567b8d-5054-482a-8580-0905610f6875'] 2024-11-06 18:56:50,749 - WARNING - Deleting VN ctest-vn-06346398 failed..Will retry 2024-11-06 18:56:52,871 - DEBUG - Response for deleting network () 2024-11-06 18:56:52,871 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c 2024-11-06 18:56:52,885 - DEBUG - Response Code: 404 2024-11-06 18:56:52,885 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-06 18:56:52,901 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438 2024-11-06 18:56:52,927 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9 2024-11-06 18:56:53,014 - INFO - Validated that VN ctest-vn-06346398 is not found in API Server 2024-11-06 18:56:53,026 - DEBUG - VN ctest-vn-06346398 is not present in Agent 10.0.0.24 2024-11-06 18:56:53,026 - INFO - Validated that VN ctest-vn-06346398 is not in any agent 2024-11-06 18:56:53,045 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06346398 info 2024-11-06 18:56:53,045 - INFO - Deleting VN ctest-vn-04312204 2024-11-06 18:56:53,170 - DEBUG - Response for deleting network () 2024-11-06 18:56:53,170 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f 2024-11-06 18:56:53,177 - DEBUG - Response Code: 404 2024-11-06 18:56:53,177 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-06 18:56:53,183 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438 2024-11-06 18:56:53,249 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9 2024-11-06 18:56:53,333 - INFO - Validated that VN ctest-vn-04312204 is not found in API Server 2024-11-06 18:56:53,345 - DEBUG - VN ctest-vn-04312204 is not present in Agent 10.0.0.24 2024-11-06 18:56:53,345 - INFO - Validated that VN ctest-vn-04312204 is not in any agent 2024-11-06 18:56:53,363 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04312204 info 2024-11-06 18:56:53,618 - DEBUG - No XMPP flaps were noticed during the test 2024-11-06 18:56:53,618 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-11-06 18:56:53,618 - INFO - -------------------------------------------------------------------------------- 2024-11-06 18:56:54,380 - INFO - Deleted project: ctest-TestBasicPolicy-89428423, ID : 9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9