2026-02-09 23:01:24,187 - INFO - Domain Default found not creating
2026-02-09 23:01:24,329 - INFO - Project ctest-TestBasicPolicy-26976821 not found, creating it
2026-02-09 23:01:24,747 - INFO - Created Project:ctest-TestBasicPolicy-26976821, ID : bb804878-ed03-41c2-ae82-11adcd0d0e30
2026-02-09 23:01:26,139 - INFO - ================================================================================
2026-02-09 23:01:26,139 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 23:01:26,139 - 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-09 23:01:26,397 - DEBUG - Nothing to compare xmpp stats {'10.0.0.64': {'10.20.0.254': '0'}} with
2026-02-09 23:01:26,397 - INFO - Initial checks done. Running the testcase now
2026-02-09 23:01:26,397 - INFO -
2026-02-09 23:01:26,919 - DEBUG - Response for create_network : {'network': {'id': '9a647d1a-7545-4f6a-b2bf-98b77127b30a', 'name': 'ctest-vn-70869548', 'tenant_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'project_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26976821', 'ctest-vn-70869548'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 23:01:27,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '53647bad-d3e6-4fa9-b0c8-4025c27764e3', 'name': '', 'tenant_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'network_id': '9a647d1a-7545-4f6a-b2bf-98b77127b30a', 'ip_version': 4, 'cidr': '212.59.144.192/26', 'allocation_pools': [{'start': '212.59.144.194', 'end': '212.59.144.254'}], 'gateway_ip': '212.59.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.59.144.194', 'tags': [], 'project_id': 'bb804878ed0341c2ae8211adcd0d0e30'}}
2026-02-09 23:01:27,139 - INFO - Created VN ctest-vn-70869548
2026-02-09 23:01:27,192 - DEBUG - VN ctest-vn-70869548 UUID is 9a647d1a-7545-4f6a-b2bf-98b77127b30a
2026-02-09 23:01:27,509 - DEBUG - Response for create_network : {'network': {'id': '9b5479ed-5f35-4d1b-8664-454f7b5c9994', 'name': 'ctest-vn-73666661', 'tenant_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'project_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26976821', 'ctest-vn-73666661'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 23:01:27,661 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6ee3852-9d46-4c85-867a-f490e15b795c', 'name': '', 'tenant_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'network_id': '9b5479ed-5f35-4d1b-8664-454f7b5c9994', 'ip_version': 4, 'cidr': '120.78.252.0/26', 'allocation_pools': [{'start': '120.78.252.2', 'end': '120.78.252.62'}], 'gateway_ip': '120.78.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.78.252.2', 'tags': [], 'project_id': 'bb804878ed0341c2ae8211adcd0d0e30'}}
2026-02-09 23:01:27,687 - INFO - Created VN ctest-vn-73666661
2026-02-09 23:01:27,740 - DEBUG - VN ctest-vn-73666661 UUID is 9b5479ed-5f35-4d1b-8664-454f7b5c9994
2026-02-09 23:01:27,892 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-70869548, 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-26976821:ctest-vn-73666661, 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-09 23:01:28,181 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a647d1a-7545-4f6a-b2bf-98b77127b30a', 'name': 'ctest-vn-70869548', 'tenant_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'project_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53647bad-d3e6-4fa9-b0c8-4025c27764e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26976821', 'ctest-vn-70869548'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26976821', 'ctest-policy-allow-all-47203519']], 'subnet_ipam': [{'subnet_cidr': '212.59.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 23:01:28,401 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b5479ed-5f35-4d1b-8664-454f7b5c9994', 'name': 'ctest-vn-73666661', 'tenant_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'project_id': 'bb804878ed0341c2ae8211adcd0d0e30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6ee3852-9d46-4c85-867a-f490e15b795c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26976821', 'ctest-vn-73666661'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26976821', 'ctest-policy-allow-all-47203519']], 'subnet_ipam': [{'subnet_cidr': '120.78.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 23:01:28,564 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2026-02-09 23:01:28,863 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2026-02-09 23:01:28,941 - DEBUG - Requesting: http://10.0.0.64:8082/domain/f0dfb808-cf74-4636-99c1-32d02cc7e11f
2026-02-09 23:01:28,953 - DEBUG - Requesting: http://10.0.0.64:8082/project/bb804878-ed03-41c2-ae82-11adcd0d0e30
2026-02-09 23:01:29,028 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9a647d1a-7545-4f6a-b2bf-98b77127b30a
2026-02-09 23:01:29,038 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9a647d1a-7545-4f6a-b2bf-98b77127b30a
2026-02-09 23:01:29,047 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/26330b3a-eb45-42d2-bcc6-80d120a0bf0c
2026-02-09 23:01:29,053 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/26330b3a-eb45-42d2-bcc6-80d120a0bf0c
2026-02-09 23:01:29,059 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/38af2970-f88d-452f-a39e-03f0c37fc236
2026-02-09 23:01:29,065 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 23:01:29,065 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9a647d1a-7545-4f6a-b2bf-98b77127b30a
2026-02-09 23:01:29,073 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/26330b3a-eb45-42d2-bcc6-80d120a0bf0c
2026-02-09 23:01:29,087 - INFO - Verified VN network id 11 for VN 9a647d1a-7545-4f6a-b2bf-98b77127b30a
2026-02-09 23:01:29,087 - INFO - Verifications in API Server for VN ctest-vn-70869548 passed
2026-02-09 23:01:29,087 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9a647d1a-7545-4f6a-b2bf-98b77127b30a
2026-02-09 23:01:29,095 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/26330b3a-eb45-42d2-bcc6-80d120a0bf0c
2026-02-09 23:01:29,101 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/26330b3a-eb45-42d2-bcc6-80d120a0bf0c
2026-02-09 23:01:29,107 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/38af2970-f88d-452f-a39e-03f0c37fc236
2026-02-09 23:01:29,118 - DEBUG - Control-node 10.0.0.64 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-70869548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26976821', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11125154532102066026', 'uuid-lslong': '12880181372947772170'}, 'enable': 'true', 'created': '2026-02-09T23:01:26', 'last-modified': '2026-02-09T23:01:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960334'}
2026-02-09 23:01:29,123 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 23:01:29,123 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70869548 passed
2026-02-09 23:01:29,123 - DEBUG - ====Verifying policy data for ctest-vn-70869548 in API_Server ======
2026-02-09 23:01:29,123 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2026-02-09 23:01:29,128 - DEBUG - Requesting: http://10.0.0.64:8082/domain/f0dfb808-cf74-4636-99c1-32d02cc7e11f
2026-02-09 23:01:29,137 - DEBUG - Requesting: http://10.0.0.64:8082/project/bb804878-ed03-41c2-ae82-11adcd0d0e30
2026-02-09 23:01:29,221 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9a647d1a-7545-4f6a-b2bf-98b77127b30a
2026-02-09 23:01:29,229 - DEBUG - ==>Verifying data for policy with id: 26ba372b-6255-491d-8678-1e87b37a2c74, fqn: ['default-domain', 'ctest-TestBasicPolicy-26976821', 'ctest-policy-allow-all-47203519']
2026-02-09 23:01:29,229 - INFO - VN ctest-vn-70869548 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 23:01:29,229 - DEBUG - Verifying the vn in opserver
2026-02-09 23:01:29,229 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-70869548 virtual network link through opserver 10.0.0.64
2026-02-09 23:01:29,229 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks
2026-02-09 23:01:29,520 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks
2026-02-09 23:01:29,573 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-70869548', 'href': 'http://10.0.0.64:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-70869548?flat'}
2026-02-09 23:01:29,573 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-70869548 is found in opserver
2026-02-09 23:01:29,581 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 23:01:29,585 - DEBUG - VRF ids for VN ctest-vn-70869548: {}
2026-02-09 23:01:29,585 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2026-02-09 23:01:29,590 - DEBUG - Requesting: http://10.0.0.64:8082/domain/f0dfb808-cf74-4636-99c1-32d02cc7e11f
2026-02-09 23:01:29,599 - DEBUG - Requesting: http://10.0.0.64:8082/project/bb804878-ed03-41c2-ae82-11adcd0d0e30
2026-02-09 23:01:29,667 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9b5479ed-5f35-4d1b-8664-454f7b5c9994
2026-02-09 23:01:29,677 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9b5479ed-5f35-4d1b-8664-454f7b5c9994
2026-02-09 23:01:29,685 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/b776a814-9655-48c7-a2d3-5b242b522d6d
2026-02-09 23:01:29,691 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/b776a814-9655-48c7-a2d3-5b242b522d6d
2026-02-09 23:01:29,696 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/b849b8ee-74b8-483b-8b33-f9008115e3ae
2026-02-09 23:01:29,702 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 23:01:29,702 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9b5479ed-5f35-4d1b-8664-454f7b5c9994
2026-02-09 23:01:29,710 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/b776a814-9655-48c7-a2d3-5b242b522d6d
2026-02-09 23:01:29,721 - INFO - Verified VN network id 12 for VN 9b5479ed-5f35-4d1b-8664-454f7b5c9994
2026-02-09 23:01:29,721 - INFO - Verifications in API Server for VN ctest-vn-73666661 passed
2026-02-09 23:01:29,722 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9b5479ed-5f35-4d1b-8664-454f7b5c9994
2026-02-09 23:01:29,730 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/b776a814-9655-48c7-a2d3-5b242b522d6d
2026-02-09 23:01:29,735 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/b776a814-9655-48c7-a2d3-5b242b522d6d
2026-02-09 23:01:29,741 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/b849b8ee-74b8-483b-8b33-f9008115e3ae
2026-02-09 23:01:29,751 - DEBUG - Control-node 10.0.0.64 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-73666661', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26976821', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11192705034334063899', 'uuid-lslong': '9683941306427808148'}, 'enable': 'true', 'created': '2026-02-09T23:01:27', 'last-modified': '2026-02-09T23:01:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.374353'}
2026-02-09 23:01:29,756 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 23:01:29,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73666661 passed
2026-02-09 23:01:29,756 - DEBUG - ====Verifying policy data for ctest-vn-73666661 in API_Server ======
2026-02-09 23:01:29,756 - DEBUG - Requesting: http://10.0.0.64:8082/domains
2026-02-09 23:01:29,761 - DEBUG - Requesting: http://10.0.0.64:8082/domain/f0dfb808-cf74-4636-99c1-32d02cc7e11f
2026-02-09 23:01:29,771 - DEBUG - Requesting: http://10.0.0.64:8082/project/bb804878-ed03-41c2-ae82-11adcd0d0e30
2026-02-09 23:01:29,839 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/9b5479ed-5f35-4d1b-8664-454f7b5c9994
2026-02-09 23:01:29,848 - DEBUG - ==>Verifying data for policy with id: 26ba372b-6255-491d-8678-1e87b37a2c74, fqn: ['default-domain', 'ctest-TestBasicPolicy-26976821', 'ctest-policy-allow-all-47203519']
2026-02-09 23:01:29,848 - INFO - VN ctest-vn-73666661 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 23:01:29,849 - DEBUG - Verifying the vn in opserver
2026-02-09 23:01:29,849 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-73666661 virtual network link through opserver 10.0.0.64
2026-02-09 23:01:29,849 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks
2026-02-09 23:01:29,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-73666661', 'href': 'http://10.0.0.64:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-73666661?flat'}
2026-02-09 23:01:29,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26976821:ctest-vn-73666661 is found in opserver
2026-02-09 23:01:29,866 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 23:01:29,870 - DEBUG - VRF ids for VN ctest-vn-73666661: {}
2026-02-09 23:01:29,920 - DEBUG - Services list from nova: [