2026-03-23 23:10:30,965 - INFO - Domain Default found not creating
2026-03-23 23:10:31,134 - INFO - Project ctest-TestBasicPolicy-27135684 not found, creating it
2026-03-23 23:10:31,593 - INFO - Created Project:ctest-TestBasicPolicy-27135684, ID : 1a397175-7dcc-4da7-8de2-b1586cdb316f
2026-03-23 23:10:33,110 - INFO - ================================================================================
2026-03-23 23:10:33,110 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-23 23:10:33,110 - 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-03-23 23:10:33,367 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with
2026-03-23 23:10:33,367 - INFO - Initial checks done. Running the testcase now
2026-03-23 23:10:33,367 - INFO -
2026-03-23 23:10:33,925 - DEBUG - Response for create_network : {'network': {'id': '06751d30-e6e0-46a8-980c-21a1e65bce42', 'name': 'ctest-vn-08738633', 'tenant_id': '1a3971757dcc4da78de2b1586cdb316f', 'project_id': '1a3971757dcc4da78de2b1586cdb316f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27135684', 'ctest-vn-08738633'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 23:10:34,100 - DEBUG - Response for create_subnet : {'subnet': {'id': '249c1a8c-8bcf-4ec6-a5ce-f954aecfee8b', 'name': '', 'tenant_id': '1a3971757dcc4da78de2b1586cdb316f', 'network_id': '06751d30-e6e0-46a8-980c-21a1e65bce42', 'ip_version': 4, 'cidr': '76.67.141.192/26', 'allocation_pools': [{'start': '76.67.141.194', 'end': '76.67.141.254'}], 'gateway_ip': '76.67.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.67.141.194', 'tags': [], 'project_id': '1a3971757dcc4da78de2b1586cdb316f'}}
2026-03-23 23:10:34,118 - INFO - Created VN ctest-vn-08738633
2026-03-23 23:10:34,172 - DEBUG - VN ctest-vn-08738633 UUID is 06751d30-e6e0-46a8-980c-21a1e65bce42
2026-03-23 23:10:34,465 - DEBUG - Response for create_network : {'network': {'id': 'bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be', 'name': 'ctest-vn-87760498', 'tenant_id': '1a3971757dcc4da78de2b1586cdb316f', 'project_id': '1a3971757dcc4da78de2b1586cdb316f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27135684', 'ctest-vn-87760498'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 23:10:34,670 - DEBUG - Response for create_subnet : {'subnet': {'id': '30f5c589-5462-4747-943b-30969c1b1374', 'name': '', 'tenant_id': '1a3971757dcc4da78de2b1586cdb316f', 'network_id': 'bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be', 'ip_version': 4, 'cidr': '78.95.200.192/26', 'allocation_pools': [{'start': '78.95.200.194', 'end': '78.95.200.254'}], 'gateway_ip': '78.95.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.95.200.194', 'tags': [], 'project_id': '1a3971757dcc4da78de2b1586cdb316f'}}
2026-03-23 23:10:34,688 - INFO - Created VN ctest-vn-87760498
2026-03-23 23:10:34,740 - DEBUG - VN ctest-vn-87760498 UUID is bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be
2026-03-23 23:10:34,892 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-08738633, 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-27135684:ctest-vn-87760498, 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-03-23 23:10:35,182 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06751d30-e6e0-46a8-980c-21a1e65bce42', 'name': 'ctest-vn-08738633', 'tenant_id': '1a3971757dcc4da78de2b1586cdb316f', 'project_id': '1a3971757dcc4da78de2b1586cdb316f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['249c1a8c-8bcf-4ec6-a5ce-f954aecfee8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27135684', 'ctest-vn-08738633'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27135684', 'ctest-policy-allow-all-36732305']], 'subnet_ipam': [{'subnet_cidr': '76.67.141.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 23:10:35,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be', 'name': 'ctest-vn-87760498', 'tenant_id': '1a3971757dcc4da78de2b1586cdb316f', 'project_id': '1a3971757dcc4da78de2b1586cdb316f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30f5c589-5462-4747-943b-30969c1b1374'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27135684', 'ctest-vn-87760498'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27135684', 'ctest-policy-allow-all-36732305']], 'subnet_ipam': [{'subnet_cidr': '78.95.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 23:10:35,608 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2026-03-23 23:10:35,909 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2026-03-23 23:10:35,944 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0700251-ec64-4724-afdf-930e2beb8235
2026-03-23 23:10:35,957 - DEBUG - Requesting: http://10.0.0.57:8082/project/1a397175-7dcc-4da7-8de2-b1586cdb316f
2026-03-23 23:10:36,035 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/06751d30-e6e0-46a8-980c-21a1e65bce42
2026-03-23 23:10:36,046 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/06751d30-e6e0-46a8-980c-21a1e65bce42
2026-03-23 23:10:36,055 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5cf18487-e52c-40c2-afdb-e6aa25f0b6a7
2026-03-23 23:10:36,062 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5cf18487-e52c-40c2-afdb-e6aa25f0b6a7
2026-03-23 23:10:36,069 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fba53c58-dab8-493c-9129-66e64fd53298
2026-03-23 23:10:36,076 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 23:10:36,076 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/06751d30-e6e0-46a8-980c-21a1e65bce42
2026-03-23 23:10:36,084 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5cf18487-e52c-40c2-afdb-e6aa25f0b6a7
2026-03-23 23:10:36,101 - INFO - Verified VN network id 11 for VN 06751d30-e6e0-46a8-980c-21a1e65bce42
2026-03-23 23:10:36,101 - INFO - Verifications in API Server for VN ctest-vn-08738633 passed
2026-03-23 23:10:36,101 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/06751d30-e6e0-46a8-980c-21a1e65bce42
2026-03-23 23:10:36,111 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5cf18487-e52c-40c2-afdb-e6aa25f0b6a7
2026-03-23 23:10:36,118 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5cf18487-e52c-40c2-afdb-e6aa25f0b6a7
2026-03-23 23:10:36,125 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fba53c58-dab8-493c-9129-66e64fd53298
2026-03-23 23:10:36,136 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-08738633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27135684', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '465310232371807912', 'uuid-lslong': '10956168972723801666'}, 'enable': 'true', 'created': '2026-03-23T23:10:33', 'last-modified': '2026-03-23T23:10:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977980'}
2026-03-23 23:10:36,142 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 23:10:36,142 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08738633 passed
2026-03-23 23:10:36,142 - DEBUG - ====Verifying policy data for ctest-vn-08738633 in API_Server ======
2026-03-23 23:10:36,142 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2026-03-23 23:10:36,147 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0700251-ec64-4724-afdf-930e2beb8235
2026-03-23 23:10:36,158 - DEBUG - Requesting: http://10.0.0.57:8082/project/1a397175-7dcc-4da7-8de2-b1586cdb316f
2026-03-23 23:10:36,228 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/06751d30-e6e0-46a8-980c-21a1e65bce42
2026-03-23 23:10:36,239 - DEBUG - ==>Verifying data for policy with id: 4bb2de51-2bc7-46cb-9882-2b55c5f746fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-27135684', 'ctest-policy-allow-all-36732305']
2026-03-23 23:10:36,239 - INFO - VN ctest-vn-08738633 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 23:10:36,239 - DEBUG - Verifying the vn in opserver
2026-03-23 23:10:36,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-08738633 virtual network link through opserver 10.0.0.57
2026-03-23 23:10:36,239 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2026-03-23 23:10:36,539 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2026-03-23 23:10:36,604 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-08738633', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-08738633?flat'}
2026-03-23 23:10:36,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-08738633 is found in opserver
2026-03-23 23:10:36,614 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 23:10:36,620 - DEBUG - VRF ids for VN ctest-vn-08738633: {}
2026-03-23 23:10:36,620 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2026-03-23 23:10:36,625 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0700251-ec64-4724-afdf-930e2beb8235
2026-03-23 23:10:36,635 - DEBUG - Requesting: http://10.0.0.57:8082/project/1a397175-7dcc-4da7-8de2-b1586cdb316f
2026-03-23 23:10:36,704 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be
2026-03-23 23:10:36,716 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be
2026-03-23 23:10:36,725 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a9105dc3-4f32-4c98-bb9d-dac94a67e3f9
2026-03-23 23:10:36,733 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a9105dc3-4f32-4c98-bb9d-dac94a67e3f9
2026-03-23 23:10:36,740 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ea614c71-1ac9-4e0a-aa12-5cfb21156a84
2026-03-23 23:10:36,747 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 23:10:36,747 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be
2026-03-23 23:10:36,755 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a9105dc3-4f32-4c98-bb9d-dac94a67e3f9
2026-03-23 23:10:36,769 - INFO - Verified VN network id 12 for VN bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be
2026-03-23 23:10:36,769 - INFO - Verifications in API Server for VN ctest-vn-87760498 passed
2026-03-23 23:10:36,769 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be
2026-03-23 23:10:36,778 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a9105dc3-4f32-4c98-bb9d-dac94a67e3f9
2026-03-23 23:10:36,785 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a9105dc3-4f32-4c98-bb9d-dac94a67e3f9
2026-03-23 23:10:36,791 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ea614c71-1ac9-4e0a-aa12-5cfb21156a84
2026-03-23 23:10:36,802 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-87760498', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27135684', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13613358659837119351', 'uuid-lslong': '11257259382909749438'}, 'enable': 'true', 'created': '2026-03-23T23:10:34', 'last-modified': '2026-03-23T23:10:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.409699'}
2026-03-23 23:10:36,810 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 23:10:36,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87760498 passed
2026-03-23 23:10:36,810 - DEBUG - ====Verifying policy data for ctest-vn-87760498 in API_Server ======
2026-03-23 23:10:36,810 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2026-03-23 23:10:36,816 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0700251-ec64-4724-afdf-930e2beb8235
2026-03-23 23:10:36,826 - DEBUG - Requesting: http://10.0.0.57:8082/project/1a397175-7dcc-4da7-8de2-b1586cdb316f
2026-03-23 23:10:36,894 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/bcec5d93-0f94-4b77-9c39-d1c3e6c4c8be
2026-03-23 23:10:36,904 - DEBUG - ==>Verifying data for policy with id: 4bb2de51-2bc7-46cb-9882-2b55c5f746fd, fqn: ['default-domain', 'ctest-TestBasicPolicy-27135684', 'ctest-policy-allow-all-36732305']
2026-03-23 23:10:36,904 - INFO - VN ctest-vn-87760498 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 23:10:36,904 - DEBUG - Verifying the vn in opserver
2026-03-23 23:10:36,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-87760498 virtual network link through opserver 10.0.0.57
2026-03-23 23:10:36,904 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2026-03-23 23:10:36,914 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-87760498', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-87760498?flat'}
2026-03-23 23:10:36,914 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27135684:ctest-vn-87760498 is found in opserver
2026-03-23 23:10:36,923 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 23:10:36,928 - DEBUG - VRF ids for VN ctest-vn-87760498: {}
2026-03-23 23:10:36,985 - DEBUG - Services list from nova: [