2026-02-11 23:29:58,782 - INFO - Domain Default found not creating
2026-02-11 23:29:58,927 - INFO - Project ctest-TestBasicPolicy-80821251 not found, creating it
2026-02-11 23:29:59,356 - INFO - Created Project:ctest-TestBasicPolicy-80821251, ID : 3eac3081-7db2-4e0b-86c6-228e7f7c1373
2026-02-11 23:30:00,758 - INFO - ================================================================================
2026-02-11 23:30:00,758 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-11 23:30:00,758 - 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-11 23:30:01,013 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-02-11 23:30:01,013 - INFO - Initial checks done. Running the testcase now
2026-02-11 23:30:01,013 - INFO -
2026-02-11 23:30:01,574 - DEBUG - Response for create_network : {'network': {'id': 'd0527439-42e9-4902-b371-4c32ed55c639', 'name': 'ctest-vn-21721230', 'tenant_id': '3eac30817db24e0b86c6228e7f7c1373', 'project_id': '3eac30817db24e0b86c6228e7f7c1373', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80821251', 'ctest-vn-21721230'], 'port_security_enabled': True, 'description': ''}}
2026-02-11 23:30:01,804 - DEBUG - Response for create_subnet : {'subnet': {'id': '0268e2ce-8107-4a77-af4f-2a71e78ac0b0', 'name': '', 'tenant_id': '3eac30817db24e0b86c6228e7f7c1373', 'network_id': 'd0527439-42e9-4902-b371-4c32ed55c639', 'ip_version': 4, 'cidr': '215.203.32.128/26', 'allocation_pools': [{'start': '215.203.32.130', 'end': '215.203.32.190'}], 'gateway_ip': '215.203.32.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.203.32.130', 'tags': [], 'project_id': '3eac30817db24e0b86c6228e7f7c1373'}}
2026-02-11 23:30:01,820 - INFO - Created VN ctest-vn-21721230
2026-02-11 23:30:01,872 - DEBUG - VN ctest-vn-21721230 UUID is d0527439-42e9-4902-b371-4c32ed55c639
2026-02-11 23:30:02,192 - DEBUG - Response for create_network : {'network': {'id': 'f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1', 'name': 'ctest-vn-48467799', 'tenant_id': '3eac30817db24e0b86c6228e7f7c1373', 'project_id': '3eac30817db24e0b86c6228e7f7c1373', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80821251', 'ctest-vn-48467799'], 'port_security_enabled': True, 'description': ''}}
2026-02-11 23:30:02,339 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a875dd6-065e-464b-b7e7-aec2f971e1ac', 'name': '', 'tenant_id': '3eac30817db24e0b86c6228e7f7c1373', 'network_id': 'f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1', 'ip_version': 4, 'cidr': '167.0.103.128/26', 'allocation_pools': [{'start': '167.0.103.130', 'end': '167.0.103.190'}], 'gateway_ip': '167.0.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.0.103.130', 'tags': [], 'project_id': '3eac30817db24e0b86c6228e7f7c1373'}}
2026-02-11 23:30:02,356 - INFO - Created VN ctest-vn-48467799
2026-02-11 23:30:02,408 - DEBUG - VN ctest-vn-48467799 UUID is f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1
2026-02-11 23:30:02,552 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-21721230, 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-80821251:ctest-vn-48467799, 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-11 23:30:02,837 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0527439-42e9-4902-b371-4c32ed55c639', 'name': 'ctest-vn-21721230', 'tenant_id': '3eac30817db24e0b86c6228e7f7c1373', 'project_id': '3eac30817db24e0b86c6228e7f7c1373', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0268e2ce-8107-4a77-af4f-2a71e78ac0b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80821251', 'ctest-vn-21721230'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80821251', 'ctest-policy-allow-all-38580682']], 'subnet_ipam': [{'subnet_cidr': '215.203.32.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-11 23:30:03,060 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1', 'name': 'ctest-vn-48467799', 'tenant_id': '3eac30817db24e0b86c6228e7f7c1373', 'project_id': '3eac30817db24e0b86c6228e7f7c1373', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a875dd6-065e-464b-b7e7-aec2f971e1ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80821251', 'ctest-vn-48467799'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80821251', 'ctest-policy-allow-all-38580682']], 'subnet_ipam': [{'subnet_cidr': '167.0.103.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-11 23:30:03,204 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 23:30:03,499 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 23:30:03,528 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0de1fca7-740c-4bde-af6f-0de204cefc0a
2026-02-11 23:30:03,538 - DEBUG - Requesting: http://10.0.0.38:8082/project/3eac3081-7db2-4e0b-86c6-228e7f7c1373
2026-02-11 23:30:03,611 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d0527439-42e9-4902-b371-4c32ed55c639
2026-02-11 23:30:03,619 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d0527439-42e9-4902-b371-4c32ed55c639
2026-02-11 23:30:03,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb5b5158-b625-4d00-8438-72f0cd77fb18
2026-02-11 23:30:03,632 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb5b5158-b625-4d00-8438-72f0cd77fb18
2026-02-11 23:30:03,638 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b5b7c571-d5e0-4be5-aa9c-743af3844468
2026-02-11 23:30:03,644 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-11 23:30:03,644 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d0527439-42e9-4902-b371-4c32ed55c639
2026-02-11 23:30:03,651 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb5b5158-b625-4d00-8438-72f0cd77fb18
2026-02-11 23:30:03,662 - INFO - Verified VN network id 11 for VN d0527439-42e9-4902-b371-4c32ed55c639
2026-02-11 23:30:03,663 - INFO - Verifications in API Server for VN ctest-vn-21721230 passed
2026-02-11 23:30:03,663 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d0527439-42e9-4902-b371-4c32ed55c639
2026-02-11 23:30:03,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb5b5158-b625-4d00-8438-72f0cd77fb18
2026-02-11 23:30:03,675 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb5b5158-b625-4d00-8438-72f0cd77fb18
2026-02-11 23:30:03,681 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b5b7c571-d5e0-4be5-aa9c-743af3844468
2026-02-11 23:30:03,690 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-21721230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80821251', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15011188297263827202', 'uuid-lslong': '12930199786771301945'}, 'enable': 'true', 'created': '2026-02-11T23:30:01', 'last-modified': '2026-02-11T23:30:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.873145'}
2026-02-11 23:30:03,695 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-11 23:30:03,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21721230 passed
2026-02-11 23:30:03,695 - DEBUG - ====Verifying policy data for ctest-vn-21721230 in API_Server ======
2026-02-11 23:30:03,696 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 23:30:03,700 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0de1fca7-740c-4bde-af6f-0de204cefc0a
2026-02-11 23:30:03,709 - DEBUG - Requesting: http://10.0.0.38:8082/project/3eac3081-7db2-4e0b-86c6-228e7f7c1373
2026-02-11 23:30:03,776 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d0527439-42e9-4902-b371-4c32ed55c639
2026-02-11 23:30:03,783 - DEBUG - ==>Verifying data for policy with id: f09b8e9f-24f4-4aed-9266-a67cf78b36e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-80821251', 'ctest-policy-allow-all-38580682']
2026-02-11 23:30:03,783 - INFO - VN ctest-vn-21721230 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-11 23:30:03,784 - DEBUG - Verifying the vn in opserver
2026-02-11 23:30:03,784 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-21721230 virtual network link through opserver 10.0.0.38
2026-02-11 23:30:03,784 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-11 23:30:04,072 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-11 23:30:04,128 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-21721230', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-21721230?flat'}
2026-02-11 23:30:04,128 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-21721230 is found in opserver
2026-02-11 23:30:04,136 - DEBUG - Do not have enough data to verify VN in agent
2026-02-11 23:30:04,140 - DEBUG - VRF ids for VN ctest-vn-21721230: {}
2026-02-11 23:30:04,140 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 23:30:04,144 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0de1fca7-740c-4bde-af6f-0de204cefc0a
2026-02-11 23:30:04,154 - DEBUG - Requesting: http://10.0.0.38:8082/project/3eac3081-7db2-4e0b-86c6-228e7f7c1373
2026-02-11 23:30:04,220 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1
2026-02-11 23:30:04,231 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1
2026-02-11 23:30:04,238 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ae8a90c-5f26-4623-b9f0-d2b4a7cf9e9b
2026-02-11 23:30:04,245 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ae8a90c-5f26-4623-b9f0-d2b4a7cf9e9b
2026-02-11 23:30:04,251 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/17a2b525-8d00-4bc2-bee8-7c91c059546d
2026-02-11 23:30:04,258 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-11 23:30:04,258 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1
2026-02-11 23:30:04,266 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ae8a90c-5f26-4623-b9f0-d2b4a7cf9e9b
2026-02-11 23:30:04,277 - INFO - Verified VN network id 12 for VN f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1
2026-02-11 23:30:04,277 - INFO - Verifications in API Server for VN ctest-vn-48467799 passed
2026-02-11 23:30:04,277 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1
2026-02-11 23:30:04,285 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ae8a90c-5f26-4623-b9f0-d2b4a7cf9e9b
2026-02-11 23:30:04,291 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ae8a90c-5f26-4623-b9f0-d2b4a7cf9e9b
2026-02-11 23:30:04,297 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/17a2b525-8d00-4bc2-bee8-7c91c059546d
2026-02-11 23:30:04,307 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-48467799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80821251', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17453669251497937720', 'uuid-lslong': '11420478402016424433'}, 'enable': 'true', 'created': '2026-02-11T23:30:02', 'last-modified': '2026-02-11T23:30:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.268320'}
2026-02-11 23:30:04,311 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-11 23:30:04,311 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48467799 passed
2026-02-11 23:30:04,312 - DEBUG - ====Verifying policy data for ctest-vn-48467799 in API_Server ======
2026-02-11 23:30:04,312 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-11 23:30:04,316 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0de1fca7-740c-4bde-af6f-0de204cefc0a
2026-02-11 23:30:04,325 - DEBUG - Requesting: http://10.0.0.38:8082/project/3eac3081-7db2-4e0b-86c6-228e7f7c1373
2026-02-11 23:30:04,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f237e3b5-f2b1-4b38-9e7d-b0992d35b1f1
2026-02-11 23:30:04,402 - DEBUG - ==>Verifying data for policy with id: f09b8e9f-24f4-4aed-9266-a67cf78b36e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-80821251', 'ctest-policy-allow-all-38580682']
2026-02-11 23:30:04,402 - INFO - VN ctest-vn-48467799 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-11 23:30:04,402 - DEBUG - Verifying the vn in opserver
2026-02-11 23:30:04,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-48467799 virtual network link through opserver 10.0.0.38
2026-02-11 23:30:04,402 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-11 23:30:04,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-48467799', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-48467799?flat'}
2026-02-11 23:30:04,410 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80821251:ctest-vn-48467799 is found in opserver
2026-02-11 23:30:04,418 - DEBUG - Do not have enough data to verify VN in agent
2026-02-11 23:30:04,422 - DEBUG - VRF ids for VN ctest-vn-48467799: {}
2026-02-11 23:30:04,469 - DEBUG - Services list from nova: [