2026-11-02 09:38:17,531 - INFO - Domain Default found not creating
2026-11-02 09:38:17,733 - INFO - Project ctest-TestBasicPolicy-46474874 not found, creating it
2026-11-02 09:38:18,219 - INFO - Created Project:ctest-TestBasicPolicy-46474874, ID : 53bba452-1565-4e62-a6dc-7419457fcf54
2026-11-02 09:38:20,352 - INFO - ================================================================================
2026-11-02 09:38:20,352 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-02 09:38:20,352 - 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-11-02 09:38:20,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with
2026-11-02 09:38:20,618 - INFO - Initial checks done. Running the testcase now
2026-11-02 09:38:20,618 - INFO -
2026-11-02 09:38:21,429 - DEBUG - Response for create_network : {'network': {'id': '06cb05ea-67d3-41cd-8ce4-702827455628', 'name': 'ctest-vn-72823500', 'tenant_id': '53bba45215654e62a6dc7419457fcf54', 'project_id': '53bba45215654e62a6dc7419457fcf54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46474874', 'ctest-vn-72823500'], 'port_security_enabled': True, 'description': ''}}
2026-11-02 09:38:21,790 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad32d6d1-14ba-45f7-8262-5bfbbd3fec79', 'name': '', 'tenant_id': '53bba45215654e62a6dc7419457fcf54', 'network_id': '06cb05ea-67d3-41cd-8ce4-702827455628', 'ip_version': 4, 'cidr': '12.107.152.192/26', 'allocation_pools': [{'start': '12.107.152.194', 'end': '12.107.152.254'}], 'gateway_ip': '12.107.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.107.152.194', 'tags': [], 'project_id': '53bba45215654e62a6dc7419457fcf54'}}
2026-11-02 09:38:21,829 - INFO - Created VN ctest-vn-72823500
2026-11-02 09:38:21,895 - DEBUG - VN ctest-vn-72823500 UUID is 06cb05ea-67d3-41cd-8ce4-702827455628
2026-11-02 09:38:22,332 - DEBUG - Response for create_network : {'network': {'id': '2f6bc984-dc7d-4e33-90f0-ce380539525c', 'name': 'ctest-vn-46017742', 'tenant_id': '53bba45215654e62a6dc7419457fcf54', 'project_id': '53bba45215654e62a6dc7419457fcf54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46474874', 'ctest-vn-46017742'], 'port_security_enabled': True, 'description': ''}}
2026-11-02 09:38:22,565 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f04e5514-215a-40e1-a6be-6d033e658069', 'name': '', 'tenant_id': '53bba45215654e62a6dc7419457fcf54', 'network_id': '2f6bc984-dc7d-4e33-90f0-ce380539525c', 'ip_version': 4, 'cidr': '101.40.55.0/26', 'allocation_pools': [{'start': '101.40.55.2', 'end': '101.40.55.62'}], 'gateway_ip': '101.40.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.40.55.2', 'tags': [], 'project_id': '53bba45215654e62a6dc7419457fcf54'}}
2026-11-02 09:38:22,584 - INFO - Created VN ctest-vn-46017742
2026-11-02 09:38:22,639 - DEBUG - VN ctest-vn-46017742 UUID is 2f6bc984-dc7d-4e33-90f0-ce380539525c
2026-11-02 09:38:22,767 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-72823500, 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-46474874:ctest-vn-46017742, 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-11-02 09:38:23,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06cb05ea-67d3-41cd-8ce4-702827455628', 'name': 'ctest-vn-72823500', 'tenant_id': '53bba45215654e62a6dc7419457fcf54', 'project_id': '53bba45215654e62a6dc7419457fcf54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ad32d6d1-14ba-45f7-8262-5bfbbd3fec79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46474874', 'ctest-vn-72823500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46474874', 'ctest-policy-allow-all-14426081']], 'subnet_ipam': [{'subnet_cidr': '12.107.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-02 09:38:23,334 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f6bc984-dc7d-4e33-90f0-ce380539525c', 'name': 'ctest-vn-46017742', 'tenant_id': '53bba45215654e62a6dc7419457fcf54', 'project_id': '53bba45215654e62a6dc7419457fcf54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['f04e5514-215a-40e1-a6be-6d033e658069'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46474874', 'ctest-vn-46017742'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46474874', 'ctest-policy-allow-all-14426081']], 'subnet_ipam': [{'subnet_cidr': '101.40.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-02 09:38:23,507 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 09:38:23,898 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 09:38:23,932 - DEBUG - Requesting: http://10.0.0.50:8082/domain/348ed8a9-05a8-4032-a039-1797e1d52a38
2026-11-02 09:38:23,948 - DEBUG - Requesting: http://10.0.0.50:8082/project/53bba452-1565-4e62-a6dc-7419457fcf54
2026-11-02 09:38:24,053 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/06cb05ea-67d3-41cd-8ce4-702827455628
2026-11-02 09:38:24,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/06cb05ea-67d3-41cd-8ce4-702827455628
2026-11-02 09:38:24,078 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ffdcdf5-5289-4dcb-a67e-6a1a43852d15
2026-11-02 09:38:24,090 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ffdcdf5-5289-4dcb-a67e-6a1a43852d15
2026-11-02 09:38:24,102 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4ffb289-c120-4f69-9e77-55d306408cc2
2026-11-02 09:38:24,112 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-02 09:38:24,112 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/06cb05ea-67d3-41cd-8ce4-702827455628
2026-11-02 09:38:24,131 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ffdcdf5-5289-4dcb-a67e-6a1a43852d15
2026-11-02 09:38:24,154 - INFO - Verified VN network id 12 for VN 06cb05ea-67d3-41cd-8ce4-702827455628
2026-11-02 09:38:24,154 - INFO - Verifications in API Server for VN ctest-vn-72823500 passed
2026-11-02 09:38:24,154 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/06cb05ea-67d3-41cd-8ce4-702827455628
2026-11-02 09:38:24,168 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ffdcdf5-5289-4dcb-a67e-6a1a43852d15
2026-11-02 09:38:24,177 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5ffdcdf5-5289-4dcb-a67e-6a1a43852d15
2026-11-02 09:38:24,187 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4ffb289-c120-4f69-9e77-55d306408cc2
2026-11-02 09:38:24,204 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-72823500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46474874', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '489491488822215117', 'uuid-lslong': '10152362777759798824'}, 'enable': 'true', 'created': '2026-11-02T09:38:21', 'last-modified': '2026-11-02T09:38:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.136545'}
2026-11-02 09:38:24,212 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-02 09:38:24,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72823500 passed
2026-11-02 09:38:24,213 - DEBUG - ====Verifying policy data for ctest-vn-72823500 in API_Server ======
2026-11-02 09:38:24,213 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 09:38:24,221 - DEBUG - Requesting: http://10.0.0.50:8082/domain/348ed8a9-05a8-4032-a039-1797e1d52a38
2026-11-02 09:38:24,237 - DEBUG - Requesting: http://10.0.0.50:8082/project/53bba452-1565-4e62-a6dc-7419457fcf54
2026-11-02 09:38:24,332 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/06cb05ea-67d3-41cd-8ce4-702827455628
2026-11-02 09:38:24,348 - DEBUG - ==>Verifying data for policy with id: f2041a63-2594-4dd7-99b2-88bf3e5cc80b, fqn: ['default-domain', 'ctest-TestBasicPolicy-46474874', 'ctest-policy-allow-all-14426081']
2026-11-02 09:38:24,348 - INFO - VN ctest-vn-72823500 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-02 09:38:24,348 - DEBUG - Verifying the vn in opserver
2026-11-02 09:38:24,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-72823500 virtual network link through opserver 10.0.0.50
2026-11-02 09:38:24,348 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-02 09:38:24,728 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-02 09:38:24,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-72823500', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-72823500?flat'}
2026-11-02 09:38:24,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-72823500 is found in opserver
2026-11-02 09:38:24,810 - DEBUG - Do not have enough data to verify VN in agent
2026-11-02 09:38:24,815 - DEBUG - VRF ids for VN ctest-vn-72823500: {}
2026-11-02 09:38:24,816 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 09:38:24,822 - DEBUG - Requesting: http://10.0.0.50:8082/domain/348ed8a9-05a8-4032-a039-1797e1d52a38
2026-11-02 09:38:24,836 - DEBUG - Requesting: http://10.0.0.50:8082/project/53bba452-1565-4e62-a6dc-7419457fcf54
2026-11-02 09:38:24,915 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f6bc984-dc7d-4e33-90f0-ce380539525c
2026-11-02 09:38:24,930 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f6bc984-dc7d-4e33-90f0-ce380539525c
2026-11-02 09:38:24,942 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/555151c7-a4be-42ef-a1fe-3a75739b4183
2026-11-02 09:38:24,952 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/555151c7-a4be-42ef-a1fe-3a75739b4183
2026-11-02 09:38:24,963 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dc351f9f-2777-43d6-9346-5c3569d00a2a
2026-11-02 09:38:24,972 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-02 09:38:24,972 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f6bc984-dc7d-4e33-90f0-ce380539525c
2026-11-02 09:38:24,985 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/555151c7-a4be-42ef-a1fe-3a75739b4183
2026-11-02 09:38:25,004 - INFO - Verified VN network id 13 for VN 2f6bc984-dc7d-4e33-90f0-ce380539525c
2026-11-02 09:38:25,004 - INFO - Verifications in API Server for VN ctest-vn-46017742 passed
2026-11-02 09:38:25,004 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f6bc984-dc7d-4e33-90f0-ce380539525c
2026-11-02 09:38:25,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/555151c7-a4be-42ef-a1fe-3a75739b4183
2026-11-02 09:38:25,028 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/555151c7-a4be-42ef-a1fe-3a75739b4183
2026-11-02 09:38:25,037 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dc351f9f-2777-43d6-9346-5c3569d00a2a
2026-11-02 09:38:25,052 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-46017742', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46474874', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3417046314762718771', 'uuid-lslong': '10444074275873313372'}, 'enable': 'true', 'created': '2026-11-02T09:38:22', 'last-modified': '2026-11-02T09:38:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.744118'}
2026-11-02 09:38:25,062 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-02 09:38:25,062 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46017742 passed
2026-11-02 09:38:25,062 - DEBUG - ====Verifying policy data for ctest-vn-46017742 in API_Server ======
2026-11-02 09:38:25,062 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-02 09:38:25,071 - DEBUG - Requesting: http://10.0.0.50:8082/domain/348ed8a9-05a8-4032-a039-1797e1d52a38
2026-11-02 09:38:25,087 - DEBUG - Requesting: http://10.0.0.50:8082/project/53bba452-1565-4e62-a6dc-7419457fcf54
2026-11-02 09:38:25,165 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2f6bc984-dc7d-4e33-90f0-ce380539525c
2026-11-02 09:38:25,176 - DEBUG - ==>Verifying data for policy with id: f2041a63-2594-4dd7-99b2-88bf3e5cc80b, fqn: ['default-domain', 'ctest-TestBasicPolicy-46474874', 'ctest-policy-allow-all-14426081']
2026-11-02 09:38:25,176 - INFO - VN ctest-vn-46017742 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-02 09:38:25,176 - DEBUG - Verifying the vn in opserver
2026-11-02 09:38:25,176 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-46017742 virtual network link through opserver 10.0.0.50
2026-11-02 09:38:25,176 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-02 09:38:25,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-46017742', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-46017742?flat'}
2026-11-02 09:38:25,188 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46474874:ctest-vn-46017742 is found in opserver
2026-11-02 09:38:25,201 - DEBUG - Do not have enough data to verify VN in agent
2026-11-02 09:38:25,208 - DEBUG - VRF ids for VN ctest-vn-46017742: {}
2026-11-02 09:38:25,287 - DEBUG - Services list from nova: [