2025-11-13 15:29:38,181 - INFO - Domain Default found not creating
2025-11-13 15:29:38,315 - INFO - Project ctest-TestBasicPolicy-84113380 not found, creating it
2025-11-13 15:29:38,742 - INFO - Created Project:ctest-TestBasicPolicy-84113380, ID : 7d9d0faf-4434-4785-9a5c-dd14230c3938
2025-11-13 15:29:40,171 - INFO - ================================================================================
2025-11-13 15:29:40,171 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 15:29:40,171 - 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-11-13 15:29:40,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-11-13 15:29:40,423 - INFO - Initial checks done. Running the testcase now
2025-11-13 15:29:40,423 - INFO -
2025-11-13 15:29:40,948 - DEBUG - Response for create_network : {'network': {'id': 'c41cf710-ccd6-4a6a-801a-75a3dec5a581', 'name': 'ctest-vn-75273832', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'project_id': '7d9d0faf443447859a5cdd14230c3938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-vn-75273832'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 15:29:41,095 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d2df9fb-db39-4410-bf9e-0f97738e2317', 'name': '', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'network_id': 'c41cf710-ccd6-4a6a-801a-75a3dec5a581', 'ip_version': 4, 'cidr': '165.228.49.192/26', 'allocation_pools': [{'start': '165.228.49.194', 'end': '165.228.49.254'}], 'gateway_ip': '165.228.49.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.228.49.194', 'tags': [], 'project_id': '7d9d0faf443447859a5cdd14230c3938'}}
2025-11-13 15:29:41,109 - INFO - Created VN ctest-vn-75273832
2025-11-13 15:29:41,161 - DEBUG - VN ctest-vn-75273832 UUID is c41cf710-ccd6-4a6a-801a-75a3dec5a581
2025-11-13 15:29:41,461 - DEBUG - Response for create_network : {'network': {'id': '3730b99e-b939-4512-aca6-6e51b11a8faf', 'name': 'ctest-vn-61222963', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'project_id': '7d9d0faf443447859a5cdd14230c3938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-vn-61222963'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 15:29:41,639 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccb1adbf-62dc-4d43-86c9-66c031e9e2ab', 'name': '', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'network_id': '3730b99e-b939-4512-aca6-6e51b11a8faf', 'ip_version': 4, 'cidr': '16.62.227.192/26', 'allocation_pools': [{'start': '16.62.227.194', 'end': '16.62.227.254'}], 'gateway_ip': '16.62.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.62.227.194', 'tags': [], 'project_id': '7d9d0faf443447859a5cdd14230c3938'}}
2025-11-13 15:29:41,652 - INFO - Created VN ctest-vn-61222963
2025-11-13 15:29:41,702 - DEBUG - VN ctest-vn-61222963 UUID is 3730b99e-b939-4512-aca6-6e51b11a8faf
2025-11-13 15:29:41,842 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832, 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-84113380:ctest-vn-61222963, 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-11-13 15:29:42,127 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c41cf710-ccd6-4a6a-801a-75a3dec5a581', 'name': 'ctest-vn-75273832', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'project_id': '7d9d0faf443447859a5cdd14230c3938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d2df9fb-db39-4410-bf9e-0f97738e2317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-vn-75273832'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-policy-allow-all-76984670']], 'subnet_ipam': [{'subnet_cidr': '165.228.49.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 15:29:42,385 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3730b99e-b939-4512-aca6-6e51b11a8faf', 'name': 'ctest-vn-61222963', 'tenant_id': '7d9d0faf443447859a5cdd14230c3938', 'project_id': '7d9d0faf443447859a5cdd14230c3938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccb1adbf-62dc-4d43-86c9-66c031e9e2ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-vn-61222963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-policy-allow-all-76984670']], 'subnet_ipam': [{'subnet_cidr': '16.62.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 15:29:42,530 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 15:29:42,854 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 15:29:42,880 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5
2025-11-13 15:29:42,890 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938
2025-11-13 15:29:42,963 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581
2025-11-13 15:29:42,974 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581
2025-11-13 15:29:42,986 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6
2025-11-13 15:29:42,993 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6
2025-11-13 15:29:42,999 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/48608391-3807-4c4b-ab7f-c89eec5dff0b
2025-11-13 15:29:43,004 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 15:29:43,004 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581
2025-11-13 15:29:43,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6
2025-11-13 15:29:43,023 - INFO - Verified VN network id 11 for VN c41cf710-ccd6-4a6a-801a-75a3dec5a581
2025-11-13 15:29:43,023 - INFO - Verifications in API Server for VN ctest-vn-75273832 passed
2025-11-13 15:29:43,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581
2025-11-13 15:29:43,030 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6
2025-11-13 15:29:43,034 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/14c9337c-04eb-4b40-8037-79b58d93bfd6
2025-11-13 15:29:43,039 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/48608391-3807-4c4b-ab7f-c89eec5dff0b
2025-11-13 15:29:43,048 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84113380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14131441382309907050', 'uuid-lslong': '9230819732926866817'}, 'enable': 'true', 'created': '2025-11-13T15:29:40', 'last-modified': '2025-11-13T15:29:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940235'}
2025-11-13 15:29:43,053 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 15:29:43,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75273832 passed
2025-11-13 15:29:43,053 - DEBUG - ====Verifying policy data for ctest-vn-75273832 in API_Server ======
2025-11-13 15:29:43,053 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 15:29:43,058 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5
2025-11-13 15:29:43,066 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938
2025-11-13 15:29:43,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c41cf710-ccd6-4a6a-801a-75a3dec5a581
2025-11-13 15:29:43,142 - DEBUG - ==>Verifying data for policy with id: d67f317d-f223-47dc-9aa7-78dac849a3dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-policy-allow-all-76984670']
2025-11-13 15:29:43,142 - INFO - VN ctest-vn-75273832 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 15:29:43,142 - DEBUG - Verifying the vn in opserver
2025-11-13 15:29:43,142 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832 virtual network link through opserver 10.0.0.38
2025-11-13 15:29:43,142 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 15:29:43,453 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 15:29:43,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832?flat'}
2025-11-13 15:29:43,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-75273832 is found in opserver
2025-11-13 15:29:43,509 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 15:29:43,513 - DEBUG - VRF ids for VN ctest-vn-75273832: {}
2025-11-13 15:29:43,513 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 15:29:43,517 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5
2025-11-13 15:29:43,526 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938
2025-11-13 15:29:43,599 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf
2025-11-13 15:29:43,611 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf
2025-11-13 15:29:43,619 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8
2025-11-13 15:29:43,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8
2025-11-13 15:29:43,631 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e0445f1-2462-4df1-a63e-61ad0a9b479c
2025-11-13 15:29:43,637 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 15:29:43,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf
2025-11-13 15:29:43,644 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8
2025-11-13 15:29:43,655 - INFO - Verified VN network id 12 for VN 3730b99e-b939-4512-aca6-6e51b11a8faf
2025-11-13 15:29:43,655 - INFO - Verifications in API Server for VN ctest-vn-61222963 passed
2025-11-13 15:29:43,655 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf
2025-11-13 15:29:43,662 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8
2025-11-13 15:29:43,667 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cff4c0a-93af-438d-948e-a350a2e05ae8
2025-11-13 15:29:43,673 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e0445f1-2462-4df1-a63e-61ad0a9b479c
2025-11-13 15:29:43,682 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84113380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3976882562331657490', 'uuid-lslong': '12440752317800288175'}, 'enable': 'true', 'created': '2025-11-13T15:29:41', 'last-modified': '2025-11-13T15:29:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367709'}
2025-11-13 15:29:43,687 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 15:29:43,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61222963 passed
2025-11-13 15:29:43,688 - DEBUG - ====Verifying policy data for ctest-vn-61222963 in API_Server ======
2025-11-13 15:29:43,688 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 15:29:43,692 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aa8e3cec-159b-4377-ac93-5461501c0fa5
2025-11-13 15:29:43,702 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d9d0faf-4434-4785-9a5c-dd14230c3938
2025-11-13 15:29:43,768 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3730b99e-b939-4512-aca6-6e51b11a8faf
2025-11-13 15:29:43,776 - DEBUG - ==>Verifying data for policy with id: d67f317d-f223-47dc-9aa7-78dac849a3dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-84113380', 'ctest-policy-allow-all-76984670']
2025-11-13 15:29:43,777 - INFO - VN ctest-vn-61222963 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 15:29:43,777 - DEBUG - Verifying the vn in opserver
2025-11-13 15:29:43,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963 virtual network link through opserver 10.0.0.38
2025-11-13 15:29:43,777 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 15:29:43,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963?flat'}
2025-11-13 15:29:43,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84113380:ctest-vn-61222963 is found in opserver
2025-11-13 15:29:43,792 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 15:29:43,796 - DEBUG - VRF ids for VN ctest-vn-61222963: {}
2025-11-13 15:29:43,841 - DEBUG - Services list from nova: [