2026-04-17 13:24:13,925 - INFO - Domain Default found not creating
2026-04-17 13:24:14,127 - INFO - Project ctest-TestBasicPolicy-24048941 not found, creating it
2026-04-17 13:24:14,617 - INFO - Created Project:ctest-TestBasicPolicy-24048941, ID : 419f5c13-9963-4d28-bbb9-5a239bd08f19
2026-04-17 13:24:16,229 - INFO - ================================================================================
2026-04-17 13:24:16,229 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-17 13:24:16,229 - 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
2026-04-17 13:24:16,501 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-04-17 13:24:16,501 - INFO - Initial checks done. Running the testcase now
2026-04-17 13:24:16,501 - INFO -
2026-04-17 13:24:17,091 - DEBUG - Response for create_network : {'network': {'id': '6f8a1f50-f210-448f-aa07-2fc424da13e6', 'name': 'ctest-vn-11337469', 'tenant_id': '419f5c1399634d28bbb95a239bd08f19', 'project_id': '419f5c1399634d28bbb95a239bd08f19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24048941', 'ctest-vn-11337469'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 13:24:17,261 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3b2512c-5333-4363-a101-689ee11a87c6', 'name': '', 'tenant_id': '419f5c1399634d28bbb95a239bd08f19', 'network_id': '6f8a1f50-f210-448f-aa07-2fc424da13e6', 'ip_version': 4, 'cidr': '175.161.13.192/26', 'allocation_pools': [{'start': '175.161.13.194', 'end': '175.161.13.254'}], 'gateway_ip': '175.161.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.161.13.194', 'tags': [], 'project_id': '419f5c1399634d28bbb95a239bd08f19'}}
2026-04-17 13:24:17,283 - INFO - Created VN ctest-vn-11337469
2026-04-17 13:24:17,338 - DEBUG - VN ctest-vn-11337469 UUID is 6f8a1f50-f210-448f-aa07-2fc424da13e6
2026-04-17 13:24:17,646 - DEBUG - Response for create_network : {'network': {'id': '6769c97b-5cd0-4d4b-bbb1-53558b99bac2', 'name': 'ctest-vn-73457952', 'tenant_id': '419f5c1399634d28bbb95a239bd08f19', 'project_id': '419f5c1399634d28bbb95a239bd08f19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24048941', 'ctest-vn-73457952'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 13:24:17,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '95ed8517-3b3f-4759-9bb5-b61a4993d0dc', 'name': '', 'tenant_id': '419f5c1399634d28bbb95a239bd08f19', 'network_id': '6769c97b-5cd0-4d4b-bbb1-53558b99bac2', 'ip_version': 4, 'cidr': '40.141.64.192/26', 'allocation_pools': [{'start': '40.141.64.194', 'end': '40.141.64.254'}], 'gateway_ip': '40.141.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.141.64.194', 'tags': [], 'project_id': '419f5c1399634d28bbb95a239bd08f19'}}
2026-04-17 13:24:17,890 - INFO - Created VN ctest-vn-73457952
2026-04-17 13:24:17,946 - DEBUG - VN ctest-vn-73457952 UUID is 6769c97b-5cd0-4d4b-bbb1-53558b99bac2
2026-04-17 13:24:18,075 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-11337469, 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-24048941:ctest-vn-73457952, 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]
2026-04-17 13:24:18,393 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f8a1f50-f210-448f-aa07-2fc424da13e6', 'name': 'ctest-vn-11337469', 'tenant_id': '419f5c1399634d28bbb95a239bd08f19', 'project_id': '419f5c1399634d28bbb95a239bd08f19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3b2512c-5333-4363-a101-689ee11a87c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24048941', 'ctest-vn-11337469'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24048941', 'ctest-policy-allow-all-16977933']], 'subnet_ipam': [{'subnet_cidr': '175.161.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 13:24:18,756 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6769c97b-5cd0-4d4b-bbb1-53558b99bac2', 'name': 'ctest-vn-73457952', 'tenant_id': '419f5c1399634d28bbb95a239bd08f19', 'project_id': '419f5c1399634d28bbb95a239bd08f19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95ed8517-3b3f-4759-9bb5-b61a4993d0dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24048941', 'ctest-vn-73457952'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24048941', 'ctest-policy-allow-all-16977933']], 'subnet_ipam': [{'subnet_cidr': '40.141.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 13:24:18,931 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 13:24:19,285 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 13:24:19,349 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f25cce66-0aa5-4658-a604-241e725f223e
2026-04-17 13:24:19,374 - DEBUG - Requesting: http://10.0.0.50:8082/project/419f5c13-9963-4d28-bbb9-5a239bd08f19
2026-04-17 13:24:19,462 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f8a1f50-f210-448f-aa07-2fc424da13e6
2026-04-17 13:24:19,477 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f8a1f50-f210-448f-aa07-2fc424da13e6
2026-04-17 13:24:19,495 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0c1cfe1-4377-499e-8b7a-231a07eae94d
2026-04-17 13:24:19,508 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0c1cfe1-4377-499e-8b7a-231a07eae94d
2026-04-17 13:24:19,525 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4c09fab-a3dc-477f-9a30-81404b8e11b0
2026-04-17 13:24:19,537 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 13:24:19,537 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f8a1f50-f210-448f-aa07-2fc424da13e6
2026-04-17 13:24:19,557 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0c1cfe1-4377-499e-8b7a-231a07eae94d
2026-04-17 13:24:19,575 - INFO - Verified VN network id 12 for VN 6f8a1f50-f210-448f-aa07-2fc424da13e6
2026-04-17 13:24:19,575 - INFO - Verifications in API Server for VN ctest-vn-11337469 passed
2026-04-17 13:24:19,575 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f8a1f50-f210-448f-aa07-2fc424da13e6
2026-04-17 13:24:19,587 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0c1cfe1-4377-499e-8b7a-231a07eae94d
2026-04-17 13:24:19,596 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0c1cfe1-4377-499e-8b7a-231a07eae94d
2026-04-17 13:24:19,604 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4c09fab-a3dc-477f-9a30-81404b8e11b0
2026-04-17 13:24:19,620 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-11337469', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24048941', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8037270917515068559', 'uuid-lslong': '12251813830763090918'}, 'enable': 'true', 'created': '2026-04-17T13:24:17', 'last-modified': '2026-04-17T13:24:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.254211'}
2026-04-17 13:24:19,627 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 13:24:19,627 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11337469 passed
2026-04-17 13:24:19,627 - DEBUG - ====Verifying policy data for ctest-vn-11337469 in API_Server ======
2026-04-17 13:24:19,627 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 13:24:19,634 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f25cce66-0aa5-4658-a604-241e725f223e
2026-04-17 13:24:19,645 - DEBUG - Requesting: http://10.0.0.50:8082/project/419f5c13-9963-4d28-bbb9-5a239bd08f19
2026-04-17 13:24:19,728 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f8a1f50-f210-448f-aa07-2fc424da13e6
2026-04-17 13:24:19,738 - DEBUG - ==>Verifying data for policy with id: e3d4eafd-48e8-441c-9c55-2fd20d746b82, fqn: ['default-domain', 'ctest-TestBasicPolicy-24048941', 'ctest-policy-allow-all-16977933']
2026-04-17 13:24:19,738 - INFO - VN ctest-vn-11337469 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 13:24:19,738 - DEBUG - Verifying the vn in opserver
2026-04-17 13:24:19,738 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-11337469 virtual network link through opserver 10.0.0.50
2026-04-17 13:24:19,739 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-17 13:24:20,037 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-17 13:24:20,112 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-11337469', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-11337469?flat'}
2026-04-17 13:24:20,112 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-11337469 is found in opserver
2026-04-17 13:24:20,124 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 13:24:20,129 - DEBUG - VRF ids for VN ctest-vn-11337469: {}
2026-04-17 13:24:20,129 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 13:24:20,135 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f25cce66-0aa5-4658-a604-241e725f223e
2026-04-17 13:24:20,148 - DEBUG - Requesting: http://10.0.0.50:8082/project/419f5c13-9963-4d28-bbb9-5a239bd08f19
2026-04-17 13:24:20,226 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6769c97b-5cd0-4d4b-bbb1-53558b99bac2
2026-04-17 13:24:20,239 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6769c97b-5cd0-4d4b-bbb1-53558b99bac2
2026-04-17 13:24:20,249 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23b272d6-8a1e-4a4e-802e-308a81ccb0a3
2026-04-17 13:24:20,257 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23b272d6-8a1e-4a4e-802e-308a81ccb0a3
2026-04-17 13:24:20,264 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a306c5e8-5133-4fb7-8477-9b91e427db29
2026-04-17 13:24:20,272 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 13:24:20,272 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6769c97b-5cd0-4d4b-bbb1-53558b99bac2
2026-04-17 13:24:20,283 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23b272d6-8a1e-4a4e-802e-308a81ccb0a3
2026-04-17 13:24:20,304 - INFO - Verified VN network id 13 for VN 6769c97b-5cd0-4d4b-bbb1-53558b99bac2
2026-04-17 13:24:20,304 - INFO - Verifications in API Server for VN ctest-vn-73457952 passed
2026-04-17 13:24:20,304 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6769c97b-5cd0-4d4b-bbb1-53558b99bac2
2026-04-17 13:24:20,316 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23b272d6-8a1e-4a4e-802e-308a81ccb0a3
2026-04-17 13:24:20,324 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/23b272d6-8a1e-4a4e-802e-308a81ccb0a3
2026-04-17 13:24:20,332 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a306c5e8-5133-4fb7-8477-9b91e427db29
2026-04-17 13:24:20,344 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-73457952', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24048941', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7451708590136511819', 'uuid-lslong': '13524682782849743554'}, 'enable': 'true', 'created': '2026-04-17T13:24:17', 'last-modified': '2026-04-17T13:24:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.676551'}
2026-04-17 13:24:20,350 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 13:24:20,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73457952 passed
2026-04-17 13:24:20,351 - DEBUG - ====Verifying policy data for ctest-vn-73457952 in API_Server ======
2026-04-17 13:24:20,351 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-17 13:24:20,357 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f25cce66-0aa5-4658-a604-241e725f223e
2026-04-17 13:24:20,370 - DEBUG - Requesting: http://10.0.0.50:8082/project/419f5c13-9963-4d28-bbb9-5a239bd08f19
2026-04-17 13:24:20,445 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6769c97b-5cd0-4d4b-bbb1-53558b99bac2
2026-04-17 13:24:20,455 - DEBUG - ==>Verifying data for policy with id: e3d4eafd-48e8-441c-9c55-2fd20d746b82, fqn: ['default-domain', 'ctest-TestBasicPolicy-24048941', 'ctest-policy-allow-all-16977933']
2026-04-17 13:24:20,455 - INFO - VN ctest-vn-73457952 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 13:24:20,455 - DEBUG - Verifying the vn in opserver
2026-04-17 13:24:20,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-73457952 virtual network link through opserver 10.0.0.50
2026-04-17 13:24:20,455 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-17 13:24:20,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-73457952', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-73457952?flat'}
2026-04-17 13:24:20,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24048941:ctest-vn-73457952 is found in opserver
2026-04-17 13:24:20,480 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 13:24:20,485 - DEBUG - VRF ids for VN ctest-vn-73457952: {}
2026-04-17 13:24:20,562 - DEBUG - Services list from nova: [