2026-03-07 14:22:09,134 - INFO - Domain Default found not creating
2026-03-07 14:22:09,313 - INFO - Project ctest-TestBasicPolicy-65233973 not found, creating it
2026-03-07 14:22:09,776 - INFO - Created Project:ctest-TestBasicPolicy-65233973, ID : 8fa708bb-976c-4ab7-8266-c40e5cd65de1
2026-03-07 14:22:11,361 - INFO - ================================================================================
2026-03-07 14:22:11,361 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-07 14:22:11,361 - 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-03-07 14:22:11,616 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-03-07 14:22:11,616 - INFO - Initial checks done. Running the testcase now
2026-03-07 14:22:11,617 - INFO -
2026-03-07 14:22:12,184 - DEBUG - Response for create_network : {'network': {'id': 'ea6ec0c6-4d0d-45b7-8048-1a20be9189bd', 'name': 'ctest-vn-54605172', 'tenant_id': '8fa708bb976c4ab78266c40e5cd65de1', 'project_id': '8fa708bb976c4ab78266c40e5cd65de1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65233973', 'ctest-vn-54605172'], 'port_security_enabled': True, 'description': ''}}
2026-03-07 14:22:12,330 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fcbd298-66ae-42b4-864c-2dfb89f78c73', 'name': '', 'tenant_id': '8fa708bb976c4ab78266c40e5cd65de1', 'network_id': 'ea6ec0c6-4d0d-45b7-8048-1a20be9189bd', 'ip_version': 4, 'cidr': '43.90.1.0/26', 'allocation_pools': [{'start': '43.90.1.2', 'end': '43.90.1.62'}], 'gateway_ip': '43.90.1.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.90.1.2', 'tags': [], 'project_id': '8fa708bb976c4ab78266c40e5cd65de1'}}
2026-03-07 14:22:12,348 - INFO - Created VN ctest-vn-54605172
2026-03-07 14:22:12,403 - DEBUG - VN ctest-vn-54605172 UUID is ea6ec0c6-4d0d-45b7-8048-1a20be9189bd
2026-03-07 14:22:12,744 - DEBUG - Response for create_network : {'network': {'id': '52d6ad3d-95be-4342-89ab-9ccb625acf60', 'name': 'ctest-vn-87254835', 'tenant_id': '8fa708bb976c4ab78266c40e5cd65de1', 'project_id': '8fa708bb976c4ab78266c40e5cd65de1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65233973', 'ctest-vn-87254835'], 'port_security_enabled': True, 'description': ''}}
2026-03-07 14:22:12,949 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f49cd301-be23-46a0-a403-8fa09a5b0408', 'name': '', 'tenant_id': '8fa708bb976c4ab78266c40e5cd65de1', 'network_id': '52d6ad3d-95be-4342-89ab-9ccb625acf60', 'ip_version': 4, 'cidr': '116.140.237.0/26', 'allocation_pools': [{'start': '116.140.237.2', 'end': '116.140.237.62'}], 'gateway_ip': '116.140.237.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.140.237.2', 'tags': [], 'project_id': '8fa708bb976c4ab78266c40e5cd65de1'}}
2026-03-07 14:22:12,967 - INFO - Created VN ctest-vn-87254835
2026-03-07 14:22:13,019 - DEBUG - VN ctest-vn-87254835 UUID is 52d6ad3d-95be-4342-89ab-9ccb625acf60
2026-03-07 14:22:13,132 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-54605172, 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-65233973:ctest-vn-87254835, 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-03-07 14:22:13,421 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea6ec0c6-4d0d-45b7-8048-1a20be9189bd', 'name': 'ctest-vn-54605172', 'tenant_id': '8fa708bb976c4ab78266c40e5cd65de1', 'project_id': '8fa708bb976c4ab78266c40e5cd65de1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fcbd298-66ae-42b4-864c-2dfb89f78c73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65233973', 'ctest-vn-54605172'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65233973', 'ctest-policy-allow-all-68577857']], 'subnet_ipam': [{'subnet_cidr': '43.90.1.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-07 14:22:13,687 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52d6ad3d-95be-4342-89ab-9ccb625acf60', 'name': 'ctest-vn-87254835', 'tenant_id': '8fa708bb976c4ab78266c40e5cd65de1', 'project_id': '8fa708bb976c4ab78266c40e5cd65de1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f49cd301-be23-46a0-a403-8fa09a5b0408'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65233973', 'ctest-vn-87254835'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65233973', 'ctest-policy-allow-all-68577857']], 'subnet_ipam': [{'subnet_cidr': '116.140.237.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-07 14:22:13,835 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-07 14:22:14,133 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-07 14:22:14,163 - DEBUG - Requesting: http://10.0.0.249:8082/domain/991ed670-fe57-45d1-99a9-d46fe2afb2c2
2026-03-07 14:22:14,174 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fa708bb-976c-4ab7-8266-c40e5cd65de1
2026-03-07 14:22:14,243 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea6ec0c6-4d0d-45b7-8048-1a20be9189bd
2026-03-07 14:22:14,252 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea6ec0c6-4d0d-45b7-8048-1a20be9189bd
2026-03-07 14:22:14,261 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1cb81a26-2d09-4338-a115-d8235be2ccbd
2026-03-07 14:22:14,267 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1cb81a26-2d09-4338-a115-d8235be2ccbd
2026-03-07 14:22:14,274 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/67149aa1-1bae-42a8-ab22-ad2fc4cf9204
2026-03-07 14:22:14,280 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-07 14:22:14,280 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea6ec0c6-4d0d-45b7-8048-1a20be9189bd
2026-03-07 14:22:14,288 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1cb81a26-2d09-4338-a115-d8235be2ccbd
2026-03-07 14:22:14,302 - INFO - Verified VN network id 11 for VN ea6ec0c6-4d0d-45b7-8048-1a20be9189bd
2026-03-07 14:22:14,302 - INFO - Verifications in API Server for VN ctest-vn-54605172 passed
2026-03-07 14:22:14,302 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea6ec0c6-4d0d-45b7-8048-1a20be9189bd
2026-03-07 14:22:14,315 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1cb81a26-2d09-4338-a115-d8235be2ccbd
2026-03-07 14:22:14,326 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1cb81a26-2d09-4338-a115-d8235be2ccbd
2026-03-07 14:22:14,332 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/67149aa1-1bae-42a8-ab22-ad2fc4cf9204
2026-03-07 14:22:14,345 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-54605172', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65233973', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16892651210242082231', 'uuid-lslong': '9243666963116427709'}, 'enable': 'true', 'created': '2026-03-07T14:22:12', 'last-modified': '2026-03-07T14:22:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938425'}
2026-03-07 14:22:14,351 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-07 14:22:14,351 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54605172 passed
2026-03-07 14:22:14,351 - DEBUG - ====Verifying policy data for ctest-vn-54605172 in API_Server ======
2026-03-07 14:22:14,351 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-07 14:22:14,356 - DEBUG - Requesting: http://10.0.0.249:8082/domain/991ed670-fe57-45d1-99a9-d46fe2afb2c2
2026-03-07 14:22:14,367 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fa708bb-976c-4ab7-8266-c40e5cd65de1
2026-03-07 14:22:14,436 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea6ec0c6-4d0d-45b7-8048-1a20be9189bd
2026-03-07 14:22:14,444 - DEBUG - ==>Verifying data for policy with id: 2511d1a5-f665-4058-8ea2-fd6330cd38ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-65233973', 'ctest-policy-allow-all-68577857']
2026-03-07 14:22:14,444 - INFO - VN ctest-vn-54605172 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-07 14:22:14,444 - DEBUG - Verifying the vn in opserver
2026-03-07 14:22:14,444 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-54605172 virtual network link through opserver 10.0.0.249
2026-03-07 14:22:14,444 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-07 14:22:14,737 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-07 14:22:14,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-54605172', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-54605172?flat'}
2026-03-07 14:22:14,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-54605172 is found in opserver
2026-03-07 14:22:14,816 - DEBUG - Do not have enough data to verify VN in agent
2026-03-07 14:22:14,820 - DEBUG - VRF ids for VN ctest-vn-54605172: {}
2026-03-07 14:22:14,820 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-07 14:22:14,826 - DEBUG - Requesting: http://10.0.0.249:8082/domain/991ed670-fe57-45d1-99a9-d46fe2afb2c2
2026-03-07 14:22:14,838 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fa708bb-976c-4ab7-8266-c40e5cd65de1
2026-03-07 14:22:14,910 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/52d6ad3d-95be-4342-89ab-9ccb625acf60
2026-03-07 14:22:14,922 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/52d6ad3d-95be-4342-89ab-9ccb625acf60
2026-03-07 14:22:14,931 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/152e7d8b-33eb-466d-8edb-ec9c14b57cdd
2026-03-07 14:22:14,937 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/152e7d8b-33eb-466d-8edb-ec9c14b57cdd
2026-03-07 14:22:14,944 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5999cc94-24b1-476a-a7e5-20930fc70788
2026-03-07 14:22:14,950 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-07 14:22:14,950 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/52d6ad3d-95be-4342-89ab-9ccb625acf60
2026-03-07 14:22:14,959 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/152e7d8b-33eb-466d-8edb-ec9c14b57cdd
2026-03-07 14:22:14,973 - INFO - Verified VN network id 12 for VN 52d6ad3d-95be-4342-89ab-9ccb625acf60
2026-03-07 14:22:14,973 - INFO - Verifications in API Server for VN ctest-vn-87254835 passed
2026-03-07 14:22:14,973 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/52d6ad3d-95be-4342-89ab-9ccb625acf60
2026-03-07 14:22:14,982 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/152e7d8b-33eb-466d-8edb-ec9c14b57cdd
2026-03-07 14:22:14,989 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/152e7d8b-33eb-466d-8edb-ec9c14b57cdd
2026-03-07 14:22:14,996 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5999cc94-24b1-476a-a7e5-20930fc70788
2026-03-07 14:22:15,009 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-87254835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65233973', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5969148836143055682', 'uuid-lslong': '9920195001556062048'}, 'enable': 'true', 'created': '2026-03-07T14:22:12', 'last-modified': '2026-03-07T14:22:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.382992'}
2026-03-07 14:22:15,014 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-07 14:22:15,014 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87254835 passed
2026-03-07 14:22:15,014 - DEBUG - ====Verifying policy data for ctest-vn-87254835 in API_Server ======
2026-03-07 14:22:15,014 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-07 14:22:15,021 - DEBUG - Requesting: http://10.0.0.249:8082/domain/991ed670-fe57-45d1-99a9-d46fe2afb2c2
2026-03-07 14:22:15,032 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fa708bb-976c-4ab7-8266-c40e5cd65de1
2026-03-07 14:22:15,099 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/52d6ad3d-95be-4342-89ab-9ccb625acf60
2026-03-07 14:22:15,108 - DEBUG - ==>Verifying data for policy with id: 2511d1a5-f665-4058-8ea2-fd6330cd38ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-65233973', 'ctest-policy-allow-all-68577857']
2026-03-07 14:22:15,108 - INFO - VN ctest-vn-87254835 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-07 14:22:15,108 - DEBUG - Verifying the vn in opserver
2026-03-07 14:22:15,108 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-87254835 virtual network link through opserver 10.0.0.249
2026-03-07 14:22:15,108 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-07 14:22:15,118 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-87254835', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-87254835?flat'}
2026-03-07 14:22:15,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65233973:ctest-vn-87254835 is found in opserver
2026-03-07 14:22:15,128 - DEBUG - Do not have enough data to verify VN in agent
2026-03-07 14:22:15,133 - DEBUG - VRF ids for VN ctest-vn-87254835: {}
2026-03-07 14:22:15,189 - DEBUG - Services list from nova: [