2025-11-04 17:10:55,913 - INFO - Domain Default found not creating
2025-11-04 17:10:56,092 - INFO - Project ctest-TestBasicPolicy-44832134 not found, creating it
2025-11-04 17:10:56,601 - INFO - Created Project:ctest-TestBasicPolicy-44832134, ID : e4c8ec22-a318-4706-ba5d-2de571703310
2025-11-04 17:10:58,317 - INFO - ================================================================================
2025-11-04 17:10:58,317 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 17:10:58,317 - 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-04 17:10:58,576 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-04 17:10:58,576 - INFO - Initial checks done. Running the testcase now
2025-11-04 17:10:58,576 - INFO -
2025-11-04 17:10:59,194 - DEBUG - Response for create_network : {'network': {'id': '8c68cacc-ea5a-44cd-9e39-a30184900e6f', 'name': 'ctest-vn-96603331', 'tenant_id': 'e4c8ec22a3184706ba5d2de571703310', 'project_id': 'e4c8ec22a3184706ba5d2de571703310', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44832134', 'ctest-vn-96603331'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 17:10:59,336 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d443562-7b66-4518-b30f-2d4de0b43514', 'name': '', 'tenant_id': 'e4c8ec22a3184706ba5d2de571703310', 'network_id': '8c68cacc-ea5a-44cd-9e39-a30184900e6f', 'ip_version': 4, 'cidr': '105.107.233.128/26', 'allocation_pools': [{'start': '105.107.233.130', 'end': '105.107.233.190'}], 'gateway_ip': '105.107.233.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.107.233.130', 'tags': [], 'project_id': 'e4c8ec22a3184706ba5d2de571703310'}}
2025-11-04 17:10:59,352 - INFO - Created VN ctest-vn-96603331
2025-11-04 17:10:59,402 - DEBUG - VN ctest-vn-96603331 UUID is 8c68cacc-ea5a-44cd-9e39-a30184900e6f
2025-11-04 17:10:59,736 - DEBUG - Response for create_network : {'network': {'id': '15639464-b2cf-4b9a-8478-10fc9c4634c5', 'name': 'ctest-vn-27027023', 'tenant_id': 'e4c8ec22a3184706ba5d2de571703310', 'project_id': 'e4c8ec22a3184706ba5d2de571703310', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44832134', 'ctest-vn-27027023'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 17:10:59,981 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e63897d3-3929-4ffd-b5df-d9fe8d552079', 'name': '', 'tenant_id': 'e4c8ec22a3184706ba5d2de571703310', 'network_id': '15639464-b2cf-4b9a-8478-10fc9c4634c5', 'ip_version': 4, 'cidr': '103.210.171.128/26', 'allocation_pools': [{'start': '103.210.171.130', 'end': '103.210.171.190'}], 'gateway_ip': '103.210.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.210.171.130', 'tags': [], 'project_id': 'e4c8ec22a3184706ba5d2de571703310'}}
2025-11-04 17:11:00,001 - INFO - Created VN ctest-vn-27027023
2025-11-04 17:11:00,059 - DEBUG - VN ctest-vn-27027023 UUID is 15639464-b2cf-4b9a-8478-10fc9c4634c5
2025-11-04 17:11:00,218 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-96603331, 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-44832134:ctest-vn-27027023, 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-04 17:11:00,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c68cacc-ea5a-44cd-9e39-a30184900e6f', 'name': 'ctest-vn-96603331', 'tenant_id': 'e4c8ec22a3184706ba5d2de571703310', 'project_id': 'e4c8ec22a3184706ba5d2de571703310', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d443562-7b66-4518-b30f-2d4de0b43514'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44832134', 'ctest-vn-96603331'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44832134', 'ctest-policy-allow-all-08130462']], 'subnet_ipam': [{'subnet_cidr': '105.107.233.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 17:11:00,776 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15639464-b2cf-4b9a-8478-10fc9c4634c5', 'name': 'ctest-vn-27027023', 'tenant_id': 'e4c8ec22a3184706ba5d2de571703310', 'project_id': 'e4c8ec22a3184706ba5d2de571703310', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e63897d3-3929-4ffd-b5df-d9fe8d552079'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44832134', 'ctest-vn-27027023'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44832134', 'ctest-policy-allow-all-08130462']], 'subnet_ipam': [{'subnet_cidr': '103.210.171.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 17:11:00,962 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 17:11:01,330 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 17:11:01,360 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f621e2ac-adf7-47be-9301-a10f72eb5b78
2025-11-04 17:11:01,371 - DEBUG - Requesting: http://10.0.0.50:8082/project/e4c8ec22-a318-4706-ba5d-2de571703310
2025-11-04 17:11:01,445 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c68cacc-ea5a-44cd-9e39-a30184900e6f
2025-11-04 17:11:01,455 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c68cacc-ea5a-44cd-9e39-a30184900e6f
2025-11-04 17:11:01,464 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ecb4cb7c-a03c-4b5f-a2c4-95dee026624a
2025-11-04 17:11:01,471 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ecb4cb7c-a03c-4b5f-a2c4-95dee026624a
2025-11-04 17:11:01,477 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0a81a925-c4a3-4cf9-8f4c-b375a1b4a321
2025-11-04 17:11:01,483 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 17:11:01,483 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c68cacc-ea5a-44cd-9e39-a30184900e6f
2025-11-04 17:11:01,491 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ecb4cb7c-a03c-4b5f-a2c4-95dee026624a
2025-11-04 17:11:01,504 - INFO - Verified VN network id 11 for VN 8c68cacc-ea5a-44cd-9e39-a30184900e6f
2025-11-04 17:11:01,504 - INFO - Verifications in API Server for VN ctest-vn-96603331 passed
2025-11-04 17:11:01,504 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c68cacc-ea5a-44cd-9e39-a30184900e6f
2025-11-04 17:11:01,513 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ecb4cb7c-a03c-4b5f-a2c4-95dee026624a
2025-11-04 17:11:01,519 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ecb4cb7c-a03c-4b5f-a2c4-95dee026624a
2025-11-04 17:11:01,526 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0a81a925-c4a3-4cf9-8f4c-b375a1b4a321
2025-11-04 17:11:01,536 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-96603331', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44832134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10117559544341742797', 'uuid-lslong': '11401323158579449455'}, 'enable': 'true', 'created': '2025-11-04T17:10:59', 'last-modified': '2025-11-04T17:11:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.036137'}
2025-11-04 17:11:01,542 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 17:11:01,542 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96603331 passed
2025-11-04 17:11:01,543 - DEBUG - ====Verifying policy data for ctest-vn-96603331 in API_Server ======
2025-11-04 17:11:01,543 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 17:11:01,549 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f621e2ac-adf7-47be-9301-a10f72eb5b78
2025-11-04 17:11:01,559 - DEBUG - Requesting: http://10.0.0.50:8082/project/e4c8ec22-a318-4706-ba5d-2de571703310
2025-11-04 17:11:01,629 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c68cacc-ea5a-44cd-9e39-a30184900e6f
2025-11-04 17:11:01,638 - DEBUG - ==>Verifying data for policy with id: 5935322b-dbf8-4614-9269-e6b753b7e415, fqn: ['default-domain', 'ctest-TestBasicPolicy-44832134', 'ctest-policy-allow-all-08130462']
2025-11-04 17:11:01,638 - INFO - VN ctest-vn-96603331 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 17:11:01,639 - DEBUG - Verifying the vn in opserver
2025-11-04 17:11:01,639 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-96603331 virtual network link through opserver 10.0.0.50
2025-11-04 17:11:01,639 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 17:11:02,004 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 17:11:02,062 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-96603331', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-96603331?flat'}
2025-11-04 17:11:02,062 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-96603331 is found in opserver
2025-11-04 17:11:02,071 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 17:11:02,076 - DEBUG - VRF ids for VN ctest-vn-96603331: {}
2025-11-04 17:11:02,076 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 17:11:02,081 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f621e2ac-adf7-47be-9301-a10f72eb5b78
2025-11-04 17:11:02,092 - DEBUG - Requesting: http://10.0.0.50:8082/project/e4c8ec22-a318-4706-ba5d-2de571703310
2025-11-04 17:11:02,162 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15639464-b2cf-4b9a-8478-10fc9c4634c5
2025-11-04 17:11:02,175 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15639464-b2cf-4b9a-8478-10fc9c4634c5
2025-11-04 17:11:02,185 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2485e357-4d74-4563-bb47-e839ab108fe5
2025-11-04 17:11:02,194 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2485e357-4d74-4563-bb47-e839ab108fe5
2025-11-04 17:11:02,201 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b24fd88a-cf19-49b6-ba8d-f475ee851d21
2025-11-04 17:11:02,208 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 17:11:02,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15639464-b2cf-4b9a-8478-10fc9c4634c5
2025-11-04 17:11:02,216 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2485e357-4d74-4563-bb47-e839ab108fe5
2025-11-04 17:11:02,229 - INFO - Verified VN network id 12 for VN 15639464-b2cf-4b9a-8478-10fc9c4634c5
2025-11-04 17:11:02,230 - INFO - Verifications in API Server for VN ctest-vn-27027023 passed
2025-11-04 17:11:02,230 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15639464-b2cf-4b9a-8478-10fc9c4634c5
2025-11-04 17:11:02,239 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2485e357-4d74-4563-bb47-e839ab108fe5
2025-11-04 17:11:02,246 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2485e357-4d74-4563-bb47-e839ab108fe5
2025-11-04 17:11:02,254 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b24fd88a-cf19-49b6-ba8d-f475ee851d21
2025-11-04 17:11:02,267 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-27027023', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44832134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1541238657708411802', 'uuid-lslong': '9545398087351416005'}, 'enable': 'true', 'created': '2025-11-04T17:10:59', 'last-modified': '2025-11-04T17:11:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.523212'}
2025-11-04 17:11:02,272 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 17:11:02,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27027023 passed
2025-11-04 17:11:02,273 - DEBUG - ====Verifying policy data for ctest-vn-27027023 in API_Server ======
2025-11-04 17:11:02,273 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 17:11:02,278 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f621e2ac-adf7-47be-9301-a10f72eb5b78
2025-11-04 17:11:02,288 - DEBUG - Requesting: http://10.0.0.50:8082/project/e4c8ec22-a318-4706-ba5d-2de571703310
2025-11-04 17:11:02,361 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15639464-b2cf-4b9a-8478-10fc9c4634c5
2025-11-04 17:11:02,370 - DEBUG - ==>Verifying data for policy with id: 5935322b-dbf8-4614-9269-e6b753b7e415, fqn: ['default-domain', 'ctest-TestBasicPolicy-44832134', 'ctest-policy-allow-all-08130462']
2025-11-04 17:11:02,370 - INFO - VN ctest-vn-27027023 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 17:11:02,370 - DEBUG - Verifying the vn in opserver
2025-11-04 17:11:02,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-27027023 virtual network link through opserver 10.0.0.50
2025-11-04 17:11:02,370 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 17:11:02,380 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-27027023', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-27027023?flat'}
2025-11-04 17:11:02,380 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44832134:ctest-vn-27027023 is found in opserver
2025-11-04 17:11:02,389 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 17:11:02,393 - DEBUG - VRF ids for VN ctest-vn-27027023: {}
2025-11-04 17:11:02,447 - DEBUG - Services list from nova: [