2026-02-02 14:45:57,920 - INFO - Reading existing Domain with UUID 21b81c26-e623-4630-8c9f-905f06503c15
2026-02-02 14:45:57,933 - INFO - Using existing domain ['admin_domain'](21b81c26-e623-4630-8c9f-905f06503c15)
2026-02-02 14:45:58,194 - INFO - Project ctest-TestBasicPolicy-06641393 not found, creating it
2026-02-02 14:45:58,761 - INFO - Created Project:ctest-TestBasicPolicy-06641393, ID : e54805f5-722b-48b5-bc0e-5c51792593af
2026-02-02 14:46:00,681 - INFO - ================================================================================
2026-02-02 14:46:00,682 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-02 14:46:00,682 - 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
2026-02-02 14:46:01,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with
2026-02-02 14:46:01,102 - INFO - Initial checks done. Running the testcase now
2026-02-02 14:46:01,102 - INFO -
2026-02-02 14:46:01,962 - DEBUG - Response for create_network : {'network': {'id': '2f013f52-1214-4af8-a9c0-757f63ab3162', 'name': 'ctest-vn-08210269', 'tenant_id': 'e54805f5722b48b5bc0e5c51792593af', 'project_id': 'e54805f5722b48b5bc0e5c51792593af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-06641393', 'ctest-vn-08210269'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-02-02 14:46:02,245 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd368c87-7c92-43c2-bad3-9b0bdcf61182', 'name': '', 'tenant_id': 'e54805f5722b48b5bc0e5c51792593af', 'network_id': '2f013f52-1214-4af8-a9c0-757f63ab3162', 'ip_version': 4, 'cidr': '40.141.165.0/26', 'allocation_pools': [{'start': '40.141.165.2', 'end': '40.141.165.62'}], 'gateway_ip': '40.141.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-02T14:46:02.134666', 'updated_at': '2026-02-02T14:46:02.134666', 'dns_server_address': '40.141.165.2', 'tags': [], 'project_id': 'e54805f5722b48b5bc0e5c51792593af'}}
2026-02-02 14:46:02,314 - INFO - Created VN ctest-vn-08210269
2026-02-02 14:46:02,368 - DEBUG - VN ctest-vn-08210269 UUID is 2f013f52-1214-4af8-a9c0-757f63ab3162
2026-02-02 14:46:02,917 - DEBUG - Response for create_network : {'network': {'id': '59526ff8-2bce-4b2b-be13-7633db245e84', 'name': 'ctest-vn-77371749', 'tenant_id': 'e54805f5722b48b5bc0e5c51792593af', 'project_id': 'e54805f5722b48b5bc0e5c51792593af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-06641393', 'ctest-vn-77371749'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-02-02 14:46:03,146 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e49dee7a-2c84-4d17-ae14-cfa4ff77e435', 'name': '', 'tenant_id': 'e54805f5722b48b5bc0e5c51792593af', 'network_id': '59526ff8-2bce-4b2b-be13-7633db245e84', 'ip_version': 4, 'cidr': '115.248.4.192/26', 'allocation_pools': [{'start': '115.248.4.194', 'end': '115.248.4.254'}], 'gateway_ip': '115.248.4.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-02T14:46:03.030910', 'updated_at': '2026-02-02T14:46:03.030910', 'dns_server_address': '115.248.4.194', 'tags': [], 'project_id': 'e54805f5722b48b5bc0e5c51792593af'}}
2026-02-02 14:46:03,219 - INFO - Created VN ctest-vn-77371749
2026-02-02 14:46:03,272 - DEBUG - VN ctest-vn-77371749 UUID is 59526ff8-2bce-4b2b-be13-7633db245e84
2026-02-02 14:46:03,493 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-08210269, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-77371749, 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]
2026-02-02 14:46:03,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f013f52-1214-4af8-a9c0-757f63ab3162', 'name': 'ctest-vn-08210269', 'tenant_id': 'e54805f5722b48b5bc0e5c51792593af', 'project_id': 'e54805f5722b48b5bc0e5c51792593af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd368c87-7c92-43c2-bad3-9b0bdcf61182'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-06641393', 'ctest-vn-08210269'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-06641393', 'ctest-policy-allow-all-84129818']], 'subnet_ipam': [{'subnet_cidr': '40.141.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-02T14:46:01.867151', 'updated_at': '2026-02-02T14:46:02.153549'}}
2026-02-02 14:46:04,316 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59526ff8-2bce-4b2b-be13-7633db245e84', 'name': 'ctest-vn-77371749', 'tenant_id': 'e54805f5722b48b5bc0e5c51792593af', 'project_id': 'e54805f5722b48b5bc0e5c51792593af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e49dee7a-2c84-4d17-ae14-cfa4ff77e435'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-06641393', 'ctest-vn-77371749'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-06641393', 'ctest-policy-allow-all-84129818']], 'subnet_ipam': [{'subnet_cidr': '115.248.4.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-02T14:46:02.835046', 'updated_at': '2026-02-02T14:46:03.048996'}}
2026-02-02 14:46:04,512 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2026-02-02 14:46:04,883 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2026-02-02 14:46:04,977 - DEBUG - Requesting: https://10.0.0.242:8082/domain/21b81c26-e623-4630-8c9f-905f06503c15
2026-02-02 14:46:05,037 - DEBUG - Requesting: https://10.0.0.242:8082/project/e54805f5-722b-48b5-bc0e-5c51792593af
2026-02-02 14:46:05,125 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2f013f52-1214-4af8-a9c0-757f63ab3162
2026-02-02 14:46:05,186 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2f013f52-1214-4af8-a9c0-757f63ab3162
2026-02-02 14:46:05,242 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/10934cbf-5a55-443f-a02c-deab83731836
2026-02-02 14:46:05,301 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/10934cbf-5a55-443f-a02c-deab83731836
2026-02-02 14:46:05,357 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/ed5ad250-2e96-4771-9a73-af6346aa9515
2026-02-02 14:46:05,413 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 14:46:05,413 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2f013f52-1214-4af8-a9c0-757f63ab3162
2026-02-02 14:46:05,470 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/10934cbf-5a55-443f-a02c-deab83731836
2026-02-02 14:46:05,534 - INFO - Verified VN network id 11 for VN 2f013f52-1214-4af8-a9c0-757f63ab3162
2026-02-02 14:46:05,534 - INFO - Verifications in API Server for VN ctest-vn-08210269 passed
2026-02-02 14:46:05,535 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2f013f52-1214-4af8-a9c0-757f63ab3162
2026-02-02 14:46:05,590 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/10934cbf-5a55-443f-a02c-deab83731836
2026-02-02 14:46:05,645 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/10934cbf-5a55-443f-a02c-deab83731836
2026-02-02 14:46:05,702 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/ed5ad250-2e96-4771-9a73-af6346aa9515
2026-02-02 14:46:05,813 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-08210269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06641393', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3387058016482511608', 'uuid-lslong': '12231905777931727202'}, 'enable': 'true', 'created': '2026-02-02T14:46:01', 'last-modified': '2026-02-02T14:46:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.907426'}
2026-02-02 14:46:05,866 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 14:46:05,866 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08210269 passed
2026-02-02 14:46:05,867 - DEBUG - ====Verifying policy data for ctest-vn-08210269 in API_Server ======
2026-02-02 14:46:05,867 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2026-02-02 14:46:05,920 - DEBUG - Requesting: https://10.0.0.242:8082/domain/21b81c26-e623-4630-8c9f-905f06503c15
2026-02-02 14:46:05,983 - DEBUG - Requesting: https://10.0.0.242:8082/project/e54805f5-722b-48b5-bc0e-5c51792593af
2026-02-02 14:46:06,069 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2f013f52-1214-4af8-a9c0-757f63ab3162
2026-02-02 14:46:06,126 - DEBUG - ==>Verifying data for policy with id: cd0f7c45-548e-40c9-b017-cc708e752227, fqn: ['admin_domain', 'ctest-TestBasicPolicy-06641393', 'ctest-policy-allow-all-84129818']
2026-02-02 14:46:06,126 - INFO - VN ctest-vn-08210269 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 14:46:06,126 - DEBUG - Verifying the vn in opserver
2026-02-02 14:46:06,126 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-08210269 virtual network link through opserver 10.0.0.242
2026-02-02 14:46:06,126 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks
2026-02-02 14:46:06,490 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks
2026-02-02 14:46:06,621 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-08210269', 'href': 'https://10.0.0.242:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-08210269?flat'}
2026-02-02 14:46:06,621 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-08210269 is found in opserver
2026-02-02 14:46:06,725 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 14:46:06,773 - DEBUG - VRF ids for VN ctest-vn-08210269: {}
2026-02-02 14:46:06,773 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2026-02-02 14:46:06,829 - DEBUG - Requesting: https://10.0.0.242:8082/domain/21b81c26-e623-4630-8c9f-905f06503c15
2026-02-02 14:46:06,893 - DEBUG - Requesting: https://10.0.0.242:8082/project/e54805f5-722b-48b5-bc0e-5c51792593af
2026-02-02 14:46:06,974 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/59526ff8-2bce-4b2b-be13-7633db245e84
2026-02-02 14:46:07,038 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/59526ff8-2bce-4b2b-be13-7633db245e84
2026-02-02 14:46:07,094 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/86181388-1ba6-4121-b8e3-8e5cea51243d
2026-02-02 14:46:07,149 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/86181388-1ba6-4121-b8e3-8e5cea51243d
2026-02-02 14:46:07,206 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/19769914-7ba9-4495-8f43-67fe9136168e
2026-02-02 14:46:07,265 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 14:46:07,265 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/59526ff8-2bce-4b2b-be13-7633db245e84
2026-02-02 14:46:07,322 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/86181388-1ba6-4121-b8e3-8e5cea51243d
2026-02-02 14:46:07,386 - INFO - Verified VN network id 12 for VN 59526ff8-2bce-4b2b-be13-7633db245e84
2026-02-02 14:46:07,386 - INFO - Verifications in API Server for VN ctest-vn-77371749 passed
2026-02-02 14:46:07,387 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/59526ff8-2bce-4b2b-be13-7633db245e84
2026-02-02 14:46:07,442 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/86181388-1ba6-4121-b8e3-8e5cea51243d
2026-02-02 14:46:07,497 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/86181388-1ba6-4121-b8e3-8e5cea51243d
2026-02-02 14:46:07,553 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/19769914-7ba9-4495-8f43-67fe9136168e
2026-02-02 14:46:07,665 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-77371749', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06641393', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6436329929143372587', 'uuid-lslong': '13696420856855813764'}, 'enable': 'true', 'created': '2026-02-02T14:46:02', 'last-modified': '2026-02-02T14:46:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.397869'}
2026-02-02 14:46:07,718 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 14:46:07,718 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77371749 passed
2026-02-02 14:46:07,718 - DEBUG - ====Verifying policy data for ctest-vn-77371749 in API_Server ======
2026-02-02 14:46:07,719 - DEBUG - Requesting: https://10.0.0.242:8082/domains
2026-02-02 14:46:07,768 - DEBUG - Requesting: https://10.0.0.242:8082/domain/21b81c26-e623-4630-8c9f-905f06503c15
2026-02-02 14:46:07,829 - DEBUG - Requesting: https://10.0.0.242:8082/project/e54805f5-722b-48b5-bc0e-5c51792593af
2026-02-02 14:46:07,913 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/59526ff8-2bce-4b2b-be13-7633db245e84
2026-02-02 14:46:07,970 - DEBUG - ==>Verifying data for policy with id: cd0f7c45-548e-40c9-b017-cc708e752227, fqn: ['admin_domain', 'ctest-TestBasicPolicy-06641393', 'ctest-policy-allow-all-84129818']
2026-02-02 14:46:07,970 - INFO - VN ctest-vn-77371749 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 14:46:07,970 - DEBUG - Verifying the vn in opserver
2026-02-02 14:46:07,970 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-77371749 virtual network link through opserver 10.0.0.242
2026-02-02 14:46:07,970 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks
2026-02-02 14:46:08,029 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-77371749', 'href': 'https://10.0.0.242:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-77371749?flat'}
2026-02-02 14:46:08,029 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-06641393:ctest-vn-77371749 is found in opserver
2026-02-02 14:46:08,133 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 14:46:08,185 - DEBUG - VRF ids for VN ctest-vn-77371749: {}
2026-02-02 14:46:08,260 - DEBUG - Services list from nova: [