2026-02-19 02:17:42,926 - INFO - Domain Default found not creating
2026-02-19 02:17:43,104 - INFO - Project ctest-TestBasicPolicy-67845661 not found, creating it
2026-02-19 02:17:43,589 - INFO - Created Project:ctest-TestBasicPolicy-67845661, ID : b4cec3e1-ce42-4ae9-af6e-8fa275df1b28
2026-02-19 02:17:45,252 - INFO - ================================================================================
2026-02-19 02:17:45,252 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-19 02:17:45,252 - 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-02-19 02:17:45,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.200': '0'}} with
2026-02-19 02:17:45,513 - INFO - Initial checks done. Running the testcase now
2026-02-19 02:17:45,513 - INFO -
2026-02-19 02:17:46,144 - DEBUG - Response for create_network : {'network': {'id': '106108f4-3ce1-41c8-9b42-226e63dfa0b0', 'name': 'ctest-vn-89116071', 'tenant_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'project_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67845661', 'ctest-vn-89116071'], 'port_security_enabled': True, 'description': ''}}
2026-02-19 02:17:46,380 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9dcccb3-7ea8-4202-811d-b0f25073a3cf', 'name': '', 'tenant_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'network_id': '106108f4-3ce1-41c8-9b42-226e63dfa0b0', 'ip_version': 4, 'cidr': '139.84.192.0/26', 'allocation_pools': [{'start': '139.84.192.2', 'end': '139.84.192.62'}], 'gateway_ip': '139.84.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.84.192.2', 'tags': [], 'project_id': 'b4cec3e1ce424ae9af6e8fa275df1b28'}}
2026-02-19 02:17:46,401 - INFO - Created VN ctest-vn-89116071
2026-02-19 02:17:46,455 - DEBUG - VN ctest-vn-89116071 UUID is 106108f4-3ce1-41c8-9b42-226e63dfa0b0
2026-02-19 02:17:46,735 - DEBUG - Response for create_network : {'network': {'id': '513f7a94-99e6-4302-a20c-5e9e901c020d', 'name': 'ctest-vn-16293835', 'tenant_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'project_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67845661', 'ctest-vn-16293835'], 'port_security_enabled': True, 'description': ''}}
2026-02-19 02:17:46,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '43812a44-c121-4567-b3e8-693680b8c8d4', 'name': '', 'tenant_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'network_id': '513f7a94-99e6-4302-a20c-5e9e901c020d', 'ip_version': 4, 'cidr': '6.221.219.0/26', 'allocation_pools': [{'start': '6.221.219.2', 'end': '6.221.219.62'}], 'gateway_ip': '6.221.219.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.221.219.2', 'tags': [], 'project_id': 'b4cec3e1ce424ae9af6e8fa275df1b28'}}
2026-02-19 02:17:46,952 - INFO - Created VN ctest-vn-16293835
2026-02-19 02:17:47,003 - DEBUG - VN ctest-vn-16293835 UUID is 513f7a94-99e6-4302-a20c-5e9e901c020d
2026-02-19 02:17:47,114 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-89116071, 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-67845661:ctest-vn-16293835, 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-02-19 02:17:47,401 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '106108f4-3ce1-41c8-9b42-226e63dfa0b0', 'name': 'ctest-vn-89116071', 'tenant_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'project_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9dcccb3-7ea8-4202-811d-b0f25073a3cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67845661', 'ctest-vn-89116071'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67845661', 'ctest-policy-allow-all-92563424']], 'subnet_ipam': [{'subnet_cidr': '139.84.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-19 02:17:47,642 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '513f7a94-99e6-4302-a20c-5e9e901c020d', 'name': 'ctest-vn-16293835', 'tenant_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'project_id': 'b4cec3e1ce424ae9af6e8fa275df1b28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43812a44-c121-4567-b3e8-693680b8c8d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67845661', 'ctest-vn-16293835'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67845661', 'ctest-policy-allow-all-92563424']], 'subnet_ipam': [{'subnet_cidr': '6.221.219.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-19 02:17:47,791 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-19 02:17:48,131 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-19 02:17:48,169 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d8c9f0e0-2c92-452e-9375-1d23952d0ce8
2026-02-19 02:17:48,184 - DEBUG - Requesting: http://10.0.0.50:8082/project/b4cec3e1-ce42-4ae9-af6e-8fa275df1b28
2026-02-19 02:17:48,255 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/106108f4-3ce1-41c8-9b42-226e63dfa0b0
2026-02-19 02:17:48,266 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/106108f4-3ce1-41c8-9b42-226e63dfa0b0
2026-02-19 02:17:48,277 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/887890f3-39c9-4933-bf92-7eebfcb66799
2026-02-19 02:17:48,284 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/887890f3-39c9-4933-bf92-7eebfcb66799
2026-02-19 02:17:48,290 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f05b6cc7-ee18-45c7-b7d6-a2a3ae5d0af4
2026-02-19 02:17:48,296 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-19 02:17:48,296 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/106108f4-3ce1-41c8-9b42-226e63dfa0b0
2026-02-19 02:17:48,307 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/887890f3-39c9-4933-bf92-7eebfcb66799
2026-02-19 02:17:48,321 - INFO - Verified VN network id 11 for VN 106108f4-3ce1-41c8-9b42-226e63dfa0b0
2026-02-19 02:17:48,321 - INFO - Verifications in API Server for VN ctest-vn-89116071 passed
2026-02-19 02:17:48,321 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/106108f4-3ce1-41c8-9b42-226e63dfa0b0
2026-02-19 02:17:48,330 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/887890f3-39c9-4933-bf92-7eebfcb66799
2026-02-19 02:17:48,337 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/887890f3-39c9-4933-bf92-7eebfcb66799
2026-02-19 02:17:48,344 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f05b6cc7-ee18-45c7-b7d6-a2a3ae5d0af4
2026-02-19 02:17:48,356 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-89116071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67845661', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1180234422434218440', 'uuid-lslong': '11187542281859080368'}, 'enable': 'true', 'created': '2026-02-19T02:17:46', 'last-modified': '2026-02-19T02:17:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.973788'}
2026-02-19 02:17:48,362 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-19 02:17:48,362 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89116071 passed
2026-02-19 02:17:48,362 - DEBUG - ====Verifying policy data for ctest-vn-89116071 in API_Server ======
2026-02-19 02:17:48,362 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-19 02:17:48,374 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d8c9f0e0-2c92-452e-9375-1d23952d0ce8
2026-02-19 02:17:48,387 - DEBUG - Requesting: http://10.0.0.50:8082/project/b4cec3e1-ce42-4ae9-af6e-8fa275df1b28
2026-02-19 02:17:48,470 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/106108f4-3ce1-41c8-9b42-226e63dfa0b0
2026-02-19 02:17:48,480 - DEBUG - ==>Verifying data for policy with id: 810df50c-f6b8-4692-804a-34ea366bf8f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-67845661', 'ctest-policy-allow-all-92563424']
2026-02-19 02:17:48,480 - INFO - VN ctest-vn-89116071 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-19 02:17:48,480 - DEBUG - Verifying the vn in opserver
2026-02-19 02:17:48,480 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-89116071 virtual network link through opserver 10.0.0.50
2026-02-19 02:17:48,480 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-19 02:17:48,820 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-19 02:17:48,892 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-89116071', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-89116071?flat'}
2026-02-19 02:17:48,892 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-89116071 is found in opserver
2026-02-19 02:17:48,902 - DEBUG - Do not have enough data to verify VN in agent
2026-02-19 02:17:48,908 - DEBUG - VRF ids for VN ctest-vn-89116071: {}
2026-02-19 02:17:48,908 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-19 02:17:48,914 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d8c9f0e0-2c92-452e-9375-1d23952d0ce8
2026-02-19 02:17:48,925 - DEBUG - Requesting: http://10.0.0.50:8082/project/b4cec3e1-ce42-4ae9-af6e-8fa275df1b28
2026-02-19 02:17:48,991 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/513f7a94-99e6-4302-a20c-5e9e901c020d
2026-02-19 02:17:49,004 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/513f7a94-99e6-4302-a20c-5e9e901c020d
2026-02-19 02:17:49,013 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6696dd7c-bd1b-4a6c-b16a-8f0b2ed54eb0
2026-02-19 02:17:49,021 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6696dd7c-bd1b-4a6c-b16a-8f0b2ed54eb0
2026-02-19 02:17:49,029 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/92a77720-13f1-4d62-a615-3d208b4f4733
2026-02-19 02:17:49,036 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-19 02:17:49,036 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/513f7a94-99e6-4302-a20c-5e9e901c020d
2026-02-19 02:17:49,046 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6696dd7c-bd1b-4a6c-b16a-8f0b2ed54eb0
2026-02-19 02:17:49,060 - INFO - Verified VN network id 12 for VN 513f7a94-99e6-4302-a20c-5e9e901c020d
2026-02-19 02:17:49,061 - INFO - Verifications in API Server for VN ctest-vn-16293835 passed
2026-02-19 02:17:49,061 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/513f7a94-99e6-4302-a20c-5e9e901c020d
2026-02-19 02:17:49,070 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6696dd7c-bd1b-4a6c-b16a-8f0b2ed54eb0
2026-02-19 02:17:49,077 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6696dd7c-bd1b-4a6c-b16a-8f0b2ed54eb0
2026-02-19 02:17:49,084 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/92a77720-13f1-4d62-a615-3d208b4f4733
2026-02-19 02:17:49,098 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-16293835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67845661', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5854532819260687106', 'uuid-lslong': '11676811968980451853'}, 'enable': 'true', 'created': '2026-02-19T02:17:46', 'last-modified': '2026-02-19T02:17:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.485524'}
2026-02-19 02:17:49,105 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-19 02:17:49,105 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16293835 passed
2026-02-19 02:17:49,105 - DEBUG - ====Verifying policy data for ctest-vn-16293835 in API_Server ======
2026-02-19 02:17:49,105 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-19 02:17:49,111 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d8c9f0e0-2c92-452e-9375-1d23952d0ce8
2026-02-19 02:17:49,122 - DEBUG - Requesting: http://10.0.0.50:8082/project/b4cec3e1-ce42-4ae9-af6e-8fa275df1b28
2026-02-19 02:17:49,199 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/513f7a94-99e6-4302-a20c-5e9e901c020d
2026-02-19 02:17:49,209 - DEBUG - ==>Verifying data for policy with id: 810df50c-f6b8-4692-804a-34ea366bf8f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-67845661', 'ctest-policy-allow-all-92563424']
2026-02-19 02:17:49,209 - INFO - VN ctest-vn-16293835 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-19 02:17:49,209 - DEBUG - Verifying the vn in opserver
2026-02-19 02:17:49,209 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-16293835 virtual network link through opserver 10.0.0.50
2026-02-19 02:17:49,209 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-19 02:17:49,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-16293835', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-16293835?flat'}
2026-02-19 02:17:49,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67845661:ctest-vn-16293835 is found in opserver
2026-02-19 02:17:49,229 - DEBUG - Do not have enough data to verify VN in agent
2026-02-19 02:17:49,234 - DEBUG - VRF ids for VN ctest-vn-16293835: {}
2026-02-19 02:17:49,292 - DEBUG - Services list from nova: [