2025-10-22 10:49:25,825 - INFO - Domain Default found not creating
2025-10-22 10:49:25,980 - INFO - Project ctest-TestBasicPolicy-40503373 not found, creating it
2025-10-22 10:49:26,445 - INFO - Created Project:ctest-TestBasicPolicy-40503373, ID : 0e649000-31ca-4af5-a828-b8cf7002aa44
2025-10-22 10:49:27,884 - INFO - ================================================================================
2025-10-22 10:49:27,884 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 10:49:27,885 - 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-22 10:49:28,138 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2025-10-22 10:49:28,138 - INFO - Initial checks done. Running the testcase now
2025-10-22 10:49:28,138 - INFO -
2025-10-22 10:49:28,672 - DEBUG - Response for create_network : {'network': {'id': 'b0958502-8b67-4c80-8b12-6ea9f6855d8b', 'name': 'ctest-vn-96161141', 'tenant_id': '0e64900031ca4af5a828b8cf7002aa44', 'project_id': '0e64900031ca4af5a828b8cf7002aa44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40503373', 'ctest-vn-96161141'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 10:49:28,877 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0137499-9c54-4593-8086-06ef0328bbfe', 'name': '', 'tenant_id': '0e64900031ca4af5a828b8cf7002aa44', 'network_id': 'b0958502-8b67-4c80-8b12-6ea9f6855d8b', 'ip_version': 4, 'cidr': '40.221.81.64/26', 'allocation_pools': [{'start': '40.221.81.66', 'end': '40.221.81.126'}], 'gateway_ip': '40.221.81.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.221.81.66', 'tags': [], 'project_id': '0e64900031ca4af5a828b8cf7002aa44'}}
2025-10-22 10:49:28,895 - INFO - Created VN ctest-vn-96161141
2025-10-22 10:49:28,945 - DEBUG - VN ctest-vn-96161141 UUID is b0958502-8b67-4c80-8b12-6ea9f6855d8b
2025-10-22 10:49:29,256 - DEBUG - Response for create_network : {'network': {'id': '3dca202c-3c60-4cf9-9ad6-ec36ce602421', 'name': 'ctest-vn-10626715', 'tenant_id': '0e64900031ca4af5a828b8cf7002aa44', 'project_id': '0e64900031ca4af5a828b8cf7002aa44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40503373', 'ctest-vn-10626715'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 10:49:29,403 - DEBUG - Response for create_subnet : {'subnet': {'id': '9172aee2-e51e-419f-b90e-435b7e50b483', 'name': '', 'tenant_id': '0e64900031ca4af5a828b8cf7002aa44', 'network_id': '3dca202c-3c60-4cf9-9ad6-ec36ce602421', 'ip_version': 4, 'cidr': '137.134.138.192/26', 'allocation_pools': [{'start': '137.134.138.194', 'end': '137.134.138.254'}], 'gateway_ip': '137.134.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.134.138.194', 'tags': [], 'project_id': '0e64900031ca4af5a828b8cf7002aa44'}}
2025-10-22 10:49:29,420 - INFO - Created VN ctest-vn-10626715
2025-10-22 10:49:29,473 - DEBUG - VN ctest-vn-10626715 UUID is 3dca202c-3c60-4cf9-9ad6-ec36ce602421
2025-10-22 10:49:29,625 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-96161141, 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-40503373:ctest-vn-10626715, 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-22 10:49:29,915 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0958502-8b67-4c80-8b12-6ea9f6855d8b', 'name': 'ctest-vn-96161141', 'tenant_id': '0e64900031ca4af5a828b8cf7002aa44', 'project_id': '0e64900031ca4af5a828b8cf7002aa44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0137499-9c54-4593-8086-06ef0328bbfe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40503373', 'ctest-vn-96161141'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40503373', 'ctest-policy-allow-all-41059646']], 'subnet_ipam': [{'subnet_cidr': '40.221.81.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 10:49:30,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3dca202c-3c60-4cf9-9ad6-ec36ce602421', 'name': 'ctest-vn-10626715', 'tenant_id': '0e64900031ca4af5a828b8cf7002aa44', 'project_id': '0e64900031ca4af5a828b8cf7002aa44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9172aee2-e51e-419f-b90e-435b7e50b483'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40503373', 'ctest-vn-10626715'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40503373', 'ctest-policy-allow-all-41059646']], 'subnet_ipam': [{'subnet_cidr': '137.134.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 10:49:30,285 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-22 10:49:30,585 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-22 10:49:30,614 - DEBUG - Requesting: http://10.0.0.27:8082/domain/231ff27d-41cd-42f4-abf3-2f09c6cda50e
2025-10-22 10:49:30,626 - DEBUG - Requesting: http://10.0.0.27:8082/project/0e649000-31ca-4af5-a828-b8cf7002aa44
2025-10-22 10:49:30,703 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b0958502-8b67-4c80-8b12-6ea9f6855d8b
2025-10-22 10:49:30,712 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b0958502-8b67-4c80-8b12-6ea9f6855d8b
2025-10-22 10:49:30,721 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/248e0a4a-b509-4a29-bce3-1459cb86bc61
2025-10-22 10:49:30,727 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/248e0a4a-b509-4a29-bce3-1459cb86bc61
2025-10-22 10:49:30,733 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/32b3d05b-29e9-4334-ad15-283c80a43a5f
2025-10-22 10:49:30,739 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 10:49:30,740 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b0958502-8b67-4c80-8b12-6ea9f6855d8b
2025-10-22 10:49:30,749 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/248e0a4a-b509-4a29-bce3-1459cb86bc61
2025-10-22 10:49:30,766 - INFO - Verified VN network id 11 for VN b0958502-8b67-4c80-8b12-6ea9f6855d8b
2025-10-22 10:49:30,766 - INFO - Verifications in API Server for VN ctest-vn-96161141 passed
2025-10-22 10:49:30,766 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b0958502-8b67-4c80-8b12-6ea9f6855d8b
2025-10-22 10:49:30,777 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/248e0a4a-b509-4a29-bce3-1459cb86bc61
2025-10-22 10:49:30,785 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/248e0a4a-b509-4a29-bce3-1459cb86bc61
2025-10-22 10:49:30,793 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/32b3d05b-29e9-4334-ad15-283c80a43a5f
2025-10-22 10:49:30,805 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-96161141', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40503373', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12724222568180436096', 'uuid-lslong': '10021193797117238667'}, 'enable': 'true', 'created': '2025-10-22T10:49:28', 'last-modified': '2025-10-22T10:49:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908907'}
2025-10-22 10:49:30,811 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 10:49:30,811 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96161141 passed
2025-10-22 10:49:30,811 - DEBUG - ====Verifying policy data for ctest-vn-96161141 in API_Server ======
2025-10-22 10:49:30,811 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-22 10:49:30,816 - DEBUG - Requesting: http://10.0.0.27:8082/domain/231ff27d-41cd-42f4-abf3-2f09c6cda50e
2025-10-22 10:49:30,826 - DEBUG - Requesting: http://10.0.0.27:8082/project/0e649000-31ca-4af5-a828-b8cf7002aa44
2025-10-22 10:49:30,895 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b0958502-8b67-4c80-8b12-6ea9f6855d8b
2025-10-22 10:49:30,904 - DEBUG - ==>Verifying data for policy with id: 284844ad-aab5-478e-baaa-a0f02a6e6d24, fqn: ['default-domain', 'ctest-TestBasicPolicy-40503373', 'ctest-policy-allow-all-41059646']
2025-10-22 10:49:30,904 - INFO - VN ctest-vn-96161141 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 10:49:30,905 - DEBUG - Verifying the vn in opserver
2025-10-22 10:49:30,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-96161141 virtual network link through opserver 10.0.0.27
2025-10-22 10:49:30,905 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-22 10:49:31,198 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-22 10:49:31,253 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-96161141', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-96161141?flat'}
2025-10-22 10:49:31,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-96161141 is found in opserver
2025-10-22 10:49:31,263 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 10:49:31,267 - DEBUG - VRF ids for VN ctest-vn-96161141: {}
2025-10-22 10:49:31,267 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-22 10:49:31,273 - DEBUG - Requesting: http://10.0.0.27:8082/domain/231ff27d-41cd-42f4-abf3-2f09c6cda50e
2025-10-22 10:49:31,283 - DEBUG - Requesting: http://10.0.0.27:8082/project/0e649000-31ca-4af5-a828-b8cf7002aa44
2025-10-22 10:49:31,351 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3dca202c-3c60-4cf9-9ad6-ec36ce602421
2025-10-22 10:49:31,364 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3dca202c-3c60-4cf9-9ad6-ec36ce602421
2025-10-22 10:49:31,373 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ab1fe510-1f3a-4a8d-87e3-d6c4252c55c0
2025-10-22 10:49:31,380 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ab1fe510-1f3a-4a8d-87e3-d6c4252c55c0
2025-10-22 10:49:31,387 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/788c00f7-d8cb-4a2c-bcda-79d9a4148d16
2025-10-22 10:49:31,393 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 10:49:31,393 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3dca202c-3c60-4cf9-9ad6-ec36ce602421
2025-10-22 10:49:31,402 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ab1fe510-1f3a-4a8d-87e3-d6c4252c55c0
2025-10-22 10:49:31,417 - INFO - Verified VN network id 12 for VN 3dca202c-3c60-4cf9-9ad6-ec36ce602421
2025-10-22 10:49:31,417 - INFO - Verifications in API Server for VN ctest-vn-10626715 passed
2025-10-22 10:49:31,417 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3dca202c-3c60-4cf9-9ad6-ec36ce602421
2025-10-22 10:49:31,427 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ab1fe510-1f3a-4a8d-87e3-d6c4252c55c0
2025-10-22 10:49:31,435 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ab1fe510-1f3a-4a8d-87e3-d6c4252c55c0
2025-10-22 10:49:31,442 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/788c00f7-d8cb-4a2c-bcda-79d9a4148d16
2025-10-22 10:49:31,457 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-10626715', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40503373', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4452406555972750585', 'uuid-lslong': '11157364846991778849'}, 'enable': 'true', 'created': '2025-10-22T10:49:29', 'last-modified': '2025-10-22T10:49:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344568'}
2025-10-22 10:49:31,464 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 10:49:31,464 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10626715 passed
2025-10-22 10:49:31,464 - DEBUG - ====Verifying policy data for ctest-vn-10626715 in API_Server ======
2025-10-22 10:49:31,464 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-22 10:49:31,470 - DEBUG - Requesting: http://10.0.0.27:8082/domain/231ff27d-41cd-42f4-abf3-2f09c6cda50e
2025-10-22 10:49:31,484 - DEBUG - Requesting: http://10.0.0.27:8082/project/0e649000-31ca-4af5-a828-b8cf7002aa44
2025-10-22 10:49:31,554 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3dca202c-3c60-4cf9-9ad6-ec36ce602421
2025-10-22 10:49:31,564 - DEBUG - ==>Verifying data for policy with id: 284844ad-aab5-478e-baaa-a0f02a6e6d24, fqn: ['default-domain', 'ctest-TestBasicPolicy-40503373', 'ctest-policy-allow-all-41059646']
2025-10-22 10:49:31,564 - INFO - VN ctest-vn-10626715 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 10:49:31,564 - DEBUG - Verifying the vn in opserver
2025-10-22 10:49:31,564 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-10626715 virtual network link through opserver 10.0.0.27
2025-10-22 10:49:31,564 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-22 10:49:31,574 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-10626715', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-10626715?flat'}
2025-10-22 10:49:31,574 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40503373:ctest-vn-10626715 is found in opserver
2025-10-22 10:49:31,583 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 10:49:31,588 - DEBUG - VRF ids for VN ctest-vn-10626715: {}
2025-10-22 10:49:31,641 - DEBUG - Services list from nova: [