2026-01-28 12:13:16,583 - INFO - Domain Default found not creating
2026-01-28 12:13:16,767 - INFO - Project ctest-TestBasicPolicy-72513381 not found, creating it
2026-01-28 12:13:17,238 - INFO - Created Project:ctest-TestBasicPolicy-72513381, ID : ecf7d183-dc47-4a1e-87c4-5e3db84a6715
2026-01-28 12:13:18,736 - INFO - ================================================================================
2026-01-28 12:13:18,736 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 12:13:18,736 - 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-01-28 12:13:18,995 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0'}} with
2026-01-28 12:13:18,995 - INFO - Initial checks done. Running the testcase now
2026-01-28 12:13:18,995 - INFO -
2026-01-28 12:13:19,565 - DEBUG - Response for create_network : {'network': {'id': 'e5e4099f-43d0-4ff8-a223-b1daf9f95b83', 'name': 'ctest-vn-82631918', 'tenant_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'project_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72513381', 'ctest-vn-82631918'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 12:13:19,774 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd90ec361-60c2-4377-aefa-748b978ac4d4', 'name': '', 'tenant_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'network_id': 'e5e4099f-43d0-4ff8-a223-b1daf9f95b83', 'ip_version': 4, 'cidr': '203.183.20.192/26', 'allocation_pools': [{'start': '203.183.20.194', 'end': '203.183.20.254'}], 'gateway_ip': '203.183.20.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.183.20.194', 'tags': [], 'project_id': 'ecf7d183dc474a1e87c45e3db84a6715'}}
2026-01-28 12:13:19,792 - INFO - Created VN ctest-vn-82631918
2026-01-28 12:13:19,849 - DEBUG - VN ctest-vn-82631918 UUID is e5e4099f-43d0-4ff8-a223-b1daf9f95b83
2026-01-28 12:13:20,174 - DEBUG - Response for create_network : {'network': {'id': '75d2b5ba-2661-4eb3-9570-e216376275b5', 'name': 'ctest-vn-51016816', 'tenant_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'project_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72513381', 'ctest-vn-51016816'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 12:13:20,400 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d775450-35ea-430b-9083-ed6c231e8ccc', 'name': '', 'tenant_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'network_id': '75d2b5ba-2661-4eb3-9570-e216376275b5', 'ip_version': 4, 'cidr': '212.213.231.128/26', 'allocation_pools': [{'start': '212.213.231.130', 'end': '212.213.231.190'}], 'gateway_ip': '212.213.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.213.231.130', 'tags': [], 'project_id': 'ecf7d183dc474a1e87c45e3db84a6715'}}
2026-01-28 12:13:20,419 - INFO - Created VN ctest-vn-51016816
2026-01-28 12:13:20,473 - DEBUG - VN ctest-vn-51016816 UUID is 75d2b5ba-2661-4eb3-9570-e216376275b5
2026-01-28 12:13:20,592 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-82631918, 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-72513381:ctest-vn-51016816, 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-01-28 12:13:20,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5e4099f-43d0-4ff8-a223-b1daf9f95b83', 'name': 'ctest-vn-82631918', 'tenant_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'project_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d90ec361-60c2-4377-aefa-748b978ac4d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72513381', 'ctest-vn-82631918'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72513381', 'ctest-policy-allow-all-84097444']], 'subnet_ipam': [{'subnet_cidr': '203.183.20.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 12:13:21,133 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75d2b5ba-2661-4eb3-9570-e216376275b5', 'name': 'ctest-vn-51016816', 'tenant_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'project_id': 'ecf7d183dc474a1e87c45e3db84a6715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d775450-35ea-430b-9083-ed6c231e8ccc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72513381', 'ctest-vn-51016816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72513381', 'ctest-policy-allow-all-84097444']], 'subnet_ipam': [{'subnet_cidr': '212.213.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 12:13:21,305 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-01-28 12:13:21,602 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-01-28 12:13:21,634 - DEBUG - Requesting: http://10.0.0.241:8082/domain/bae887ce-73ae-49a9-9922-372f0a9c1304
2026-01-28 12:13:21,647 - DEBUG - Requesting: http://10.0.0.241:8082/project/ecf7d183-dc47-4a1e-87c4-5e3db84a6715
2026-01-28 12:13:21,725 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e5e4099f-43d0-4ff8-a223-b1daf9f95b83
2026-01-28 12:13:21,736 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e5e4099f-43d0-4ff8-a223-b1daf9f95b83
2026-01-28 12:13:21,746 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c812085b-9c00-4ca3-9c0d-f65c0e8050c3
2026-01-28 12:13:21,755 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c812085b-9c00-4ca3-9c0d-f65c0e8050c3
2026-01-28 12:13:21,764 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/9f42853e-23c7-4f93-9fa9-153e1a052e2e
2026-01-28 12:13:21,771 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 12:13:21,771 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e5e4099f-43d0-4ff8-a223-b1daf9f95b83
2026-01-28 12:13:21,780 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c812085b-9c00-4ca3-9c0d-f65c0e8050c3
2026-01-28 12:13:21,796 - INFO - Verified VN network id 11 for VN e5e4099f-43d0-4ff8-a223-b1daf9f95b83
2026-01-28 12:13:21,796 - INFO - Verifications in API Server for VN ctest-vn-82631918 passed
2026-01-28 12:13:21,796 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e5e4099f-43d0-4ff8-a223-b1daf9f95b83
2026-01-28 12:13:21,807 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c812085b-9c00-4ca3-9c0d-f65c0e8050c3
2026-01-28 12:13:21,813 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c812085b-9c00-4ca3-9c0d-f65c0e8050c3
2026-01-28 12:13:21,822 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/9f42853e-23c7-4f93-9fa9-153e1a052e2e
2026-01-28 12:13:21,834 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-82631918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72513381', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16565375909017702392', 'uuid-lslong': '11683377412384054147'}, 'enable': 'true', 'created': '2026-01-28T12:13:19', 'last-modified': '2026-01-28T12:13:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964801'}
2026-01-28 12:13:21,840 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 12:13:21,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82631918 passed
2026-01-28 12:13:21,840 - DEBUG - ====Verifying policy data for ctest-vn-82631918 in API_Server ======
2026-01-28 12:13:21,840 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-01-28 12:13:21,846 - DEBUG - Requesting: http://10.0.0.241:8082/domain/bae887ce-73ae-49a9-9922-372f0a9c1304
2026-01-28 12:13:21,858 - DEBUG - Requesting: http://10.0.0.241:8082/project/ecf7d183-dc47-4a1e-87c4-5e3db84a6715
2026-01-28 12:13:21,931 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e5e4099f-43d0-4ff8-a223-b1daf9f95b83
2026-01-28 12:13:21,940 - DEBUG - ==>Verifying data for policy with id: 61e9c886-7df7-478e-afd4-99d4c62a3e29, fqn: ['default-domain', 'ctest-TestBasicPolicy-72513381', 'ctest-policy-allow-all-84097444']
2026-01-28 12:13:21,940 - INFO - VN ctest-vn-82631918 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 12:13:21,940 - DEBUG - Verifying the vn in opserver
2026-01-28 12:13:21,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-82631918 virtual network link through opserver 10.0.0.241
2026-01-28 12:13:21,940 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2026-01-28 12:13:22,233 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2026-01-28 12:13:22,297 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-82631918', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-82631918?flat'}
2026-01-28 12:13:22,297 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-82631918 is found in opserver
2026-01-28 12:13:22,307 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 12:13:22,311 - DEBUG - VRF ids for VN ctest-vn-82631918: {}
2026-01-28 12:13:22,311 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-01-28 12:13:22,317 - DEBUG - Requesting: http://10.0.0.241:8082/domain/bae887ce-73ae-49a9-9922-372f0a9c1304
2026-01-28 12:13:22,329 - DEBUG - Requesting: http://10.0.0.241:8082/project/ecf7d183-dc47-4a1e-87c4-5e3db84a6715
2026-01-28 12:13:22,400 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/75d2b5ba-2661-4eb3-9570-e216376275b5
2026-01-28 12:13:22,411 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/75d2b5ba-2661-4eb3-9570-e216376275b5
2026-01-28 12:13:22,420 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fbd5d1e6-ad4b-417e-a51c-8788dd1baeea
2026-01-28 12:13:22,429 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fbd5d1e6-ad4b-417e-a51c-8788dd1baeea
2026-01-28 12:13:22,437 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/7545c3d6-094d-47ba-9dd1-5c846a7277f3
2026-01-28 12:13:22,444 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 12:13:22,444 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/75d2b5ba-2661-4eb3-9570-e216376275b5
2026-01-28 12:13:22,453 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fbd5d1e6-ad4b-417e-a51c-8788dd1baeea
2026-01-28 12:13:22,466 - INFO - Verified VN network id 12 for VN 75d2b5ba-2661-4eb3-9570-e216376275b5
2026-01-28 12:13:22,466 - INFO - Verifications in API Server for VN ctest-vn-51016816 passed
2026-01-28 12:13:22,466 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/75d2b5ba-2661-4eb3-9570-e216376275b5
2026-01-28 12:13:22,475 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fbd5d1e6-ad4b-417e-a51c-8788dd1baeea
2026-01-28 12:13:22,482 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/fbd5d1e6-ad4b-417e-a51c-8788dd1baeea
2026-01-28 12:13:22,489 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/7545c3d6-094d-47ba-9dd1-5c846a7277f3
2026-01-28 12:13:22,500 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-51016816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72513381', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8490048058659262131', 'uuid-lslong': '10768355294089213365'}, 'enable': 'true', 'created': '2026-01-28T12:13:20', 'last-modified': '2026-01-28T12:13:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.387846'}
2026-01-28 12:13:22,505 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 12:13:22,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51016816 passed
2026-01-28 12:13:22,506 - DEBUG - ====Verifying policy data for ctest-vn-51016816 in API_Server ======
2026-01-28 12:13:22,506 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2026-01-28 12:13:22,512 - DEBUG - Requesting: http://10.0.0.241:8082/domain/bae887ce-73ae-49a9-9922-372f0a9c1304
2026-01-28 12:13:22,523 - DEBUG - Requesting: http://10.0.0.241:8082/project/ecf7d183-dc47-4a1e-87c4-5e3db84a6715
2026-01-28 12:13:22,590 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/75d2b5ba-2661-4eb3-9570-e216376275b5
2026-01-28 12:13:22,599 - DEBUG - ==>Verifying data for policy with id: 61e9c886-7df7-478e-afd4-99d4c62a3e29, fqn: ['default-domain', 'ctest-TestBasicPolicy-72513381', 'ctest-policy-allow-all-84097444']
2026-01-28 12:13:22,600 - INFO - VN ctest-vn-51016816 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 12:13:22,600 - DEBUG - Verifying the vn in opserver
2026-01-28 12:13:22,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-51016816 virtual network link through opserver 10.0.0.241
2026-01-28 12:13:22,600 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2026-01-28 12:13:22,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-51016816', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-51016816?flat'}
2026-01-28 12:13:22,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72513381:ctest-vn-51016816 is found in opserver
2026-01-28 12:13:22,619 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 12:13:22,624 - DEBUG - VRF ids for VN ctest-vn-51016816: {}
2026-01-28 12:13:22,678 - DEBUG - Services list from nova: [