2026-05-08 22:03:35,225 - INFO - Domain Default found not creating
2026-05-08 22:03:35,429 - INFO - Project ctest-TestBasicPolicy-97443667 not found, creating it
2026-05-08 22:03:35,889 - INFO - Created Project:ctest-TestBasicPolicy-97443667, ID : 9e2a7c22-f400-49b9-97cf-0ace62e912f5
2026-05-08 22:03:37,375 - INFO - ================================================================================
2026-05-08 22:03:37,376 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-08 22:03:37,376 - 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-08 22:03:37,632 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-08 22:03:37,632 - INFO - Initial checks done. Running the testcase now
2026-05-08 22:03:37,632 - INFO -
2026-05-08 22:03:38,203 - DEBUG - Response for create_network : {'network': {'id': 'de2e0953-f7b4-4c85-b9b0-1a1a4eafc288', 'name': 'ctest-vn-98487052', 'tenant_id': '9e2a7c22f40049b997cf0ace62e912f5', 'project_id': '9e2a7c22f40049b997cf0ace62e912f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97443667', 'ctest-vn-98487052'], 'port_security_enabled': True, 'description': ''}}
2026-05-08 22:03:38,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ac9c92a-69ca-4730-b432-905aa3cf033e', 'name': '', 'tenant_id': '9e2a7c22f40049b997cf0ace62e912f5', 'network_id': 'de2e0953-f7b4-4c85-b9b0-1a1a4eafc288', 'ip_version': 4, 'cidr': '89.36.46.0/26', 'allocation_pools': [{'start': '89.36.46.2', 'end': '89.36.46.62'}], 'gateway_ip': '89.36.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.36.46.2', 'tags': [], 'project_id': '9e2a7c22f40049b997cf0ace62e912f5'}}
2026-05-08 22:03:38,418 - INFO - Created VN ctest-vn-98487052
2026-05-08 22:03:38,470 - DEBUG - VN ctest-vn-98487052 UUID is de2e0953-f7b4-4c85-b9b0-1a1a4eafc288
2026-05-08 22:03:38,784 - DEBUG - Response for create_network : {'network': {'id': 'a0fec771-e39a-4572-976d-babd41ae0361', 'name': 'ctest-vn-59632641', 'tenant_id': '9e2a7c22f40049b997cf0ace62e912f5', 'project_id': '9e2a7c22f40049b997cf0ace62e912f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97443667', 'ctest-vn-59632641'], 'port_security_enabled': True, 'description': ''}}
2026-05-08 22:03:38,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea440f3d-7f17-42c9-be3d-a4c2903af2e9', 'name': '', 'tenant_id': '9e2a7c22f40049b997cf0ace62e912f5', 'network_id': 'a0fec771-e39a-4572-976d-babd41ae0361', 'ip_version': 4, 'cidr': '126.26.143.0/26', 'allocation_pools': [{'start': '126.26.143.2', 'end': '126.26.143.62'}], 'gateway_ip': '126.26.143.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.26.143.2', 'tags': [], 'project_id': '9e2a7c22f40049b997cf0ace62e912f5'}}
2026-05-08 22:03:38,997 - INFO - Created VN ctest-vn-59632641
2026-05-08 22:03:39,054 - DEBUG - VN ctest-vn-59632641 UUID is a0fec771-e39a-4572-976d-babd41ae0361
2026-05-08 22:03:39,206 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-98487052, 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-97443667:ctest-vn-59632641, 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-08 22:03:39,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de2e0953-f7b4-4c85-b9b0-1a1a4eafc288', 'name': 'ctest-vn-98487052', 'tenant_id': '9e2a7c22f40049b997cf0ace62e912f5', 'project_id': '9e2a7c22f40049b997cf0ace62e912f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ac9c92a-69ca-4730-b432-905aa3cf033e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97443667', 'ctest-vn-98487052'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97443667', 'ctest-policy-allow-all-00812506']], 'subnet_ipam': [{'subnet_cidr': '89.36.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-08 22:03:39,721 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0fec771-e39a-4572-976d-babd41ae0361', 'name': 'ctest-vn-59632641', 'tenant_id': '9e2a7c22f40049b997cf0ace62e912f5', 'project_id': '9e2a7c22f40049b997cf0ace62e912f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea440f3d-7f17-42c9-be3d-a4c2903af2e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97443667', 'ctest-vn-59632641'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97443667', 'ctest-policy-allow-all-00812506']], 'subnet_ipam': [{'subnet_cidr': '126.26.143.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-08 22:03:39,850 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 22:03:40,151 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 22:03:40,187 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d22c6d24-2341-4a17-85f6-a2d8ccdb534f
2026-05-08 22:03:40,200 - DEBUG - Requesting: http://10.0.0.50:8082/project/9e2a7c22-f400-49b9-97cf-0ace62e912f5
2026-05-08 22:03:40,271 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de2e0953-f7b4-4c85-b9b0-1a1a4eafc288
2026-05-08 22:03:40,282 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de2e0953-f7b4-4c85-b9b0-1a1a4eafc288
2026-05-08 22:03:40,292 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17ef6bfe-56a5-419a-b3b1-6fdf5ef07e31
2026-05-08 22:03:40,298 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17ef6bfe-56a5-419a-b3b1-6fdf5ef07e31
2026-05-08 22:03:40,305 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1562ca07-3dd5-40e9-8b26-edfb54e87ef9
2026-05-08 22:03:40,311 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-08 22:03:40,311 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de2e0953-f7b4-4c85-b9b0-1a1a4eafc288
2026-05-08 22:03:40,321 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17ef6bfe-56a5-419a-b3b1-6fdf5ef07e31
2026-05-08 22:03:40,335 - INFO - Verified VN network id 11 for VN de2e0953-f7b4-4c85-b9b0-1a1a4eafc288
2026-05-08 22:03:40,335 - INFO - Verifications in API Server for VN ctest-vn-98487052 passed
2026-05-08 22:03:40,336 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de2e0953-f7b4-4c85-b9b0-1a1a4eafc288
2026-05-08 22:03:40,344 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17ef6bfe-56a5-419a-b3b1-6fdf5ef07e31
2026-05-08 22:03:40,351 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17ef6bfe-56a5-419a-b3b1-6fdf5ef07e31
2026-05-08 22:03:40,357 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1562ca07-3dd5-40e9-8b26-edfb54e87ef9
2026-05-08 22:03:40,368 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-98487052', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97443667', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16009743981591415941', 'uuid-lslong': '13380223193209356936'}, 'enable': 'true', 'created': '2026-05-08T22:03:38', 'last-modified': '2026-05-08T22:03:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896904'}
2026-05-08 22:03:40,373 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-08 22:03:40,373 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98487052 passed
2026-05-08 22:03:40,373 - DEBUG - ====Verifying policy data for ctest-vn-98487052 in API_Server ======
2026-05-08 22:03:40,373 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 22:03:40,378 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d22c6d24-2341-4a17-85f6-a2d8ccdb534f
2026-05-08 22:03:40,388 - DEBUG - Requesting: http://10.0.0.50:8082/project/9e2a7c22-f400-49b9-97cf-0ace62e912f5
2026-05-08 22:03:40,454 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de2e0953-f7b4-4c85-b9b0-1a1a4eafc288
2026-05-08 22:03:40,463 - DEBUG - ==>Verifying data for policy with id: 04d4e0b7-360e-442e-a944-1bd3e1b0bebb, fqn: ['default-domain', 'ctest-TestBasicPolicy-97443667', 'ctest-policy-allow-all-00812506']
2026-05-08 22:03:40,463 - INFO - VN ctest-vn-98487052 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-08 22:03:40,463 - DEBUG - Verifying the vn in opserver
2026-05-08 22:03:40,463 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-98487052 virtual network link through opserver 10.0.0.50
2026-05-08 22:03:40,463 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-08 22:03:40,754 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-08 22:03:40,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-98487052', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-98487052?flat'}
2026-05-08 22:03:40,818 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-98487052 is found in opserver
2026-05-08 22:03:40,827 - DEBUG - Do not have enough data to verify VN in agent
2026-05-08 22:03:40,833 - DEBUG - VRF ids for VN ctest-vn-98487052: {}
2026-05-08 22:03:40,833 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 22:03:40,839 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d22c6d24-2341-4a17-85f6-a2d8ccdb534f
2026-05-08 22:03:40,850 - DEBUG - Requesting: http://10.0.0.50:8082/project/9e2a7c22-f400-49b9-97cf-0ace62e912f5
2026-05-08 22:03:40,920 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0fec771-e39a-4572-976d-babd41ae0361
2026-05-08 22:03:40,933 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0fec771-e39a-4572-976d-babd41ae0361
2026-05-08 22:03:40,941 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79548bf7-22c7-4d53-ad44-cfd6222b4b51
2026-05-08 22:03:40,947 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79548bf7-22c7-4d53-ad44-cfd6222b4b51
2026-05-08 22:03:40,953 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/846be980-b9f7-493d-be53-67faafc784ef
2026-05-08 22:03:40,959 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-08 22:03:40,959 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0fec771-e39a-4572-976d-babd41ae0361
2026-05-08 22:03:40,968 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79548bf7-22c7-4d53-ad44-cfd6222b4b51
2026-05-08 22:03:40,981 - INFO - Verified VN network id 12 for VN a0fec771-e39a-4572-976d-babd41ae0361
2026-05-08 22:03:40,981 - INFO - Verifications in API Server for VN ctest-vn-59632641 passed
2026-05-08 22:03:40,981 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0fec771-e39a-4572-976d-babd41ae0361
2026-05-08 22:03:40,991 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79548bf7-22c7-4d53-ad44-cfd6222b4b51
2026-05-08 22:03:40,998 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/79548bf7-22c7-4d53-ad44-cfd6222b4b51
2026-05-08 22:03:41,005 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/846be980-b9f7-493d-be53-67faafc784ef
2026-05-08 22:03:41,018 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-59632641', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97443667', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11600928982116746610', 'uuid-lslong': '10911582794202088289'}, 'enable': 'true', 'created': '2026-05-08T22:03:38', 'last-modified': '2026-05-08T22:03:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314233'}
2026-05-08 22:03:41,025 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-08 22:03:41,025 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59632641 passed
2026-05-08 22:03:41,026 - DEBUG - ====Verifying policy data for ctest-vn-59632641 in API_Server ======
2026-05-08 22:03:41,026 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 22:03:41,032 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d22c6d24-2341-4a17-85f6-a2d8ccdb534f
2026-05-08 22:03:41,041 - DEBUG - Requesting: http://10.0.0.50:8082/project/9e2a7c22-f400-49b9-97cf-0ace62e912f5
2026-05-08 22:03:41,111 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0fec771-e39a-4572-976d-babd41ae0361
2026-05-08 22:03:41,120 - DEBUG - ==>Verifying data for policy with id: 04d4e0b7-360e-442e-a944-1bd3e1b0bebb, fqn: ['default-domain', 'ctest-TestBasicPolicy-97443667', 'ctest-policy-allow-all-00812506']
2026-05-08 22:03:41,120 - INFO - VN ctest-vn-59632641 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-08 22:03:41,120 - DEBUG - Verifying the vn in opserver
2026-05-08 22:03:41,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-59632641 virtual network link through opserver 10.0.0.50
2026-05-08 22:03:41,120 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-08 22:03:41,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-59632641', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-59632641?flat'}
2026-05-08 22:03:41,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97443667:ctest-vn-59632641 is found in opserver
2026-05-08 22:03:41,140 - DEBUG - Do not have enough data to verify VN in agent
2026-05-08 22:03:41,145 - DEBUG - VRF ids for VN ctest-vn-59632641: {}
2026-05-08 22:03:41,205 - DEBUG - Services list from nova: [