2026-02-19 18:20:43,307 - INFO - Domain Default found not creating
2026-02-19 18:20:43,473 - INFO - Project ctest-TestBasicPolicy-94129511 not found, creating it
2026-02-19 18:20:43,912 - INFO - Created Project:ctest-TestBasicPolicy-94129511, ID : 339fe5ca-7418-4ffa-a37d-7c7d09d5f1c7
2026-02-19 18:20:45,353 - INFO - ================================================================================
2026-02-19 18:20:45,353 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-19 18:20:45,353 - 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-19 18:20:45,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with
2026-02-19 18:20:45,611 - INFO - Initial checks done. Running the testcase now
2026-02-19 18:20:45,611 - INFO -
2026-02-19 18:20:46,149 - DEBUG - Response for create_network : {'network': {'id': '7a658ff5-afb7-461c-8c42-90060feb0c44', 'name': 'ctest-vn-66851557', 'tenant_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'project_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94129511', 'ctest-vn-66851557'], 'port_security_enabled': True, 'description': ''}}
2026-02-19 18:20:46,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '65e7afb8-0149-44eb-bb0e-6f58d8af107d', 'name': '', 'tenant_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'network_id': '7a658ff5-afb7-461c-8c42-90060feb0c44', 'ip_version': 4, 'cidr': '104.212.67.192/26', 'allocation_pools': [{'start': '104.212.67.194', 'end': '104.212.67.254'}], 'gateway_ip': '104.212.67.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.212.67.194', 'tags': [], 'project_id': '339fe5ca74184ffaa37d7c7d09d5f1c7'}}
2026-02-19 18:20:46,308 - INFO - Created VN ctest-vn-66851557
2026-02-19 18:20:46,357 - DEBUG - VN ctest-vn-66851557 UUID is 7a658ff5-afb7-461c-8c42-90060feb0c44
2026-02-19 18:20:46,680 - DEBUG - Response for create_network : {'network': {'id': '8d969425-6c96-4ee8-a3cd-e47de5a760f5', 'name': 'ctest-vn-00970883', 'tenant_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'project_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94129511', 'ctest-vn-00970883'], 'port_security_enabled': True, 'description': ''}}
2026-02-19 18:20:46,898 - DEBUG - Response for create_subnet : {'subnet': {'id': '004138ed-71fc-48f1-b3bf-0032e471c1c1', 'name': '', 'tenant_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'network_id': '8d969425-6c96-4ee8-a3cd-e47de5a760f5', 'ip_version': 4, 'cidr': '84.149.213.0/26', 'allocation_pools': [{'start': '84.149.213.2', 'end': '84.149.213.62'}], 'gateway_ip': '84.149.213.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.149.213.2', 'tags': [], 'project_id': '339fe5ca74184ffaa37d7c7d09d5f1c7'}}
2026-02-19 18:20:46,915 - INFO - Created VN ctest-vn-00970883
2026-02-19 18:20:46,965 - DEBUG - VN ctest-vn-00970883 UUID is 8d969425-6c96-4ee8-a3cd-e47de5a760f5
2026-02-19 18:20:47,113 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-66851557, 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-94129511:ctest-vn-00970883, 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-19 18:20:47,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a658ff5-afb7-461c-8c42-90060feb0c44', 'name': 'ctest-vn-66851557', 'tenant_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'project_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65e7afb8-0149-44eb-bb0e-6f58d8af107d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94129511', 'ctest-vn-66851557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94129511', 'ctest-policy-allow-all-47926272']], 'subnet_ipam': [{'subnet_cidr': '104.212.67.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-19 18:20:47,636 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d969425-6c96-4ee8-a3cd-e47de5a760f5', 'name': 'ctest-vn-00970883', 'tenant_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'project_id': '339fe5ca74184ffaa37d7c7d09d5f1c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['004138ed-71fc-48f1-b3bf-0032e471c1c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94129511', 'ctest-vn-00970883'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94129511', 'ctest-policy-allow-all-47926272']], 'subnet_ipam': [{'subnet_cidr': '84.149.213.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-19 18:20:47,797 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-19 18:20:48,097 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-19 18:20:48,128 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8074bd5b-8762-48a2-ac4f-36de6b3909b9
2026-02-19 18:20:48,138 - DEBUG - Requesting: http://10.0.0.129:8082/project/339fe5ca-7418-4ffa-a37d-7c7d09d5f1c7
2026-02-19 18:20:48,210 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7a658ff5-afb7-461c-8c42-90060feb0c44
2026-02-19 18:20:48,220 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7a658ff5-afb7-461c-8c42-90060feb0c44
2026-02-19 18:20:48,227 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/b4743292-29c7-4a77-935b-4aa805bf7326
2026-02-19 18:20:48,234 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/b4743292-29c7-4a77-935b-4aa805bf7326
2026-02-19 18:20:48,240 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/4870b1de-0daa-4b23-8a55-a5cf4103ea11
2026-02-19 18:20:48,245 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-19 18:20:48,245 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7a658ff5-afb7-461c-8c42-90060feb0c44
2026-02-19 18:20:48,253 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/b4743292-29c7-4a77-935b-4aa805bf7326
2026-02-19 18:20:48,265 - INFO - Verified VN network id 11 for VN 7a658ff5-afb7-461c-8c42-90060feb0c44
2026-02-19 18:20:48,265 - INFO - Verifications in API Server for VN ctest-vn-66851557 passed
2026-02-19 18:20:48,265 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7a658ff5-afb7-461c-8c42-90060feb0c44
2026-02-19 18:20:48,274 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/b4743292-29c7-4a77-935b-4aa805bf7326
2026-02-19 18:20:48,281 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/b4743292-29c7-4a77-935b-4aa805bf7326
2026-02-19 18:20:48,286 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/4870b1de-0daa-4b23-8a55-a5cf4103ea11
2026-02-19 18:20:48,295 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-66851557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94129511', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8819613730652767772', 'uuid-lslong': '10106798869484080196'}, 'enable': 'true', 'created': '2026-02-19T18:20:46', 'last-modified': '2026-02-19T18:20:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.902994'}
2026-02-19 18:20:48,300 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-19 18:20:48,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66851557 passed
2026-02-19 18:20:48,300 - DEBUG - ====Verifying policy data for ctest-vn-66851557 in API_Server ======
2026-02-19 18:20:48,300 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-19 18:20:48,306 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8074bd5b-8762-48a2-ac4f-36de6b3909b9
2026-02-19 18:20:48,316 - DEBUG - Requesting: http://10.0.0.129:8082/project/339fe5ca-7418-4ffa-a37d-7c7d09d5f1c7
2026-02-19 18:20:48,392 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/7a658ff5-afb7-461c-8c42-90060feb0c44
2026-02-19 18:20:48,401 - DEBUG - ==>Verifying data for policy with id: 864c3f43-920b-48a1-be9b-980d04ef0f56, fqn: ['default-domain', 'ctest-TestBasicPolicy-94129511', 'ctest-policy-allow-all-47926272']
2026-02-19 18:20:48,401 - INFO - VN ctest-vn-66851557 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-19 18:20:48,401 - DEBUG - Verifying the vn in opserver
2026-02-19 18:20:48,401 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-66851557 virtual network link through opserver 10.0.0.129
2026-02-19 18:20:48,401 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-19 18:20:48,701 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-19 18:20:48,760 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-66851557', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-66851557?flat'}
2026-02-19 18:20:48,760 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-66851557 is found in opserver
2026-02-19 18:20:48,770 - DEBUG - Do not have enough data to verify VN in agent
2026-02-19 18:20:48,773 - DEBUG - VRF ids for VN ctest-vn-66851557: {}
2026-02-19 18:20:48,773 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-19 18:20:48,778 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8074bd5b-8762-48a2-ac4f-36de6b3909b9
2026-02-19 18:20:48,787 - DEBUG - Requesting: http://10.0.0.129:8082/project/339fe5ca-7418-4ffa-a37d-7c7d09d5f1c7
2026-02-19 18:20:48,853 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8d969425-6c96-4ee8-a3cd-e47de5a760f5
2026-02-19 18:20:48,863 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8d969425-6c96-4ee8-a3cd-e47de5a760f5
2026-02-19 18:20:48,872 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7fd77840-3f3c-4d95-86e2-2592864f9e1a
2026-02-19 18:20:48,879 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7fd77840-3f3c-4d95-86e2-2592864f9e1a
2026-02-19 18:20:48,885 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/3c9cb6fb-2dea-4c4e-b3dd-24126795e10d
2026-02-19 18:20:48,891 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-19 18:20:48,891 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8d969425-6c96-4ee8-a3cd-e47de5a760f5
2026-02-19 18:20:48,901 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7fd77840-3f3c-4d95-86e2-2592864f9e1a
2026-02-19 18:20:48,916 - INFO - Verified VN network id 12 for VN 8d969425-6c96-4ee8-a3cd-e47de5a760f5
2026-02-19 18:20:48,916 - INFO - Verifications in API Server for VN ctest-vn-00970883 passed
2026-02-19 18:20:48,916 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8d969425-6c96-4ee8-a3cd-e47de5a760f5
2026-02-19 18:20:48,925 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7fd77840-3f3c-4d95-86e2-2592864f9e1a
2026-02-19 18:20:48,932 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7fd77840-3f3c-4d95-86e2-2592864f9e1a
2026-02-19 18:20:48,938 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/3c9cb6fb-2dea-4c4e-b3dd-24126795e10d
2026-02-19 18:20:48,950 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-00970883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94129511', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10202504894310928104', 'uuid-lslong': '11803341427782934773'}, 'enable': 'true', 'created': '2026-02-19T18:20:46', 'last-modified': '2026-02-19T18:20:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.336340'}
2026-02-19 18:20:48,957 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-19 18:20:48,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00970883 passed
2026-02-19 18:20:48,957 - DEBUG - ====Verifying policy data for ctest-vn-00970883 in API_Server ======
2026-02-19 18:20:48,957 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-19 18:20:48,962 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8074bd5b-8762-48a2-ac4f-36de6b3909b9
2026-02-19 18:20:48,972 - DEBUG - Requesting: http://10.0.0.129:8082/project/339fe5ca-7418-4ffa-a37d-7c7d09d5f1c7
2026-02-19 18:20:49,042 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/8d969425-6c96-4ee8-a3cd-e47de5a760f5
2026-02-19 18:20:49,050 - DEBUG - ==>Verifying data for policy with id: 864c3f43-920b-48a1-be9b-980d04ef0f56, fqn: ['default-domain', 'ctest-TestBasicPolicy-94129511', 'ctest-policy-allow-all-47926272']
2026-02-19 18:20:49,050 - INFO - VN ctest-vn-00970883 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-19 18:20:49,051 - DEBUG - Verifying the vn in opserver
2026-02-19 18:20:49,051 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-00970883 virtual network link through opserver 10.0.0.129
2026-02-19 18:20:49,051 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-19 18:20:49,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-00970883', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-00970883?flat'}
2026-02-19 18:20:49,060 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94129511:ctest-vn-00970883 is found in opserver
2026-02-19 18:20:49,069 - DEBUG - Do not have enough data to verify VN in agent
2026-02-19 18:20:49,074 - DEBUG - VRF ids for VN ctest-vn-00970883: {}
2026-02-19 18:20:49,127 - DEBUG - Services list from nova: [