2025-12-04 02:41:33,333 - INFO - Domain Default found not creating
2025-12-04 02:41:33,513 - INFO - Project ctest-TestBasicPolicy-84220974 not found, creating it
2025-12-04 02:41:34,020 - INFO - Created Project:ctest-TestBasicPolicy-84220974, ID : ef8f59dd-fbc4-4f67-8cf0-1f5a34ea34c2
2025-12-04 02:41:35,708 - INFO - ================================================================================
2025-12-04 02:41:35,709 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-04 02:41:35,709 - 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-12-04 02:41:35,972 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-12-04 02:41:35,972 - INFO - Initial checks done. Running the testcase now
2025-12-04 02:41:35,972 - INFO -
2025-12-04 02:41:36,614 - DEBUG - Response for create_network : {'network': {'id': '1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4', 'name': 'ctest-vn-29451081', 'tenant_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'project_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84220974', 'ctest-vn-29451081'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:41:36,830 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd0d4e1d-16b4-442c-86a6-9bf065a53ef7', 'name': '', 'tenant_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'network_id': '1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4', 'ip_version': 4, 'cidr': '43.152.82.0/26', 'allocation_pools': [{'start': '43.152.82.2', 'end': '43.152.82.62'}], 'gateway_ip': '43.152.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.152.82.2', 'tags': [], 'project_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2'}}
2025-12-04 02:41:36,852 - INFO - Created VN ctest-vn-29451081
2025-12-04 02:41:36,906 - DEBUG - VN ctest-vn-29451081 UUID is 1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4
2025-12-04 02:41:37,208 - DEBUG - Response for create_network : {'network': {'id': '85ffb33e-0ea4-43ad-b65d-de61aa275ceb', 'name': 'ctest-vn-66169352', 'tenant_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'project_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84220974', 'ctest-vn-66169352'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:41:37,455 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1fae97e-3f65-424d-b480-db6a68e97929', 'name': '', 'tenant_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'network_id': '85ffb33e-0ea4-43ad-b65d-de61aa275ceb', 'ip_version': 4, 'cidr': '54.45.152.192/26', 'allocation_pools': [{'start': '54.45.152.194', 'end': '54.45.152.254'}], 'gateway_ip': '54.45.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.45.152.194', 'tags': [], 'project_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2'}}
2025-12-04 02:41:37,475 - INFO - Created VN ctest-vn-66169352
2025-12-04 02:41:37,530 - DEBUG - VN ctest-vn-66169352 UUID is 85ffb33e-0ea4-43ad-b65d-de61aa275ceb
2025-12-04 02:41:37,647 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-29451081, 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-84220974:ctest-vn-66169352, 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-12-04 02:41:37,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4', 'name': 'ctest-vn-29451081', 'tenant_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'project_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd0d4e1d-16b4-442c-86a6-9bf065a53ef7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84220974', 'ctest-vn-29451081'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84220974', 'ctest-policy-allow-all-05581097']], 'subnet_ipam': [{'subnet_cidr': '43.152.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:41:38,219 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85ffb33e-0ea4-43ad-b65d-de61aa275ceb', 'name': 'ctest-vn-66169352', 'tenant_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'project_id': 'ef8f59ddfbc44f678cf01f5a34ea34c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1fae97e-3f65-424d-b480-db6a68e97929'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84220974', 'ctest-vn-66169352'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84220974', 'ctest-policy-allow-all-05581097']], 'subnet_ipam': [{'subnet_cidr': '54.45.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:41:38,370 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 02:41:38,716 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 02:41:38,750 - DEBUG - Requesting: http://10.0.0.38:8082/domain/936f408a-4e9d-4518-b764-6d352fd347fd
2025-12-04 02:41:38,762 - DEBUG - Requesting: http://10.0.0.38:8082/project/ef8f59dd-fbc4-4f67-8cf0-1f5a34ea34c2
2025-12-04 02:41:38,833 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4
2025-12-04 02:41:38,845 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4
2025-12-04 02:41:38,854 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/294ca28a-d317-4eb1-9665-620274ca83fd
2025-12-04 02:41:38,862 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/294ca28a-d317-4eb1-9665-620274ca83fd
2025-12-04 02:41:38,870 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77deed4d-a111-4196-8e55-1bd27472f3d5
2025-12-04 02:41:38,877 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 02:41:38,877 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4
2025-12-04 02:41:38,886 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/294ca28a-d317-4eb1-9665-620274ca83fd
2025-12-04 02:41:38,900 - INFO - Verified VN network id 11 for VN 1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4
2025-12-04 02:41:38,900 - INFO - Verifications in API Server for VN ctest-vn-29451081 passed
2025-12-04 02:41:38,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4
2025-12-04 02:41:38,908 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/294ca28a-d317-4eb1-9665-620274ca83fd
2025-12-04 02:41:38,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/294ca28a-d317-4eb1-9665-620274ca83fd
2025-12-04 02:41:38,920 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77deed4d-a111-4196-8e55-1bd27472f3d5
2025-12-04 02:41:38,931 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-29451081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84220974', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2201401830673633117', 'uuid-lslong': '13175772822002337988'}, 'enable': 'true', 'created': '2025-12-04T02:41:36', 'last-modified': '2025-12-04T02:41:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019765'}
2025-12-04 02:41:38,936 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 02:41:38,938 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29451081 passed
2025-12-04 02:41:38,938 - DEBUG - ====Verifying policy data for ctest-vn-29451081 in API_Server ======
2025-12-04 02:41:38,938 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 02:41:38,944 - DEBUG - Requesting: http://10.0.0.38:8082/domain/936f408a-4e9d-4518-b764-6d352fd347fd
2025-12-04 02:41:38,955 - DEBUG - Requesting: http://10.0.0.38:8082/project/ef8f59dd-fbc4-4f67-8cf0-1f5a34ea34c2
2025-12-04 02:41:39,028 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e8cf34d-2d32-4f5d-b6d9-bf92c8b208c4
2025-12-04 02:41:39,038 - DEBUG - ==>Verifying data for policy with id: 34ece050-c700-4270-bf69-881c281df8ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-84220974', 'ctest-policy-allow-all-05581097']
2025-12-04 02:41:39,038 - INFO - VN ctest-vn-29451081 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 02:41:39,038 - DEBUG - Verifying the vn in opserver
2025-12-04 02:41:39,038 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-29451081 virtual network link through opserver 10.0.0.38
2025-12-04 02:41:39,038 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 02:41:39,375 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 02:41:39,440 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-29451081', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-29451081?flat'}
2025-12-04 02:41:39,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-29451081 is found in opserver
2025-12-04 02:41:39,450 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 02:41:39,455 - DEBUG - VRF ids for VN ctest-vn-29451081: {}
2025-12-04 02:41:39,455 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 02:41:39,460 - DEBUG - Requesting: http://10.0.0.38:8082/domain/936f408a-4e9d-4518-b764-6d352fd347fd
2025-12-04 02:41:39,472 - DEBUG - Requesting: http://10.0.0.38:8082/project/ef8f59dd-fbc4-4f67-8cf0-1f5a34ea34c2
2025-12-04 02:41:39,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85ffb33e-0ea4-43ad-b65d-de61aa275ceb
2025-12-04 02:41:39,558 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85ffb33e-0ea4-43ad-b65d-de61aa275ceb
2025-12-04 02:41:39,567 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39f383ad-17ff-4b97-a278-2a38c6f7f4ce
2025-12-04 02:41:39,574 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39f383ad-17ff-4b97-a278-2a38c6f7f4ce
2025-12-04 02:41:39,580 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b711a8d3-8ac2-4b9d-bb74-79bf86c16562
2025-12-04 02:41:39,589 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 02:41:39,589 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85ffb33e-0ea4-43ad-b65d-de61aa275ceb
2025-12-04 02:41:39,598 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39f383ad-17ff-4b97-a278-2a38c6f7f4ce
2025-12-04 02:41:39,612 - INFO - Verified VN network id 12 for VN 85ffb33e-0ea4-43ad-b65d-de61aa275ceb
2025-12-04 02:41:39,612 - INFO - Verifications in API Server for VN ctest-vn-66169352 passed
2025-12-04 02:41:39,612 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85ffb33e-0ea4-43ad-b65d-de61aa275ceb
2025-12-04 02:41:39,621 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39f383ad-17ff-4b97-a278-2a38c6f7f4ce
2025-12-04 02:41:39,628 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39f383ad-17ff-4b97-a278-2a38c6f7f4ce
2025-12-04 02:41:39,635 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b711a8d3-8ac2-4b9d-bb74-79bf86c16562
2025-12-04 02:41:39,647 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-66169352', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84220974', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9655633205220623277', 'uuid-lslong': '13140903798784875755'}, 'enable': 'true', 'created': '2025-12-04T02:41:37', 'last-modified': '2025-12-04T02:41:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.495734'}
2025-12-04 02:41:39,653 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 02:41:39,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66169352 passed
2025-12-04 02:41:39,654 - DEBUG - ====Verifying policy data for ctest-vn-66169352 in API_Server ======
2025-12-04 02:41:39,654 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 02:41:39,659 - DEBUG - Requesting: http://10.0.0.38:8082/domain/936f408a-4e9d-4518-b764-6d352fd347fd
2025-12-04 02:41:39,670 - DEBUG - Requesting: http://10.0.0.38:8082/project/ef8f59dd-fbc4-4f67-8cf0-1f5a34ea34c2
2025-12-04 02:41:39,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85ffb33e-0ea4-43ad-b65d-de61aa275ceb
2025-12-04 02:41:39,748 - DEBUG - ==>Verifying data for policy with id: 34ece050-c700-4270-bf69-881c281df8ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-84220974', 'ctest-policy-allow-all-05581097']
2025-12-04 02:41:39,748 - INFO - VN ctest-vn-66169352 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 02:41:39,748 - DEBUG - Verifying the vn in opserver
2025-12-04 02:41:39,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-66169352 virtual network link through opserver 10.0.0.38
2025-12-04 02:41:39,749 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 02:41:39,759 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-66169352', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-66169352?flat'}
2025-12-04 02:41:39,759 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84220974:ctest-vn-66169352 is found in opserver
2025-12-04 02:41:39,769 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 02:41:39,774 - DEBUG - VRF ids for VN ctest-vn-66169352: {}
2025-12-04 02:41:39,835 - DEBUG - Services list from nova: [