2025-11-24 02:31:41,610 - INFO - Domain Default found not creating 2025-11-24 02:31:41,788 - INFO - Project ctest-TestBasicPolicy-53412070 not found, creating it 2025-11-24 02:31:42,319 - INFO - Created Project:ctest-TestBasicPolicy-53412070, ID : f551e116-68c3-451f-9a3e-a44d06f5c453 2025-11-24 02:31:43,937 - INFO - ================================================================================ 2025-11-24 02:31:43,937 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-24 02:31:43,937 - 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 2025-11-24 02:31:45,229 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.56': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2025-11-24 02:31:45,229 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:31:45,229 - INFO - 2025-11-24 02:31:45,952 - DEBUG - Response for create_network : {'network': {'id': 'c881bc19-b921-468b-8b02-676f03575fcb', 'name': 'ctest-vn-24113678', 'tenant_id': 'f551e11668c3451f9a3ea44d06f5c453', 'project_id': 'f551e11668c3451f9a3ea44d06f5c453', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53412070', 'ctest-vn-24113678'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:31:46,223 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd709de15-964f-47d6-893f-85712ac62e02', 'name': '', 'tenant_id': 'f551e11668c3451f9a3ea44d06f5c453', 'network_id': 'c881bc19-b921-468b-8b02-676f03575fcb', 'ip_version': 4, 'cidr': '120.182.175.64/26', 'allocation_pools': [{'start': '120.182.175.66', 'end': '120.182.175.126'}], 'gateway_ip': '120.182.175.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.182.175.66', 'tags': [], 'project_id': 'f551e11668c3451f9a3ea44d06f5c453'}} 2025-11-24 02:31:46,251 - INFO - Created VN ctest-vn-24113678 2025-11-24 02:31:46,267 - DEBUG - VN ctest-vn-24113678 UUID is c881bc19-b921-468b-8b02-676f03575fcb 2025-11-24 02:31:46,637 - DEBUG - Response for create_network : {'network': {'id': '355635a7-a087-4c59-8ec0-0c7eeb5ac677', 'name': 'ctest-vn-05317908', 'tenant_id': 'f551e11668c3451f9a3ea44d06f5c453', 'project_id': 'f551e11668c3451f9a3ea44d06f5c453', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53412070', 'ctest-vn-05317908'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:31:46,959 - DEBUG - Response for create_subnet : {'subnet': {'id': '9125c13d-03bd-45c1-92c0-aeb19ef5f00c', 'name': '', 'tenant_id': 'f551e11668c3451f9a3ea44d06f5c453', 'network_id': '355635a7-a087-4c59-8ec0-0c7eeb5ac677', 'ip_version': 4, 'cidr': '208.105.26.128/26', 'allocation_pools': [{'start': '208.105.26.130', 'end': '208.105.26.190'}], 'gateway_ip': '208.105.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.105.26.130', 'tags': [], 'project_id': 'f551e11668c3451f9a3ea44d06f5c453'}} 2025-11-24 02:31:46,983 - INFO - Created VN ctest-vn-05317908 2025-11-24 02:31:46,997 - DEBUG - VN ctest-vn-05317908 UUID is 355635a7-a087-4c59-8ec0-0c7eeb5ac677 2025-11-24 02:31:47,097 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678, 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-53412070:ctest-vn-05317908, 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] 2025-11-24 02:31:47,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c881bc19-b921-468b-8b02-676f03575fcb', 'name': 'ctest-vn-24113678', 'tenant_id': 'f551e11668c3451f9a3ea44d06f5c453', 'project_id': 'f551e11668c3451f9a3ea44d06f5c453', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d709de15-964f-47d6-893f-85712ac62e02'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53412070', 'ctest-vn-24113678'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53412070', 'ctest-policy-allow-all-30540751']], 'subnet_ipam': [{'subnet_cidr': '120.182.175.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:31:47,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '355635a7-a087-4c59-8ec0-0c7eeb5ac677', 'name': 'ctest-vn-05317908', 'tenant_id': 'f551e11668c3451f9a3ea44d06f5c453', 'project_id': 'f551e11668c3451f9a3ea44d06f5c453', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9125c13d-03bd-45c1-92c0-aeb19ef5f00c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53412070', 'ctest-vn-05317908'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53412070', 'ctest-policy-allow-all-30540751']], 'subnet_ipam': [{'subnet_cidr': '208.105.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:31:47,802 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:31:48,142 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:31:48,181 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:31:48,196 - DEBUG - Requesting: http://10.0.0.41:8082/project/f551e116-68c3-451f-9a3e-a44d06f5c453 2025-11-24 02:31:48,299 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c881bc19-b921-468b-8b02-676f03575fcb 2025-11-24 02:31:48,313 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c881bc19-b921-468b-8b02-676f03575fcb 2025-11-24 02:31:48,323 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00327b6b-610f-4446-bbce-2400abac75cb 2025-11-24 02:31:48,335 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00327b6b-610f-4446-bbce-2400abac75cb 2025-11-24 02:31:48,343 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/be74c370-e127-48a5-ac73-35df828e4ef5 2025-11-24 02:31:48,351 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:31:48,351 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c881bc19-b921-468b-8b02-676f03575fcb 2025-11-24 02:31:48,362 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00327b6b-610f-4446-bbce-2400abac75cb 2025-11-24 02:31:48,382 - INFO - Verified VN network id 11 for VN c881bc19-b921-468b-8b02-676f03575fcb 2025-11-24 02:31:48,382 - INFO - Verifications in API Server for VN ctest-vn-24113678 passed 2025-11-24 02:31:48,382 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c881bc19-b921-468b-8b02-676f03575fcb 2025-11-24 02:31:48,397 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00327b6b-610f-4446-bbce-2400abac75cb 2025-11-24 02:31:48,406 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00327b6b-610f-4446-bbce-2400abac75cb 2025-11-24 02:31:48,414 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/be74c370-e127-48a5-ac73-35df828e4ef5 2025-11-24 02:31:48,429 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53412070', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14448035898247431819', 'uuid-lslong': '10016682247720493003'}, 'enable': 'true', 'created': '2025-11-24T02:31:45', 'last-modified': '2025-11-24T02:31:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009309'} 2025-11-24 02:31:48,435 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:31:48,440 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53412070', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14448035898247431819', 'uuid-lslong': '10016682247720493003'}, 'enable': 'true', 'created': '2025-11-24T02:31:45', 'last-modified': '2025-11-24T02:31:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025453'} 2025-11-24 02:31:48,447 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:31:48,453 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53412070', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14448035898247431819', 'uuid-lslong': '10016682247720493003'}, 'enable': 'true', 'created': '2025-11-24T02:31:45', 'last-modified': '2025-11-24T02:31:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031197'} 2025-11-24 02:31:48,460 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:31:48,461 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24113678 passed 2025-11-24 02:31:48,461 - DEBUG - ====Verifying policy data for ctest-vn-24113678 in API_Server ====== 2025-11-24 02:31:48,461 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:31:48,469 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:31:48,481 - DEBUG - Requesting: http://10.0.0.41:8082/project/f551e116-68c3-451f-9a3e-a44d06f5c453 2025-11-24 02:31:48,576 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c881bc19-b921-468b-8b02-676f03575fcb 2025-11-24 02:31:48,589 - DEBUG - ==>Verifying data for policy with id: b679c5cc-5502-4aa3-b412-acdefb07e687, fqn: ['default-domain', 'ctest-TestBasicPolicy-53412070', 'ctest-policy-allow-all-30540751'] 2025-11-24 02:31:48,589 - INFO - VN ctest-vn-24113678 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 02:31:48,589 - DEBUG - Verifying the vn in opserver 2025-11-24 02:31:48,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 virtual network link through opserver 10.0.0.41 2025-11-24 02:31:48,590 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-24 02:31:48,887 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-24 02:31:48,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678?flat'} 2025-11-24 02:31:48,955 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 virtual network link through opserver 10.0.0.50 2025-11-24 02:31:48,955 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-24 02:31:49,253 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-24 02:31:49,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678?flat'} 2025-11-24 02:31:49,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 virtual network link through opserver 10.0.0.27 2025-11-24 02:31:49,320 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-24 02:31:49,614 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-24 02:31:49,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678?flat'} 2025-11-24 02:31:49,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is found in opserver 2025-11-24 02:31:49,708 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 02:31:49,718 - DEBUG - VRF ids for VN ctest-vn-24113678: {} 2025-11-24 02:31:49,718 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:31:49,725 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:31:49,739 - DEBUG - Requesting: http://10.0.0.41:8082/project/f551e116-68c3-451f-9a3e-a44d06f5c453 2025-11-24 02:31:49,828 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/355635a7-a087-4c59-8ec0-0c7eeb5ac677 2025-11-24 02:31:49,843 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/355635a7-a087-4c59-8ec0-0c7eeb5ac677 2025-11-24 02:31:49,852 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/909f3f1f-9b0b-4f20-96c6-8dc089e8cc15 2025-11-24 02:31:49,860 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/909f3f1f-9b0b-4f20-96c6-8dc089e8cc15 2025-11-24 02:31:49,868 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/3d65530c-caa5-4854-8c3a-6ce2a3d4ba6c 2025-11-24 02:31:49,875 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-24 02:31:49,875 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/355635a7-a087-4c59-8ec0-0c7eeb5ac677 2025-11-24 02:31:49,885 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/909f3f1f-9b0b-4f20-96c6-8dc089e8cc15 2025-11-24 02:31:49,902 - INFO - Verified VN network id 12 for VN 355635a7-a087-4c59-8ec0-0c7eeb5ac677 2025-11-24 02:31:49,902 - INFO - Verifications in API Server for VN ctest-vn-05317908 passed 2025-11-24 02:31:49,902 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/355635a7-a087-4c59-8ec0-0c7eeb5ac677 2025-11-24 02:31:49,914 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/909f3f1f-9b0b-4f20-96c6-8dc089e8cc15 2025-11-24 02:31:49,922 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/909f3f1f-9b0b-4f20-96c6-8dc089e8cc15 2025-11-24 02:31:49,930 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/3d65530c-caa5-4854-8c3a-6ce2a3d4ba6c 2025-11-24 02:31:49,944 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53412070', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3843318326076329049', 'uuid-lslong': '10286235288168220279'}, 'enable': 'true', 'created': '2025-11-24T02:31:46', 'last-modified': '2025-11-24T02:31:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.286155'} 2025-11-24 02:31:49,954 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-24 02:31:49,960 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53412070', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3843318326076329049', 'uuid-lslong': '10286235288168220279'}, 'enable': 'true', 'created': '2025-11-24T02:31:46', 'last-modified': '2025-11-24T02:31:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.299256'} 2025-11-24 02:31:49,966 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-24 02:31:49,971 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53412070', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3843318326076329049', 'uuid-lslong': '10286235288168220279'}, 'enable': 'true', 'created': '2025-11-24T02:31:46', 'last-modified': '2025-11-24T02:31:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.312499'} 2025-11-24 02:31:49,977 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-24 02:31:49,977 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05317908 passed 2025-11-24 02:31:49,977 - DEBUG - ====Verifying policy data for ctest-vn-05317908 in API_Server ====== 2025-11-24 02:31:49,977 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:31:49,984 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:31:49,996 - DEBUG - Requesting: http://10.0.0.41:8082/project/f551e116-68c3-451f-9a3e-a44d06f5c453 2025-11-24 02:31:50,088 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/355635a7-a087-4c59-8ec0-0c7eeb5ac677 2025-11-24 02:31:50,098 - DEBUG - ==>Verifying data for policy with id: b679c5cc-5502-4aa3-b412-acdefb07e687, fqn: ['default-domain', 'ctest-TestBasicPolicy-53412070', 'ctest-policy-allow-all-30540751'] 2025-11-24 02:31:50,098 - INFO - VN ctest-vn-05317908 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 02:31:50,098 - DEBUG - Verifying the vn in opserver 2025-11-24 02:31:50,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908 virtual network link through opserver 10.0.0.41 2025-11-24 02:31:50,098 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-24 02:31:50,159 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908?flat'} 2025-11-24 02:31:50,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908 virtual network link through opserver 10.0.0.50 2025-11-24 02:31:50,159 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-24 02:31:50,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908?flat'} 2025-11-24 02:31:50,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908 virtual network link through opserver 10.0.0.27 2025-11-24 02:31:50,222 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-24 02:31:50,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908?flat'} 2025-11-24 02:31:50,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-05317908 is found in opserver 2025-11-24 02:31:50,317 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 02:31:50,329 - DEBUG - VRF ids for VN ctest-vn-05317908: {} 2025-11-24 02:31:50,401 - DEBUG - Services list from nova: [, , , ] 2025-11-24 02:31:51,600 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4803-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4803-2) 2025-11-24 02:31:52,935 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4803-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4803-1) 2025-11-24 02:31:52,935 - INFO - Waiting for VM ctest-TestBasicPolicy-53412070-73943901 to be up.. 2025-11-24 02:31:53,041 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-24 02:31:58,138 - DEBUG - VM is in ACTIVE state now 2025-11-24 02:31:58,138 - INFO - VM name : ctest-TestBasicPolicy-53412070-73943901 2025-11-24 02:31:58,236 - DEBUG - VM ctest-TestBasicPolicy-53412070-73943901 ID is d3ab8faa-ded0-483c-ab6f-096a4d59ba7d 2025-11-24 02:31:58,267 - DEBUG - VM ctest-TestBasicPolicy-53412070-73943901 launched on Node an-jenkins-deploy-platform-ansible-os-4803-2 2025-11-24 02:31:58,361 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/d3ab8faa-ded0-483c-ab6f-096a4d59ba7d 2025-11-24 02:31:58,658 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/d3ab8faa-ded0-483c-ab6f-096a4d59ba7d 2025-11-24 02:31:58,706 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/03062967-16bc-4406-a5d4-03987addb01d 2025-11-24 02:32:01,894 - 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') 2025-11-24 02:32:01,894 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:01,911 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:05,987 - 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 1018ms') 2025-11-24 02:32:05,987 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:06,005 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:10,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 1022ms') 2025-11-24 02:32:10,087 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:10,103 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:14,181 - 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 1015ms') 2025-11-24 02:32:14,181 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:14,199 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:18,280 - 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 1021ms') 2025-11-24 02:32:18,280 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:18,295 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:22,377 - 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 1018ms') 2025-11-24 02:32:22,377 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:22,394 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:26,474 - 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 1019ms') 2025-11-24 02:32:26,474 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:26,492 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:30,565 - 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') 2025-11-24 02:32:30,565 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:30,584 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:34,664 - 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 1016ms') 2025-11-24 02:32:34,665 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 failed! 2025-11-24 02:32:34,680 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53412070:ctest-vn-24113678 is 120.182.175.65 and allocation pool is NOT set 2025-11-24 02:32:36,746 - 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=8.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.716 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.716/4.684/8.652/3.968 ms') 2025-11-24 02:32:36,746 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-73943901 passed 2025-11-24 02:32:36,819 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:32:36,819 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53412070-73943901, IP 120.182.175.67, Port 22 2025-11-24 02:32:36,884 - DEBUG - Error on ssh to ubuntu@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-11-24 02:32:36,974 - DEBUG - VM ctest-TestBasicPolicy-53412070-73943901 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-24 02:32:41,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:32:41,975 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53412070-73943901, IP 120.182.175.67, Port 22 2025-11-24 02:32:42,030 - DEBUG - Error on ssh to ubuntu@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-11-24 02:32:42,119 - DEBUG - VM ctest-TestBasicPolicy-53412070-73943901 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-24 02:32:47,120 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:32:47,120 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53412070-73943901, IP 120.182.175.67, Port 22 2025-11-24 02:32:47,188 - DEBUG - Error on ssh to ubuntu@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-11-24 02:32:47,279 - DEBUG - VM ctest-TestBasicPolicy-53412070-73943901 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-24 02:32:52,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:32:52,280 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53412070-73943901, IP 120.182.175.67, Port 22 2025-11-24 02:32:52,348 - DEBUG - Error on ssh to ubuntu@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-11-24 02:32:52,430 - DEBUG - VM ctest-TestBasicPolicy-53412070-73943901 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-24 02:32:57,432 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:32:57,432 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53412070-73943901, IP 120.182.175.67, Port 22 2025-11-24 02:32:57,599 - DEBUG - VM ctest-TestBasicPolicy-53412070-73943901 is ready for SSH connections 2025-11-24 02:32:57,600 - INFO - Waiting for VM ctest-TestBasicPolicy-53412070-27110259 to be up.. 2025-11-24 02:32:57,692 - DEBUG - VM is in ACTIVE state now 2025-11-24 02:32:57,692 - INFO - VM name : ctest-TestBasicPolicy-53412070-27110259 2025-11-24 02:32:57,780 - DEBUG - VM ctest-TestBasicPolicy-53412070-27110259 ID is 2c1477b5-e7c3-408e-913c-eae10ac3f45a 2025-11-24 02:32:57,780 - DEBUG - VM ctest-TestBasicPolicy-53412070-27110259 launched on Node an-jenkins-deploy-platform-ansible-os-4803-1 2025-11-24 02:32:57,867 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/2c1477b5-e7c3-408e-913c-eae10ac3f45a 2025-11-24 02:32:57,879 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/d08773f6-6585-4447-82ff-3b145a255cdb 2025-11-24 02:32:59,062 - 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.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.84 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 = 3.281/3.559/3.837/0.278 ms') 2025-11-24 02:32:59,063 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53412070-27110259 passed 2025-11-24 02:32:59,133 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:32:59,133 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53412070-27110259, IP 208.105.26.131, Port 22 2025-11-24 02:32:59,302 - DEBUG - VM ctest-TestBasicPolicy-53412070-27110259 is ready for SSH connections 2025-11-24 02:32:59,302 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:32:59,302 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 208.105.26.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-11-24 02:32:59,302 - DEBUG - ping -s 56 -c 3 -W 1 208.105.26.131 2025-11-24 02:33:20,754 - DEBUG - PING 208.105.26.131 (208.105.26.131) 56(84) bytes of data. 64 bytes from 208.105.26.131: icmp_req=1 ttl=63 time=10.3 ms 64 bytes from 208.105.26.131: icmp_req=2 ttl=63 time=1.33 ms 64 bytes from 208.105.26.131: icmp_req=3 ttl=63 time=1.85 ms --- 208.105.26.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.337/4.512/10.344/4.129 ms 2025-11-24 02:33:20,754 - INFO - Ping to IP 208.105.26.131 from VM ctest-TestBasicPolicy-53412070-73943901 passed 2025-11-24 02:33:21,030 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b679c5cc-5502-4aa3-b412-acdefb07e687", "href": "http://10.0.0.27:8082/network-policy/b679c5cc-5502-4aa3-b412-acdefb07e687"}} 2025-11-24 02:33:21,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:33:21,030 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 208.105.26.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-11-24 02:33:21,030 - DEBUG - ping -s 56 -c 3 -W 1 208.105.26.131 2025-11-24 02:33:24,521 - DEBUG - PING 208.105.26.131 (208.105.26.131) 56(84) bytes of data. 64 bytes from 208.105.26.131: icmp_req=1 ttl=63 time=3.83 ms --- 208.105.26.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2012ms rtt min/avg/max/mdev = 3.839/3.839/3.839/0.000 ms 2025-11-24 02:33:24,521 - WARNING - Ping to IP 208.105.26.131 from VM ctest-TestBasicPolicy-53412070-73943901 failed 2025-11-24 02:33:24,521 - INFO - Deleting VM ctest-TestBasicPolicy-53412070-27110259 2025-11-24 02:33:24,593 - INFO - Deleting VM ctest-TestBasicPolicy-53412070-73943901 2025-11-24 02:33:25,048 - INFO - Deleted policy ctest-policy-allow-all-30540751 2025-11-24 02:33:25,048 - INFO - Deleting VN ctest-vn-05317908 2025-11-24 02:33:25,096 - DEBUG - VN 355635a7-a087-4c59-8ec0-0c7eeb5ac677 still in use: Unable to complete operation on network 355635a7-a087-4c59-8ec0-0c7eeb5ac677. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9df1ffce-8792-4913-8fbf-3c6b5c0212a7'] 2025-11-24 02:33:25,096 - WARNING - Deleting VN ctest-vn-05317908 failed..Will retry 2025-11-24 02:33:27,269 - DEBUG - Response for deleting network () 2025-11-24 02:33:27,269 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/909f3f1f-9b0b-4f20-96c6-8dc089e8cc15 2025-11-24 02:33:27,277 - DEBUG - Response Code: 404 2025-11-24 02:33:27,277 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:33:27,285 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:33:27,339 - DEBUG - Requesting: http://10.0.0.41:8082/project/f551e116-68c3-451f-9a3e-a44d06f5c453 2025-11-24 02:33:27,434 - INFO - Validated that VN ctest-vn-05317908 is not found in API Server 2025-11-24 02:33:27,446 - DEBUG - VN ctest-vn-05317908 is not present in Agent 10.0.0.57 2025-11-24 02:33:27,459 - DEBUG - VN ctest-vn-05317908 is not present in Agent 10.0.0.56 2025-11-24 02:33:27,459 - INFO - Validated that VN ctest-vn-05317908 is not in any agent 2025-11-24 02:33:27,490 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05317908 info 2025-11-24 02:33:27,490 - INFO - Deleting VN ctest-vn-24113678 2025-11-24 02:33:27,732 - DEBUG - Response for deleting network () 2025-11-24 02:33:27,732 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00327b6b-610f-4446-bbce-2400abac75cb 2025-11-24 02:33:27,743 - DEBUG - Response Code: 404 2025-11-24 02:33:27,743 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:33:27,752 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:33:27,766 - DEBUG - Requesting: http://10.0.0.41:8082/project/f551e116-68c3-451f-9a3e-a44d06f5c453 2025-11-24 02:33:27,883 - INFO - Validated that VN ctest-vn-24113678 is not found in API Server 2025-11-24 02:33:27,894 - DEBUG - VN ctest-vn-24113678 is not present in Agent 10.0.0.57 2025-11-24 02:33:27,906 - DEBUG - VN ctest-vn-24113678 is not present in Agent 10.0.0.56 2025-11-24 02:33:27,906 - INFO - Validated that VN ctest-vn-24113678 is not in any agent 2025-11-24 02:33:27,943 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24113678 info 2025-11-24 02:33:29,225 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 02:33:29,225 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:46]
2025-11-24 02:33:29,225 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:33:30,089 - INFO - Deleted project: ctest-TestBasicPolicy-53412070, ID : f551e116-68c3-451f-9a3e-a44d06f5c453