2025-10-24 10:46:45,314 - INFO - Domain Default found not creating
2025-10-24 10:46:45,472 - INFO - Project ctest-TestBasicPolicy-39134164 not found, creating it
2025-10-24 10:46:45,948 - INFO - Created Project:ctest-TestBasicPolicy-39134164, ID : 46edcffe-7a12-4d2c-a912-0e5503480dab
2025-10-24 10:46:47,558 - INFO - ================================================================================
2025-10-24 10:46:47,558 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-24 10:46:47,558 - 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-24 10:46:47,813 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-24 10:46:47,813 - INFO - Initial checks done. Running the testcase now
2025-10-24 10:46:47,813 - INFO -
2025-10-24 10:46:48,421 - DEBUG - Response for create_network : {'network': {'id': 'aa777b52-0099-4568-a323-0741df758868', 'name': 'ctest-vn-32786738', 'tenant_id': '46edcffe7a124d2ca9120e5503480dab', 'project_id': '46edcffe7a124d2ca9120e5503480dab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39134164', 'ctest-vn-32786738'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 10:46:48,615 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c8144f8-c1dc-47b5-b0ea-12e74953ee27', 'name': '', 'tenant_id': '46edcffe7a124d2ca9120e5503480dab', 'network_id': 'aa777b52-0099-4568-a323-0741df758868', 'ip_version': 4, 'cidr': '214.15.226.128/26', 'allocation_pools': [{'start': '214.15.226.130', 'end': '214.15.226.190'}], 'gateway_ip': '214.15.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.15.226.130', 'tags': [], 'project_id': '46edcffe7a124d2ca9120e5503480dab'}}
2025-10-24 10:46:48,634 - INFO - Created VN ctest-vn-32786738
2025-10-24 10:46:48,688 - DEBUG - VN ctest-vn-32786738 UUID is aa777b52-0099-4568-a323-0741df758868
2025-10-24 10:46:48,984 - DEBUG - Response for create_network : {'network': {'id': 'f5511941-7628-44b1-a7eb-f1010f05fcbc', 'name': 'ctest-vn-15166765', 'tenant_id': '46edcffe7a124d2ca9120e5503480dab', 'project_id': '46edcffe7a124d2ca9120e5503480dab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39134164', 'ctest-vn-15166765'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 10:46:49,175 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca3973b8-b42b-477e-bbe8-7008e9bc8345', 'name': '', 'tenant_id': '46edcffe7a124d2ca9120e5503480dab', 'network_id': 'f5511941-7628-44b1-a7eb-f1010f05fcbc', 'ip_version': 4, 'cidr': '124.233.16.0/26', 'allocation_pools': [{'start': '124.233.16.2', 'end': '124.233.16.62'}], 'gateway_ip': '124.233.16.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.233.16.2', 'tags': [], 'project_id': '46edcffe7a124d2ca9120e5503480dab'}}
2025-10-24 10:46:49,196 - INFO - Created VN ctest-vn-15166765
2025-10-24 10:46:49,248 - DEBUG - VN ctest-vn-15166765 UUID is f5511941-7628-44b1-a7eb-f1010f05fcbc
2025-10-24 10:46:49,362 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-32786738, 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-39134164:ctest-vn-15166765, 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-24 10:46:49,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa777b52-0099-4568-a323-0741df758868', 'name': 'ctest-vn-32786738', 'tenant_id': '46edcffe7a124d2ca9120e5503480dab', 'project_id': '46edcffe7a124d2ca9120e5503480dab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c8144f8-c1dc-47b5-b0ea-12e74953ee27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39134164', 'ctest-vn-32786738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39134164', 'ctest-policy-allow-all-74565572']], 'subnet_ipam': [{'subnet_cidr': '214.15.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 10:46:49,944 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5511941-7628-44b1-a7eb-f1010f05fcbc', 'name': 'ctest-vn-15166765', 'tenant_id': '46edcffe7a124d2ca9120e5503480dab', 'project_id': '46edcffe7a124d2ca9120e5503480dab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca3973b8-b42b-477e-bbe8-7008e9bc8345'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39134164', 'ctest-vn-15166765'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39134164', 'ctest-policy-allow-all-74565572']], 'subnet_ipam': [{'subnet_cidr': '124.233.16.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 10:46:50,098 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 10:46:50,445 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 10:46:50,479 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7db71b69-ec52-463d-b1ea-ee1dd30569eb
2025-10-24 10:46:50,492 - DEBUG - Requesting: http://10.0.0.254:8082/project/46edcffe-7a12-4d2c-a912-0e5503480dab
2025-10-24 10:46:50,567 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa777b52-0099-4568-a323-0741df758868
2025-10-24 10:46:50,579 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa777b52-0099-4568-a323-0741df758868
2025-10-24 10:46:50,590 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e55dfc41-6427-4222-9510-0891f14c8e0f
2025-10-24 10:46:50,597 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e55dfc41-6427-4222-9510-0891f14c8e0f
2025-10-24 10:46:50,605 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/63eaafb9-8672-447c-816a-a034fa85d261
2025-10-24 10:46:50,612 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 10:46:50,612 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa777b52-0099-4568-a323-0741df758868
2025-10-24 10:46:50,621 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e55dfc41-6427-4222-9510-0891f14c8e0f
2025-10-24 10:46:50,638 - INFO - Verified VN network id 11 for VN aa777b52-0099-4568-a323-0741df758868
2025-10-24 10:46:50,638 - INFO - Verifications in API Server for VN ctest-vn-32786738 passed
2025-10-24 10:46:50,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa777b52-0099-4568-a323-0741df758868
2025-10-24 10:46:50,649 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e55dfc41-6427-4222-9510-0891f14c8e0f
2025-10-24 10:46:50,658 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e55dfc41-6427-4222-9510-0891f14c8e0f
2025-10-24 10:46:50,665 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/63eaafb9-8672-447c-816a-a034fa85d261
2025-10-24 10:46:50,676 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-32786738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39134164', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12283422100803896680', 'uuid-lslong': '11755247431870417000'}, 'enable': 'true', 'created': '2025-10-24T10:46:48', 'last-modified': '2025-10-24T10:46:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042493'}
2025-10-24 10:46:50,682 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 10:46:50,682 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32786738 passed
2025-10-24 10:46:50,682 - DEBUG - ====Verifying policy data for ctest-vn-32786738 in API_Server ======
2025-10-24 10:46:50,682 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 10:46:50,688 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7db71b69-ec52-463d-b1ea-ee1dd30569eb
2025-10-24 10:46:50,698 - DEBUG - Requesting: http://10.0.0.254:8082/project/46edcffe-7a12-4d2c-a912-0e5503480dab
2025-10-24 10:46:50,771 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa777b52-0099-4568-a323-0741df758868
2025-10-24 10:46:50,780 - DEBUG - ==>Verifying data for policy with id: db8abfe3-5c6a-4833-b38e-a5ba90774119, fqn: ['default-domain', 'ctest-TestBasicPolicy-39134164', 'ctest-policy-allow-all-74565572']
2025-10-24 10:46:50,780 - INFO - VN ctest-vn-32786738 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 10:46:50,780 - DEBUG - Verifying the vn in opserver
2025-10-24 10:46:50,780 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-32786738 virtual network link through opserver 10.0.0.254
2025-10-24 10:46:50,780 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 10:46:51,116 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 10:46:51,177 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-32786738', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-32786738?flat'}
2025-10-24 10:46:51,177 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-32786738 is found in opserver
2025-10-24 10:46:51,186 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 10:46:51,191 - DEBUG - VRF ids for VN ctest-vn-32786738: {}
2025-10-24 10:46:51,191 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 10:46:51,197 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7db71b69-ec52-463d-b1ea-ee1dd30569eb
2025-10-24 10:46:51,208 - DEBUG - Requesting: http://10.0.0.254:8082/project/46edcffe-7a12-4d2c-a912-0e5503480dab
2025-10-24 10:46:51,279 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5511941-7628-44b1-a7eb-f1010f05fcbc
2025-10-24 10:46:51,297 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5511941-7628-44b1-a7eb-f1010f05fcbc
2025-10-24 10:46:51,308 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e999c8cf-5f73-46af-8e67-5ba1ef0dd548
2025-10-24 10:46:51,317 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e999c8cf-5f73-46af-8e67-5ba1ef0dd548
2025-10-24 10:46:51,325 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/69fe38e7-7b88-4056-8c4d-ab9b4c7033e2
2025-10-24 10:46:51,334 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 10:46:51,334 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5511941-7628-44b1-a7eb-f1010f05fcbc
2025-10-24 10:46:51,342 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e999c8cf-5f73-46af-8e67-5ba1ef0dd548
2025-10-24 10:46:51,356 - INFO - Verified VN network id 12 for VN f5511941-7628-44b1-a7eb-f1010f05fcbc
2025-10-24 10:46:51,356 - INFO - Verifications in API Server for VN ctest-vn-15166765 passed
2025-10-24 10:46:51,356 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5511941-7628-44b1-a7eb-f1010f05fcbc
2025-10-24 10:46:51,367 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e999c8cf-5f73-46af-8e67-5ba1ef0dd548
2025-10-24 10:46:51,376 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e999c8cf-5f73-46af-8e67-5ba1ef0dd548
2025-10-24 10:46:51,385 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/69fe38e7-7b88-4056-8c4d-ab9b4c7033e2
2025-10-24 10:46:51,397 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-15166765', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39134164', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17676937781351826609', 'uuid-lslong': '12100029810710281404'}, 'enable': 'true', 'created': '2025-10-24T10:46:48', 'last-modified': '2025-10-24T10:46:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.525926'}
2025-10-24 10:46:51,404 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 10:46:51,405 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15166765 passed
2025-10-24 10:46:51,405 - DEBUG - ====Verifying policy data for ctest-vn-15166765 in API_Server ======
2025-10-24 10:46:51,405 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 10:46:51,489 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7db71b69-ec52-463d-b1ea-ee1dd30569eb
2025-10-24 10:46:51,500 - DEBUG - Requesting: http://10.0.0.254:8082/project/46edcffe-7a12-4d2c-a912-0e5503480dab
2025-10-24 10:46:51,573 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5511941-7628-44b1-a7eb-f1010f05fcbc
2025-10-24 10:46:51,583 - DEBUG - ==>Verifying data for policy with id: db8abfe3-5c6a-4833-b38e-a5ba90774119, fqn: ['default-domain', 'ctest-TestBasicPolicy-39134164', 'ctest-policy-allow-all-74565572']
2025-10-24 10:46:51,583 - INFO - VN ctest-vn-15166765 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 10:46:51,583 - DEBUG - Verifying the vn in opserver
2025-10-24 10:46:51,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-15166765 virtual network link through opserver 10.0.0.254
2025-10-24 10:46:51,583 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 10:46:51,594 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-15166765', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-15166765?flat'}
2025-10-24 10:46:51,594 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39134164:ctest-vn-15166765 is found in opserver
2025-10-24 10:46:51,604 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 10:46:51,608 - DEBUG - VRF ids for VN ctest-vn-15166765: {}
2025-10-24 10:46:51,672 - DEBUG - Services list from nova: [