2025-10-06 12:09:29,736 - INFO - Domain Default found not creating
2025-10-06 12:09:29,866 - INFO - Project ctest-TestBasicPolicy-69831859 not found, creating it
2025-10-06 12:09:30,338 - INFO - Created Project:ctest-TestBasicPolicy-69831859, ID : 554c19e1-c847-4210-8e0e-728b97066242
2025-10-06 12:09:31,710 - INFO - ================================================================================
2025-10-06 12:09:31,710 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-06 12:09:31,710 - 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-06 12:09:31,967 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-10-06 12:09:31,967 - INFO - Initial checks done. Running the testcase now
2025-10-06 12:09:31,967 - INFO -
2025-10-06 12:09:32,477 - DEBUG - Response for create_network : {'network': {'id': '46a2262f-6ce8-408a-a34b-2113abc29528', 'name': 'ctest-vn-67873834', 'tenant_id': '554c19e1c84742108e0e728b97066242', 'project_id': '554c19e1c84742108e0e728b97066242', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69831859', 'ctest-vn-67873834'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 12:09:32,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '44f0dc87-180d-436e-9fc9-ce87830f0c4f', 'name': '', 'tenant_id': '554c19e1c84742108e0e728b97066242', 'network_id': '46a2262f-6ce8-408a-a34b-2113abc29528', 'ip_version': 4, 'cidr': '109.243.116.192/26', 'allocation_pools': [{'start': '109.243.116.194', 'end': '109.243.116.254'}], 'gateway_ip': '109.243.116.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.243.116.194', 'tags': [], 'project_id': '554c19e1c84742108e0e728b97066242'}}
2025-10-06 12:09:32,691 - INFO - Created VN ctest-vn-67873834
2025-10-06 12:09:32,742 - DEBUG - VN ctest-vn-67873834 UUID is 46a2262f-6ce8-408a-a34b-2113abc29528
2025-10-06 12:09:33,054 - DEBUG - Response for create_network : {'network': {'id': '959a10b3-b4a6-4c47-bf15-eb95d21484e5', 'name': 'ctest-vn-79635465', 'tenant_id': '554c19e1c84742108e0e728b97066242', 'project_id': '554c19e1c84742108e0e728b97066242', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69831859', 'ctest-vn-79635465'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 12:09:33,198 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a29833d1-5a92-4cd7-8e15-5a77bd943b5b', 'name': '', 'tenant_id': '554c19e1c84742108e0e728b97066242', 'network_id': '959a10b3-b4a6-4c47-bf15-eb95d21484e5', 'ip_version': 4, 'cidr': '151.65.171.192/26', 'allocation_pools': [{'start': '151.65.171.194', 'end': '151.65.171.254'}], 'gateway_ip': '151.65.171.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.65.171.194', 'tags': [], 'project_id': '554c19e1c84742108e0e728b97066242'}}
2025-10-06 12:09:33,214 - INFO - Created VN ctest-vn-79635465
2025-10-06 12:09:33,266 - DEBUG - VN ctest-vn-79635465 UUID is 959a10b3-b4a6-4c47-bf15-eb95d21484e5
2025-10-06 12:09:33,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-67873834, 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-69831859:ctest-vn-79635465, 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-06 12:09:33,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46a2262f-6ce8-408a-a34b-2113abc29528', 'name': 'ctest-vn-67873834', 'tenant_id': '554c19e1c84742108e0e728b97066242', 'project_id': '554c19e1c84742108e0e728b97066242', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44f0dc87-180d-436e-9fc9-ce87830f0c4f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69831859', 'ctest-vn-67873834'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69831859', 'ctest-policy-allow-all-15480730']], 'subnet_ipam': [{'subnet_cidr': '109.243.116.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 12:09:33,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '959a10b3-b4a6-4c47-bf15-eb95d21484e5', 'name': 'ctest-vn-79635465', 'tenant_id': '554c19e1c84742108e0e728b97066242', 'project_id': '554c19e1c84742108e0e728b97066242', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a29833d1-5a92-4cd7-8e15-5a77bd943b5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69831859', 'ctest-vn-79635465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69831859', 'ctest-policy-allow-all-15480730']], 'subnet_ipam': [{'subnet_cidr': '151.65.171.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 12:09:34,098 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-06 12:09:34,390 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-06 12:09:34,414 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f9cf182d-f042-46fb-9f42-f12c4ae7b96c
2025-10-06 12:09:34,424 - DEBUG - Requesting: http://10.0.0.48:8082/project/554c19e1-c847-4210-8e0e-728b97066242
2025-10-06 12:09:34,500 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/46a2262f-6ce8-408a-a34b-2113abc29528
2025-10-06 12:09:34,510 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/46a2262f-6ce8-408a-a34b-2113abc29528
2025-10-06 12:09:34,518 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af76c9c3-1186-45d4-a731-80408fd6e833
2025-10-06 12:09:34,524 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af76c9c3-1186-45d4-a731-80408fd6e833
2025-10-06 12:09:34,529 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/87e9449a-e3db-4244-a1b8-c6a6926e99a3
2025-10-06 12:09:34,534 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 12:09:34,534 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/46a2262f-6ce8-408a-a34b-2113abc29528
2025-10-06 12:09:34,541 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af76c9c3-1186-45d4-a731-80408fd6e833
2025-10-06 12:09:34,552 - INFO - Verified VN network id 11 for VN 46a2262f-6ce8-408a-a34b-2113abc29528
2025-10-06 12:09:34,552 - INFO - Verifications in API Server for VN ctest-vn-67873834 passed
2025-10-06 12:09:34,552 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/46a2262f-6ce8-408a-a34b-2113abc29528
2025-10-06 12:09:34,560 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af76c9c3-1186-45d4-a731-80408fd6e833
2025-10-06 12:09:34,565 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af76c9c3-1186-45d4-a731-80408fd6e833
2025-10-06 12:09:34,570 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/87e9449a-e3db-4244-a1b8-c6a6926e99a3
2025-10-06 12:09:34,579 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-67873834', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69831859', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5089672514014560394', 'uuid-lslong': '11766534819805304104'}, 'enable': 'true', 'created': '2025-10-06T12:09:32', 'last-modified': '2025-10-06T12:09:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911781'}
2025-10-06 12:09:34,584 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 12:09:34,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67873834 passed
2025-10-06 12:09:34,584 - DEBUG - ====Verifying policy data for ctest-vn-67873834 in API_Server ======
2025-10-06 12:09:34,584 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-06 12:09:34,589 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f9cf182d-f042-46fb-9f42-f12c4ae7b96c
2025-10-06 12:09:34,597 - DEBUG - Requesting: http://10.0.0.48:8082/project/554c19e1-c847-4210-8e0e-728b97066242
2025-10-06 12:09:34,667 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/46a2262f-6ce8-408a-a34b-2113abc29528
2025-10-06 12:09:34,675 - DEBUG - ==>Verifying data for policy with id: 2d4210e4-0a66-42a9-9c07-988905a62ebe, fqn: ['default-domain', 'ctest-TestBasicPolicy-69831859', 'ctest-policy-allow-all-15480730']
2025-10-06 12:09:34,675 - INFO - VN ctest-vn-67873834 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 12:09:34,675 - DEBUG - Verifying the vn in opserver
2025-10-06 12:09:34,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-67873834 virtual network link through opserver 10.0.0.48
2025-10-06 12:09:34,675 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-06 12:09:34,964 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-06 12:09:35,011 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-67873834', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-67873834?flat'}
2025-10-06 12:09:35,011 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-67873834 is found in opserver
2025-10-06 12:09:35,021 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 12:09:35,025 - DEBUG - VRF ids for VN ctest-vn-67873834: {}
2025-10-06 12:09:35,025 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-06 12:09:35,030 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f9cf182d-f042-46fb-9f42-f12c4ae7b96c
2025-10-06 12:09:35,040 - DEBUG - Requesting: http://10.0.0.48:8082/project/554c19e1-c847-4210-8e0e-728b97066242
2025-10-06 12:09:35,109 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/959a10b3-b4a6-4c47-bf15-eb95d21484e5
2025-10-06 12:09:35,118 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/959a10b3-b4a6-4c47-bf15-eb95d21484e5
2025-10-06 12:09:35,126 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5d318382-7eef-4263-92ef-3ba55ad0e9c7
2025-10-06 12:09:35,131 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5d318382-7eef-4263-92ef-3ba55ad0e9c7
2025-10-06 12:09:35,136 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/02f46932-82cf-402b-9aa8-3d10afb3e620
2025-10-06 12:09:35,140 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 12:09:35,140 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/959a10b3-b4a6-4c47-bf15-eb95d21484e5
2025-10-06 12:09:35,147 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5d318382-7eef-4263-92ef-3ba55ad0e9c7
2025-10-06 12:09:35,157 - INFO - Verified VN network id 12 for VN 959a10b3-b4a6-4c47-bf15-eb95d21484e5
2025-10-06 12:09:35,157 - INFO - Verifications in API Server for VN ctest-vn-79635465 passed
2025-10-06 12:09:35,157 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/959a10b3-b4a6-4c47-bf15-eb95d21484e5
2025-10-06 12:09:35,164 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5d318382-7eef-4263-92ef-3ba55ad0e9c7
2025-10-06 12:09:35,169 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5d318382-7eef-4263-92ef-3ba55ad0e9c7
2025-10-06 12:09:35,174 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/02f46932-82cf-402b-9aa8-3d10afb3e620
2025-10-06 12:09:35,185 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-79635465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69831859', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10779947022080691271', 'uuid-lslong': '13769170464462374117'}, 'enable': 'true', 'created': '2025-10-06T12:09:33', 'last-modified': '2025-10-06T12:09:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.293344'}
2025-10-06 12:09:35,190 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 12:09:35,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79635465 passed
2025-10-06 12:09:35,191 - DEBUG - ====Verifying policy data for ctest-vn-79635465 in API_Server ======
2025-10-06 12:09:35,191 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-06 12:09:35,196 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f9cf182d-f042-46fb-9f42-f12c4ae7b96c
2025-10-06 12:09:35,206 - DEBUG - Requesting: http://10.0.0.48:8082/project/554c19e1-c847-4210-8e0e-728b97066242
2025-10-06 12:09:35,272 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/959a10b3-b4a6-4c47-bf15-eb95d21484e5
2025-10-06 12:09:35,280 - DEBUG - ==>Verifying data for policy with id: 2d4210e4-0a66-42a9-9c07-988905a62ebe, fqn: ['default-domain', 'ctest-TestBasicPolicy-69831859', 'ctest-policy-allow-all-15480730']
2025-10-06 12:09:35,280 - INFO - VN ctest-vn-79635465 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 12:09:35,280 - DEBUG - Verifying the vn in opserver
2025-10-06 12:09:35,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-79635465 virtual network link through opserver 10.0.0.48
2025-10-06 12:09:35,280 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-06 12:09:35,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-79635465', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-79635465?flat'}
2025-10-06 12:09:35,288 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69831859:ctest-vn-79635465 is found in opserver
2025-10-06 12:09:35,296 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 12:09:35,300 - DEBUG - VRF ids for VN ctest-vn-79635465: {}
2025-10-06 12:09:35,353 - DEBUG - Services list from nova: [