2025-12-10 17:05:44,906 - INFO - Domain Default found not creating
2025-12-10 17:05:45,054 - INFO - Project ctest-TestBasicPolicy-76762445 not found, creating it
2025-12-10 17:05:45,499 - INFO - Created Project:ctest-TestBasicPolicy-76762445, ID : 3d60a014-f824-4abb-8f5f-d5e05efb48c8
2025-12-10 17:05:46,958 - INFO - ================================================================================
2025-12-10 17:05:46,958 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-10 17:05:46,958 - 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-10 17:05:47,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with
2025-12-10 17:05:47,209 - INFO - Initial checks done. Running the testcase now
2025-12-10 17:05:47,209 - INFO -
2025-12-10 17:05:47,732 - DEBUG - Response for create_network : {'network': {'id': 'b3727d23-546c-4afb-bf3d-f327b4446014', 'name': 'ctest-vn-72699099', 'tenant_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'project_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76762445', 'ctest-vn-72699099'], 'port_security_enabled': True, 'description': ''}}
2025-12-10 17:05:47,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '3170ef1e-501d-4e8f-bade-3d912e6ea830', 'name': '', 'tenant_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'network_id': 'b3727d23-546c-4afb-bf3d-f327b4446014', 'ip_version': 4, 'cidr': '24.215.35.128/26', 'allocation_pools': [{'start': '24.215.35.130', 'end': '24.215.35.190'}], 'gateway_ip': '24.215.35.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.215.35.130', 'tags': [], 'project_id': '3d60a014f8244abb8f5fd5e05efb48c8'}}
2025-12-10 17:05:47,902 - INFO - Created VN ctest-vn-72699099
2025-12-10 17:05:47,953 - DEBUG - VN ctest-vn-72699099 UUID is b3727d23-546c-4afb-bf3d-f327b4446014
2025-12-10 17:05:48,242 - DEBUG - Response for create_network : {'network': {'id': '3eb83025-aee7-4133-9401-19fa9d8fa180', 'name': 'ctest-vn-35785567', 'tenant_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'project_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76762445', 'ctest-vn-35785567'], 'port_security_enabled': True, 'description': ''}}
2025-12-10 17:05:48,445 - DEBUG - Response for create_subnet : {'subnet': {'id': '5479f572-62d1-4bf2-8cd8-640d77b1b98a', 'name': '', 'tenant_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'network_id': '3eb83025-aee7-4133-9401-19fa9d8fa180', 'ip_version': 4, 'cidr': '181.154.25.128/26', 'allocation_pools': [{'start': '181.154.25.130', 'end': '181.154.25.190'}], 'gateway_ip': '181.154.25.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.154.25.130', 'tags': [], 'project_id': '3d60a014f8244abb8f5fd5e05efb48c8'}}
2025-12-10 17:05:48,460 - INFO - Created VN ctest-vn-35785567
2025-12-10 17:05:48,513 - DEBUG - VN ctest-vn-35785567 UUID is 3eb83025-aee7-4133-9401-19fa9d8fa180
2025-12-10 17:05:48,653 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-72699099, 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-76762445:ctest-vn-35785567, 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-10 17:05:48,930 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3727d23-546c-4afb-bf3d-f327b4446014', 'name': 'ctest-vn-72699099', 'tenant_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'project_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3170ef1e-501d-4e8f-bade-3d912e6ea830'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76762445', 'ctest-vn-72699099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76762445', 'ctest-policy-allow-all-90240554']], 'subnet_ipam': [{'subnet_cidr': '24.215.35.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-10 17:05:49,139 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3eb83025-aee7-4133-9401-19fa9d8fa180', 'name': 'ctest-vn-35785567', 'tenant_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'project_id': '3d60a014f8244abb8f5fd5e05efb48c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5479f572-62d1-4bf2-8cd8-640d77b1b98a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76762445', 'ctest-vn-35785567'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76762445', 'ctest-policy-allow-all-90240554']], 'subnet_ipam': [{'subnet_cidr': '181.154.25.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-10 17:05:49,297 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-10 17:05:49,585 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-10 17:05:49,615 - DEBUG - Requesting: http://10.0.0.141:8082/domain/012a191c-4dbe-4738-824a-1fb29bb5bf4c
2025-12-10 17:05:49,625 - DEBUG - Requesting: http://10.0.0.141:8082/project/3d60a014-f824-4abb-8f5f-d5e05efb48c8
2025-12-10 17:05:49,693 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b3727d23-546c-4afb-bf3d-f327b4446014
2025-12-10 17:05:49,703 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b3727d23-546c-4afb-bf3d-f327b4446014
2025-12-10 17:05:49,711 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/83a0bfc4-1cda-4e3c-8389-55665856e56d
2025-12-10 17:05:49,717 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/83a0bfc4-1cda-4e3c-8389-55665856e56d
2025-12-10 17:05:49,722 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/51e6d2d2-3470-4a09-a5a2-1cb96f62c75c
2025-12-10 17:05:49,728 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-10 17:05:49,728 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b3727d23-546c-4afb-bf3d-f327b4446014
2025-12-10 17:05:49,735 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/83a0bfc4-1cda-4e3c-8389-55665856e56d
2025-12-10 17:05:49,748 - INFO - Verified VN network id 12 for VN b3727d23-546c-4afb-bf3d-f327b4446014
2025-12-10 17:05:49,748 - INFO - Verifications in API Server for VN ctest-vn-72699099 passed
2025-12-10 17:05:49,748 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b3727d23-546c-4afb-bf3d-f327b4446014
2025-12-10 17:05:49,756 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/83a0bfc4-1cda-4e3c-8389-55665856e56d
2025-12-10 17:05:49,762 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/83a0bfc4-1cda-4e3c-8389-55665856e56d
2025-12-10 17:05:49,767 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/51e6d2d2-3470-4a09-a5a2-1cb96f62c75c
2025-12-10 17:05:49,777 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-72699099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76762445', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12930535070827825915', 'uuid-lslong': '13780437786677239828'}, 'enable': 'true', 'created': '2025-12-10T17:05:47', 'last-modified': '2025-12-10T17:05:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.866814'}
2025-12-10 17:05:49,782 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-10 17:05:49,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72699099 passed
2025-12-10 17:05:49,782 - DEBUG - ====Verifying policy data for ctest-vn-72699099 in API_Server ======
2025-12-10 17:05:49,782 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-10 17:05:49,787 - DEBUG - Requesting: http://10.0.0.141:8082/domain/012a191c-4dbe-4738-824a-1fb29bb5bf4c
2025-12-10 17:05:49,796 - DEBUG - Requesting: http://10.0.0.141:8082/project/3d60a014-f824-4abb-8f5f-d5e05efb48c8
2025-12-10 17:05:49,872 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b3727d23-546c-4afb-bf3d-f327b4446014
2025-12-10 17:05:49,879 - DEBUG - ==>Verifying data for policy with id: 03b98ce8-72cc-479a-8c2a-5c8199ae902d, fqn: ['default-domain', 'ctest-TestBasicPolicy-76762445', 'ctest-policy-allow-all-90240554']
2025-12-10 17:05:49,880 - INFO - VN ctest-vn-72699099 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-10 17:05:49,880 - DEBUG - Verifying the vn in opserver
2025-12-10 17:05:49,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-72699099 virtual network link through opserver 10.0.0.141
2025-12-10 17:05:49,880 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-10 17:05:50,168 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-10 17:05:50,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-72699099', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-72699099?flat'}
2025-12-10 17:05:50,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-72699099 is found in opserver
2025-12-10 17:05:50,228 - DEBUG - Do not have enough data to verify VN in agent
2025-12-10 17:05:50,232 - DEBUG - VRF ids for VN ctest-vn-72699099: {}
2025-12-10 17:05:50,232 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-10 17:05:50,236 - DEBUG - Requesting: http://10.0.0.141:8082/domain/012a191c-4dbe-4738-824a-1fb29bb5bf4c
2025-12-10 17:05:50,245 - DEBUG - Requesting: http://10.0.0.141:8082/project/3d60a014-f824-4abb-8f5f-d5e05efb48c8
2025-12-10 17:05:50,307 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3eb83025-aee7-4133-9401-19fa9d8fa180
2025-12-10 17:05:50,317 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3eb83025-aee7-4133-9401-19fa9d8fa180
2025-12-10 17:05:50,324 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d1e58f4a-80f2-4fab-8078-65a071734a13
2025-12-10 17:05:50,329 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d1e58f4a-80f2-4fab-8078-65a071734a13
2025-12-10 17:05:50,334 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c7059302-ed52-4576-aafe-e8271bdd3350
2025-12-10 17:05:50,340 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-10 17:05:50,340 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3eb83025-aee7-4133-9401-19fa9d8fa180
2025-12-10 17:05:50,348 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d1e58f4a-80f2-4fab-8078-65a071734a13
2025-12-10 17:05:50,358 - INFO - Verified VN network id 13 for VN 3eb83025-aee7-4133-9401-19fa9d8fa180
2025-12-10 17:05:50,359 - INFO - Verifications in API Server for VN ctest-vn-35785567 passed
2025-12-10 17:05:50,359 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3eb83025-aee7-4133-9401-19fa9d8fa180
2025-12-10 17:05:50,366 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d1e58f4a-80f2-4fab-8078-65a071734a13
2025-12-10 17:05:50,371 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d1e58f4a-80f2-4fab-8078-65a071734a13
2025-12-10 17:05:50,376 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c7059302-ed52-4576-aafe-e8271bdd3350
2025-12-10 17:05:50,386 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-35785567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76762445', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4519415164472607027', 'uuid-lslong': '10664833956765999488'}, 'enable': 'true', 'created': '2025-12-10T17:05:48', 'last-modified': '2025-12-10T17:05:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.263110'}
2025-12-10 17:05:50,390 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-10 17:05:50,390 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35785567 passed
2025-12-10 17:05:50,391 - DEBUG - ====Verifying policy data for ctest-vn-35785567 in API_Server ======
2025-12-10 17:05:50,391 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-12-10 17:05:50,396 - DEBUG - Requesting: http://10.0.0.141:8082/domain/012a191c-4dbe-4738-824a-1fb29bb5bf4c
2025-12-10 17:05:50,409 - DEBUG - Requesting: http://10.0.0.141:8082/project/3d60a014-f824-4abb-8f5f-d5e05efb48c8
2025-12-10 17:05:50,480 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3eb83025-aee7-4133-9401-19fa9d8fa180
2025-12-10 17:05:50,489 - DEBUG - ==>Verifying data for policy with id: 03b98ce8-72cc-479a-8c2a-5c8199ae902d, fqn: ['default-domain', 'ctest-TestBasicPolicy-76762445', 'ctest-policy-allow-all-90240554']
2025-12-10 17:05:50,489 - INFO - VN ctest-vn-35785567 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-10 17:05:50,489 - DEBUG - Verifying the vn in opserver
2025-12-10 17:05:50,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-35785567 virtual network link through opserver 10.0.0.141
2025-12-10 17:05:50,489 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-12-10 17:05:50,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-35785567', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-35785567?flat'}
2025-12-10 17:05:50,498 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76762445:ctest-vn-35785567 is found in opserver
2025-12-10 17:05:50,506 - DEBUG - Do not have enough data to verify VN in agent
2025-12-10 17:05:50,510 - DEBUG - VRF ids for VN ctest-vn-35785567: {}
2025-12-10 17:05:50,564 - DEBUG - Services list from nova: [