2026-05-19 15:41:35,163 - INFO - Domain Default found not creating
2026-05-19 15:41:35,340 - INFO - Project ctest-TestBasicPolicy-48876728 not found, creating it
2026-05-19 15:41:35,786 - INFO - Created Project:ctest-TestBasicPolicy-48876728, ID : 8fdcf952-0b96-458a-8894-2296d1117f2e
2026-05-19 15:41:37,263 - INFO - ================================================================================
2026-05-19 15:41:37,263 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-19 15:41:37,264 - 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-05-19 15:41:37,517 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-05-19 15:41:37,518 - INFO - Initial checks done. Running the testcase now
2026-05-19 15:41:37,518 - INFO -
2026-05-19 15:41:38,063 - DEBUG - Response for create_network : {'network': {'id': '3d174719-1adb-468f-b58b-fe3b26824694', 'name': 'ctest-vn-42235426', 'tenant_id': '8fdcf9520b96458a88942296d1117f2e', 'project_id': '8fdcf9520b96458a88942296d1117f2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48876728', 'ctest-vn-42235426'], 'port_security_enabled': True, 'description': ''}}
2026-05-19 15:41:38,240 - DEBUG - Response for create_subnet : {'subnet': {'id': '901cee12-7de7-49b5-b5ec-e81a6de1c724', 'name': '', 'tenant_id': '8fdcf9520b96458a88942296d1117f2e', 'network_id': '3d174719-1adb-468f-b58b-fe3b26824694', 'ip_version': 4, 'cidr': '5.228.226.192/26', 'allocation_pools': [{'start': '5.228.226.194', 'end': '5.228.226.254'}], 'gateway_ip': '5.228.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.228.226.194', 'tags': [], 'project_id': '8fdcf9520b96458a88942296d1117f2e'}}
2026-05-19 15:41:38,260 - INFO - Created VN ctest-vn-42235426
2026-05-19 15:41:38,312 - DEBUG - VN ctest-vn-42235426 UUID is 3d174719-1adb-468f-b58b-fe3b26824694
2026-05-19 15:41:38,650 - DEBUG - Response for create_network : {'network': {'id': 'd38811d7-890a-46cd-a6db-047e36d956c5', 'name': 'ctest-vn-19112605', 'tenant_id': '8fdcf9520b96458a88942296d1117f2e', 'project_id': '8fdcf9520b96458a88942296d1117f2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48876728', 'ctest-vn-19112605'], 'port_security_enabled': True, 'description': ''}}
2026-05-19 15:41:38,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '5dbf1b7e-a799-4730-9675-af14358bb885', 'name': '', 'tenant_id': '8fdcf9520b96458a88942296d1117f2e', 'network_id': 'd38811d7-890a-46cd-a6db-047e36d956c5', 'ip_version': 4, 'cidr': '170.232.54.0/26', 'allocation_pools': [{'start': '170.232.54.2', 'end': '170.232.54.62'}], 'gateway_ip': '170.232.54.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.232.54.2', 'tags': [], 'project_id': '8fdcf9520b96458a88942296d1117f2e'}}
2026-05-19 15:41:38,838 - INFO - Created VN ctest-vn-19112605
2026-05-19 15:41:38,888 - DEBUG - VN ctest-vn-19112605 UUID is d38811d7-890a-46cd-a6db-047e36d956c5
2026-05-19 15:41:39,036 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-42235426, 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-48876728:ctest-vn-19112605, 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-05-19 15:41:39,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d174719-1adb-468f-b58b-fe3b26824694', 'name': 'ctest-vn-42235426', 'tenant_id': '8fdcf9520b96458a88942296d1117f2e', 'project_id': '8fdcf9520b96458a88942296d1117f2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['901cee12-7de7-49b5-b5ec-e81a6de1c724'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48876728', 'ctest-vn-42235426'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48876728', 'ctest-policy-allow-all-16586998']], 'subnet_ipam': [{'subnet_cidr': '5.228.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-19 15:41:39,558 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd38811d7-890a-46cd-a6db-047e36d956c5', 'name': 'ctest-vn-19112605', 'tenant_id': '8fdcf9520b96458a88942296d1117f2e', 'project_id': '8fdcf9520b96458a88942296d1117f2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5dbf1b7e-a799-4730-9675-af14358bb885'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48876728', 'ctest-vn-19112605'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48876728', 'ctest-policy-allow-all-16586998']], 'subnet_ipam': [{'subnet_cidr': '170.232.54.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-19 15:41:39,720 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-05-19 15:41:40,017 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-05-19 15:41:40,080 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0eceec70-5e66-45a5-8f0a-19104e53907b
2026-05-19 15:41:40,091 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fdcf952-0b96-458a-8894-2296d1117f2e
2026-05-19 15:41:40,157 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3d174719-1adb-468f-b58b-fe3b26824694
2026-05-19 15:41:40,168 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3d174719-1adb-468f-b58b-fe3b26824694
2026-05-19 15:41:40,177 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/31ab3d73-4cfa-491c-bb8f-6c4ab5f07e15
2026-05-19 15:41:40,186 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/31ab3d73-4cfa-491c-bb8f-6c4ab5f07e15
2026-05-19 15:41:40,193 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/060f700b-9ca4-423f-8d8b-2c855e6a2c9e
2026-05-19 15:41:40,199 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-19 15:41:40,200 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3d174719-1adb-468f-b58b-fe3b26824694
2026-05-19 15:41:40,208 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/31ab3d73-4cfa-491c-bb8f-6c4ab5f07e15
2026-05-19 15:41:40,220 - INFO - Verified VN network id 11 for VN 3d174719-1adb-468f-b58b-fe3b26824694
2026-05-19 15:41:40,220 - INFO - Verifications in API Server for VN ctest-vn-42235426 passed
2026-05-19 15:41:40,220 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3d174719-1adb-468f-b58b-fe3b26824694
2026-05-19 15:41:40,227 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/31ab3d73-4cfa-491c-bb8f-6c4ab5f07e15
2026-05-19 15:41:40,233 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/31ab3d73-4cfa-491c-bb8f-6c4ab5f07e15
2026-05-19 15:41:40,240 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/060f700b-9ca4-423f-8d8b-2c855e6a2c9e
2026-05-19 15:41:40,250 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-42235426', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48876728', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4402065333928281743', 'uuid-lslong': '13081829072630335124'}, 'enable': 'true', 'created': '2026-05-19T15:41:38', 'last-modified': '2026-05-19T15:41:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936124'}
2026-05-19 15:41:40,258 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-19 15:41:40,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42235426 passed
2026-05-19 15:41:40,258 - DEBUG - ====Verifying policy data for ctest-vn-42235426 in API_Server ======
2026-05-19 15:41:40,258 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-05-19 15:41:40,264 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0eceec70-5e66-45a5-8f0a-19104e53907b
2026-05-19 15:41:40,273 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fdcf952-0b96-458a-8894-2296d1117f2e
2026-05-19 15:41:40,345 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3d174719-1adb-468f-b58b-fe3b26824694
2026-05-19 15:41:40,353 - DEBUG - ==>Verifying data for policy with id: 0015f661-ef6e-4a8f-a35a-7a15310e09b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-48876728', 'ctest-policy-allow-all-16586998']
2026-05-19 15:41:40,353 - INFO - VN ctest-vn-42235426 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-19 15:41:40,353 - DEBUG - Verifying the vn in opserver
2026-05-19 15:41:40,353 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-42235426 virtual network link through opserver 10.0.0.249
2026-05-19 15:41:40,353 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-05-19 15:41:40,649 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-05-19 15:41:40,705 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-42235426', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-42235426?flat'}
2026-05-19 15:41:40,705 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-42235426 is found in opserver
2026-05-19 15:41:40,714 - DEBUG - Do not have enough data to verify VN in agent
2026-05-19 15:41:40,718 - DEBUG - VRF ids for VN ctest-vn-42235426: {}
2026-05-19 15:41:40,718 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-05-19 15:41:40,723 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0eceec70-5e66-45a5-8f0a-19104e53907b
2026-05-19 15:41:40,732 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fdcf952-0b96-458a-8894-2296d1117f2e
2026-05-19 15:41:40,798 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d38811d7-890a-46cd-a6db-047e36d956c5
2026-05-19 15:41:40,809 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d38811d7-890a-46cd-a6db-047e36d956c5
2026-05-19 15:41:40,818 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9024765e-9691-4f6d-9e69-439c505a835f
2026-05-19 15:41:40,824 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9024765e-9691-4f6d-9e69-439c505a835f
2026-05-19 15:41:40,830 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/57a525ef-d268-4dbd-928e-9832cc8face5
2026-05-19 15:41:40,836 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-19 15:41:40,836 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d38811d7-890a-46cd-a6db-047e36d956c5
2026-05-19 15:41:40,844 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9024765e-9691-4f6d-9e69-439c505a835f
2026-05-19 15:41:40,856 - INFO - Verified VN network id 12 for VN d38811d7-890a-46cd-a6db-047e36d956c5
2026-05-19 15:41:40,856 - INFO - Verifications in API Server for VN ctest-vn-19112605 passed
2026-05-19 15:41:40,856 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d38811d7-890a-46cd-a6db-047e36d956c5
2026-05-19 15:41:40,863 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9024765e-9691-4f6d-9e69-439c505a835f
2026-05-19 15:41:40,868 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9024765e-9691-4f6d-9e69-439c505a835f
2026-05-19 15:41:40,874 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/57a525ef-d268-4dbd-928e-9832cc8face5
2026-05-19 15:41:40,883 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-19112605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48876728', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15242452556250236621', 'uuid-lslong': '12023208570328274629'}, 'enable': 'true', 'created': '2026-05-19T15:41:38', 'last-modified': '2026-05-19T15:41:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.347901'}
2026-05-19 15:41:40,888 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-19 15:41:40,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19112605 passed
2026-05-19 15:41:40,889 - DEBUG - ====Verifying policy data for ctest-vn-19112605 in API_Server ======
2026-05-19 15:41:40,889 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-05-19 15:41:40,894 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0eceec70-5e66-45a5-8f0a-19104e53907b
2026-05-19 15:41:40,903 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fdcf952-0b96-458a-8894-2296d1117f2e
2026-05-19 15:41:40,974 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d38811d7-890a-46cd-a6db-047e36d956c5
2026-05-19 15:41:40,983 - DEBUG - ==>Verifying data for policy with id: 0015f661-ef6e-4a8f-a35a-7a15310e09b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-48876728', 'ctest-policy-allow-all-16586998']
2026-05-19 15:41:40,983 - INFO - VN ctest-vn-19112605 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-19 15:41:40,983 - DEBUG - Verifying the vn in opserver
2026-05-19 15:41:40,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-19112605 virtual network link through opserver 10.0.0.249
2026-05-19 15:41:40,983 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-05-19 15:41:40,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-19112605', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-19112605?flat'}
2026-05-19 15:41:40,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48876728:ctest-vn-19112605 is found in opserver
2026-05-19 15:41:41,001 - DEBUG - Do not have enough data to verify VN in agent
2026-05-19 15:41:41,005 - DEBUG - VRF ids for VN ctest-vn-19112605: {}
2026-05-19 15:41:41,066 - DEBUG - Services list from nova: [