2026-03-12 02:10:52,699 - INFO - Domain Default found not creating
2026-03-12 02:10:52,872 - INFO - Project ctest-TestBasicPolicy-90415056 not found, creating it
2026-03-12 02:10:53,339 - INFO - Created Project:ctest-TestBasicPolicy-90415056, ID : c59b1c1a-abac-4ce7-bca5-3e054c251fb7
2026-03-12 02:10:54,821 - INFO - ================================================================================
2026-03-12 02:10:54,821 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-12 02:10:54,821 - 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-03-12 02:10:55,076 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0'}} with
2026-03-12 02:10:55,076 - INFO - Initial checks done. Running the testcase now
2026-03-12 02:10:55,076 - INFO -
2026-03-12 02:10:55,636 - DEBUG - Response for create_network : {'network': {'id': 'f7c206b1-eedb-4781-9325-2a3e3f8cd522', 'name': 'ctest-vn-94012158', 'tenant_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'project_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90415056', 'ctest-vn-94012158'], 'port_security_enabled': True, 'description': ''}}
2026-03-12 02:10:55,783 - DEBUG - Response for create_subnet : {'subnet': {'id': '3addb146-42c7-413f-81f4-8644aea60cc9', 'name': '', 'tenant_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'network_id': 'f7c206b1-eedb-4781-9325-2a3e3f8cd522', 'ip_version': 4, 'cidr': '140.111.34.192/26', 'allocation_pools': [{'start': '140.111.34.194', 'end': '140.111.34.254'}], 'gateway_ip': '140.111.34.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.111.34.194', 'tags': [], 'project_id': 'c59b1c1aabac4ce7bca53e054c251fb7'}}
2026-03-12 02:10:55,800 - INFO - Created VN ctest-vn-94012158
2026-03-12 02:10:55,851 - DEBUG - VN ctest-vn-94012158 UUID is f7c206b1-eedb-4781-9325-2a3e3f8cd522
2026-03-12 02:10:56,125 - DEBUG - Response for create_network : {'network': {'id': '2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6', 'name': 'ctest-vn-08657354', 'tenant_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'project_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90415056', 'ctest-vn-08657354'], 'port_security_enabled': True, 'description': ''}}
2026-03-12 02:10:56,296 - DEBUG - Response for create_subnet : {'subnet': {'id': '16d5d82b-183f-4153-81c0-ca43f386468a', 'name': '', 'tenant_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'network_id': '2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6', 'ip_version': 4, 'cidr': '50.121.155.64/26', 'allocation_pools': [{'start': '50.121.155.66', 'end': '50.121.155.126'}], 'gateway_ip': '50.121.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.121.155.66', 'tags': [], 'project_id': 'c59b1c1aabac4ce7bca53e054c251fb7'}}
2026-03-12 02:10:56,312 - INFO - Created VN ctest-vn-08657354
2026-03-12 02:10:56,363 - DEBUG - VN ctest-vn-08657354 UUID is 2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6
2026-03-12 02:10:56,511 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-94012158, 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-90415056:ctest-vn-08657354, 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-03-12 02:10:56,800 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7c206b1-eedb-4781-9325-2a3e3f8cd522', 'name': 'ctest-vn-94012158', 'tenant_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'project_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3addb146-42c7-413f-81f4-8644aea60cc9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90415056', 'ctest-vn-94012158'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90415056', 'ctest-policy-allow-all-06902101']], 'subnet_ipam': [{'subnet_cidr': '140.111.34.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-12 02:10:57,030 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6', 'name': 'ctest-vn-08657354', 'tenant_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'project_id': 'c59b1c1aabac4ce7bca53e054c251fb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16d5d82b-183f-4153-81c0-ca43f386468a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90415056', 'ctest-vn-08657354'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90415056', 'ctest-policy-allow-all-06902101']], 'subnet_ipam': [{'subnet_cidr': '50.121.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-12 02:10:57,199 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-12 02:10:57,501 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-12 02:10:57,534 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e96e6af1-e7e5-48c9-b7da-16ab33608450
2026-03-12 02:10:57,546 - DEBUG - Requesting: http://10.0.0.19:8082/project/c59b1c1a-abac-4ce7-bca5-3e054c251fb7
2026-03-12 02:10:57,623 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f7c206b1-eedb-4781-9325-2a3e3f8cd522
2026-03-12 02:10:57,633 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f7c206b1-eedb-4781-9325-2a3e3f8cd522
2026-03-12 02:10:57,641 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/946b95c4-f817-47b8-8dd7-1cb2592fdf56
2026-03-12 02:10:57,648 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/946b95c4-f817-47b8-8dd7-1cb2592fdf56
2026-03-12 02:10:57,654 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/c446e8e1-c8f3-4257-b415-411181078952
2026-03-12 02:10:57,660 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-12 02:10:57,660 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f7c206b1-eedb-4781-9325-2a3e3f8cd522
2026-03-12 02:10:57,668 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/946b95c4-f817-47b8-8dd7-1cb2592fdf56
2026-03-12 02:10:57,681 - INFO - Verified VN network id 11 for VN f7c206b1-eedb-4781-9325-2a3e3f8cd522
2026-03-12 02:10:57,682 - INFO - Verifications in API Server for VN ctest-vn-94012158 passed
2026-03-12 02:10:57,682 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f7c206b1-eedb-4781-9325-2a3e3f8cd522
2026-03-12 02:10:57,690 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/946b95c4-f817-47b8-8dd7-1cb2592fdf56
2026-03-12 02:10:57,697 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/946b95c4-f817-47b8-8dd7-1cb2592fdf56
2026-03-12 02:10:57,704 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/c446e8e1-c8f3-4257-b415-411181078952
2026-03-12 02:10:57,717 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-94012158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90415056', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17852839234136393601', 'uuid-lslong': '10602927344556234018'}, 'enable': 'true', 'created': '2026-03-12T02:10:55', 'last-modified': '2026-03-12T02:10:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933179'}
2026-03-12 02:10:57,722 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-12 02:10:57,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94012158 passed
2026-03-12 02:10:57,723 - DEBUG - ====Verifying policy data for ctest-vn-94012158 in API_Server ======
2026-03-12 02:10:57,723 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-12 02:10:57,729 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e96e6af1-e7e5-48c9-b7da-16ab33608450
2026-03-12 02:10:57,741 - DEBUG - Requesting: http://10.0.0.19:8082/project/c59b1c1a-abac-4ce7-bca5-3e054c251fb7
2026-03-12 02:10:57,807 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f7c206b1-eedb-4781-9325-2a3e3f8cd522
2026-03-12 02:10:57,816 - DEBUG - ==>Verifying data for policy with id: 8353dff0-16e9-43a5-9d59-58c10e2cc522, fqn: ['default-domain', 'ctest-TestBasicPolicy-90415056', 'ctest-policy-allow-all-06902101']
2026-03-12 02:10:57,816 - INFO - VN ctest-vn-94012158 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-12 02:10:57,816 - DEBUG - Verifying the vn in opserver
2026-03-12 02:10:57,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-94012158 virtual network link through opserver 10.0.0.19
2026-03-12 02:10:57,816 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-03-12 02:10:58,109 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-03-12 02:10:58,169 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-94012158', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-94012158?flat'}
2026-03-12 02:10:58,170 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-94012158 is found in opserver
2026-03-12 02:10:58,179 - DEBUG - Do not have enough data to verify VN in agent
2026-03-12 02:10:58,183 - DEBUG - VRF ids for VN ctest-vn-94012158: {}
2026-03-12 02:10:58,184 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-12 02:10:58,189 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e96e6af1-e7e5-48c9-b7da-16ab33608450
2026-03-12 02:10:58,199 - DEBUG - Requesting: http://10.0.0.19:8082/project/c59b1c1a-abac-4ce7-bca5-3e054c251fb7
2026-03-12 02:10:58,273 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6
2026-03-12 02:10:58,284 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6
2026-03-12 02:10:58,294 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/65e4c40d-b033-473b-9949-039e9107a4e7
2026-03-12 02:10:58,302 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/65e4c40d-b033-473b-9949-039e9107a4e7
2026-03-12 02:10:58,308 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/89dcd9d0-a9dd-42a9-9935-7f5e58fb646a
2026-03-12 02:10:58,316 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-12 02:10:58,316 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6
2026-03-12 02:10:58,324 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/65e4c40d-b033-473b-9949-039e9107a4e7
2026-03-12 02:10:58,340 - INFO - Verified VN network id 12 for VN 2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6
2026-03-12 02:10:58,340 - INFO - Verifications in API Server for VN ctest-vn-08657354 passed
2026-03-12 02:10:58,340 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6
2026-03-12 02:10:58,351 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/65e4c40d-b033-473b-9949-039e9107a4e7
2026-03-12 02:10:58,360 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/65e4c40d-b033-473b-9949-039e9107a4e7
2026-03-12 02:10:58,367 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/89dcd9d0-a9dd-42a9-9935-7f5e58fb646a
2026-03-12 02:10:58,378 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-08657354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90415056', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3225202255429913825', 'uuid-lslong': '9640728112748798454'}, 'enable': 'true', 'created': '2026-03-12T02:10:56', 'last-modified': '2026-03-12T02:10:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364048'}
2026-03-12 02:10:58,383 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-12 02:10:58,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08657354 passed
2026-03-12 02:10:58,383 - DEBUG - ====Verifying policy data for ctest-vn-08657354 in API_Server ======
2026-03-12 02:10:58,383 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-12 02:10:58,389 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e96e6af1-e7e5-48c9-b7da-16ab33608450
2026-03-12 02:10:58,400 - DEBUG - Requesting: http://10.0.0.19:8082/project/c59b1c1a-abac-4ce7-bca5-3e054c251fb7
2026-03-12 02:10:58,468 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2cc2385d-0bb0-4ce1-85ca-bf23c883a1f6
2026-03-12 02:10:58,477 - DEBUG - ==>Verifying data for policy with id: 8353dff0-16e9-43a5-9d59-58c10e2cc522, fqn: ['default-domain', 'ctest-TestBasicPolicy-90415056', 'ctest-policy-allow-all-06902101']
2026-03-12 02:10:58,477 - INFO - VN ctest-vn-08657354 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-12 02:10:58,477 - DEBUG - Verifying the vn in opserver
2026-03-12 02:10:58,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-08657354 virtual network link through opserver 10.0.0.19
2026-03-12 02:10:58,477 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-03-12 02:10:58,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-08657354', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-08657354?flat'}
2026-03-12 02:10:58,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90415056:ctest-vn-08657354 is found in opserver
2026-03-12 02:10:58,497 - DEBUG - Do not have enough data to verify VN in agent
2026-03-12 02:10:58,501 - DEBUG - VRF ids for VN ctest-vn-08657354: {}
2026-03-12 02:10:58,562 - DEBUG - Services list from nova: [