2026-08-17 09:46:32,420 - INFO - Domain Default found not creating
2026-08-17 09:46:32,596 - INFO - Project ctest-TestBasicPolicy-78826287 not found, creating it
2026-08-17 09:46:33,075 - INFO - Created Project:ctest-TestBasicPolicy-78826287, ID : 2b42f08d-1bf2-4475-95cd-929927a9d409
2026-08-17 09:46:34,882 - INFO - ================================================================================
2026-08-17 09:46:34,882 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-17 09:46:34,882 - 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-08-17 09:46:35,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.254': '0'}} with
2026-08-17 09:46:35,148 - INFO - Initial checks done. Running the testcase now
2026-08-17 09:46:35,148 - INFO -
2026-08-17 09:46:35,880 - DEBUG - Response for create_network : {'network': {'id': 'b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2', 'name': 'ctest-vn-64300710', 'tenant_id': '2b42f08d1bf2447595cd929927a9d409', 'project_id': '2b42f08d1bf2447595cd929927a9d409', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78826287', 'ctest-vn-64300710'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 09:46:36,076 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cef0cc5c-5f4d-4c49-bea7-4ee25e6aaa90', 'name': '', 'tenant_id': '2b42f08d1bf2447595cd929927a9d409', 'network_id': 'b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2', 'ip_version': 4, 'cidr': '59.58.185.192/26', 'allocation_pools': [{'start': '59.58.185.194', 'end': '59.58.185.254'}], 'gateway_ip': '59.58.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.58.185.194', 'tags': [], 'project_id': '2b42f08d1bf2447595cd929927a9d409'}}
2026-08-17 09:46:36,096 - INFO - Created VN ctest-vn-64300710
2026-08-17 09:46:36,152 - DEBUG - VN ctest-vn-64300710 UUID is b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2
2026-08-17 09:46:36,489 - DEBUG - Response for create_network : {'network': {'id': 'b5cbcd35-77c8-43a6-bab1-09cc8b06ac08', 'name': 'ctest-vn-48746180', 'tenant_id': '2b42f08d1bf2447595cd929927a9d409', 'project_id': '2b42f08d1bf2447595cd929927a9d409', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78826287', 'ctest-vn-48746180'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 09:46:36,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d1be7a4-fc3a-49aa-a2d3-b8e27be92ee6', 'name': '', 'tenant_id': '2b42f08d1bf2447595cd929927a9d409', 'network_id': 'b5cbcd35-77c8-43a6-bab1-09cc8b06ac08', 'ip_version': 4, 'cidr': '105.44.164.0/26', 'allocation_pools': [{'start': '105.44.164.2', 'end': '105.44.164.62'}], 'gateway_ip': '105.44.164.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.44.164.2', 'tags': [], 'project_id': '2b42f08d1bf2447595cd929927a9d409'}}
2026-08-17 09:46:36,744 - INFO - Created VN ctest-vn-48746180
2026-08-17 09:46:36,800 - DEBUG - VN ctest-vn-48746180 UUID is b5cbcd35-77c8-43a6-bab1-09cc8b06ac08
2026-08-17 09:46:36,922 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-64300710, 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-78826287:ctest-vn-48746180, 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-08-17 09:46:37,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2', 'name': 'ctest-vn-64300710', 'tenant_id': '2b42f08d1bf2447595cd929927a9d409', 'project_id': '2b42f08d1bf2447595cd929927a9d409', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cef0cc5c-5f4d-4c49-bea7-4ee25e6aaa90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78826287', 'ctest-vn-64300710'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78826287', 'ctest-policy-allow-all-82608668']], 'subnet_ipam': [{'subnet_cidr': '59.58.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 09:46:37,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5cbcd35-77c8-43a6-bab1-09cc8b06ac08', 'name': 'ctest-vn-48746180', 'tenant_id': '2b42f08d1bf2447595cd929927a9d409', 'project_id': '2b42f08d1bf2447595cd929927a9d409', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d1be7a4-fc3a-49aa-a2d3-b8e27be92ee6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78826287', 'ctest-vn-48746180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78826287', 'ctest-policy-allow-all-82608668']], 'subnet_ipam': [{'subnet_cidr': '105.44.164.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 09:46:37,676 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 09:46:38,054 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 09:46:38,082 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c0a87636-2201-40fd-8987-a049dbaf0e1e
2026-08-17 09:46:38,095 - DEBUG - Requesting: http://10.0.0.161:8082/project/2b42f08d-1bf2-4475-95cd-929927a9d409
2026-08-17 09:46:38,175 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2
2026-08-17 09:46:38,188 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2
2026-08-17 09:46:38,199 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/cd43660a-87d3-4a7e-8c97-dca1194b1b4f
2026-08-17 09:46:38,206 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/cd43660a-87d3-4a7e-8c97-dca1194b1b4f
2026-08-17 09:46:38,214 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/f6a931fc-a06c-4013-a5b1-6efec7928d3c
2026-08-17 09:46:38,221 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-17 09:46:38,221 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2
2026-08-17 09:46:38,230 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/cd43660a-87d3-4a7e-8c97-dca1194b1b4f
2026-08-17 09:46:38,247 - INFO - Verified VN network id 11 for VN b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2
2026-08-17 09:46:38,248 - INFO - Verifications in API Server for VN ctest-vn-64300710 passed
2026-08-17 09:46:38,248 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2
2026-08-17 09:46:38,258 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/cd43660a-87d3-4a7e-8c97-dca1194b1b4f
2026-08-17 09:46:38,266 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/cd43660a-87d3-4a7e-8c97-dca1194b1b4f
2026-08-17 09:46:38,276 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/f6a931fc-a06c-4013-a5b1-6efec7928d3c
2026-08-17 09:46:38,291 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-64300710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78826287', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13385465246076390718', 'uuid-lslong': '12210104967586130898'}, 'enable': 'true', 'created': '2026-08-17T09:46:35', 'last-modified': '2026-08-17T09:46:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.071867'}
2026-08-17 09:46:38,298 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-17 09:46:38,299 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64300710 passed
2026-08-17 09:46:38,299 - DEBUG - ====Verifying policy data for ctest-vn-64300710 in API_Server ======
2026-08-17 09:46:38,299 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 09:46:38,305 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c0a87636-2201-40fd-8987-a049dbaf0e1e
2026-08-17 09:46:38,319 - DEBUG - Requesting: http://10.0.0.161:8082/project/2b42f08d-1bf2-4475-95cd-929927a9d409
2026-08-17 09:46:38,401 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b9c2b9b8-d9b8-4d3e-a973-01c6af342bd2
2026-08-17 09:46:38,413 - DEBUG - ==>Verifying data for policy with id: 5e5d9618-5e9f-4959-b233-64abd7650837, fqn: ['default-domain', 'ctest-TestBasicPolicy-78826287', 'ctest-policy-allow-all-82608668']
2026-08-17 09:46:38,413 - INFO - VN ctest-vn-64300710 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 09:46:38,413 - DEBUG - Verifying the vn in opserver
2026-08-17 09:46:38,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-64300710 virtual network link through opserver 10.0.0.161
2026-08-17 09:46:38,413 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-17 09:46:38,784 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-17 09:46:38,845 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-64300710', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-64300710?flat'}
2026-08-17 09:46:38,845 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-64300710 is found in opserver
2026-08-17 09:46:38,856 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 09:46:38,861 - DEBUG - VRF ids for VN ctest-vn-64300710: {}
2026-08-17 09:46:38,861 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 09:46:38,867 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c0a87636-2201-40fd-8987-a049dbaf0e1e
2026-08-17 09:46:38,878 - DEBUG - Requesting: http://10.0.0.161:8082/project/2b42f08d-1bf2-4475-95cd-929927a9d409
2026-08-17 09:46:38,955 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b5cbcd35-77c8-43a6-bab1-09cc8b06ac08
2026-08-17 09:46:38,967 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b5cbcd35-77c8-43a6-bab1-09cc8b06ac08
2026-08-17 09:46:38,978 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/452bdf03-660c-4348-be9c-8eea39da2e0f
2026-08-17 09:46:38,987 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/452bdf03-660c-4348-be9c-8eea39da2e0f
2026-08-17 09:46:38,996 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/fada0dde-d019-4c3e-9022-4eaddb0ef978
2026-08-17 09:46:39,006 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 09:46:39,006 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b5cbcd35-77c8-43a6-bab1-09cc8b06ac08
2026-08-17 09:46:39,016 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/452bdf03-660c-4348-be9c-8eea39da2e0f
2026-08-17 09:46:39,032 - INFO - Verified VN network id 12 for VN b5cbcd35-77c8-43a6-bab1-09cc8b06ac08
2026-08-17 09:46:39,033 - INFO - Verifications in API Server for VN ctest-vn-48746180 passed
2026-08-17 09:46:39,033 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b5cbcd35-77c8-43a6-bab1-09cc8b06ac08
2026-08-17 09:46:39,042 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/452bdf03-660c-4348-be9c-8eea39da2e0f
2026-08-17 09:46:39,049 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/452bdf03-660c-4348-be9c-8eea39da2e0f
2026-08-17 09:46:39,060 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/fada0dde-d019-4c3e-9022-4eaddb0ef978
2026-08-17 09:46:39,073 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-48746180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78826287', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13099789570663793574', 'uuid-lslong': '13452544336042830856'}, 'enable': 'true', 'created': '2026-08-17T09:46:36', 'last-modified': '2026-08-17T09:46:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.605237'}
2026-08-17 09:46:39,081 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 09:46:39,081 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48746180 passed
2026-08-17 09:46:39,081 - DEBUG - ====Verifying policy data for ctest-vn-48746180 in API_Server ======
2026-08-17 09:46:39,081 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 09:46:39,088 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c0a87636-2201-40fd-8987-a049dbaf0e1e
2026-08-17 09:46:39,100 - DEBUG - Requesting: http://10.0.0.161:8082/project/2b42f08d-1bf2-4475-95cd-929927a9d409
2026-08-17 09:46:39,177 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b5cbcd35-77c8-43a6-bab1-09cc8b06ac08
2026-08-17 09:46:39,190 - DEBUG - ==>Verifying data for policy with id: 5e5d9618-5e9f-4959-b233-64abd7650837, fqn: ['default-domain', 'ctest-TestBasicPolicy-78826287', 'ctest-policy-allow-all-82608668']
2026-08-17 09:46:39,190 - INFO - VN ctest-vn-48746180 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 09:46:39,190 - DEBUG - Verifying the vn in opserver
2026-08-17 09:46:39,190 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-48746180 virtual network link through opserver 10.0.0.161
2026-08-17 09:46:39,190 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-17 09:46:39,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-48746180', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-48746180?flat'}
2026-08-17 09:46:39,202 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78826287:ctest-vn-48746180 is found in opserver
2026-08-17 09:46:39,217 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 09:46:39,224 - DEBUG - VRF ids for VN ctest-vn-48746180: {}
2026-08-17 09:46:39,291 - DEBUG - Services list from nova: [