2026-02-06 11:58:37,025 - INFO - Domain Default found not creating
2026-02-06 11:58:37,195 - INFO - Project ctest-TestBasicPolicy-77957629 not found, creating it
2026-02-06 11:58:37,682 - INFO - Created Project:ctest-TestBasicPolicy-77957629, ID : cd74c869-5e0d-4eaf-b8bc-127611324ded
2026-02-06 11:58:39,220 - INFO - ================================================================================
2026-02-06 11:58:39,220 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-06 11:58:39,220 - 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-06 11:58:39,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-06 11:58:39,474 - INFO - Initial checks done. Running the testcase now
2026-02-06 11:58:39,474 - INFO -
2026-02-06 11:58:40,037 - DEBUG - Response for create_network : {'network': {'id': '9b55c3a2-17ce-42bc-85ba-6da014a4ff25', 'name': 'ctest-vn-87163936', 'tenant_id': 'cd74c8695e0d4eafb8bc127611324ded', 'project_id': 'cd74c8695e0d4eafb8bc127611324ded', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77957629', 'ctest-vn-87163936'], 'port_security_enabled': True, 'description': ''}}
2026-02-06 11:58:40,226 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8e4a71c-7631-4998-aef2-572821bb4654', 'name': '', 'tenant_id': 'cd74c8695e0d4eafb8bc127611324ded', 'network_id': '9b55c3a2-17ce-42bc-85ba-6da014a4ff25', 'ip_version': 4, 'cidr': '2.202.235.0/26', 'allocation_pools': [{'start': '2.202.235.2', 'end': '2.202.235.62'}], 'gateway_ip': '2.202.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.202.235.2', 'tags': [], 'project_id': 'cd74c8695e0d4eafb8bc127611324ded'}}
2026-02-06 11:58:40,245 - INFO - Created VN ctest-vn-87163936
2026-02-06 11:58:40,297 - DEBUG - VN ctest-vn-87163936 UUID is 9b55c3a2-17ce-42bc-85ba-6da014a4ff25
2026-02-06 11:58:40,575 - DEBUG - Response for create_network : {'network': {'id': 'c8b1df99-cf32-44b6-88de-ac51ca417f45', 'name': 'ctest-vn-13206522', 'tenant_id': 'cd74c8695e0d4eafb8bc127611324ded', 'project_id': 'cd74c8695e0d4eafb8bc127611324ded', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77957629', 'ctest-vn-13206522'], 'port_security_enabled': True, 'description': ''}}
2026-02-06 11:58:40,748 - DEBUG - Response for create_subnet : {'subnet': {'id': '3bac0f01-560f-41cd-9a0c-fa612acfe863', 'name': '', 'tenant_id': 'cd74c8695e0d4eafb8bc127611324ded', 'network_id': 'c8b1df99-cf32-44b6-88de-ac51ca417f45', 'ip_version': 4, 'cidr': '158.70.16.192/26', 'allocation_pools': [{'start': '158.70.16.194', 'end': '158.70.16.254'}], 'gateway_ip': '158.70.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.70.16.194', 'tags': [], 'project_id': 'cd74c8695e0d4eafb8bc127611324ded'}}
2026-02-06 11:58:40,769 - INFO - Created VN ctest-vn-13206522
2026-02-06 11:58:40,821 - DEBUG - VN ctest-vn-13206522 UUID is c8b1df99-cf32-44b6-88de-ac51ca417f45
2026-02-06 11:58:40,938 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-87163936, 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-77957629:ctest-vn-13206522, 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-06 11:58:41,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b55c3a2-17ce-42bc-85ba-6da014a4ff25', 'name': 'ctest-vn-87163936', 'tenant_id': 'cd74c8695e0d4eafb8bc127611324ded', 'project_id': 'cd74c8695e0d4eafb8bc127611324ded', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8e4a71c-7631-4998-aef2-572821bb4654'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77957629', 'ctest-vn-87163936'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77957629', 'ctest-policy-allow-all-90618499']], 'subnet_ipam': [{'subnet_cidr': '2.202.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-06 11:58:41,459 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8b1df99-cf32-44b6-88de-ac51ca417f45', 'name': 'ctest-vn-13206522', 'tenant_id': 'cd74c8695e0d4eafb8bc127611324ded', 'project_id': 'cd74c8695e0d4eafb8bc127611324ded', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3bac0f01-560f-41cd-9a0c-fa612acfe863'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77957629', 'ctest-vn-13206522'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77957629', 'ctest-policy-allow-all-90618499']], 'subnet_ipam': [{'subnet_cidr': '158.70.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-06 11:58:41,629 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 11:58:41,936 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 11:58:41,976 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7a2e9e8c-30b5-455c-8c38-384f3bb20d04
2026-02-06 11:58:41,990 - DEBUG - Requesting: http://10.0.0.50:8082/project/cd74c869-5e0d-4eaf-b8bc-127611324ded
2026-02-06 11:58:42,066 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b55c3a2-17ce-42bc-85ba-6da014a4ff25
2026-02-06 11:58:42,077 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b55c3a2-17ce-42bc-85ba-6da014a4ff25
2026-02-06 11:58:42,087 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a378b82e-9065-4bc0-8592-e5c04a274c46
2026-02-06 11:58:42,095 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a378b82e-9065-4bc0-8592-e5c04a274c46
2026-02-06 11:58:42,103 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/691b8eac-bbb5-4b56-b3f6-654512e79a56
2026-02-06 11:58:42,111 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-06 11:58:42,111 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b55c3a2-17ce-42bc-85ba-6da014a4ff25
2026-02-06 11:58:42,120 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a378b82e-9065-4bc0-8592-e5c04a274c46
2026-02-06 11:58:42,134 - INFO - Verified VN network id 11 for VN 9b55c3a2-17ce-42bc-85ba-6da014a4ff25
2026-02-06 11:58:42,134 - INFO - Verifications in API Server for VN ctest-vn-87163936 passed
2026-02-06 11:58:42,134 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b55c3a2-17ce-42bc-85ba-6da014a4ff25
2026-02-06 11:58:42,143 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a378b82e-9065-4bc0-8592-e5c04a274c46
2026-02-06 11:58:42,149 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a378b82e-9065-4bc0-8592-e5c04a274c46
2026-02-06 11:58:42,156 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/691b8eac-bbb5-4b56-b3f6-654512e79a56
2026-02-06 11:58:42,172 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-87163936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77957629', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11193067549850747580', 'uuid-lslong': '9636134887021149989'}, 'enable': 'true', 'created': '2026-02-06T11:58:40', 'last-modified': '2026-02-06T11:58:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954998'}
2026-02-06 11:58:42,178 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-06 11:58:42,178 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87163936 passed
2026-02-06 11:58:42,178 - DEBUG - ====Verifying policy data for ctest-vn-87163936 in API_Server ======
2026-02-06 11:58:42,178 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 11:58:42,184 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7a2e9e8c-30b5-455c-8c38-384f3bb20d04
2026-02-06 11:58:42,194 - DEBUG - Requesting: http://10.0.0.50:8082/project/cd74c869-5e0d-4eaf-b8bc-127611324ded
2026-02-06 11:58:42,266 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b55c3a2-17ce-42bc-85ba-6da014a4ff25
2026-02-06 11:58:42,277 - DEBUG - ==>Verifying data for policy with id: 83180083-b238-4893-9fdc-685c59e099df, fqn: ['default-domain', 'ctest-TestBasicPolicy-77957629', 'ctest-policy-allow-all-90618499']
2026-02-06 11:58:42,277 - INFO - VN ctest-vn-87163936 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-06 11:58:42,277 - DEBUG - Verifying the vn in opserver
2026-02-06 11:58:42,278 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-87163936 virtual network link through opserver 10.0.0.50
2026-02-06 11:58:42,278 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-06 11:58:42,570 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-06 11:58:42,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-87163936', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-87163936?flat'}
2026-02-06 11:58:42,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-87163936 is found in opserver
2026-02-06 11:58:42,657 - DEBUG - Do not have enough data to verify VN in agent
2026-02-06 11:58:42,663 - DEBUG - VRF ids for VN ctest-vn-87163936: {}
2026-02-06 11:58:42,663 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 11:58:42,670 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7a2e9e8c-30b5-455c-8c38-384f3bb20d04
2026-02-06 11:58:42,681 - DEBUG - Requesting: http://10.0.0.50:8082/project/cd74c869-5e0d-4eaf-b8bc-127611324ded
2026-02-06 11:58:42,752 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b1df99-cf32-44b6-88de-ac51ca417f45
2026-02-06 11:58:42,764 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b1df99-cf32-44b6-88de-ac51ca417f45
2026-02-06 11:58:42,774 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a4a6cc3-dcf9-48d6-82a6-d99bec77f860
2026-02-06 11:58:42,783 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a4a6cc3-dcf9-48d6-82a6-d99bec77f860
2026-02-06 11:58:42,790 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c4cd953f-3972-40b9-b9a6-6da5325c0858
2026-02-06 11:58:42,797 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-06 11:58:42,797 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b1df99-cf32-44b6-88de-ac51ca417f45
2026-02-06 11:58:42,806 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a4a6cc3-dcf9-48d6-82a6-d99bec77f860
2026-02-06 11:58:42,822 - INFO - Verified VN network id 12 for VN c8b1df99-cf32-44b6-88de-ac51ca417f45
2026-02-06 11:58:42,823 - INFO - Verifications in API Server for VN ctest-vn-13206522 passed
2026-02-06 11:58:42,823 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b1df99-cf32-44b6-88de-ac51ca417f45
2026-02-06 11:58:42,833 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a4a6cc3-dcf9-48d6-82a6-d99bec77f860
2026-02-06 11:58:42,841 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a4a6cc3-dcf9-48d6-82a6-d99bec77f860
2026-02-06 11:58:42,848 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c4cd953f-3972-40b9-b9a6-6da5325c0858
2026-02-06 11:58:42,860 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-13206522', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77957629', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14461585730162541750', 'uuid-lslong': '9862509701273583429'}, 'enable': 'true', 'created': '2026-02-06T11:58:40', 'last-modified': '2026-02-06T11:58:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.421035'}
2026-02-06 11:58:42,865 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-06 11:58:42,865 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13206522 passed
2026-02-06 11:58:42,866 - DEBUG - ====Verifying policy data for ctest-vn-13206522 in API_Server ======
2026-02-06 11:58:42,866 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-06 11:58:42,872 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7a2e9e8c-30b5-455c-8c38-384f3bb20d04
2026-02-06 11:58:42,883 - DEBUG - Requesting: http://10.0.0.50:8082/project/cd74c869-5e0d-4eaf-b8bc-127611324ded
2026-02-06 11:58:42,958 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b1df99-cf32-44b6-88de-ac51ca417f45
2026-02-06 11:58:42,967 - DEBUG - ==>Verifying data for policy with id: 83180083-b238-4893-9fdc-685c59e099df, fqn: ['default-domain', 'ctest-TestBasicPolicy-77957629', 'ctest-policy-allow-all-90618499']
2026-02-06 11:58:42,968 - INFO - VN ctest-vn-13206522 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-06 11:58:42,968 - DEBUG - Verifying the vn in opserver
2026-02-06 11:58:42,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-13206522 virtual network link through opserver 10.0.0.50
2026-02-06 11:58:42,968 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-06 11:58:42,979 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-13206522', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-13206522?flat'}
2026-02-06 11:58:42,979 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77957629:ctest-vn-13206522 is found in opserver
2026-02-06 11:58:42,988 - DEBUG - Do not have enough data to verify VN in agent
2026-02-06 11:58:42,993 - DEBUG - VRF ids for VN ctest-vn-13206522: {}
2026-02-06 11:58:43,054 - DEBUG - Services list from nova: [