2025-10-21 17:50:48,697 - INFO - Domain Default found not creating
2025-10-21 17:50:49,036 - INFO - Project ctest-TestBasicPolicy-31848794 not found, creating it
2025-10-21 17:50:49,663 - INFO - Created Project:ctest-TestBasicPolicy-31848794, ID : 9b3e97ed-1826-4c96-bff1-38c24f892fc2
2025-10-21 17:50:51,594 - INFO - ================================================================================
2025-10-21 17:50:51,594 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 17:50:51,594 - 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
2025-10-21 17:50:51,901 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-10-21 17:50:51,901 - INFO - Initial checks done. Running the testcase now
2025-10-21 17:50:51,901 - INFO -
2025-10-21 17:50:52,579 - DEBUG - Response for create_network : {'network': {'id': 'bb17f332-958f-416c-b110-6a84808596f5', 'name': 'ctest-vn-13081996', 'tenant_id': '9b3e97ed18264c96bff138c24f892fc2', 'project_id': '9b3e97ed18264c96bff138c24f892fc2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31848794', 'ctest-vn-13081996'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:50:52,876 - DEBUG - Response for create_subnet : {'subnet': {'id': '80c37a9f-00af-494c-8745-1456b05013ac', 'name': '', 'tenant_id': '9b3e97ed18264c96bff138c24f892fc2', 'network_id': 'bb17f332-958f-416c-b110-6a84808596f5', 'ip_version': 4, 'cidr': '194.209.110.0/26', 'allocation_pools': [{'start': '194.209.110.2', 'end': '194.209.110.62'}], 'gateway_ip': '194.209.110.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.209.110.2', 'tags': [], 'project_id': '9b3e97ed18264c96bff138c24f892fc2'}}
2025-10-21 17:50:52,898 - INFO - Created VN ctest-vn-13081996
2025-10-21 17:50:52,953 - DEBUG - VN ctest-vn-13081996 UUID is bb17f332-958f-416c-b110-6a84808596f5
2025-10-21 17:50:53,414 - DEBUG - Response for create_network : {'network': {'id': '95655a9b-5be9-4698-8ac6-0a834ab66254', 'name': 'ctest-vn-41834465', 'tenant_id': '9b3e97ed18264c96bff138c24f892fc2', 'project_id': '9b3e97ed18264c96bff138c24f892fc2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31848794', 'ctest-vn-41834465'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:50:53,625 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ceb6f31d-5190-4d2f-afa0-7c02e0c19099', 'name': '', 'tenant_id': '9b3e97ed18264c96bff138c24f892fc2', 'network_id': '95655a9b-5be9-4698-8ac6-0a834ab66254', 'ip_version': 4, 'cidr': '191.223.104.128/26', 'allocation_pools': [{'start': '191.223.104.130', 'end': '191.223.104.190'}], 'gateway_ip': '191.223.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.223.104.130', 'tags': [], 'project_id': '9b3e97ed18264c96bff138c24f892fc2'}}
2025-10-21 17:50:53,648 - INFO - Created VN ctest-vn-41834465
2025-10-21 17:50:53,705 - DEBUG - VN ctest-vn-41834465 UUID is 95655a9b-5be9-4698-8ac6-0a834ab66254
2025-10-21 17:50:53,883 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-13081996, 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-31848794:ctest-vn-41834465, 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]
2025-10-21 17:50:54,253 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb17f332-958f-416c-b110-6a84808596f5', 'name': 'ctest-vn-13081996', 'tenant_id': '9b3e97ed18264c96bff138c24f892fc2', 'project_id': '9b3e97ed18264c96bff138c24f892fc2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80c37a9f-00af-494c-8745-1456b05013ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31848794', 'ctest-vn-13081996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31848794', 'ctest-policy-allow-all-13193684']], 'subnet_ipam': [{'subnet_cidr': '194.209.110.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:50:54,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95655a9b-5be9-4698-8ac6-0a834ab66254', 'name': 'ctest-vn-41834465', 'tenant_id': '9b3e97ed18264c96bff138c24f892fc2', 'project_id': '9b3e97ed18264c96bff138c24f892fc2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ceb6f31d-5190-4d2f-afa0-7c02e0c19099'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31848794', 'ctest-vn-41834465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31848794', 'ctest-policy-allow-all-13193684']], 'subnet_ipam': [{'subnet_cidr': '191.223.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:50:54,737 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-21 17:50:55,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-21 17:50:55,112 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0432b868-be5a-4114-878d-f0d030d6816b
2025-10-21 17:50:55,135 - DEBUG - Requesting: http://10.0.0.38:8082/project/9b3e97ed-1826-4c96-bff1-38c24f892fc2
2025-10-21 17:50:55,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb17f332-958f-416c-b110-6a84808596f5
2025-10-21 17:50:55,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb17f332-958f-416c-b110-6a84808596f5
2025-10-21 17:50:55,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/65d8e545-e368-4cc0-9109-a1af5e79c7e3
2025-10-21 17:50:55,315 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/65d8e545-e368-4cc0-9109-a1af5e79c7e3
2025-10-21 17:50:55,332 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c909688b-ee59-4895-bfcc-356a4a57e9dc
2025-10-21 17:50:55,348 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 17:50:55,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb17f332-958f-416c-b110-6a84808596f5
2025-10-21 17:50:55,366 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/65d8e545-e368-4cc0-9109-a1af5e79c7e3
2025-10-21 17:50:55,389 - INFO - Verified VN network id 11 for VN bb17f332-958f-416c-b110-6a84808596f5
2025-10-21 17:50:55,389 - INFO - Verifications in API Server for VN ctest-vn-13081996 passed
2025-10-21 17:50:55,389 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb17f332-958f-416c-b110-6a84808596f5
2025-10-21 17:50:55,413 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/65d8e545-e368-4cc0-9109-a1af5e79c7e3
2025-10-21 17:50:55,430 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/65d8e545-e368-4cc0-9109-a1af5e79c7e3
2025-10-21 17:50:55,452 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c909688b-ee59-4895-bfcc-356a4a57e9dc
2025-10-21 17:50:55,486 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-13081996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31848794', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13481511408139977068', 'uuid-lslong': '12758814861665081077'}, 'enable': 'true', 'created': '2025-10-21T17:50:52', 'last-modified': '2025-10-21T17:50:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.263029'}
2025-10-21 17:50:55,496 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 17:50:55,496 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13081996 passed
2025-10-21 17:50:55,496 - DEBUG - ====Verifying policy data for ctest-vn-13081996 in API_Server ======
2025-10-21 17:50:55,496 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-21 17:50:55,507 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0432b868-be5a-4114-878d-f0d030d6816b
2025-10-21 17:50:55,534 - DEBUG - Requesting: http://10.0.0.38:8082/project/9b3e97ed-1826-4c96-bff1-38c24f892fc2
2025-10-21 17:50:55,621 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb17f332-958f-416c-b110-6a84808596f5
2025-10-21 17:50:55,648 - DEBUG - ==>Verifying data for policy with id: ac6a28bf-1e0d-4acc-8e6f-bb7547d1d844, fqn: ['default-domain', 'ctest-TestBasicPolicy-31848794', 'ctest-policy-allow-all-13193684']
2025-10-21 17:50:55,648 - INFO - VN ctest-vn-13081996 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 17:50:55,648 - DEBUG - Verifying the vn in opserver
2025-10-21 17:50:55,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-13081996 virtual network link through opserver 10.0.0.38
2025-10-21 17:50:55,649 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-21 17:50:55,954 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-21 17:50:56,044 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-13081996', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-13081996?flat'}
2025-10-21 17:50:56,044 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-13081996 is found in opserver
2025-10-21 17:50:56,070 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 17:50:56,086 - DEBUG - VRF ids for VN ctest-vn-13081996: {}
2025-10-21 17:50:56,086 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-21 17:50:56,098 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0432b868-be5a-4114-878d-f0d030d6816b
2025-10-21 17:50:56,131 - DEBUG - Requesting: http://10.0.0.38:8082/project/9b3e97ed-1826-4c96-bff1-38c24f892fc2
2025-10-21 17:50:56,260 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95655a9b-5be9-4698-8ac6-0a834ab66254
2025-10-21 17:50:56,296 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95655a9b-5be9-4698-8ac6-0a834ab66254
2025-10-21 17:50:56,323 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e63ed814-a5a2-4673-8b78-aade3d9aa099
2025-10-21 17:50:56,346 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e63ed814-a5a2-4673-8b78-aade3d9aa099
2025-10-21 17:50:56,363 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f817e9d7-93d6-4fd0-ad8a-108f3927c383
2025-10-21 17:50:56,378 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 17:50:56,379 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95655a9b-5be9-4698-8ac6-0a834ab66254
2025-10-21 17:50:56,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e63ed814-a5a2-4673-8b78-aade3d9aa099
2025-10-21 17:50:56,446 - INFO - Verified VN network id 12 for VN 95655a9b-5be9-4698-8ac6-0a834ab66254
2025-10-21 17:50:56,446 - INFO - Verifications in API Server for VN ctest-vn-41834465 passed
2025-10-21 17:50:56,446 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95655a9b-5be9-4698-8ac6-0a834ab66254
2025-10-21 17:50:56,471 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e63ed814-a5a2-4673-8b78-aade3d9aa099
2025-10-21 17:50:56,491 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e63ed814-a5a2-4673-8b78-aade3d9aa099
2025-10-21 17:50:56,508 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f817e9d7-93d6-4fd0-ad8a-108f3927c383
2025-10-21 17:50:56,541 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-41834465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31848794', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10765110107607484056', 'uuid-lslong': '9999691581633225300'}, 'enable': 'true', 'created': '2025-10-21T17:50:53', 'last-modified': '2025-10-21T17:50:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.024193'}
2025-10-21 17:50:56,559 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 17:50:56,559 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41834465 passed
2025-10-21 17:50:56,560 - DEBUG - ====Verifying policy data for ctest-vn-41834465 in API_Server ======
2025-10-21 17:50:56,560 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-21 17:50:56,576 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0432b868-be5a-4114-878d-f0d030d6816b
2025-10-21 17:50:56,610 - DEBUG - Requesting: http://10.0.0.38:8082/project/9b3e97ed-1826-4c96-bff1-38c24f892fc2
2025-10-21 17:50:56,730 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/95655a9b-5be9-4698-8ac6-0a834ab66254
2025-10-21 17:50:56,751 - DEBUG - ==>Verifying data for policy with id: ac6a28bf-1e0d-4acc-8e6f-bb7547d1d844, fqn: ['default-domain', 'ctest-TestBasicPolicy-31848794', 'ctest-policy-allow-all-13193684']
2025-10-21 17:50:56,751 - INFO - VN ctest-vn-41834465 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 17:50:56,751 - DEBUG - Verifying the vn in opserver
2025-10-21 17:50:56,752 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-41834465 virtual network link through opserver 10.0.0.38
2025-10-21 17:50:56,752 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-21 17:50:56,775 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-41834465', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-41834465?flat'}
2025-10-21 17:50:56,775 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31848794:ctest-vn-41834465 is found in opserver
2025-10-21 17:50:56,795 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 17:50:56,806 - DEBUG - VRF ids for VN ctest-vn-41834465: {}
2025-10-21 17:50:56,944 - DEBUG - Services list from nova: [