2026-02-20 05:20:35,039 - INFO - Domain Default found not creating
2026-02-20 05:20:35,258 - INFO - Project ctest-TestBasicPolicy-50009097 not found, creating it
2026-02-20 05:20:35,781 - INFO - Created Project:ctest-TestBasicPolicy-50009097, ID : a8746596-e6fb-409b-b31e-280a50e3acdc
2026-02-20 05:20:37,610 - INFO - ================================================================================
2026-02-20 05:20:37,610 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-20 05:20:37,610 - 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-20 05:20:37,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-20 05:20:37,904 - INFO - Initial checks done. Running the testcase now
2026-02-20 05:20:37,904 - INFO -
2026-02-20 05:20:38,557 - DEBUG - Response for create_network : {'network': {'id': '3cdb254d-553d-4954-bd55-35cbac0eb39f', 'name': 'ctest-vn-82070714', 'tenant_id': 'a8746596e6fb409bb31e280a50e3acdc', 'project_id': 'a8746596e6fb409bb31e280a50e3acdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50009097', 'ctest-vn-82070714'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 05:20:38,765 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef0184cf-bbdd-4d32-8c3c-33cc1edd1dec', 'name': '', 'tenant_id': 'a8746596e6fb409bb31e280a50e3acdc', 'network_id': '3cdb254d-553d-4954-bd55-35cbac0eb39f', 'ip_version': 4, 'cidr': '31.73.158.64/26', 'allocation_pools': [{'start': '31.73.158.66', 'end': '31.73.158.126'}], 'gateway_ip': '31.73.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.73.158.66', 'tags': [], 'project_id': 'a8746596e6fb409bb31e280a50e3acdc'}}
2026-02-20 05:20:38,788 - INFO - Created VN ctest-vn-82070714
2026-02-20 05:20:38,843 - DEBUG - VN ctest-vn-82070714 UUID is 3cdb254d-553d-4954-bd55-35cbac0eb39f
2026-02-20 05:20:39,220 - DEBUG - Response for create_network : {'network': {'id': '48fd1215-6201-4abd-bed9-e42c038a99da', 'name': 'ctest-vn-81801243', 'tenant_id': 'a8746596e6fb409bb31e280a50e3acdc', 'project_id': 'a8746596e6fb409bb31e280a50e3acdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50009097', 'ctest-vn-81801243'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 05:20:39,437 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ac57365-18eb-4485-b843-6aca16eb381a', 'name': '', 'tenant_id': 'a8746596e6fb409bb31e280a50e3acdc', 'network_id': '48fd1215-6201-4abd-bed9-e42c038a99da', 'ip_version': 4, 'cidr': '209.203.17.64/26', 'allocation_pools': [{'start': '209.203.17.66', 'end': '209.203.17.126'}], 'gateway_ip': '209.203.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.203.17.66', 'tags': [], 'project_id': 'a8746596e6fb409bb31e280a50e3acdc'}}
2026-02-20 05:20:39,457 - INFO - Created VN ctest-vn-81801243
2026-02-20 05:20:39,511 - DEBUG - VN ctest-vn-81801243 UUID is 48fd1215-6201-4abd-bed9-e42c038a99da
2026-02-20 05:20:39,646 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-82070714, 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-50009097:ctest-vn-81801243, 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-20 05:20:39,976 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3cdb254d-553d-4954-bd55-35cbac0eb39f', 'name': 'ctest-vn-82070714', 'tenant_id': 'a8746596e6fb409bb31e280a50e3acdc', 'project_id': 'a8746596e6fb409bb31e280a50e3acdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef0184cf-bbdd-4d32-8c3c-33cc1edd1dec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50009097', 'ctest-vn-82070714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50009097', 'ctest-policy-allow-all-34208393']], 'subnet_ipam': [{'subnet_cidr': '31.73.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 05:20:40,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48fd1215-6201-4abd-bed9-e42c038a99da', 'name': 'ctest-vn-81801243', 'tenant_id': 'a8746596e6fb409bb31e280a50e3acdc', 'project_id': 'a8746596e6fb409bb31e280a50e3acdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ac57365-18eb-4485-b843-6aca16eb381a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50009097', 'ctest-vn-81801243'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50009097', 'ctest-policy-allow-all-34208393']], 'subnet_ipam': [{'subnet_cidr': '209.203.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 05:20:40,403 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 05:20:40,735 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 05:20:40,775 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d146fa19-817e-4af9-8309-5f1d07029827
2026-02-20 05:20:40,794 - DEBUG - Requesting: http://10.0.0.50:8082/project/a8746596-e6fb-409b-b31e-280a50e3acdc
2026-02-20 05:20:40,877 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cdb254d-553d-4954-bd55-35cbac0eb39f
2026-02-20 05:20:40,891 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cdb254d-553d-4954-bd55-35cbac0eb39f
2026-02-20 05:20:40,905 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a85065f-6782-4988-b38c-7a930ebea0a7
2026-02-20 05:20:40,915 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a85065f-6782-4988-b38c-7a930ebea0a7
2026-02-20 05:20:40,925 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f529d784-12b5-4fb6-bd2c-54a9a55e9e1e
2026-02-20 05:20:40,934 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 05:20:40,934 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cdb254d-553d-4954-bd55-35cbac0eb39f
2026-02-20 05:20:40,948 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a85065f-6782-4988-b38c-7a930ebea0a7
2026-02-20 05:20:40,969 - INFO - Verified VN network id 11 for VN 3cdb254d-553d-4954-bd55-35cbac0eb39f
2026-02-20 05:20:40,969 - INFO - Verifications in API Server for VN ctest-vn-82070714 passed
2026-02-20 05:20:40,969 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cdb254d-553d-4954-bd55-35cbac0eb39f
2026-02-20 05:20:40,985 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a85065f-6782-4988-b38c-7a930ebea0a7
2026-02-20 05:20:40,996 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a85065f-6782-4988-b38c-7a930ebea0a7
2026-02-20 05:20:41,004 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f529d784-12b5-4fb6-bd2c-54a9a55e9e1e
2026-02-20 05:20:41,021 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-82070714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50009097', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4385139676248099156', 'uuid-lslong': '13642869795070063519'}, 'enable': 'true', 'created': '2026-02-20T05:20:38', 'last-modified': '2026-02-20T05:20:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.081629'}
2026-02-20 05:20:41,029 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 05:20:41,029 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82070714 passed
2026-02-20 05:20:41,029 - DEBUG - ====Verifying policy data for ctest-vn-82070714 in API_Server ======
2026-02-20 05:20:41,029 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 05:20:41,038 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d146fa19-817e-4af9-8309-5f1d07029827
2026-02-20 05:20:41,052 - DEBUG - Requesting: http://10.0.0.50:8082/project/a8746596-e6fb-409b-b31e-280a50e3acdc
2026-02-20 05:20:41,153 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cdb254d-553d-4954-bd55-35cbac0eb39f
2026-02-20 05:20:41,170 - DEBUG - ==>Verifying data for policy with id: d0b4a9b9-419b-4044-bc89-6bf1b5a6dbde, fqn: ['default-domain', 'ctest-TestBasicPolicy-50009097', 'ctest-policy-allow-all-34208393']
2026-02-20 05:20:41,170 - INFO - VN ctest-vn-82070714 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 05:20:41,170 - DEBUG - Verifying the vn in opserver
2026-02-20 05:20:41,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-82070714 virtual network link through opserver 10.0.0.50
2026-02-20 05:20:41,170 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-20 05:20:41,474 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-20 05:20:41,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-82070714', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-82070714?flat'}
2026-02-20 05:20:41,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-82070714 is found in opserver
2026-02-20 05:20:41,563 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 05:20:41,568 - DEBUG - VRF ids for VN ctest-vn-82070714: {}
2026-02-20 05:20:41,569 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 05:20:41,576 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d146fa19-817e-4af9-8309-5f1d07029827
2026-02-20 05:20:41,593 - DEBUG - Requesting: http://10.0.0.50:8082/project/a8746596-e6fb-409b-b31e-280a50e3acdc
2026-02-20 05:20:41,686 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48fd1215-6201-4abd-bed9-e42c038a99da
2026-02-20 05:20:41,706 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48fd1215-6201-4abd-bed9-e42c038a99da
2026-02-20 05:20:41,724 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e5d110a-1c86-474d-827a-9f1f69857fd8
2026-02-20 05:20:41,739 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e5d110a-1c86-474d-827a-9f1f69857fd8
2026-02-20 05:20:41,752 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b10b3f25-a914-468c-829c-7cb1abf60d28
2026-02-20 05:20:41,762 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 05:20:41,762 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48fd1215-6201-4abd-bed9-e42c038a99da
2026-02-20 05:20:41,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e5d110a-1c86-474d-827a-9f1f69857fd8
2026-02-20 05:20:41,802 - INFO - Verified VN network id 12 for VN 48fd1215-6201-4abd-bed9-e42c038a99da
2026-02-20 05:20:41,803 - INFO - Verifications in API Server for VN ctest-vn-81801243 passed
2026-02-20 05:20:41,803 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48fd1215-6201-4abd-bed9-e42c038a99da
2026-02-20 05:20:41,815 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e5d110a-1c86-474d-827a-9f1f69857fd8
2026-02-20 05:20:41,827 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e5d110a-1c86-474d-827a-9f1f69857fd8
2026-02-20 05:20:41,840 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b10b3f25-a914-468c-829c-7cb1abf60d28
2026-02-20 05:20:41,859 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-81801243', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50009097', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5259379822886472381', 'uuid-lslong': '13752273814841629146'}, 'enable': 'true', 'created': '2026-02-20T05:20:39', 'last-modified': '2026-02-20T05:20:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.659364'}
2026-02-20 05:20:41,868 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 05:20:41,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81801243 passed
2026-02-20 05:20:41,868 - DEBUG - ====Verifying policy data for ctest-vn-81801243 in API_Server ======
2026-02-20 05:20:41,868 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-20 05:20:41,875 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d146fa19-817e-4af9-8309-5f1d07029827
2026-02-20 05:20:41,887 - DEBUG - Requesting: http://10.0.0.50:8082/project/a8746596-e6fb-409b-b31e-280a50e3acdc
2026-02-20 05:20:41,973 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48fd1215-6201-4abd-bed9-e42c038a99da
2026-02-20 05:20:41,988 - DEBUG - ==>Verifying data for policy with id: d0b4a9b9-419b-4044-bc89-6bf1b5a6dbde, fqn: ['default-domain', 'ctest-TestBasicPolicy-50009097', 'ctest-policy-allow-all-34208393']
2026-02-20 05:20:41,988 - INFO - VN ctest-vn-81801243 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 05:20:41,988 - DEBUG - Verifying the vn in opserver
2026-02-20 05:20:41,988 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-81801243 virtual network link through opserver 10.0.0.50
2026-02-20 05:20:41,988 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-20 05:20:42,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-81801243', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-81801243?flat'}
2026-02-20 05:20:42,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50009097:ctest-vn-81801243 is found in opserver
2026-02-20 05:20:42,020 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 05:20:42,025 - DEBUG - VRF ids for VN ctest-vn-81801243: {}
2026-02-20 05:20:42,143 - DEBUG - Services list from nova: [