2026-06-19 14:01:38,971 - INFO - Domain Default found not creating
2026-06-19 14:01:39,144 - INFO - Project ctest-TestBasicPolicy-15099110 not found, creating it
2026-06-19 14:01:39,589 - INFO - Created Project:ctest-TestBasicPolicy-15099110, ID : 48fa83c8-0db8-4a94-9f02-baa9338f58d5
2026-06-19 14:01:41,222 - INFO - ================================================================================
2026-06-19 14:01:41,222 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-19 14:01:41,222 - 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-06-19 14:01:41,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-06-19 14:01:41,474 - INFO - Initial checks done. Running the testcase now
2026-06-19 14:01:41,474 - INFO -
2026-06-19 14:01:42,076 - DEBUG - Response for create_network : {'network': {'id': 'd4fdf233-62c7-4bec-ac1c-c478410a8b79', 'name': 'ctest-vn-72866206', 'tenant_id': '48fa83c80db84a949f02baa9338f58d5', 'project_id': '48fa83c80db84a949f02baa9338f58d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15099110', 'ctest-vn-72866206'], 'port_security_enabled': True, 'description': ''}}
2026-06-19 14:01:42,259 - DEBUG - Response for create_subnet : {'subnet': {'id': '357ec595-5dbe-4e51-b9f0-77d5776b5d4e', 'name': '', 'tenant_id': '48fa83c80db84a949f02baa9338f58d5', 'network_id': 'd4fdf233-62c7-4bec-ac1c-c478410a8b79', 'ip_version': 4, 'cidr': '85.7.34.64/26', 'allocation_pools': [{'start': '85.7.34.66', 'end': '85.7.34.126'}], 'gateway_ip': '85.7.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.7.34.66', 'tags': [], 'project_id': '48fa83c80db84a949f02baa9338f58d5'}}
2026-06-19 14:01:42,276 - INFO - Created VN ctest-vn-72866206
2026-06-19 14:01:42,329 - DEBUG - VN ctest-vn-72866206 UUID is d4fdf233-62c7-4bec-ac1c-c478410a8b79
2026-06-19 14:01:42,655 - DEBUG - Response for create_network : {'network': {'id': '3296a87b-e1f0-4904-977e-93e563b9527d', 'name': 'ctest-vn-96889156', 'tenant_id': '48fa83c80db84a949f02baa9338f58d5', 'project_id': '48fa83c80db84a949f02baa9338f58d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15099110', 'ctest-vn-96889156'], 'port_security_enabled': True, 'description': ''}}
2026-06-19 14:01:42,804 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd86d432-ad17-442e-9c64-b68475e4a2be', 'name': '', 'tenant_id': '48fa83c80db84a949f02baa9338f58d5', 'network_id': '3296a87b-e1f0-4904-977e-93e563b9527d', 'ip_version': 4, 'cidr': '50.62.20.128/26', 'allocation_pools': [{'start': '50.62.20.130', 'end': '50.62.20.190'}], 'gateway_ip': '50.62.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.62.20.130', 'tags': [], 'project_id': '48fa83c80db84a949f02baa9338f58d5'}}
2026-06-19 14:01:42,817 - INFO - Created VN ctest-vn-96889156
2026-06-19 14:01:42,873 - DEBUG - VN ctest-vn-96889156 UUID is 3296a87b-e1f0-4904-977e-93e563b9527d
2026-06-19 14:01:43,017 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-72866206, 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-15099110:ctest-vn-96889156, 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-06-19 14:01:43,303 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4fdf233-62c7-4bec-ac1c-c478410a8b79', 'name': 'ctest-vn-72866206', 'tenant_id': '48fa83c80db84a949f02baa9338f58d5', 'project_id': '48fa83c80db84a949f02baa9338f58d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['357ec595-5dbe-4e51-b9f0-77d5776b5d4e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15099110', 'ctest-vn-72866206'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15099110', 'ctest-policy-allow-all-08384035']], 'subnet_ipam': [{'subnet_cidr': '85.7.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-19 14:01:43,542 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3296a87b-e1f0-4904-977e-93e563b9527d', 'name': 'ctest-vn-96889156', 'tenant_id': '48fa83c80db84a949f02baa9338f58d5', 'project_id': '48fa83c80db84a949f02baa9338f58d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd86d432-ad17-442e-9c64-b68475e4a2be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15099110', 'ctest-vn-96889156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15099110', 'ctest-policy-allow-all-08384035']], 'subnet_ipam': [{'subnet_cidr': '50.62.20.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-19 14:01:43,713 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 14:01:44,075 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 14:01:44,099 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0d5cbf3e-7f62-4ab5-9f6d-d039e28ff9b6
2026-06-19 14:01:44,110 - DEBUG - Requesting: http://10.0.0.33:8082/project/48fa83c8-0db8-4a94-9f02-baa9338f58d5
2026-06-19 14:01:44,184 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d4fdf233-62c7-4bec-ac1c-c478410a8b79
2026-06-19 14:01:44,194 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d4fdf233-62c7-4bec-ac1c-c478410a8b79
2026-06-19 14:01:44,202 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a0f809cd-1b67-45aa-a44d-7407d4426f2a
2026-06-19 14:01:44,208 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a0f809cd-1b67-45aa-a44d-7407d4426f2a
2026-06-19 14:01:44,214 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4fee3c29-5760-4942-b7ae-e9f7a27bd41a
2026-06-19 14:01:44,219 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-19 14:01:44,219 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d4fdf233-62c7-4bec-ac1c-c478410a8b79
2026-06-19 14:01:44,227 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a0f809cd-1b67-45aa-a44d-7407d4426f2a
2026-06-19 14:01:44,238 - INFO - Verified VN network id 11 for VN d4fdf233-62c7-4bec-ac1c-c478410a8b79
2026-06-19 14:01:44,238 - INFO - Verifications in API Server for VN ctest-vn-72866206 passed
2026-06-19 14:01:44,238 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d4fdf233-62c7-4bec-ac1c-c478410a8b79
2026-06-19 14:01:44,246 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a0f809cd-1b67-45aa-a44d-7407d4426f2a
2026-06-19 14:01:44,251 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a0f809cd-1b67-45aa-a44d-7407d4426f2a
2026-06-19 14:01:44,257 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4fee3c29-5760-4942-b7ae-e9f7a27bd41a
2026-06-19 14:01:44,266 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-72866206', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15099110', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15347689407663000556', 'uuid-lslong': '12402003494637833081'}, 'enable': 'true', 'created': '2026-06-19T14:01:42', 'last-modified': '2026-06-19T14:01:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985909'}
2026-06-19 14:01:44,272 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-19 14:01:44,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72866206 passed
2026-06-19 14:01:44,272 - DEBUG - ====Verifying policy data for ctest-vn-72866206 in API_Server ======
2026-06-19 14:01:44,272 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 14:01:44,276 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0d5cbf3e-7f62-4ab5-9f6d-d039e28ff9b6
2026-06-19 14:01:44,286 - DEBUG - Requesting: http://10.0.0.33:8082/project/48fa83c8-0db8-4a94-9f02-baa9338f58d5
2026-06-19 14:01:44,359 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d4fdf233-62c7-4bec-ac1c-c478410a8b79
2026-06-19 14:01:44,367 - DEBUG - ==>Verifying data for policy with id: 0631060d-c6db-4fb4-aff6-20931cea2dc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-15099110', 'ctest-policy-allow-all-08384035']
2026-06-19 14:01:44,367 - INFO - VN ctest-vn-72866206 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-19 14:01:44,367 - DEBUG - Verifying the vn in opserver
2026-06-19 14:01:44,367 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-72866206 virtual network link through opserver 10.0.0.33
2026-06-19 14:01:44,367 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-19 14:01:44,726 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-19 14:01:44,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-72866206', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-72866206?flat'}
2026-06-19 14:01:44,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-72866206 is found in opserver
2026-06-19 14:01:44,781 - DEBUG - Do not have enough data to verify VN in agent
2026-06-19 14:01:44,787 - DEBUG - VRF ids for VN ctest-vn-72866206: {}
2026-06-19 14:01:44,787 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 14:01:44,792 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0d5cbf3e-7f62-4ab5-9f6d-d039e28ff9b6
2026-06-19 14:01:44,801 - DEBUG - Requesting: http://10.0.0.33:8082/project/48fa83c8-0db8-4a94-9f02-baa9338f58d5
2026-06-19 14:01:44,880 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3296a87b-e1f0-4904-977e-93e563b9527d
2026-06-19 14:01:44,890 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3296a87b-e1f0-4904-977e-93e563b9527d
2026-06-19 14:01:44,899 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78aefe2b-0393-42b9-ad70-3c71514d92d4
2026-06-19 14:01:44,905 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78aefe2b-0393-42b9-ad70-3c71514d92d4
2026-06-19 14:01:44,911 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4cba4c2f-6641-4d4f-a56b-895c2a575a8a
2026-06-19 14:01:44,917 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-19 14:01:44,917 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3296a87b-e1f0-4904-977e-93e563b9527d
2026-06-19 14:01:44,926 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78aefe2b-0393-42b9-ad70-3c71514d92d4
2026-06-19 14:01:44,938 - INFO - Verified VN network id 12 for VN 3296a87b-e1f0-4904-977e-93e563b9527d
2026-06-19 14:01:44,939 - INFO - Verifications in API Server for VN ctest-vn-96889156 passed
2026-06-19 14:01:44,939 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3296a87b-e1f0-4904-977e-93e563b9527d
2026-06-19 14:01:44,948 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78aefe2b-0393-42b9-ad70-3c71514d92d4
2026-06-19 14:01:44,954 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78aefe2b-0393-42b9-ad70-3c71514d92d4
2026-06-19 14:01:44,960 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4cba4c2f-6641-4d4f-a56b-895c2a575a8a
2026-06-19 14:01:44,973 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-96889156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15099110', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3645286198428059908', 'uuid-lslong': '10916325160222544509'}, 'enable': 'true', 'created': '2026-06-19T14:01:42', 'last-modified': '2026-06-19T14:01:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449194'}
2026-06-19 14:01:44,978 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-19 14:01:44,978 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96889156 passed
2026-06-19 14:01:44,979 - DEBUG - ====Verifying policy data for ctest-vn-96889156 in API_Server ======
2026-06-19 14:01:44,979 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-19 14:01:44,984 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0d5cbf3e-7f62-4ab5-9f6d-d039e28ff9b6
2026-06-19 14:01:44,994 - DEBUG - Requesting: http://10.0.0.33:8082/project/48fa83c8-0db8-4a94-9f02-baa9338f58d5
2026-06-19 14:01:45,060 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3296a87b-e1f0-4904-977e-93e563b9527d
2026-06-19 14:01:45,070 - DEBUG - ==>Verifying data for policy with id: 0631060d-c6db-4fb4-aff6-20931cea2dc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-15099110', 'ctest-policy-allow-all-08384035']
2026-06-19 14:01:45,070 - INFO - VN ctest-vn-96889156 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-19 14:01:45,070 - DEBUG - Verifying the vn in opserver
2026-06-19 14:01:45,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-96889156 virtual network link through opserver 10.0.0.33
2026-06-19 14:01:45,070 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-19 14:01:45,079 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-96889156', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-96889156?flat'}
2026-06-19 14:01:45,079 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15099110:ctest-vn-96889156 is found in opserver
2026-06-19 14:01:45,088 - DEBUG - Do not have enough data to verify VN in agent
2026-06-19 14:01:45,092 - DEBUG - VRF ids for VN ctest-vn-96889156: {}
2026-06-19 14:01:45,145 - DEBUG - Services list from nova: [