2026-06-17 12:22:03,511 - INFO - Domain Default found not creating
2026-06-17 12:22:03,667 - INFO - Project ctest-TestBasicPolicy-68368316 not found, creating it
2026-06-17 12:22:04,132 - INFO - Created Project:ctest-TestBasicPolicy-68368316, ID : 1c786f58-eb21-4e92-be34-3f2a9cd4bbbc
2026-06-17 12:22:05,674 - INFO - ================================================================================
2026-06-17 12:22:05,675 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-17 12:22:05,675 - 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-06-17 12:22:05,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with
2026-06-17 12:22:05,934 - INFO - Initial checks done. Running the testcase now
2026-06-17 12:22:05,934 - INFO -
2026-06-17 12:22:06,525 - DEBUG - Response for create_network : {'network': {'id': '487f1c65-12c1-4810-b5dd-9ec14ca196ea', 'name': 'ctest-vn-85481541', 'tenant_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'project_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68368316', 'ctest-vn-85481541'], 'port_security_enabled': True, 'description': ''}}
2026-06-17 12:22:06,723 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd04fbaf-ea70-479d-9192-af124467ac8a', 'name': '', 'tenant_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'network_id': '487f1c65-12c1-4810-b5dd-9ec14ca196ea', 'ip_version': 4, 'cidr': '96.77.75.0/26', 'allocation_pools': [{'start': '96.77.75.2', 'end': '96.77.75.62'}], 'gateway_ip': '96.77.75.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.77.75.2', 'tags': [], 'project_id': '1c786f58eb214e92be343f2a9cd4bbbc'}}
2026-06-17 12:22:06,738 - INFO - Created VN ctest-vn-85481541
2026-06-17 12:22:06,789 - DEBUG - VN ctest-vn-85481541 UUID is 487f1c65-12c1-4810-b5dd-9ec14ca196ea
2026-06-17 12:22:07,093 - DEBUG - Response for create_network : {'network': {'id': '2334153c-2774-48a5-826b-5d420a1630a1', 'name': 'ctest-vn-74214384', 'tenant_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'project_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68368316', 'ctest-vn-74214384'], 'port_security_enabled': True, 'description': ''}}
2026-06-17 12:22:07,240 - DEBUG - Response for create_subnet : {'subnet': {'id': '618f594d-d57c-4c99-81d0-76e4a4bba00e', 'name': '', 'tenant_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'network_id': '2334153c-2774-48a5-826b-5d420a1630a1', 'ip_version': 4, 'cidr': '211.84.222.64/26', 'allocation_pools': [{'start': '211.84.222.66', 'end': '211.84.222.126'}], 'gateway_ip': '211.84.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.84.222.66', 'tags': [], 'project_id': '1c786f58eb214e92be343f2a9cd4bbbc'}}
2026-06-17 12:22:07,262 - INFO - Created VN ctest-vn-74214384
2026-06-17 12:22:07,313 - DEBUG - VN ctest-vn-74214384 UUID is 2334153c-2774-48a5-826b-5d420a1630a1
2026-06-17 12:22:07,465 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-85481541, 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-68368316:ctest-vn-74214384, 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-06-17 12:22:07,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '487f1c65-12c1-4810-b5dd-9ec14ca196ea', 'name': 'ctest-vn-85481541', 'tenant_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'project_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd04fbaf-ea70-479d-9192-af124467ac8a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68368316', 'ctest-vn-85481541'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68368316', 'ctest-policy-allow-all-33126909']], 'subnet_ipam': [{'subnet_cidr': '96.77.75.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-17 12:22:07,965 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2334153c-2774-48a5-826b-5d420a1630a1', 'name': 'ctest-vn-74214384', 'tenant_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'project_id': '1c786f58eb214e92be343f2a9cd4bbbc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['618f594d-d57c-4c99-81d0-76e4a4bba00e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68368316', 'ctest-vn-74214384'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68368316', 'ctest-policy-allow-all-33126909']], 'subnet_ipam': [{'subnet_cidr': '211.84.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-17 12:22:08,125 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-17 12:22:08,452 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-17 12:22:08,486 - DEBUG - Requesting: http://10.0.0.129:8082/domain/4962e901-bfbe-4997-b459-be85435cac28
2026-06-17 12:22:08,497 - DEBUG - Requesting: http://10.0.0.129:8082/project/1c786f58-eb21-4e92-be34-3f2a9cd4bbbc
2026-06-17 12:22:08,568 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/487f1c65-12c1-4810-b5dd-9ec14ca196ea
2026-06-17 12:22:08,580 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/487f1c65-12c1-4810-b5dd-9ec14ca196ea
2026-06-17 12:22:08,589 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/daa371c3-4638-4a74-8a9e-ef3ccf005d1a
2026-06-17 12:22:08,598 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/daa371c3-4638-4a74-8a9e-ef3ccf005d1a
2026-06-17 12:22:08,605 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c45cab6a-8594-4872-9164-0bb0077ec79b
2026-06-17 12:22:08,611 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-17 12:22:08,611 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/487f1c65-12c1-4810-b5dd-9ec14ca196ea
2026-06-17 12:22:08,619 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/daa371c3-4638-4a74-8a9e-ef3ccf005d1a
2026-06-17 12:22:08,632 - INFO - Verified VN network id 11 for VN 487f1c65-12c1-4810-b5dd-9ec14ca196ea
2026-06-17 12:22:08,632 - INFO - Verifications in API Server for VN ctest-vn-85481541 passed
2026-06-17 12:22:08,632 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/487f1c65-12c1-4810-b5dd-9ec14ca196ea
2026-06-17 12:22:08,641 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/daa371c3-4638-4a74-8a9e-ef3ccf005d1a
2026-06-17 12:22:08,648 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/daa371c3-4638-4a74-8a9e-ef3ccf005d1a
2026-06-17 12:22:08,655 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c45cab6a-8594-4872-9164-0bb0077ec79b
2026-06-17 12:22:08,666 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-85481541', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68368316', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5223925313204996112', 'uuid-lslong': '13104805043769546474'}, 'enable': 'true', 'created': '2026-06-17T12:22:06', 'last-modified': '2026-06-17T12:22:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928532'}
2026-06-17 12:22:08,672 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-17 12:22:08,672 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85481541 passed
2026-06-17 12:22:08,672 - DEBUG - ====Verifying policy data for ctest-vn-85481541 in API_Server ======
2026-06-17 12:22:08,672 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-17 12:22:08,677 - DEBUG - Requesting: http://10.0.0.129:8082/domain/4962e901-bfbe-4997-b459-be85435cac28
2026-06-17 12:22:08,687 - DEBUG - Requesting: http://10.0.0.129:8082/project/1c786f58-eb21-4e92-be34-3f2a9cd4bbbc
2026-06-17 12:22:08,767 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/487f1c65-12c1-4810-b5dd-9ec14ca196ea
2026-06-17 12:22:08,776 - DEBUG - ==>Verifying data for policy with id: 144d4e5f-969c-468f-9324-742a6f49bfb4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68368316', 'ctest-policy-allow-all-33126909']
2026-06-17 12:22:08,776 - INFO - VN ctest-vn-85481541 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-17 12:22:08,776 - DEBUG - Verifying the vn in opserver
2026-06-17 12:22:08,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-85481541 virtual network link through opserver 10.0.0.129
2026-06-17 12:22:08,776 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-06-17 12:22:09,093 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-06-17 12:22:09,166 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-85481541', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-85481541?flat'}
2026-06-17 12:22:09,166 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-85481541 is found in opserver
2026-06-17 12:22:09,174 - DEBUG - Do not have enough data to verify VN in agent
2026-06-17 12:22:09,179 - DEBUG - VRF ids for VN ctest-vn-85481541: {}
2026-06-17 12:22:09,179 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-17 12:22:09,185 - DEBUG - Requesting: http://10.0.0.129:8082/domain/4962e901-bfbe-4997-b459-be85435cac28
2026-06-17 12:22:09,194 - DEBUG - Requesting: http://10.0.0.129:8082/project/1c786f58-eb21-4e92-be34-3f2a9cd4bbbc
2026-06-17 12:22:09,268 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/2334153c-2774-48a5-826b-5d420a1630a1
2026-06-17 12:22:09,278 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/2334153c-2774-48a5-826b-5d420a1630a1
2026-06-17 12:22:09,287 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/dbaa7ff1-4846-4672-8293-e09891b0e6ee
2026-06-17 12:22:09,294 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/dbaa7ff1-4846-4672-8293-e09891b0e6ee
2026-06-17 12:22:09,300 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/342647c1-7090-4134-9cf9-ea4daa27cf83
2026-06-17 12:22:09,306 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-17 12:22:09,306 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/2334153c-2774-48a5-826b-5d420a1630a1
2026-06-17 12:22:09,314 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/dbaa7ff1-4846-4672-8293-e09891b0e6ee
2026-06-17 12:22:09,327 - INFO - Verified VN network id 12 for VN 2334153c-2774-48a5-826b-5d420a1630a1
2026-06-17 12:22:09,327 - INFO - Verifications in API Server for VN ctest-vn-74214384 passed
2026-06-17 12:22:09,327 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/2334153c-2774-48a5-826b-5d420a1630a1
2026-06-17 12:22:09,336 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/dbaa7ff1-4846-4672-8293-e09891b0e6ee
2026-06-17 12:22:09,343 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/dbaa7ff1-4846-4672-8293-e09891b0e6ee
2026-06-17 12:22:09,349 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/342647c1-7090-4134-9cf9-ea4daa27cf83
2026-06-17 12:22:09,360 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-74214384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68368316', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2536675838220585125', 'uuid-lslong': '9397707585657122977'}, 'enable': 'true', 'created': '2026-06-17T12:22:07', 'last-modified': '2026-06-17T12:22:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411936'}
2026-06-17 12:22:09,367 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-17 12:22:09,367 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74214384 passed
2026-06-17 12:22:09,367 - DEBUG - ====Verifying policy data for ctest-vn-74214384 in API_Server ======
2026-06-17 12:22:09,367 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-06-17 12:22:09,373 - DEBUG - Requesting: http://10.0.0.129:8082/domain/4962e901-bfbe-4997-b459-be85435cac28
2026-06-17 12:22:09,383 - DEBUG - Requesting: http://10.0.0.129:8082/project/1c786f58-eb21-4e92-be34-3f2a9cd4bbbc
2026-06-17 12:22:09,460 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/2334153c-2774-48a5-826b-5d420a1630a1
2026-06-17 12:22:09,469 - DEBUG - ==>Verifying data for policy with id: 144d4e5f-969c-468f-9324-742a6f49bfb4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68368316', 'ctest-policy-allow-all-33126909']
2026-06-17 12:22:09,469 - INFO - VN ctest-vn-74214384 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-17 12:22:09,470 - DEBUG - Verifying the vn in opserver
2026-06-17 12:22:09,470 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-74214384 virtual network link through opserver 10.0.0.129
2026-06-17 12:22:09,470 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-06-17 12:22:09,480 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-74214384', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-74214384?flat'}
2026-06-17 12:22:09,480 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68368316:ctest-vn-74214384 is found in opserver
2026-06-17 12:22:09,489 - DEBUG - Do not have enough data to verify VN in agent
2026-06-17 12:22:09,493 - DEBUG - VRF ids for VN ctest-vn-74214384: {}
2026-06-17 12:22:09,551 - DEBUG - Services list from nova: [