2026-03-13 14:31:10,920 - INFO - Domain Default found not creating
2026-03-13 14:31:11,185 - INFO - Project ctest-TestBasicPolicy-29110069 not found, creating it
2026-03-13 14:31:11,716 - INFO - Created Project:ctest-TestBasicPolicy-29110069, ID : a364a4e7-250a-49a1-88fc-b14a8a467383
2026-03-13 14:31:13,755 - INFO - ================================================================================
2026-03-13 14:31:13,755 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-13 14:31:13,755 - 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-13 14:31:14,063 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-03-13 14:31:14,063 - INFO - Initial checks done. Running the testcase now
2026-03-13 14:31:14,063 - INFO -
2026-03-13 14:31:14,793 - DEBUG - Response for create_network : {'network': {'id': 'a63a163c-3f39-4065-b44e-69d60ac69dc8', 'name': 'ctest-vn-68939110', 'tenant_id': 'a364a4e7250a49a188fcb14a8a467383', 'project_id': 'a364a4e7250a49a188fcb14a8a467383', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29110069', 'ctest-vn-68939110'], 'port_security_enabled': True, 'description': ''}}
2026-03-13 14:31:15,065 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b1a69e3-704f-4c66-ba36-174d6fc40aee', 'name': '', 'tenant_id': 'a364a4e7250a49a188fcb14a8a467383', 'network_id': 'a63a163c-3f39-4065-b44e-69d60ac69dc8', 'ip_version': 4, 'cidr': '180.6.152.192/26', 'allocation_pools': [{'start': '180.6.152.194', 'end': '180.6.152.254'}], 'gateway_ip': '180.6.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.6.152.194', 'tags': [], 'project_id': 'a364a4e7250a49a188fcb14a8a467383'}}
2026-03-13 14:31:15,095 - INFO - Created VN ctest-vn-68939110
2026-03-13 14:31:15,156 - DEBUG - VN ctest-vn-68939110 UUID is a63a163c-3f39-4065-b44e-69d60ac69dc8
2026-03-13 14:31:15,525 - DEBUG - Response for create_network : {'network': {'id': '8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc', 'name': 'ctest-vn-81112558', 'tenant_id': 'a364a4e7250a49a188fcb14a8a467383', 'project_id': 'a364a4e7250a49a188fcb14a8a467383', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29110069', 'ctest-vn-81112558'], 'port_security_enabled': True, 'description': ''}}
2026-03-13 14:31:15,743 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab261933-e901-4ee3-9295-b93c2e9c3abf', 'name': '', 'tenant_id': 'a364a4e7250a49a188fcb14a8a467383', 'network_id': '8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc', 'ip_version': 4, 'cidr': '26.105.100.128/26', 'allocation_pools': [{'start': '26.105.100.130', 'end': '26.105.100.190'}], 'gateway_ip': '26.105.100.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.105.100.130', 'tags': [], 'project_id': 'a364a4e7250a49a188fcb14a8a467383'}}
2026-03-13 14:31:15,763 - INFO - Created VN ctest-vn-81112558
2026-03-13 14:31:15,819 - DEBUG - VN ctest-vn-81112558 UUID is 8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc
2026-03-13 14:31:15,952 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-68939110, 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-29110069:ctest-vn-81112558, 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-13 14:31:16,357 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a63a163c-3f39-4065-b44e-69d60ac69dc8', 'name': 'ctest-vn-68939110', 'tenant_id': 'a364a4e7250a49a188fcb14a8a467383', 'project_id': 'a364a4e7250a49a188fcb14a8a467383', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b1a69e3-704f-4c66-ba36-174d6fc40aee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29110069', 'ctest-vn-68939110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29110069', 'ctest-policy-allow-all-63640202']], 'subnet_ipam': [{'subnet_cidr': '180.6.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-13 14:31:16,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc', 'name': 'ctest-vn-81112558', 'tenant_id': 'a364a4e7250a49a188fcb14a8a467383', 'project_id': 'a364a4e7250a49a188fcb14a8a467383', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab261933-e901-4ee3-9295-b93c2e9c3abf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29110069', 'ctest-vn-81112558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29110069', 'ctest-policy-allow-all-63640202']], 'subnet_ipam': [{'subnet_cidr': '26.105.100.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-13 14:31:16,867 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-13 14:31:17,183 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-13 14:31:17,228 - DEBUG - Requesting: http://10.0.0.50:8082/domain/85891250-e8e0-4e7a-8c49-f9b0e72fd2db
2026-03-13 14:31:17,252 - DEBUG - Requesting: http://10.0.0.50:8082/project/a364a4e7-250a-49a1-88fc-b14a8a467383
2026-03-13 14:31:17,337 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63a163c-3f39-4065-b44e-69d60ac69dc8
2026-03-13 14:31:17,354 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63a163c-3f39-4065-b44e-69d60ac69dc8
2026-03-13 14:31:17,366 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b00b999-9416-4e68-bb54-2fa3a90adb9c
2026-03-13 14:31:17,376 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b00b999-9416-4e68-bb54-2fa3a90adb9c
2026-03-13 14:31:17,388 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1cd5ba34-4214-43a6-9da8-0bf0825f7b3f
2026-03-13 14:31:17,400 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-13 14:31:17,400 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63a163c-3f39-4065-b44e-69d60ac69dc8
2026-03-13 14:31:17,416 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b00b999-9416-4e68-bb54-2fa3a90adb9c
2026-03-13 14:31:17,435 - INFO - Verified VN network id 11 for VN a63a163c-3f39-4065-b44e-69d60ac69dc8
2026-03-13 14:31:17,435 - INFO - Verifications in API Server for VN ctest-vn-68939110 passed
2026-03-13 14:31:17,435 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63a163c-3f39-4065-b44e-69d60ac69dc8
2026-03-13 14:31:17,447 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b00b999-9416-4e68-bb54-2fa3a90adb9c
2026-03-13 14:31:17,458 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b00b999-9416-4e68-bb54-2fa3a90adb9c
2026-03-13 14:31:17,466 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1cd5ba34-4214-43a6-9da8-0bf0825f7b3f
2026-03-13 14:31:17,483 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-68939110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29110069', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11977910606959820901', 'uuid-lslong': '12992438343035166152'}, 'enable': 'true', 'created': '2026-03-13T14:31:14', 'last-modified': '2026-03-13T14:31:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.160821'}
2026-03-13 14:31:17,490 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-13 14:31:17,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68939110 passed
2026-03-13 14:31:17,491 - DEBUG - ====Verifying policy data for ctest-vn-68939110 in API_Server ======
2026-03-13 14:31:17,491 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-13 14:31:17,498 - DEBUG - Requesting: http://10.0.0.50:8082/domain/85891250-e8e0-4e7a-8c49-f9b0e72fd2db
2026-03-13 14:31:17,517 - DEBUG - Requesting: http://10.0.0.50:8082/project/a364a4e7-250a-49a1-88fc-b14a8a467383
2026-03-13 14:31:17,602 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63a163c-3f39-4065-b44e-69d60ac69dc8
2026-03-13 14:31:17,616 - DEBUG - ==>Verifying data for policy with id: dec5de0d-c3dc-4357-802b-1ca2b464efb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-29110069', 'ctest-policy-allow-all-63640202']
2026-03-13 14:31:17,616 - INFO - VN ctest-vn-68939110 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-13 14:31:17,616 - DEBUG - Verifying the vn in opserver
2026-03-13 14:31:17,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-68939110 virtual network link through opserver 10.0.0.50
2026-03-13 14:31:17,617 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-13 14:31:17,935 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-13 14:31:18,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-68939110', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-68939110?flat'}
2026-03-13 14:31:18,060 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-68939110 is found in opserver
2026-03-13 14:31:18,083 - DEBUG - Do not have enough data to verify VN in agent
2026-03-13 14:31:18,092 - DEBUG - VRF ids for VN ctest-vn-68939110: {}
2026-03-13 14:31:18,092 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-13 14:31:18,101 - DEBUG - Requesting: http://10.0.0.50:8082/domain/85891250-e8e0-4e7a-8c49-f9b0e72fd2db
2026-03-13 14:31:18,125 - DEBUG - Requesting: http://10.0.0.50:8082/project/a364a4e7-250a-49a1-88fc-b14a8a467383
2026-03-13 14:31:18,243 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc
2026-03-13 14:31:18,273 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc
2026-03-13 14:31:18,292 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d161edf2-99c8-4a27-8241-2f0a028f96b1
2026-03-13 14:31:18,306 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d161edf2-99c8-4a27-8241-2f0a028f96b1
2026-03-13 14:31:18,319 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5cb99721-6aa9-4b34-9fdd-afe5f980e4c8
2026-03-13 14:31:18,332 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-13 14:31:18,332 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc
2026-03-13 14:31:18,352 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d161edf2-99c8-4a27-8241-2f0a028f96b1
2026-03-13 14:31:18,382 - INFO - Verified VN network id 12 for VN 8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc
2026-03-13 14:31:18,382 - INFO - Verifications in API Server for VN ctest-vn-81112558 passed
2026-03-13 14:31:18,382 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc
2026-03-13 14:31:18,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d161edf2-99c8-4a27-8241-2f0a028f96b1
2026-03-13 14:31:18,418 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d161edf2-99c8-4a27-8241-2f0a028f96b1
2026-03-13 14:31:18,432 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5cb99721-6aa9-4b34-9fdd-afe5f980e4c8
2026-03-13 14:31:18,456 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-81112558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29110069', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10080107059995822192', 'uuid-lslong': '12317573381841515516'}, 'enable': 'true', 'created': '2026-03-13T14:31:15', 'last-modified': '2026-03-13T14:31:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.841967'}
2026-03-13 14:31:18,471 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-13 14:31:18,471 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81112558 passed
2026-03-13 14:31:18,472 - DEBUG - ====Verifying policy data for ctest-vn-81112558 in API_Server ======
2026-03-13 14:31:18,472 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-13 14:31:18,484 - DEBUG - Requesting: http://10.0.0.50:8082/domain/85891250-e8e0-4e7a-8c49-f9b0e72fd2db
2026-03-13 14:31:18,508 - DEBUG - Requesting: http://10.0.0.50:8082/project/a364a4e7-250a-49a1-88fc-b14a8a467383
2026-03-13 14:31:18,628 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be3bbf6-e0f5-4870-aaf0-cfbabf7873fc
2026-03-13 14:31:18,647 - DEBUG - ==>Verifying data for policy with id: dec5de0d-c3dc-4357-802b-1ca2b464efb0, fqn: ['default-domain', 'ctest-TestBasicPolicy-29110069', 'ctest-policy-allow-all-63640202']
2026-03-13 14:31:18,647 - INFO - VN ctest-vn-81112558 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-13 14:31:18,647 - DEBUG - Verifying the vn in opserver
2026-03-13 14:31:18,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-81112558 virtual network link through opserver 10.0.0.50
2026-03-13 14:31:18,647 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-13 14:31:18,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-81112558', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-81112558?flat'}
2026-03-13 14:31:18,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29110069:ctest-vn-81112558 is found in opserver
2026-03-13 14:31:18,692 - DEBUG - Do not have enough data to verify VN in agent
2026-03-13 14:31:18,703 - DEBUG - VRF ids for VN ctest-vn-81112558: {}
2026-03-13 14:31:18,806 - DEBUG - Services list from nova: [