2025-10-13 16:55:51,043 - INFO - Domain Default found not creating
2025-10-13 16:55:51,208 - INFO - Project ctest-TestBasicPolicy-00566413 not found, creating it
2025-10-13 16:55:51,681 - INFO - Created Project:ctest-TestBasicPolicy-00566413, ID : 7d1f3d94-15f9-4077-b5d1-27e9455f080c
2025-10-13 16:55:53,347 - INFO - ================================================================================
2025-10-13 16:55:53,348 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-13 16:55:53,348 - 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-13 16:55:53,609 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-10-13 16:55:53,609 - INFO - Initial checks done. Running the testcase now
2025-10-13 16:55:53,610 - INFO -
2025-10-13 16:55:54,239 - DEBUG - Response for create_network : {'network': {'id': '27b56088-6bf2-40e0-a166-78676fa5ea67', 'name': 'ctest-vn-26422405', 'tenant_id': '7d1f3d9415f94077b5d127e9455f080c', 'project_id': '7d1f3d9415f94077b5d127e9455f080c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00566413', 'ctest-vn-26422405'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 16:55:54,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ef84263-5809-43c5-8047-1feba0ffac69', 'name': '', 'tenant_id': '7d1f3d9415f94077b5d127e9455f080c', 'network_id': '27b56088-6bf2-40e0-a166-78676fa5ea67', 'ip_version': 4, 'cidr': '85.100.111.128/26', 'allocation_pools': [{'start': '85.100.111.130', 'end': '85.100.111.190'}], 'gateway_ip': '85.100.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.100.111.130', 'tags': [], 'project_id': '7d1f3d9415f94077b5d127e9455f080c'}}
2025-10-13 16:55:54,414 - INFO - Created VN ctest-vn-26422405
2025-10-13 16:55:54,467 - DEBUG - VN ctest-vn-26422405 UUID is 27b56088-6bf2-40e0-a166-78676fa5ea67
2025-10-13 16:55:54,814 - DEBUG - Response for create_network : {'network': {'id': 'e68231dd-635b-432a-989d-fba7bb0ba6ba', 'name': 'ctest-vn-81439312', 'tenant_id': '7d1f3d9415f94077b5d127e9455f080c', 'project_id': '7d1f3d9415f94077b5d127e9455f080c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00566413', 'ctest-vn-81439312'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 16:55:54,986 - DEBUG - Response for create_subnet : {'subnet': {'id': 'baec5383-1dbc-467d-8c41-5136a1d5ee4c', 'name': '', 'tenant_id': '7d1f3d9415f94077b5d127e9455f080c', 'network_id': 'e68231dd-635b-432a-989d-fba7bb0ba6ba', 'ip_version': 4, 'cidr': '147.117.48.0/26', 'allocation_pools': [{'start': '147.117.48.2', 'end': '147.117.48.62'}], 'gateway_ip': '147.117.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.117.48.2', 'tags': [], 'project_id': '7d1f3d9415f94077b5d127e9455f080c'}}
2025-10-13 16:55:55,007 - INFO - Created VN ctest-vn-81439312
2025-10-13 16:55:55,063 - DEBUG - VN ctest-vn-81439312 UUID is e68231dd-635b-432a-989d-fba7bb0ba6ba
2025-10-13 16:55:55,183 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-26422405, 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-00566413:ctest-vn-81439312, 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-13 16:55:55,507 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27b56088-6bf2-40e0-a166-78676fa5ea67', 'name': 'ctest-vn-26422405', 'tenant_id': '7d1f3d9415f94077b5d127e9455f080c', 'project_id': '7d1f3d9415f94077b5d127e9455f080c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ef84263-5809-43c5-8047-1feba0ffac69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00566413', 'ctest-vn-26422405'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00566413', 'ctest-policy-allow-all-26745498']], 'subnet_ipam': [{'subnet_cidr': '85.100.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 16:55:55,743 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e68231dd-635b-432a-989d-fba7bb0ba6ba', 'name': 'ctest-vn-81439312', 'tenant_id': '7d1f3d9415f94077b5d127e9455f080c', 'project_id': '7d1f3d9415f94077b5d127e9455f080c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['baec5383-1dbc-467d-8c41-5136a1d5ee4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00566413', 'ctest-vn-81439312'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00566413', 'ctest-policy-allow-all-26745498']], 'subnet_ipam': [{'subnet_cidr': '147.117.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 16:55:55,907 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 16:55:56,206 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 16:55:56,235 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c0e85966-66ef-4179-a355-4607ebdd7b22
2025-10-13 16:55:56,249 - DEBUG - Requesting: http://10.0.0.254:8082/project/7d1f3d94-15f9-4077-b5d1-27e9455f080c
2025-10-13 16:55:56,328 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/27b56088-6bf2-40e0-a166-78676fa5ea67
2025-10-13 16:55:56,343 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/27b56088-6bf2-40e0-a166-78676fa5ea67
2025-10-13 16:55:56,352 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/873bca93-5f4a-49c2-8472-d87febeafdd3
2025-10-13 16:55:56,360 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/873bca93-5f4a-49c2-8472-d87febeafdd3
2025-10-13 16:55:56,368 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0d735395-fcdb-45e7-9a9f-05806c196c40
2025-10-13 16:55:56,374 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 16:55:56,374 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/27b56088-6bf2-40e0-a166-78676fa5ea67
2025-10-13 16:55:56,384 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/873bca93-5f4a-49c2-8472-d87febeafdd3
2025-10-13 16:55:56,400 - INFO - Verified VN network id 12 for VN 27b56088-6bf2-40e0-a166-78676fa5ea67
2025-10-13 16:55:56,400 - INFO - Verifications in API Server for VN ctest-vn-26422405 passed
2025-10-13 16:55:56,400 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/27b56088-6bf2-40e0-a166-78676fa5ea67
2025-10-13 16:55:56,410 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/873bca93-5f4a-49c2-8472-d87febeafdd3
2025-10-13 16:55:56,417 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/873bca93-5f4a-49c2-8472-d87febeafdd3
2025-10-13 16:55:56,426 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0d735395-fcdb-45e7-9a9f-05806c196c40
2025-10-13 16:55:56,439 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-26422405', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00566413', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2861299277306675424', 'uuid-lslong': '11630115473380993639'}, 'enable': 'true', 'created': '2025-10-13T16:55:54', 'last-modified': '2025-10-13T16:55:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955426'}
2025-10-13 16:55:56,446 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 16:55:56,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26422405 passed
2025-10-13 16:55:56,446 - DEBUG - ====Verifying policy data for ctest-vn-26422405 in API_Server ======
2025-10-13 16:55:56,446 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 16:55:56,454 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c0e85966-66ef-4179-a355-4607ebdd7b22
2025-10-13 16:55:56,467 - DEBUG - Requesting: http://10.0.0.254:8082/project/7d1f3d94-15f9-4077-b5d1-27e9455f080c
2025-10-13 16:55:56,537 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/27b56088-6bf2-40e0-a166-78676fa5ea67
2025-10-13 16:55:56,548 - DEBUG - ==>Verifying data for policy with id: 99b9f495-15ea-46d4-81bc-bf13844db429, fqn: ['default-domain', 'ctest-TestBasicPolicy-00566413', 'ctest-policy-allow-all-26745498']
2025-10-13 16:55:56,548 - INFO - VN ctest-vn-26422405 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 16:55:56,548 - DEBUG - Verifying the vn in opserver
2025-10-13 16:55:56,549 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-26422405 virtual network link through opserver 10.0.0.254
2025-10-13 16:55:56,549 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 16:55:56,844 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 16:55:56,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-26422405', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-26422405?flat'}
2025-10-13 16:55:56,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-26422405 is found in opserver
2025-10-13 16:55:56,914 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 16:55:56,918 - DEBUG - VRF ids for VN ctest-vn-26422405: {}
2025-10-13 16:55:56,919 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 16:55:56,924 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c0e85966-66ef-4179-a355-4607ebdd7b22
2025-10-13 16:55:56,935 - DEBUG - Requesting: http://10.0.0.254:8082/project/7d1f3d94-15f9-4077-b5d1-27e9455f080c
2025-10-13 16:55:57,008 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e68231dd-635b-432a-989d-fba7bb0ba6ba
2025-10-13 16:55:57,020 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e68231dd-635b-432a-989d-fba7bb0ba6ba
2025-10-13 16:55:57,029 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/023d0935-31d1-4d0f-a687-80da9c20b502
2025-10-13 16:55:57,037 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/023d0935-31d1-4d0f-a687-80da9c20b502
2025-10-13 16:55:57,044 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6e7e7cc-78a3-4397-a908-7d8f200abda6
2025-10-13 16:55:57,052 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 16:55:57,052 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e68231dd-635b-432a-989d-fba7bb0ba6ba
2025-10-13 16:55:57,062 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/023d0935-31d1-4d0f-a687-80da9c20b502
2025-10-13 16:55:57,078 - INFO - Verified VN network id 13 for VN e68231dd-635b-432a-989d-fba7bb0ba6ba
2025-10-13 16:55:57,078 - INFO - Verifications in API Server for VN ctest-vn-81439312 passed
2025-10-13 16:55:57,078 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e68231dd-635b-432a-989d-fba7bb0ba6ba
2025-10-13 16:55:57,090 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/023d0935-31d1-4d0f-a687-80da9c20b502
2025-10-13 16:55:57,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/023d0935-31d1-4d0f-a687-80da9c20b502
2025-10-13 16:55:57,105 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6e7e7cc-78a3-4397-a908-7d8f200abda6
2025-10-13 16:55:57,121 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-81439312', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00566413', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16609893202620269354', 'uuid-lslong': '10997222562924832442'}, 'enable': 'true', 'created': '2025-10-13T16:55:54', 'last-modified': '2025-10-13T16:55:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.410661'}
2025-10-13 16:55:57,127 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 16:55:57,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81439312 passed
2025-10-13 16:55:57,127 - DEBUG - ====Verifying policy data for ctest-vn-81439312 in API_Server ======
2025-10-13 16:55:57,127 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 16:55:57,132 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c0e85966-66ef-4179-a355-4607ebdd7b22
2025-10-13 16:55:57,142 - DEBUG - Requesting: http://10.0.0.254:8082/project/7d1f3d94-15f9-4077-b5d1-27e9455f080c
2025-10-13 16:55:57,212 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e68231dd-635b-432a-989d-fba7bb0ba6ba
2025-10-13 16:55:57,222 - DEBUG - ==>Verifying data for policy with id: 99b9f495-15ea-46d4-81bc-bf13844db429, fqn: ['default-domain', 'ctest-TestBasicPolicy-00566413', 'ctest-policy-allow-all-26745498']
2025-10-13 16:55:57,222 - INFO - VN ctest-vn-81439312 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 16:55:57,222 - DEBUG - Verifying the vn in opserver
2025-10-13 16:55:57,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-81439312 virtual network link through opserver 10.0.0.254
2025-10-13 16:55:57,222 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 16:55:57,233 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-81439312', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-81439312?flat'}
2025-10-13 16:55:57,233 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00566413:ctest-vn-81439312 is found in opserver
2025-10-13 16:55:57,248 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 16:55:57,252 - DEBUG - VRF ids for VN ctest-vn-81439312: {}
2025-10-13 16:55:57,317 - DEBUG - Services list from nova: [