2026-01-22 02:03:26,814 - INFO - Domain Default found not creating
2026-01-22 02:03:27,015 - INFO - Project ctest-TestBasicPolicy-99806903 not found, creating it
2026-01-22 02:03:27,539 - INFO - Created Project:ctest-TestBasicPolicy-99806903, ID : 5d7d1269-7a31-487f-90d5-01c9d785db06
2026-01-22 02:03:29,201 - INFO - ================================================================================
2026-01-22 02:03:29,202 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-22 02:03:29,202 - 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-01-22 02:03:29,467 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.249': '0'}} with
2026-01-22 02:03:29,467 - INFO - Initial checks done. Running the testcase now
2026-01-22 02:03:29,467 - INFO -
2026-01-22 02:03:30,136 - DEBUG - Response for create_network : {'network': {'id': '05b06130-6bb5-41c0-b150-2118d2c07cb3', 'name': 'ctest-vn-21213625', 'tenant_id': '5d7d12697a31487f90d501c9d785db06', 'project_id': '5d7d12697a31487f90d501c9d785db06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99806903', 'ctest-vn-21213625'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 02:03:30,344 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aaa69fcf-2815-46d4-86ad-cf526341e3a3', 'name': '', 'tenant_id': '5d7d12697a31487f90d501c9d785db06', 'network_id': '05b06130-6bb5-41c0-b150-2118d2c07cb3', 'ip_version': 4, 'cidr': '40.36.132.128/26', 'allocation_pools': [{'start': '40.36.132.130', 'end': '40.36.132.190'}], 'gateway_ip': '40.36.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.36.132.130', 'tags': [], 'project_id': '5d7d12697a31487f90d501c9d785db06'}}
2026-01-22 02:03:30,365 - INFO - Created VN ctest-vn-21213625
2026-01-22 02:03:30,425 - DEBUG - VN ctest-vn-21213625 UUID is 05b06130-6bb5-41c0-b150-2118d2c07cb3
2026-01-22 02:03:30,730 - DEBUG - Response for create_network : {'network': {'id': 'e779de42-6d21-40ec-8888-b01877096d8c', 'name': 'ctest-vn-22083069', 'tenant_id': '5d7d12697a31487f90d501c9d785db06', 'project_id': '5d7d12697a31487f90d501c9d785db06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99806903', 'ctest-vn-22083069'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 02:03:30,956 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b953d220-55b6-4746-9dd7-f861404180ff', 'name': '', 'tenant_id': '5d7d12697a31487f90d501c9d785db06', 'network_id': 'e779de42-6d21-40ec-8888-b01877096d8c', 'ip_version': 4, 'cidr': '126.175.160.64/26', 'allocation_pools': [{'start': '126.175.160.66', 'end': '126.175.160.126'}], 'gateway_ip': '126.175.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.175.160.66', 'tags': [], 'project_id': '5d7d12697a31487f90d501c9d785db06'}}
2026-01-22 02:03:30,974 - INFO - Created VN ctest-vn-22083069
2026-01-22 02:03:31,025 - DEBUG - VN ctest-vn-22083069 UUID is e779de42-6d21-40ec-8888-b01877096d8c
2026-01-22 02:03:31,136 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-21213625, 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-99806903:ctest-vn-22083069, 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-01-22 02:03:31,433 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05b06130-6bb5-41c0-b150-2118d2c07cb3', 'name': 'ctest-vn-21213625', 'tenant_id': '5d7d12697a31487f90d501c9d785db06', 'project_id': '5d7d12697a31487f90d501c9d785db06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aaa69fcf-2815-46d4-86ad-cf526341e3a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99806903', 'ctest-vn-21213625'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99806903', 'ctest-policy-allow-all-14437524']], 'subnet_ipam': [{'subnet_cidr': '40.36.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 02:03:31,666 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e779de42-6d21-40ec-8888-b01877096d8c', 'name': 'ctest-vn-22083069', 'tenant_id': '5d7d12697a31487f90d501c9d785db06', 'project_id': '5d7d12697a31487f90d501c9d785db06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b953d220-55b6-4746-9dd7-f861404180ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99806903', 'ctest-vn-22083069'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99806903', 'ctest-policy-allow-all-14437524']], 'subnet_ipam': [{'subnet_cidr': '126.175.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 02:03:31,833 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-01-22 02:03:32,143 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-01-22 02:03:32,183 - DEBUG - Requesting: http://10.0.0.65:8082/domain/433363ec-f52c-47e7-9beb-05b034478b92
2026-01-22 02:03:32,199 - DEBUG - Requesting: http://10.0.0.65:8082/project/5d7d1269-7a31-487f-90d5-01c9d785db06
2026-01-22 02:03:32,273 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/05b06130-6bb5-41c0-b150-2118d2c07cb3
2026-01-22 02:03:32,284 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/05b06130-6bb5-41c0-b150-2118d2c07cb3
2026-01-22 02:03:32,295 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c8f399b7-d2a0-49cc-9de3-ef5ec638ab07
2026-01-22 02:03:32,303 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c8f399b7-d2a0-49cc-9de3-ef5ec638ab07
2026-01-22 02:03:32,311 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/55451171-7c3c-4111-acc1-c5a8e12e06e7
2026-01-22 02:03:32,319 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 02:03:32,319 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/05b06130-6bb5-41c0-b150-2118d2c07cb3
2026-01-22 02:03:32,329 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c8f399b7-d2a0-49cc-9de3-ef5ec638ab07
2026-01-22 02:03:32,344 - INFO - Verified VN network id 12 for VN 05b06130-6bb5-41c0-b150-2118d2c07cb3
2026-01-22 02:03:32,344 - INFO - Verifications in API Server for VN ctest-vn-21213625 passed
2026-01-22 02:03:32,344 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/05b06130-6bb5-41c0-b150-2118d2c07cb3
2026-01-22 02:03:32,353 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c8f399b7-d2a0-49cc-9de3-ef5ec638ab07
2026-01-22 02:03:32,361 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c8f399b7-d2a0-49cc-9de3-ef5ec638ab07
2026-01-22 02:03:32,370 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/55451171-7c3c-4111-acc1-c5a8e12e06e7
2026-01-22 02:03:32,385 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-21213625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99806903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '409934426684080576', 'uuid-lslong': '12776748533348859059'}, 'enable': 'true', 'created': '2026-01-22T02:03:30', 'last-modified': '2026-01-22T02:03:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974734'}
2026-01-22 02:03:32,391 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 02:03:32,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21213625 passed
2026-01-22 02:03:32,392 - DEBUG - ====Verifying policy data for ctest-vn-21213625 in API_Server ======
2026-01-22 02:03:32,392 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-01-22 02:03:32,399 - DEBUG - Requesting: http://10.0.0.65:8082/domain/433363ec-f52c-47e7-9beb-05b034478b92
2026-01-22 02:03:32,410 - DEBUG - Requesting: http://10.0.0.65:8082/project/5d7d1269-7a31-487f-90d5-01c9d785db06
2026-01-22 02:03:32,483 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/05b06130-6bb5-41c0-b150-2118d2c07cb3
2026-01-22 02:03:32,492 - DEBUG - ==>Verifying data for policy with id: da71721a-b692-4815-bf52-2df33f197840, fqn: ['default-domain', 'ctest-TestBasicPolicy-99806903', 'ctest-policy-allow-all-14437524']
2026-01-22 02:03:32,493 - INFO - VN ctest-vn-21213625 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 02:03:32,493 - DEBUG - Verifying the vn in opserver
2026-01-22 02:03:32,493 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-21213625 virtual network link through opserver 10.0.0.65
2026-01-22 02:03:32,493 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2026-01-22 02:03:32,785 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2026-01-22 02:03:32,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-21213625', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-21213625?flat'}
2026-01-22 02:03:32,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-21213625 is found in opserver
2026-01-22 02:03:32,907 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 02:03:32,915 - DEBUG - VRF ids for VN ctest-vn-21213625: {}
2026-01-22 02:03:32,915 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-01-22 02:03:32,961 - DEBUG - Requesting: http://10.0.0.65:8082/domain/433363ec-f52c-47e7-9beb-05b034478b92
2026-01-22 02:03:33,053 - DEBUG - Requesting: http://10.0.0.65:8082/project/5d7d1269-7a31-487f-90d5-01c9d785db06
2026-01-22 02:03:33,164 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e779de42-6d21-40ec-8888-b01877096d8c
2026-01-22 02:03:33,201 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e779de42-6d21-40ec-8888-b01877096d8c
2026-01-22 02:03:33,218 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a500bf1c-98b5-4f44-8c62-0bb055d441e8
2026-01-22 02:03:33,227 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a500bf1c-98b5-4f44-8c62-0bb055d441e8
2026-01-22 02:03:33,249 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d418f405-2c7c-417a-a8f5-2f9bfa947fa8
2026-01-22 02:03:33,263 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 02:03:33,263 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e779de42-6d21-40ec-8888-b01877096d8c
2026-01-22 02:03:33,283 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a500bf1c-98b5-4f44-8c62-0bb055d441e8
2026-01-22 02:03:33,311 - INFO - Verified VN network id 13 for VN e779de42-6d21-40ec-8888-b01877096d8c
2026-01-22 02:03:33,311 - INFO - Verifications in API Server for VN ctest-vn-22083069 passed
2026-01-22 02:03:33,311 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e779de42-6d21-40ec-8888-b01877096d8c
2026-01-22 02:03:33,323 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a500bf1c-98b5-4f44-8c62-0bb055d441e8
2026-01-22 02:03:33,332 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a500bf1c-98b5-4f44-8c62-0bb055d441e8
2026-01-22 02:03:33,345 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d418f405-2c7c-417a-a8f5-2f9bfa947fa8
2026-01-22 02:03:33,366 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-22083069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99806903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16679607071823446252', 'uuid-lslong': '9838307005113658764'}, 'enable': 'true', 'created': '2026-01-22T02:03:30', 'last-modified': '2026-01-22T02:03:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.720167'}
2026-01-22 02:03:33,374 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 02:03:33,374 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22083069 passed
2026-01-22 02:03:33,374 - DEBUG - ====Verifying policy data for ctest-vn-22083069 in API_Server ======
2026-01-22 02:03:33,374 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-01-22 02:03:33,382 - DEBUG - Requesting: http://10.0.0.65:8082/domain/433363ec-f52c-47e7-9beb-05b034478b92
2026-01-22 02:03:33,419 - DEBUG - Requesting: http://10.0.0.65:8082/project/5d7d1269-7a31-487f-90d5-01c9d785db06
2026-01-22 02:03:33,531 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e779de42-6d21-40ec-8888-b01877096d8c
2026-01-22 02:03:33,550 - DEBUG - ==>Verifying data for policy with id: da71721a-b692-4815-bf52-2df33f197840, fqn: ['default-domain', 'ctest-TestBasicPolicy-99806903', 'ctest-policy-allow-all-14437524']
2026-01-22 02:03:33,550 - INFO - VN ctest-vn-22083069 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 02:03:33,550 - DEBUG - Verifying the vn in opserver
2026-01-22 02:03:33,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-22083069 virtual network link through opserver 10.0.0.65
2026-01-22 02:03:33,550 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2026-01-22 02:03:33,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-22083069', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-22083069?flat'}
2026-01-22 02:03:33,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99806903:ctest-vn-22083069 is found in opserver
2026-01-22 02:03:33,592 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 02:03:33,600 - DEBUG - VRF ids for VN ctest-vn-22083069: {}
2026-01-22 02:03:33,707 - DEBUG - Services list from nova: [