2026-09-22 15:18:02,534 - INFO - Domain Default found not creating
2026-09-22 15:18:02,732 - INFO - Project ctest-TestBasicPolicy-43562122 not found, creating it
2026-09-22 15:18:03,272 - INFO - Created Project:ctest-TestBasicPolicy-43562122, ID : 02e371c5-8595-4447-8d72-8cebfa03063e
2026-09-22 15:18:05,118 - INFO - ================================================================================
2026-09-22 15:18:05,118 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-22 15:18:05,118 - 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-09-22 15:18:05,390 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-09-22 15:18:05,390 - INFO - Initial checks done. Running the testcase now
2026-09-22 15:18:05,390 - INFO -
2026-09-22 15:18:06,079 - DEBUG - Response for create_network : {'network': {'id': '65ecd02f-e4db-42f1-827b-83f255ecc8a7', 'name': 'ctest-vn-04945587', 'tenant_id': '02e371c5859544478d728cebfa03063e', 'project_id': '02e371c5859544478d728cebfa03063e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43562122', 'ctest-vn-04945587'], 'port_security_enabled': True, 'description': ''}}
2026-09-22 15:18:06,303 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea815d76-86b3-42d1-a43f-3bbd0de8fd38', 'name': '', 'tenant_id': '02e371c5859544478d728cebfa03063e', 'network_id': '65ecd02f-e4db-42f1-827b-83f255ecc8a7', 'ip_version': 4, 'cidr': '141.234.72.64/26', 'allocation_pools': [{'start': '141.234.72.66', 'end': '141.234.72.126'}], 'gateway_ip': '141.234.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.234.72.66', 'tags': [], 'project_id': '02e371c5859544478d728cebfa03063e'}}
2026-09-22 15:18:06,322 - INFO - Created VN ctest-vn-04945587
2026-09-22 15:18:06,390 - DEBUG - VN ctest-vn-04945587 UUID is 65ecd02f-e4db-42f1-827b-83f255ecc8a7
2026-09-22 15:18:06,745 - DEBUG - Response for create_network : {'network': {'id': '40fa1ac3-e089-4c28-a000-8855dfdcd780', 'name': 'ctest-vn-53850817', 'tenant_id': '02e371c5859544478d728cebfa03063e', 'project_id': '02e371c5859544478d728cebfa03063e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43562122', 'ctest-vn-53850817'], 'port_security_enabled': True, 'description': ''}}
2026-09-22 15:18:06,951 - DEBUG - Response for create_subnet : {'subnet': {'id': '28b9303f-dcb2-4a56-b637-a7cfa0c01554', 'name': '', 'tenant_id': '02e371c5859544478d728cebfa03063e', 'network_id': '40fa1ac3-e089-4c28-a000-8855dfdcd780', 'ip_version': 4, 'cidr': '203.32.182.64/26', 'allocation_pools': [{'start': '203.32.182.66', 'end': '203.32.182.126'}], 'gateway_ip': '203.32.182.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.32.182.66', 'tags': [], 'project_id': '02e371c5859544478d728cebfa03063e'}}
2026-09-22 15:18:06,970 - INFO - Created VN ctest-vn-53850817
2026-09-22 15:18:07,026 - DEBUG - VN ctest-vn-53850817 UUID is 40fa1ac3-e089-4c28-a000-8855dfdcd780
2026-09-22 15:18:07,147 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-04945587, 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-43562122:ctest-vn-53850817, 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-09-22 15:18:07,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65ecd02f-e4db-42f1-827b-83f255ecc8a7', 'name': 'ctest-vn-04945587', 'tenant_id': '02e371c5859544478d728cebfa03063e', 'project_id': '02e371c5859544478d728cebfa03063e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ea815d76-86b3-42d1-a43f-3bbd0de8fd38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43562122', 'ctest-vn-04945587'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43562122', 'ctest-policy-allow-all-42082842']], 'subnet_ipam': [{'subnet_cidr': '141.234.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-22 15:18:07,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40fa1ac3-e089-4c28-a000-8855dfdcd780', 'name': 'ctest-vn-53850817', 'tenant_id': '02e371c5859544478d728cebfa03063e', 'project_id': '02e371c5859544478d728cebfa03063e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['28b9303f-dcb2-4a56-b637-a7cfa0c01554'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43562122', 'ctest-vn-53850817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43562122', 'ctest-policy-allow-all-42082842']], 'subnet_ipam': [{'subnet_cidr': '203.32.182.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-22 15:18:07,910 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 15:18:08,277 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 15:18:08,308 - DEBUG - Requesting: http://10.0.0.161:8082/domain/2037e029-e468-4933-9de4-a12d53d923b0
2026-09-22 15:18:08,325 - DEBUG - Requesting: http://10.0.0.161:8082/project/02e371c5-8595-4447-8d72-8cebfa03063e
2026-09-22 15:18:08,403 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/65ecd02f-e4db-42f1-827b-83f255ecc8a7
2026-09-22 15:18:08,420 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/65ecd02f-e4db-42f1-827b-83f255ecc8a7
2026-09-22 15:18:08,432 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2fefdfb0-0c4b-46f8-8609-e20ada7af75b
2026-09-22 15:18:08,443 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2fefdfb0-0c4b-46f8-8609-e20ada7af75b
2026-09-22 15:18:08,451 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/8292dce0-1e0f-4aca-9460-d76021c71836
2026-09-22 15:18:08,459 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-22 15:18:08,459 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/65ecd02f-e4db-42f1-827b-83f255ecc8a7
2026-09-22 15:18:08,470 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2fefdfb0-0c4b-46f8-8609-e20ada7af75b
2026-09-22 15:18:08,487 - INFO - Verified VN network id 12 for VN 65ecd02f-e4db-42f1-827b-83f255ecc8a7
2026-09-22 15:18:08,487 - INFO - Verifications in API Server for VN ctest-vn-04945587 passed
2026-09-22 15:18:08,487 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/65ecd02f-e4db-42f1-827b-83f255ecc8a7
2026-09-22 15:18:08,498 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2fefdfb0-0c4b-46f8-8609-e20ada7af75b
2026-09-22 15:18:08,507 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2fefdfb0-0c4b-46f8-8609-e20ada7af75b
2026-09-22 15:18:08,516 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/8292dce0-1e0f-4aca-9460-d76021c71836
2026-09-22 15:18:08,531 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-04945587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43562122', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7344473996456051441', 'uuid-lslong': '9402253723912947879'}, 'enable': 'true', 'created': '2026-09-22T15:18:06', 'last-modified': '2026-09-22T15:18:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068354'}
2026-09-22 15:18:08,538 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-22 15:18:08,539 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04945587 passed
2026-09-22 15:18:08,539 - DEBUG - ====Verifying policy data for ctest-vn-04945587 in API_Server ======
2026-09-22 15:18:08,539 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 15:18:08,545 - DEBUG - Requesting: http://10.0.0.161:8082/domain/2037e029-e468-4933-9de4-a12d53d923b0
2026-09-22 15:18:08,558 - DEBUG - Requesting: http://10.0.0.161:8082/project/02e371c5-8595-4447-8d72-8cebfa03063e
2026-09-22 15:18:08,652 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/65ecd02f-e4db-42f1-827b-83f255ecc8a7
2026-09-22 15:18:08,666 - DEBUG - ==>Verifying data for policy with id: bafeb605-2a84-4787-bb13-d6d7d67f0a58, fqn: ['default-domain', 'ctest-TestBasicPolicy-43562122', 'ctest-policy-allow-all-42082842']
2026-09-22 15:18:08,666 - INFO - VN ctest-vn-04945587 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-22 15:18:08,666 - DEBUG - Verifying the vn in opserver
2026-09-22 15:18:08,666 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-04945587 virtual network link through opserver 10.0.0.161
2026-09-22 15:18:08,666 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-22 15:18:09,044 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-22 15:18:09,117 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-04945587', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-04945587?flat'}
2026-09-22 15:18:09,118 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-04945587 is found in opserver
2026-09-22 15:18:09,130 - DEBUG - Do not have enough data to verify VN in agent
2026-09-22 15:18:09,138 - DEBUG - VRF ids for VN ctest-vn-04945587: {}
2026-09-22 15:18:09,138 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 15:18:09,144 - DEBUG - Requesting: http://10.0.0.161:8082/domain/2037e029-e468-4933-9de4-a12d53d923b0
2026-09-22 15:18:09,157 - DEBUG - Requesting: http://10.0.0.161:8082/project/02e371c5-8595-4447-8d72-8cebfa03063e
2026-09-22 15:18:09,241 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/40fa1ac3-e089-4c28-a000-8855dfdcd780
2026-09-22 15:18:09,257 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/40fa1ac3-e089-4c28-a000-8855dfdcd780
2026-09-22 15:18:09,269 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d7ebc600-0aa3-4603-839d-77313499589b
2026-09-22 15:18:09,279 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d7ebc600-0aa3-4603-839d-77313499589b
2026-09-22 15:18:09,288 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/4f695a1b-b04e-44e5-935a-f630b03469ca
2026-09-22 15:18:09,298 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-22 15:18:09,298 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/40fa1ac3-e089-4c28-a000-8855dfdcd780
2026-09-22 15:18:09,312 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d7ebc600-0aa3-4603-839d-77313499589b
2026-09-22 15:18:09,331 - INFO - Verified VN network id 13 for VN 40fa1ac3-e089-4c28-a000-8855dfdcd780
2026-09-22 15:18:09,331 - INFO - Verifications in API Server for VN ctest-vn-53850817 passed
2026-09-22 15:18:09,331 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/40fa1ac3-e089-4c28-a000-8855dfdcd780
2026-09-22 15:18:09,343 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d7ebc600-0aa3-4603-839d-77313499589b
2026-09-22 15:18:09,351 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d7ebc600-0aa3-4603-839d-77313499589b
2026-09-22 15:18:09,359 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/4f695a1b-b04e-44e5-935a-f630b03469ca
2026-09-22 15:18:09,373 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-53850817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43562122', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4682084191193091112', 'uuid-lslong': '11529364948477859712'}, 'enable': 'true', 'created': '2026-09-22T15:18:06', 'last-modified': '2026-09-22T15:18:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.660147'}
2026-09-22 15:18:09,382 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-22 15:18:09,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53850817 passed
2026-09-22 15:18:09,382 - DEBUG - ====Verifying policy data for ctest-vn-53850817 in API_Server ======
2026-09-22 15:18:09,382 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 15:18:09,388 - DEBUG - Requesting: http://10.0.0.161:8082/domain/2037e029-e468-4933-9de4-a12d53d923b0
2026-09-22 15:18:09,400 - DEBUG - Requesting: http://10.0.0.161:8082/project/02e371c5-8595-4447-8d72-8cebfa03063e
2026-09-22 15:18:09,483 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/40fa1ac3-e089-4c28-a000-8855dfdcd780
2026-09-22 15:18:09,494 - DEBUG - ==>Verifying data for policy with id: bafeb605-2a84-4787-bb13-d6d7d67f0a58, fqn: ['default-domain', 'ctest-TestBasicPolicy-43562122', 'ctest-policy-allow-all-42082842']
2026-09-22 15:18:09,494 - INFO - VN ctest-vn-53850817 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-22 15:18:09,494 - DEBUG - Verifying the vn in opserver
2026-09-22 15:18:09,494 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-53850817 virtual network link through opserver 10.0.0.161
2026-09-22 15:18:09,494 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-22 15:18:09,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-53850817', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-53850817?flat'}
2026-09-22 15:18:09,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43562122:ctest-vn-53850817 is found in opserver
2026-09-22 15:18:09,518 - DEBUG - Do not have enough data to verify VN in agent
2026-09-22 15:18:09,523 - DEBUG - VRF ids for VN ctest-vn-53850817: {}
2026-09-22 15:18:09,591 - DEBUG - Services list from nova: [