2025-11-20 17:09:33,832 - INFO - Domain Default found not creating
2025-11-20 17:09:34,034 - INFO - Project ctest-TestBasicPolicy-48408476 not found, creating it
2025-11-20 17:09:34,521 - INFO - Created Project:ctest-TestBasicPolicy-48408476, ID : 43baa910-00ad-4c86-bc2b-a4d0b7c00e11
2025-11-20 17:09:36,105 - INFO - ================================================================================
2025-11-20 17:09:36,105 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-20 17:09:36,105 - 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-20 17:09:36,364 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.5': '0'}} with
2025-11-20 17:09:36,364 - INFO - Initial checks done. Running the testcase now
2025-11-20 17:09:36,364 - INFO -
2025-11-20 17:09:36,931 - DEBUG - Response for create_network : {'network': {'id': '2a9016ed-e712-4cba-ba87-87aa03a5b24e', 'name': 'ctest-vn-97430663', 'tenant_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'project_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48408476', 'ctest-vn-97430663'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:09:37,138 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db82b7a3-90c9-43c1-bd6e-3188853e1440', 'name': '', 'tenant_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'network_id': '2a9016ed-e712-4cba-ba87-87aa03a5b24e', 'ip_version': 4, 'cidr': '31.230.36.0/26', 'allocation_pools': [{'start': '31.230.36.2', 'end': '31.230.36.62'}], 'gateway_ip': '31.230.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.230.36.2', 'tags': [], 'project_id': '43baa91000ad4c86bc2ba4d0b7c00e11'}}
2025-11-20 17:09:37,158 - INFO - Created VN ctest-vn-97430663
2025-11-20 17:09:37,211 - DEBUG - VN ctest-vn-97430663 UUID is 2a9016ed-e712-4cba-ba87-87aa03a5b24e
2025-11-20 17:09:37,507 - DEBUG - Response for create_network : {'network': {'id': '0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7', 'name': 'ctest-vn-38672840', 'tenant_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'project_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48408476', 'ctest-vn-38672840'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:09:37,675 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bbcf4f9-e795-46d4-afdd-3d37b4817a64', 'name': '', 'tenant_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'network_id': '0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7', 'ip_version': 4, 'cidr': '40.11.178.64/26', 'allocation_pools': [{'start': '40.11.178.66', 'end': '40.11.178.126'}], 'gateway_ip': '40.11.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.11.178.66', 'tags': [], 'project_id': '43baa91000ad4c86bc2ba4d0b7c00e11'}}
2025-11-20 17:09:37,692 - INFO - Created VN ctest-vn-38672840
2025-11-20 17:09:37,743 - DEBUG - VN ctest-vn-38672840 UUID is 0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7
2025-11-20 17:09:37,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-97430663, 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-48408476:ctest-vn-38672840, 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-20 17:09:38,161 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a9016ed-e712-4cba-ba87-87aa03a5b24e', 'name': 'ctest-vn-97430663', 'tenant_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'project_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db82b7a3-90c9-43c1-bd6e-3188853e1440'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48408476', 'ctest-vn-97430663'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48408476', 'ctest-policy-allow-all-50959932']], 'subnet_ipam': [{'subnet_cidr': '31.230.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:09:38,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7', 'name': 'ctest-vn-38672840', 'tenant_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'project_id': '43baa91000ad4c86bc2ba4d0b7c00e11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2bbcf4f9-e795-46d4-afdd-3d37b4817a64'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48408476', 'ctest-vn-38672840'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48408476', 'ctest-policy-allow-all-50959932']], 'subnet_ipam': [{'subnet_cidr': '40.11.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:09:38,547 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-20 17:09:38,851 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-20 17:09:38,891 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6cf19a68-2ce4-49c1-9e7a-613d55b318f1
2025-11-20 17:09:38,903 - DEBUG - Requesting: http://10.0.0.141:8082/project/43baa910-00ad-4c86-bc2b-a4d0b7c00e11
2025-11-20 17:09:38,981 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a9016ed-e712-4cba-ba87-87aa03a5b24e
2025-11-20 17:09:38,992 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a9016ed-e712-4cba-ba87-87aa03a5b24e
2025-11-20 17:09:39,002 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b84db0c-3e32-4979-8e65-52ee75ae047c
2025-11-20 17:09:39,010 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b84db0c-3e32-4979-8e65-52ee75ae047c
2025-11-20 17:09:39,017 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/10657edb-826e-401a-aae5-ecd7aa8130b5
2025-11-20 17:09:39,023 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 17:09:39,023 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a9016ed-e712-4cba-ba87-87aa03a5b24e
2025-11-20 17:09:39,033 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b84db0c-3e32-4979-8e65-52ee75ae047c
2025-11-20 17:09:39,048 - INFO - Verified VN network id 11 for VN 2a9016ed-e712-4cba-ba87-87aa03a5b24e
2025-11-20 17:09:39,048 - INFO - Verifications in API Server for VN ctest-vn-97430663 passed
2025-11-20 17:09:39,048 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a9016ed-e712-4cba-ba87-87aa03a5b24e
2025-11-20 17:09:39,057 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b84db0c-3e32-4979-8e65-52ee75ae047c
2025-11-20 17:09:39,064 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b84db0c-3e32-4979-8e65-52ee75ae047c
2025-11-20 17:09:39,072 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/10657edb-826e-401a-aae5-ecd7aa8130b5
2025-11-20 17:09:39,084 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-97430663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48408476', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3066976557279104186', 'uuid-lslong': '13440860777185915470'}, 'enable': 'true', 'created': '2025-11-20T17:09:36', 'last-modified': '2025-11-20T17:09:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948407'}
2025-11-20 17:09:39,090 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 17:09:39,090 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97430663 passed
2025-11-20 17:09:39,090 - DEBUG - ====Verifying policy data for ctest-vn-97430663 in API_Server ======
2025-11-20 17:09:39,090 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-20 17:09:39,096 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6cf19a68-2ce4-49c1-9e7a-613d55b318f1
2025-11-20 17:09:39,108 - DEBUG - Requesting: http://10.0.0.141:8082/project/43baa910-00ad-4c86-bc2b-a4d0b7c00e11
2025-11-20 17:09:39,176 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a9016ed-e712-4cba-ba87-87aa03a5b24e
2025-11-20 17:09:39,185 - DEBUG - ==>Verifying data for policy with id: b00b0760-e9fb-4a41-bc03-e914adb4e87e, fqn: ['default-domain', 'ctest-TestBasicPolicy-48408476', 'ctest-policy-allow-all-50959932']
2025-11-20 17:09:39,185 - INFO - VN ctest-vn-97430663 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 17:09:39,185 - DEBUG - Verifying the vn in opserver
2025-11-20 17:09:39,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-97430663 virtual network link through opserver 10.0.0.141
2025-11-20 17:09:39,186 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-20 17:09:39,480 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-20 17:09:39,553 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-97430663', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-97430663?flat'}
2025-11-20 17:09:39,553 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-97430663 is found in opserver
2025-11-20 17:09:39,568 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 17:09:39,573 - DEBUG - VRF ids for VN ctest-vn-97430663: {}
2025-11-20 17:09:39,573 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-20 17:09:39,580 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6cf19a68-2ce4-49c1-9e7a-613d55b318f1
2025-11-20 17:09:39,592 - DEBUG - Requesting: http://10.0.0.141:8082/project/43baa910-00ad-4c86-bc2b-a4d0b7c00e11
2025-11-20 17:09:39,661 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7
2025-11-20 17:09:39,673 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7
2025-11-20 17:09:39,683 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e475548c-ba4a-4229-bfa7-835a769ce9c8
2025-11-20 17:09:39,691 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e475548c-ba4a-4229-bfa7-835a769ce9c8
2025-11-20 17:09:39,698 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1bb68db0-f86f-40b1-acf6-666c67743760
2025-11-20 17:09:39,706 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 17:09:39,706 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7
2025-11-20 17:09:39,715 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e475548c-ba4a-4229-bfa7-835a769ce9c8
2025-11-20 17:09:39,730 - INFO - Verified VN network id 12 for VN 0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7
2025-11-20 17:09:39,730 - INFO - Verifications in API Server for VN ctest-vn-38672840 passed
2025-11-20 17:09:39,730 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7
2025-11-20 17:09:39,742 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e475548c-ba4a-4229-bfa7-835a769ce9c8
2025-11-20 17:09:39,750 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e475548c-ba4a-4229-bfa7-835a769ce9c8
2025-11-20 17:09:39,758 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1bb68db0-f86f-40b1-acf6-666c67743760
2025-11-20 17:09:39,772 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-38672840', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48408476', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '894666258167712837', 'uuid-lslong': '13383605907519777223'}, 'enable': 'true', 'created': '2025-11-20T17:09:37', 'last-modified': '2025-11-20T17:09:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.409055'}
2025-11-20 17:09:39,779 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 17:09:39,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38672840 passed
2025-11-20 17:09:39,779 - DEBUG - ====Verifying policy data for ctest-vn-38672840 in API_Server ======
2025-11-20 17:09:39,779 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-20 17:09:39,788 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6cf19a68-2ce4-49c1-9e7a-613d55b318f1
2025-11-20 17:09:39,800 - DEBUG - Requesting: http://10.0.0.141:8082/project/43baa910-00ad-4c86-bc2b-a4d0b7c00e11
2025-11-20 17:09:39,874 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0c6a7e38-be9d-4c45-b9bc-1ea9db8929c7
2025-11-20 17:09:39,884 - DEBUG - ==>Verifying data for policy with id: b00b0760-e9fb-4a41-bc03-e914adb4e87e, fqn: ['default-domain', 'ctest-TestBasicPolicy-48408476', 'ctest-policy-allow-all-50959932']
2025-11-20 17:09:39,884 - INFO - VN ctest-vn-38672840 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 17:09:39,884 - DEBUG - Verifying the vn in opserver
2025-11-20 17:09:39,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-38672840 virtual network link through opserver 10.0.0.141
2025-11-20 17:09:39,884 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-20 17:09:39,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-38672840', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-38672840?flat'}
2025-11-20 17:09:39,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48408476:ctest-vn-38672840 is found in opserver
2025-11-20 17:09:39,906 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 17:09:39,911 - DEBUG - VRF ids for VN ctest-vn-38672840: {}
2025-11-20 17:09:39,974 - DEBUG - Services list from nova: [