2025-11-12 18:12:20,362 - INFO - Domain Default found not creating
2025-11-12 18:12:20,521 - INFO - Project ctest-TestBasicPolicy-35222768 not found, creating it
2025-11-12 18:12:20,988 - INFO - Created Project:ctest-TestBasicPolicy-35222768, ID : 7b7e579f-9145-4c0e-87e6-516783082a31
2025-11-12 18:12:22,535 - INFO - ================================================================================
2025-11-12 18:12:22,535 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 18:12:22,535 - 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-12 18:12:22,796 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-11-12 18:12:22,796 - INFO - Initial checks done. Running the testcase now
2025-11-12 18:12:22,796 - INFO -
2025-11-12 18:12:23,384 - DEBUG - Response for create_network : {'network': {'id': 'edbb7207-9d29-42b8-b6cd-4b8b9b98aae6', 'name': 'ctest-vn-32636125', 'tenant_id': '7b7e579f91454c0e87e6516783082a31', 'project_id': '7b7e579f91454c0e87e6516783082a31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35222768', 'ctest-vn-32636125'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 18:12:23,583 - DEBUG - Response for create_subnet : {'subnet': {'id': '54f5b1cf-fb29-4666-bae0-3acf10607490', 'name': '', 'tenant_id': '7b7e579f91454c0e87e6516783082a31', 'network_id': 'edbb7207-9d29-42b8-b6cd-4b8b9b98aae6', 'ip_version': 4, 'cidr': '177.104.139.192/26', 'allocation_pools': [{'start': '177.104.139.194', 'end': '177.104.139.254'}], 'gateway_ip': '177.104.139.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.104.139.194', 'tags': [], 'project_id': '7b7e579f91454c0e87e6516783082a31'}}
2025-11-12 18:12:23,597 - INFO - Created VN ctest-vn-32636125
2025-11-12 18:12:23,650 - DEBUG - VN ctest-vn-32636125 UUID is edbb7207-9d29-42b8-b6cd-4b8b9b98aae6
2025-11-12 18:12:23,971 - DEBUG - Response for create_network : {'network': {'id': '5deab3a3-a40c-471c-ab69-565d91e58f50', 'name': 'ctest-vn-52910956', 'tenant_id': '7b7e579f91454c0e87e6516783082a31', 'project_id': '7b7e579f91454c0e87e6516783082a31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35222768', 'ctest-vn-52910956'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 18:12:24,175 - DEBUG - Response for create_subnet : {'subnet': {'id': '270b3d3a-f815-4a52-a940-2b5d6d4c9782', 'name': '', 'tenant_id': '7b7e579f91454c0e87e6516783082a31', 'network_id': '5deab3a3-a40c-471c-ab69-565d91e58f50', 'ip_version': 4, 'cidr': '203.5.45.0/26', 'allocation_pools': [{'start': '203.5.45.2', 'end': '203.5.45.62'}], 'gateway_ip': '203.5.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.5.45.2', 'tags': [], 'project_id': '7b7e579f91454c0e87e6516783082a31'}}
2025-11-12 18:12:24,189 - INFO - Created VN ctest-vn-52910956
2025-11-12 18:12:24,238 - DEBUG - VN ctest-vn-52910956 UUID is 5deab3a3-a40c-471c-ab69-565d91e58f50
2025-11-12 18:12:24,386 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-32636125, 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-35222768:ctest-vn-52910956, 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-12 18:12:24,669 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'edbb7207-9d29-42b8-b6cd-4b8b9b98aae6', 'name': 'ctest-vn-32636125', 'tenant_id': '7b7e579f91454c0e87e6516783082a31', 'project_id': '7b7e579f91454c0e87e6516783082a31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54f5b1cf-fb29-4666-bae0-3acf10607490'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35222768', 'ctest-vn-32636125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35222768', 'ctest-policy-allow-all-00830766']], 'subnet_ipam': [{'subnet_cidr': '177.104.139.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 18:12:24,883 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5deab3a3-a40c-471c-ab69-565d91e58f50', 'name': 'ctest-vn-52910956', 'tenant_id': '7b7e579f91454c0e87e6516783082a31', 'project_id': '7b7e579f91454c0e87e6516783082a31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['270b3d3a-f815-4a52-a940-2b5d6d4c9782'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35222768', 'ctest-vn-52910956'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35222768', 'ctest-policy-allow-all-00830766']], 'subnet_ipam': [{'subnet_cidr': '203.5.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 18:12:25,042 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-12 18:12:25,363 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-12 18:12:25,393 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f6779ccb-67a0-43a3-8c33-9f87de91637b
2025-11-12 18:12:25,405 - DEBUG - Requesting: http://10.0.0.33:8082/project/7b7e579f-9145-4c0e-87e6-516783082a31
2025-11-12 18:12:25,478 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/edbb7207-9d29-42b8-b6cd-4b8b9b98aae6
2025-11-12 18:12:25,490 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/edbb7207-9d29-42b8-b6cd-4b8b9b98aae6
2025-11-12 18:12:25,500 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b4ab49d8-7223-4dbb-8b9e-72c50406c319
2025-11-12 18:12:25,507 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b4ab49d8-7223-4dbb-8b9e-72c50406c319
2025-11-12 18:12:25,516 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/52933082-aba6-4fb7-9374-d0ac1eba0297
2025-11-12 18:12:25,523 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 18:12:25,523 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/edbb7207-9d29-42b8-b6cd-4b8b9b98aae6
2025-11-12 18:12:25,533 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b4ab49d8-7223-4dbb-8b9e-72c50406c319
2025-11-12 18:12:25,548 - INFO - Verified VN network id 11 for VN edbb7207-9d29-42b8-b6cd-4b8b9b98aae6
2025-11-12 18:12:25,548 - INFO - Verifications in API Server for VN ctest-vn-32636125 passed
2025-11-12 18:12:25,548 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/edbb7207-9d29-42b8-b6cd-4b8b9b98aae6
2025-11-12 18:12:25,557 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b4ab49d8-7223-4dbb-8b9e-72c50406c319
2025-11-12 18:12:25,564 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b4ab49d8-7223-4dbb-8b9e-72c50406c319
2025-11-12 18:12:25,570 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/52933082-aba6-4fb7-9374-d0ac1eba0297
2025-11-12 18:12:25,581 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-32636125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35222768', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17130410984660878008', 'uuid-lslong': '13172267548111579878'}, 'enable': 'true', 'created': '2025-11-12T18:12:23', 'last-modified': '2025-11-12T18:12:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927790'}
2025-11-12 18:12:25,588 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 18:12:25,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32636125 passed
2025-11-12 18:12:25,588 - DEBUG - ====Verifying policy data for ctest-vn-32636125 in API_Server ======
2025-11-12 18:12:25,588 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-12 18:12:25,593 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f6779ccb-67a0-43a3-8c33-9f87de91637b
2025-11-12 18:12:25,606 - DEBUG - Requesting: http://10.0.0.33:8082/project/7b7e579f-9145-4c0e-87e6-516783082a31
2025-11-12 18:12:25,679 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/edbb7207-9d29-42b8-b6cd-4b8b9b98aae6
2025-11-12 18:12:25,688 - DEBUG - ==>Verifying data for policy with id: c4206350-c27e-4523-a5fb-af4c92d1cdeb, fqn: ['default-domain', 'ctest-TestBasicPolicy-35222768', 'ctest-policy-allow-all-00830766']
2025-11-12 18:12:25,688 - INFO - VN ctest-vn-32636125 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 18:12:25,689 - DEBUG - Verifying the vn in opserver
2025-11-12 18:12:25,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-32636125 virtual network link through opserver 10.0.0.33
2025-11-12 18:12:25,689 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-12 18:12:26,010 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-12 18:12:26,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-32636125', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-32636125?flat'}
2025-11-12 18:12:26,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-32636125 is found in opserver
2025-11-12 18:12:26,079 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 18:12:26,083 - DEBUG - VRF ids for VN ctest-vn-32636125: {}
2025-11-12 18:12:26,084 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-12 18:12:26,089 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f6779ccb-67a0-43a3-8c33-9f87de91637b
2025-11-12 18:12:26,099 - DEBUG - Requesting: http://10.0.0.33:8082/project/7b7e579f-9145-4c0e-87e6-516783082a31
2025-11-12 18:12:26,170 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5deab3a3-a40c-471c-ab69-565d91e58f50
2025-11-12 18:12:26,180 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5deab3a3-a40c-471c-ab69-565d91e58f50
2025-11-12 18:12:26,188 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c50d6d-768c-45de-a079-c3b1ef860b1b
2025-11-12 18:12:26,194 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c50d6d-768c-45de-a079-c3b1ef860b1b
2025-11-12 18:12:26,200 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2ef81f5f-eab4-43ff-968f-36db2ea5ef41
2025-11-12 18:12:26,206 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 18:12:26,206 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5deab3a3-a40c-471c-ab69-565d91e58f50
2025-11-12 18:12:26,215 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c50d6d-768c-45de-a079-c3b1ef860b1b
2025-11-12 18:12:26,227 - INFO - Verified VN network id 12 for VN 5deab3a3-a40c-471c-ab69-565d91e58f50
2025-11-12 18:12:26,227 - INFO - Verifications in API Server for VN ctest-vn-52910956 passed
2025-11-12 18:12:26,227 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5deab3a3-a40c-471c-ab69-565d91e58f50
2025-11-12 18:12:26,236 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c50d6d-768c-45de-a079-c3b1ef860b1b
2025-11-12 18:12:26,242 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c50d6d-768c-45de-a079-c3b1ef860b1b
2025-11-12 18:12:26,248 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2ef81f5f-eab4-43ff-968f-36db2ea5ef41
2025-11-12 18:12:26,258 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-52910956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35222768', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6767418905490900764', 'uuid-lslong': '12351498412919983952'}, 'enable': 'true', 'created': '2025-11-12T18:12:23', 'last-modified': '2025-11-12T18:12:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.394973'}
2025-11-12 18:12:26,263 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 18:12:26,263 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52910956 passed
2025-11-12 18:12:26,263 - DEBUG - ====Verifying policy data for ctest-vn-52910956 in API_Server ======
2025-11-12 18:12:26,264 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-12 18:12:26,269 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f6779ccb-67a0-43a3-8c33-9f87de91637b
2025-11-12 18:12:26,279 - DEBUG - Requesting: http://10.0.0.33:8082/project/7b7e579f-9145-4c0e-87e6-516783082a31
2025-11-12 18:12:26,359 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5deab3a3-a40c-471c-ab69-565d91e58f50
2025-11-12 18:12:26,368 - DEBUG - ==>Verifying data for policy with id: c4206350-c27e-4523-a5fb-af4c92d1cdeb, fqn: ['default-domain', 'ctest-TestBasicPolicy-35222768', 'ctest-policy-allow-all-00830766']
2025-11-12 18:12:26,368 - INFO - VN ctest-vn-52910956 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 18:12:26,368 - DEBUG - Verifying the vn in opserver
2025-11-12 18:12:26,368 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-52910956 virtual network link through opserver 10.0.0.33
2025-11-12 18:12:26,368 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-12 18:12:26,377 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-52910956', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-52910956?flat'}
2025-11-12 18:12:26,377 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35222768:ctest-vn-52910956 is found in opserver
2025-11-12 18:12:26,386 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 18:12:26,390 - DEBUG - VRF ids for VN ctest-vn-52910956: {}
2025-11-12 18:12:26,443 - DEBUG - Services list from nova: [