2026-05-25 02:08:24,152 - INFO - Domain Default found not creating
2026-05-25 02:08:24,346 - INFO - Project ctest-TestBasicPolicy-25496803 not found, creating it
2026-05-25 02:08:24,816 - INFO - Created Project:ctest-TestBasicPolicy-25496803, ID : b991bbd3-358b-4937-bd33-b25bfe449ff9
2026-05-25 02:08:26,360 - INFO - ================================================================================
2026-05-25 02:08:26,360 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-25 02:08:26,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-05-25 02:08:26,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with
2026-05-25 02:08:26,617 - INFO - Initial checks done. Running the testcase now
2026-05-25 02:08:26,617 - INFO -
2026-05-25 02:08:27,204 - DEBUG - Response for create_network : {'network': {'id': 'ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d', 'name': 'ctest-vn-52334607', 'tenant_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'project_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25496803', 'ctest-vn-52334607'], 'port_security_enabled': True, 'description': ''}}
2026-05-25 02:08:27,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '5567a8ed-bec1-4277-8d4a-c833d68122d7', 'name': '', 'tenant_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'network_id': 'ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d', 'ip_version': 4, 'cidr': '2.234.65.0/26', 'allocation_pools': [{'start': '2.234.65.2', 'end': '2.234.65.62'}], 'gateway_ip': '2.234.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.234.65.2', 'tags': [], 'project_id': 'b991bbd3358b4937bd33b25bfe449ff9'}}
2026-05-25 02:08:27,407 - INFO - Created VN ctest-vn-52334607
2026-05-25 02:08:27,461 - DEBUG - VN ctest-vn-52334607 UUID is ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d
2026-05-25 02:08:27,758 - DEBUG - Response for create_network : {'network': {'id': '056480da-c2b0-4833-8e58-e2187311379f', 'name': 'ctest-vn-70531418', 'tenant_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'project_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25496803', 'ctest-vn-70531418'], 'port_security_enabled': True, 'description': ''}}
2026-05-25 02:08:27,947 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7a198f5-eead-489d-98cc-2dfce69dc17b', 'name': '', 'tenant_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'network_id': '056480da-c2b0-4833-8e58-e2187311379f', 'ip_version': 4, 'cidr': '124.9.74.192/26', 'allocation_pools': [{'start': '124.9.74.194', 'end': '124.9.74.254'}], 'gateway_ip': '124.9.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.9.74.194', 'tags': [], 'project_id': 'b991bbd3358b4937bd33b25bfe449ff9'}}
2026-05-25 02:08:27,965 - INFO - Created VN ctest-vn-70531418
2026-05-25 02:08:28,017 - DEBUG - VN ctest-vn-70531418 UUID is 056480da-c2b0-4833-8e58-e2187311379f
2026-05-25 02:08:28,131 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-52334607, 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-25496803:ctest-vn-70531418, 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-05-25 02:08:28,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d', 'name': 'ctest-vn-52334607', 'tenant_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'project_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5567a8ed-bec1-4277-8d4a-c833d68122d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25496803', 'ctest-vn-52334607'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25496803', 'ctest-policy-allow-all-23246221']], 'subnet_ipam': [{'subnet_cidr': '2.234.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-25 02:08:28,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '056480da-c2b0-4833-8e58-e2187311379f', 'name': 'ctest-vn-70531418', 'tenant_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'project_id': 'b991bbd3358b4937bd33b25bfe449ff9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7a198f5-eead-489d-98cc-2dfce69dc17b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25496803', 'ctest-vn-70531418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25496803', 'ctest-policy-allow-all-23246221']], 'subnet_ipam': [{'subnet_cidr': '124.9.74.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-25 02:08:28,857 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-25 02:08:29,152 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-25 02:08:29,185 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f0123549-2e3a-42ce-9070-21413de15b92
2026-05-25 02:08:29,197 - DEBUG - Requesting: http://10.0.0.41:8082/project/b991bbd3-358b-4937-bd33-b25bfe449ff9
2026-05-25 02:08:29,271 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d
2026-05-25 02:08:29,284 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d
2026-05-25 02:08:29,295 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/89c117a6-de6e-4993-a2aa-e97c6d7b2e84
2026-05-25 02:08:29,303 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/89c117a6-de6e-4993-a2aa-e97c6d7b2e84
2026-05-25 02:08:29,310 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7156cbc4-76eb-45b7-9376-e243f5fc146f
2026-05-25 02:08:29,318 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-25 02:08:29,318 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d
2026-05-25 02:08:29,327 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/89c117a6-de6e-4993-a2aa-e97c6d7b2e84
2026-05-25 02:08:29,342 - INFO - Verified VN network id 11 for VN ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d
2026-05-25 02:08:29,343 - INFO - Verifications in API Server for VN ctest-vn-52334607 passed
2026-05-25 02:08:29,343 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d
2026-05-25 02:08:29,352 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/89c117a6-de6e-4993-a2aa-e97c6d7b2e84
2026-05-25 02:08:29,360 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/89c117a6-de6e-4993-a2aa-e97c6d7b2e84
2026-05-25 02:08:29,368 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7156cbc4-76eb-45b7-9376-e243f5fc146f
2026-05-25 02:08:29,381 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-52334607', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25496803', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17036515393818477505', 'uuid-lslong': '11232011596154526749'}, 'enable': 'true', 'created': '2026-05-25T02:08:27', 'last-modified': '2026-05-25T02:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964721'}
2026-05-25 02:08:29,387 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-25 02:08:29,388 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52334607 passed
2026-05-25 02:08:29,388 - DEBUG - ====Verifying policy data for ctest-vn-52334607 in API_Server ======
2026-05-25 02:08:29,388 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-25 02:08:29,393 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f0123549-2e3a-42ce-9070-21413de15b92
2026-05-25 02:08:29,411 - DEBUG - Requesting: http://10.0.0.41:8082/project/b991bbd3-358b-4937-bd33-b25bfe449ff9
2026-05-25 02:08:29,483 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec6ddc7c-c306-43c1-9be0-1f0975dbdc1d
2026-05-25 02:08:29,492 - DEBUG - ==>Verifying data for policy with id: f22d85e6-08ec-4304-a50f-da0dfe770f70, fqn: ['default-domain', 'ctest-TestBasicPolicy-25496803', 'ctest-policy-allow-all-23246221']
2026-05-25 02:08:29,492 - INFO - VN ctest-vn-52334607 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-25 02:08:29,492 - DEBUG - Verifying the vn in opserver
2026-05-25 02:08:29,492 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-52334607 virtual network link through opserver 10.0.0.41
2026-05-25 02:08:29,492 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-05-25 02:08:29,791 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-05-25 02:08:29,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-52334607', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-52334607?flat'}
2026-05-25 02:08:29,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-52334607 is found in opserver
2026-05-25 02:08:29,867 - DEBUG - Do not have enough data to verify VN in agent
2026-05-25 02:08:29,872 - DEBUG - VRF ids for VN ctest-vn-52334607: {}
2026-05-25 02:08:29,872 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-25 02:08:29,879 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f0123549-2e3a-42ce-9070-21413de15b92
2026-05-25 02:08:29,890 - DEBUG - Requesting: http://10.0.0.41:8082/project/b991bbd3-358b-4937-bd33-b25bfe449ff9
2026-05-25 02:08:29,965 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/056480da-c2b0-4833-8e58-e2187311379f
2026-05-25 02:08:29,977 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/056480da-c2b0-4833-8e58-e2187311379f
2026-05-25 02:08:29,986 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e03020f7-8e61-4dc2-858c-9598bee48494
2026-05-25 02:08:29,995 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e03020f7-8e61-4dc2-858c-9598bee48494
2026-05-25 02:08:30,003 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/eefba586-3d75-4bbf-9d44-d9cf72db3805
2026-05-25 02:08:30,012 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-25 02:08:30,012 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/056480da-c2b0-4833-8e58-e2187311379f
2026-05-25 02:08:30,024 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e03020f7-8e61-4dc2-858c-9598bee48494
2026-05-25 02:08:30,042 - INFO - Verified VN network id 12 for VN 056480da-c2b0-4833-8e58-e2187311379f
2026-05-25 02:08:30,042 - INFO - Verifications in API Server for VN ctest-vn-70531418 passed
2026-05-25 02:08:30,042 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/056480da-c2b0-4833-8e58-e2187311379f
2026-05-25 02:08:30,052 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e03020f7-8e61-4dc2-858c-9598bee48494
2026-05-25 02:08:30,060 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e03020f7-8e61-4dc2-858c-9598bee48494
2026-05-25 02:08:30,067 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/eefba586-3d75-4bbf-9d44-d9cf72db3805
2026-05-25 02:08:30,081 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-70531418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25496803', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '388577144918263859', 'uuid-lslong': '10257196745973905311'}, 'enable': 'true', 'created': '2026-05-25T02:08:27', 'last-modified': '2026-05-25T02:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.419405'}
2026-05-25 02:08:30,087 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-25 02:08:30,087 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70531418 passed
2026-05-25 02:08:30,088 - DEBUG - ====Verifying policy data for ctest-vn-70531418 in API_Server ======
2026-05-25 02:08:30,088 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-25 02:08:30,094 - DEBUG - Requesting: http://10.0.0.41:8082/domain/f0123549-2e3a-42ce-9070-21413de15b92
2026-05-25 02:08:30,107 - DEBUG - Requesting: http://10.0.0.41:8082/project/b991bbd3-358b-4937-bd33-b25bfe449ff9
2026-05-25 02:08:30,180 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/056480da-c2b0-4833-8e58-e2187311379f
2026-05-25 02:08:30,191 - DEBUG - ==>Verifying data for policy with id: f22d85e6-08ec-4304-a50f-da0dfe770f70, fqn: ['default-domain', 'ctest-TestBasicPolicy-25496803', 'ctest-policy-allow-all-23246221']
2026-05-25 02:08:30,191 - INFO - VN ctest-vn-70531418 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-25 02:08:30,191 - DEBUG - Verifying the vn in opserver
2026-05-25 02:08:30,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-70531418 virtual network link through opserver 10.0.0.41
2026-05-25 02:08:30,191 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-05-25 02:08:30,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-70531418', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-70531418?flat'}
2026-05-25 02:08:30,202 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25496803:ctest-vn-70531418 is found in opserver
2026-05-25 02:08:30,213 - DEBUG - Do not have enough data to verify VN in agent
2026-05-25 02:08:30,219 - DEBUG - VRF ids for VN ctest-vn-70531418: {}
2026-05-25 02:08:30,283 - DEBUG - Services list from nova: [