2026-04-03 10:44:13,389 - INFO - Domain Default found not creating
2026-04-03 10:44:13,536 - INFO - Project ctest-TestBasicPolicy-74889583 not found, creating it
2026-04-03 10:44:13,956 - INFO - Created Project:ctest-TestBasicPolicy-74889583, ID : b98e312b-3207-4445-ad1d-21627343fe45
2026-04-03 10:44:15,360 - INFO - ================================================================================
2026-04-03 10:44:15,360 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-03 10:44:15,360 - 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-04-03 10:44:15,614 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-03 10:44:15,614 - INFO - Initial checks done. Running the testcase now
2026-04-03 10:44:15,614 - INFO -
2026-04-03 10:44:16,136 - DEBUG - Response for create_network : {'network': {'id': 'e266a4ed-5d7c-43ad-8735-67b8bfd7e51c', 'name': 'ctest-vn-21780492', 'tenant_id': 'b98e312b32074445ad1d21627343fe45', 'project_id': 'b98e312b32074445ad1d21627343fe45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74889583', 'ctest-vn-21780492'], 'port_security_enabled': True, 'description': ''}}
2026-04-03 10:44:16,334 - DEBUG - Response for create_subnet : {'subnet': {'id': '8249b7a8-d1b2-44d6-9f6e-dfdf403500bd', 'name': '', 'tenant_id': 'b98e312b32074445ad1d21627343fe45', 'network_id': 'e266a4ed-5d7c-43ad-8735-67b8bfd7e51c', 'ip_version': 4, 'cidr': '90.122.192.0/26', 'allocation_pools': [{'start': '90.122.192.2', 'end': '90.122.192.62'}], 'gateway_ip': '90.122.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.122.192.2', 'tags': [], 'project_id': 'b98e312b32074445ad1d21627343fe45'}}
2026-04-03 10:44:16,351 - INFO - Created VN ctest-vn-21780492
2026-04-03 10:44:16,402 - DEBUG - VN ctest-vn-21780492 UUID is e266a4ed-5d7c-43ad-8735-67b8bfd7e51c
2026-04-03 10:44:16,690 - DEBUG - Response for create_network : {'network': {'id': '0f9cc47f-62d1-476c-95fb-9b62f023394b', 'name': 'ctest-vn-06983780', 'tenant_id': 'b98e312b32074445ad1d21627343fe45', 'project_id': 'b98e312b32074445ad1d21627343fe45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74889583', 'ctest-vn-06983780'], 'port_security_enabled': True, 'description': ''}}
2026-04-03 10:44:16,834 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d2339a9-d038-4edb-ad46-c829a219b276', 'name': '', 'tenant_id': 'b98e312b32074445ad1d21627343fe45', 'network_id': '0f9cc47f-62d1-476c-95fb-9b62f023394b', 'ip_version': 4, 'cidr': '170.72.210.64/26', 'allocation_pools': [{'start': '170.72.210.66', 'end': '170.72.210.126'}], 'gateway_ip': '170.72.210.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.72.210.66', 'tags': [], 'project_id': 'b98e312b32074445ad1d21627343fe45'}}
2026-04-03 10:44:16,850 - INFO - Created VN ctest-vn-06983780
2026-04-03 10:44:16,901 - DEBUG - VN ctest-vn-06983780 UUID is 0f9cc47f-62d1-476c-95fb-9b62f023394b
2026-04-03 10:44:17,045 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-21780492, 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-74889583:ctest-vn-06983780, 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-04-03 10:44:17,330 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e266a4ed-5d7c-43ad-8735-67b8bfd7e51c', 'name': 'ctest-vn-21780492', 'tenant_id': 'b98e312b32074445ad1d21627343fe45', 'project_id': 'b98e312b32074445ad1d21627343fe45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8249b7a8-d1b2-44d6-9f6e-dfdf403500bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74889583', 'ctest-vn-21780492'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74889583', 'ctest-policy-allow-all-27682614']], 'subnet_ipam': [{'subnet_cidr': '90.122.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-03 10:44:17,591 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f9cc47f-62d1-476c-95fb-9b62f023394b', 'name': 'ctest-vn-06983780', 'tenant_id': 'b98e312b32074445ad1d21627343fe45', 'project_id': 'b98e312b32074445ad1d21627343fe45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d2339a9-d038-4edb-ad46-c829a219b276'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74889583', 'ctest-vn-06983780'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74889583', 'ctest-policy-allow-all-27682614']], 'subnet_ipam': [{'subnet_cidr': '170.72.210.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-03 10:44:17,741 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-03 10:44:18,035 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-03 10:44:18,064 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d6748b1-481c-456d-b88c-0714ed939306
2026-04-03 10:44:18,075 - DEBUG - Requesting: http://10.0.0.50:8082/project/b98e312b-3207-4445-ad1d-21627343fe45
2026-04-03 10:44:18,149 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e266a4ed-5d7c-43ad-8735-67b8bfd7e51c
2026-04-03 10:44:18,178 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e266a4ed-5d7c-43ad-8735-67b8bfd7e51c
2026-04-03 10:44:18,199 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5683b74-8064-411b-aecf-f33c159ff5cb
2026-04-03 10:44:18,216 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5683b74-8064-411b-aecf-f33c159ff5cb
2026-04-03 10:44:18,250 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7c8f7679-1033-46e0-bae6-88483ef06a04
2026-04-03 10:44:18,295 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-03 10:44:18,295 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e266a4ed-5d7c-43ad-8735-67b8bfd7e51c
2026-04-03 10:44:18,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5683b74-8064-411b-aecf-f33c159ff5cb
2026-04-03 10:44:18,337 - INFO - Verified VN network id 12 for VN e266a4ed-5d7c-43ad-8735-67b8bfd7e51c
2026-04-03 10:44:18,337 - INFO - Verifications in API Server for VN ctest-vn-21780492 passed
2026-04-03 10:44:18,337 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e266a4ed-5d7c-43ad-8735-67b8bfd7e51c
2026-04-03 10:44:18,370 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5683b74-8064-411b-aecf-f33c159ff5cb
2026-04-03 10:44:18,378 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5683b74-8064-411b-aecf-f33c159ff5cb
2026-04-03 10:44:18,384 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7c8f7679-1033-46e0-bae6-88483ef06a04
2026-04-03 10:44:18,399 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-21780492', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74889583', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16313908039578829741', 'uuid-lslong': '9742807412076176668'}, 'enable': 'true', 'created': '2026-04-03T10:44:16', 'last-modified': '2026-04-03T10:44:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.090347'}
2026-04-03 10:44:18,407 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-03 10:44:18,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21780492 passed
2026-04-03 10:44:18,407 - DEBUG - ====Verifying policy data for ctest-vn-21780492 in API_Server ======
2026-04-03 10:44:18,407 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-03 10:44:18,422 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d6748b1-481c-456d-b88c-0714ed939306
2026-04-03 10:44:18,459 - DEBUG - Requesting: http://10.0.0.50:8082/project/b98e312b-3207-4445-ad1d-21627343fe45
2026-04-03 10:44:18,574 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e266a4ed-5d7c-43ad-8735-67b8bfd7e51c
2026-04-03 10:44:18,584 - DEBUG - ==>Verifying data for policy with id: e4199968-83b5-4d1f-bddb-6fd202d4c560, fqn: ['default-domain', 'ctest-TestBasicPolicy-74889583', 'ctest-policy-allow-all-27682614']
2026-04-03 10:44:18,584 - INFO - VN ctest-vn-21780492 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-03 10:44:18,584 - DEBUG - Verifying the vn in opserver
2026-04-03 10:44:18,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-21780492 virtual network link through opserver 10.0.0.50
2026-04-03 10:44:18,584 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-03 10:44:18,885 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-03 10:44:18,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-21780492', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-21780492?flat'}
2026-04-03 10:44:18,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-21780492 is found in opserver
2026-04-03 10:44:18,969 - DEBUG - Do not have enough data to verify VN in agent
2026-04-03 10:44:18,975 - DEBUG - VRF ids for VN ctest-vn-21780492: {}
2026-04-03 10:44:18,975 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-03 10:44:18,980 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d6748b1-481c-456d-b88c-0714ed939306
2026-04-03 10:44:18,992 - DEBUG - Requesting: http://10.0.0.50:8082/project/b98e312b-3207-4445-ad1d-21627343fe45
2026-04-03 10:44:19,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f9cc47f-62d1-476c-95fb-9b62f023394b
2026-04-03 10:44:19,074 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f9cc47f-62d1-476c-95fb-9b62f023394b
2026-04-03 10:44:19,081 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/52217395-3eed-4b67-8b05-9f5461dce6ef
2026-04-03 10:44:19,087 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/52217395-3eed-4b67-8b05-9f5461dce6ef
2026-04-03 10:44:19,093 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b925b036-4fab-41e4-9044-d71e61421353
2026-04-03 10:44:19,101 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-03 10:44:19,101 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f9cc47f-62d1-476c-95fb-9b62f023394b
2026-04-03 10:44:19,112 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/52217395-3eed-4b67-8b05-9f5461dce6ef
2026-04-03 10:44:19,126 - INFO - Verified VN network id 13 for VN 0f9cc47f-62d1-476c-95fb-9b62f023394b
2026-04-03 10:44:19,126 - INFO - Verifications in API Server for VN ctest-vn-06983780 passed
2026-04-03 10:44:19,127 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f9cc47f-62d1-476c-95fb-9b62f023394b
2026-04-03 10:44:19,136 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/52217395-3eed-4b67-8b05-9f5461dce6ef
2026-04-03 10:44:19,143 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/52217395-3eed-4b67-8b05-9f5461dce6ef
2026-04-03 10:44:19,149 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b925b036-4fab-41e4-9044-d71e61421353
2026-04-03 10:44:19,161 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-06983780', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74889583', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1124990058333554540', 'uuid-lslong': '10807402580043577675'}, 'enable': 'true', 'created': '2026-04-03T10:44:16', 'last-modified': '2026-04-03T10:44:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.638252'}
2026-04-03 10:44:19,169 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-03 10:44:19,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06983780 passed
2026-04-03 10:44:19,170 - DEBUG - ====Verifying policy data for ctest-vn-06983780 in API_Server ======
2026-04-03 10:44:19,170 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-03 10:44:19,176 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d6748b1-481c-456d-b88c-0714ed939306
2026-04-03 10:44:19,187 - DEBUG - Requesting: http://10.0.0.50:8082/project/b98e312b-3207-4445-ad1d-21627343fe45
2026-04-03 10:44:19,267 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f9cc47f-62d1-476c-95fb-9b62f023394b
2026-04-03 10:44:19,278 - DEBUG - ==>Verifying data for policy with id: e4199968-83b5-4d1f-bddb-6fd202d4c560, fqn: ['default-domain', 'ctest-TestBasicPolicy-74889583', 'ctest-policy-allow-all-27682614']
2026-04-03 10:44:19,278 - INFO - VN ctest-vn-06983780 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-03 10:44:19,278 - DEBUG - Verifying the vn in opserver
2026-04-03 10:44:19,278 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-06983780 virtual network link through opserver 10.0.0.50
2026-04-03 10:44:19,278 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-03 10:44:19,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-06983780', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-06983780?flat'}
2026-04-03 10:44:19,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74889583:ctest-vn-06983780 is found in opserver
2026-04-03 10:44:19,297 - DEBUG - Do not have enough data to verify VN in agent
2026-04-03 10:44:19,302 - DEBUG - VRF ids for VN ctest-vn-06983780: {}
2026-04-03 10:44:19,368 - DEBUG - Services list from nova: [