2025-09-02 13:18:10,508 - INFO - Domain Default found not creating
2025-09-02 13:18:10,656 - INFO - Project ctest-TestBasicPolicy-87298075 not found, creating it
2025-09-02 13:18:11,087 - INFO - Created Project:ctest-TestBasicPolicy-87298075, ID : e586c710-2269-4552-8fc8-8ae0895a43a4
2025-09-02 13:18:12,613 - INFO - ================================================================================
2025-09-02 13:18:12,614 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-02 13:18:12,614 - 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-09-02 13:18:12,868 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-09-02 13:18:12,868 - INFO - Initial checks done. Running the testcase now
2025-09-02 13:18:12,868 - INFO -
2025-09-02 13:18:13,477 - DEBUG - Response for create_network : {'network': {'id': 'fe8daf22-d2f5-4ca9-9b0b-be0e22100dec', 'name': 'ctest-vn-66977866', 'tenant_id': 'e586c710226945528fc88ae0895a43a4', 'project_id': 'e586c710226945528fc88ae0895a43a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87298075', 'ctest-vn-66977866'], 'port_security_enabled': True, 'description': ''}}
2025-09-02 13:18:13,671 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d1cb6dd-f3d6-4a1f-b5d5-667fd3fa874b', 'name': '', 'tenant_id': 'e586c710226945528fc88ae0895a43a4', 'network_id': 'fe8daf22-d2f5-4ca9-9b0b-be0e22100dec', 'ip_version': 4, 'cidr': '186.159.187.64/26', 'allocation_pools': [{'start': '186.159.187.66', 'end': '186.159.187.126'}], 'gateway_ip': '186.159.187.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.159.187.66', 'tags': [], 'project_id': 'e586c710226945528fc88ae0895a43a4'}}
2025-09-02 13:18:13,689 - INFO - Created VN ctest-vn-66977866
2025-09-02 13:18:13,743 - DEBUG - VN ctest-vn-66977866 UUID is fe8daf22-d2f5-4ca9-9b0b-be0e22100dec
2025-09-02 13:18:14,042 - DEBUG - Response for create_network : {'network': {'id': '71c41049-fc3f-44b7-ad74-73dc65de2336', 'name': 'ctest-vn-17610753', 'tenant_id': 'e586c710226945528fc88ae0895a43a4', 'project_id': 'e586c710226945528fc88ae0895a43a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87298075', 'ctest-vn-17610753'], 'port_security_enabled': True, 'description': ''}}
2025-09-02 13:18:14,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ee13566-55b9-4117-8377-fdc37c72d018', 'name': '', 'tenant_id': 'e586c710226945528fc88ae0895a43a4', 'network_id': '71c41049-fc3f-44b7-ad74-73dc65de2336', 'ip_version': 4, 'cidr': '18.120.255.192/26', 'allocation_pools': [{'start': '18.120.255.194', 'end': '18.120.255.254'}], 'gateway_ip': '18.120.255.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.120.255.194', 'tags': [], 'project_id': 'e586c710226945528fc88ae0895a43a4'}}
2025-09-02 13:18:14,258 - INFO - Created VN ctest-vn-17610753
2025-09-02 13:18:14,311 - DEBUG - VN ctest-vn-17610753 UUID is 71c41049-fc3f-44b7-ad74-73dc65de2336
2025-09-02 13:18:14,429 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-66977866, 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-87298075:ctest-vn-17610753, 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-09-02 13:18:14,732 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe8daf22-d2f5-4ca9-9b0b-be0e22100dec', 'name': 'ctest-vn-66977866', 'tenant_id': 'e586c710226945528fc88ae0895a43a4', 'project_id': 'e586c710226945528fc88ae0895a43a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d1cb6dd-f3d6-4a1f-b5d5-667fd3fa874b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87298075', 'ctest-vn-66977866'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87298075', 'ctest-policy-allow-all-02272938']], 'subnet_ipam': [{'subnet_cidr': '186.159.187.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-02 13:18:15,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71c41049-fc3f-44b7-ad74-73dc65de2336', 'name': 'ctest-vn-17610753', 'tenant_id': 'e586c710226945528fc88ae0895a43a4', 'project_id': 'e586c710226945528fc88ae0895a43a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ee13566-55b9-4117-8377-fdc37c72d018'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87298075', 'ctest-vn-17610753'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87298075', 'ctest-policy-allow-all-02272938']], 'subnet_ipam': [{'subnet_cidr': '18.120.255.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-02 13:18:15,151 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-02 13:18:15,491 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-02 13:18:15,519 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6dc7dba-d79e-4bed-97b8-b67cf5b5e597
2025-09-02 13:18:15,532 - DEBUG - Requesting: http://10.0.0.50:8082/project/e586c710-2269-4552-8fc8-8ae0895a43a4
2025-09-02 13:18:15,607 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe8daf22-d2f5-4ca9-9b0b-be0e22100dec
2025-09-02 13:18:15,618 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe8daf22-d2f5-4ca9-9b0b-be0e22100dec
2025-09-02 13:18:15,628 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b5503e51-66fd-4b4c-91f9-893032ba76cd
2025-09-02 13:18:15,636 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b5503e51-66fd-4b4c-91f9-893032ba76cd
2025-09-02 13:18:15,643 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/276c39a1-3ba1-4bab-8fe7-72b0d75bb793
2025-09-02 13:18:15,650 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-02 13:18:15,650 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe8daf22-d2f5-4ca9-9b0b-be0e22100dec
2025-09-02 13:18:15,658 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b5503e51-66fd-4b4c-91f9-893032ba76cd
2025-09-02 13:18:15,672 - INFO - Verified VN network id 11 for VN fe8daf22-d2f5-4ca9-9b0b-be0e22100dec
2025-09-02 13:18:15,672 - INFO - Verifications in API Server for VN ctest-vn-66977866 passed
2025-09-02 13:18:15,672 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe8daf22-d2f5-4ca9-9b0b-be0e22100dec
2025-09-02 13:18:15,682 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b5503e51-66fd-4b4c-91f9-893032ba76cd
2025-09-02 13:18:15,689 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b5503e51-66fd-4b4c-91f9-893032ba76cd
2025-09-02 13:18:15,696 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/276c39a1-3ba1-4bab-8fe7-72b0d75bb793
2025-09-02 13:18:15,710 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-66977866', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87298075', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18342509421452938409', 'uuid-lslong': '11172232268532944364'}, 'enable': 'true', 'created': '2025-09-02T13:18:13', 'last-modified': '2025-09-02T13:18:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005524'}
2025-09-02 13:18:15,715 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-02 13:18:15,715 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66977866 passed
2025-09-02 13:18:15,715 - DEBUG - ====Verifying policy data for ctest-vn-66977866 in API_Server ======
2025-09-02 13:18:15,716 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-02 13:18:15,721 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6dc7dba-d79e-4bed-97b8-b67cf5b5e597
2025-09-02 13:18:15,732 - DEBUG - Requesting: http://10.0.0.50:8082/project/e586c710-2269-4552-8fc8-8ae0895a43a4
2025-09-02 13:18:15,807 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe8daf22-d2f5-4ca9-9b0b-be0e22100dec
2025-09-02 13:18:15,816 - DEBUG - ==>Verifying data for policy with id: 91859124-240f-4702-9d9c-95be3cbb8c6f, fqn: ['default-domain', 'ctest-TestBasicPolicy-87298075', 'ctest-policy-allow-all-02272938']
2025-09-02 13:18:15,816 - INFO - VN ctest-vn-66977866 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-02 13:18:15,817 - DEBUG - Verifying the vn in opserver
2025-09-02 13:18:15,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-66977866 virtual network link through opserver 10.0.0.50
2025-09-02 13:18:15,817 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-02 13:18:16,147 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-02 13:18:16,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-66977866', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-66977866?flat'}
2025-09-02 13:18:16,202 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-66977866 is found in opserver
2025-09-02 13:18:16,212 - DEBUG - Do not have enough data to verify VN in agent
2025-09-02 13:18:16,217 - DEBUG - VRF ids for VN ctest-vn-66977866: {}
2025-09-02 13:18:16,217 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-02 13:18:16,223 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6dc7dba-d79e-4bed-97b8-b67cf5b5e597
2025-09-02 13:18:16,233 - DEBUG - Requesting: http://10.0.0.50:8082/project/e586c710-2269-4552-8fc8-8ae0895a43a4
2025-09-02 13:18:16,299 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71c41049-fc3f-44b7-ad74-73dc65de2336
2025-09-02 13:18:16,311 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71c41049-fc3f-44b7-ad74-73dc65de2336
2025-09-02 13:18:16,319 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b45e7f47-8b28-4cd4-b768-757d2273b8a0
2025-09-02 13:18:16,326 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b45e7f47-8b28-4cd4-b768-757d2273b8a0
2025-09-02 13:18:16,333 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/342ebb11-0ce3-4127-9c17-dbbb72afdd2c
2025-09-02 13:18:16,340 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-02 13:18:16,340 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71c41049-fc3f-44b7-ad74-73dc65de2336
2025-09-02 13:18:16,350 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b45e7f47-8b28-4cd4-b768-757d2273b8a0
2025-09-02 13:18:16,364 - INFO - Verified VN network id 12 for VN 71c41049-fc3f-44b7-ad74-73dc65de2336
2025-09-02 13:18:16,365 - INFO - Verifications in API Server for VN ctest-vn-17610753 passed
2025-09-02 13:18:16,365 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71c41049-fc3f-44b7-ad74-73dc65de2336
2025-09-02 13:18:16,373 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b45e7f47-8b28-4cd4-b768-757d2273b8a0
2025-09-02 13:18:16,379 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b45e7f47-8b28-4cd4-b768-757d2273b8a0
2025-09-02 13:18:16,385 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/342ebb11-0ce3-4127-9c17-dbbb72afdd2c
2025-09-02 13:18:16,396 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-17610753', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87298075', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8197695131671807159', 'uuid-lslong': '12498742256299025206'}, 'enable': 'true', 'created': '2025-09-02T13:18:14', 'last-modified': '2025-09-02T13:18:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.460503'}
2025-09-02 13:18:16,402 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-02 13:18:16,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17610753 passed
2025-09-02 13:18:16,402 - DEBUG - ====Verifying policy data for ctest-vn-17610753 in API_Server ======
2025-09-02 13:18:16,402 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-02 13:18:16,408 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6dc7dba-d79e-4bed-97b8-b67cf5b5e597
2025-09-02 13:18:16,417 - DEBUG - Requesting: http://10.0.0.50:8082/project/e586c710-2269-4552-8fc8-8ae0895a43a4
2025-09-02 13:18:16,487 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71c41049-fc3f-44b7-ad74-73dc65de2336
2025-09-02 13:18:16,495 - DEBUG - ==>Verifying data for policy with id: 91859124-240f-4702-9d9c-95be3cbb8c6f, fqn: ['default-domain', 'ctest-TestBasicPolicy-87298075', 'ctest-policy-allow-all-02272938']
2025-09-02 13:18:16,495 - INFO - VN ctest-vn-17610753 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-02 13:18:16,495 - DEBUG - Verifying the vn in opserver
2025-09-02 13:18:16,495 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-17610753 virtual network link through opserver 10.0.0.50
2025-09-02 13:18:16,495 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-02 13:18:16,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-17610753', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-17610753?flat'}
2025-09-02 13:18:16,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87298075:ctest-vn-17610753 is found in opserver
2025-09-02 13:18:16,514 - DEBUG - Do not have enough data to verify VN in agent
2025-09-02 13:18:16,518 - DEBUG - VRF ids for VN ctest-vn-17610753: {}
2025-09-02 13:18:16,585 - DEBUG - Services list from nova: [