2026-09-21 19:05:35,729 - INFO - Domain Default found not creating
2026-09-21 19:05:35,939 - INFO - Project ctest-TestBasicPolicy-13444960 not found, creating it
2026-09-21 19:05:36,432 - INFO - Created Project:ctest-TestBasicPolicy-13444960, ID : 41503915-d5ab-40c8-b38a-f8046b8fdfcc
2026-09-21 19:05:38,297 - INFO - ================================================================================
2026-09-21 19:05:38,297 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-21 19:05:38,297 - 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-09-21 19:05:38,579 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-09-21 19:05:38,579 - INFO - Initial checks done. Running the testcase now
2026-09-21 19:05:38,579 - INFO -
2026-09-21 19:05:39,298 - DEBUG - Response for create_network : {'network': {'id': '7df55a0c-462c-4e24-8159-5f4b2a37923a', 'name': 'ctest-vn-50919477', 'tenant_id': '41503915d5ab40c8b38af8046b8fdfcc', 'project_id': '41503915d5ab40c8b38af8046b8fdfcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13444960', 'ctest-vn-50919477'], 'port_security_enabled': True, 'description': ''}}
2026-09-21 19:05:39,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bcf98c4-a832-4401-92a0-7b47bf58cdb3', 'name': '', 'tenant_id': '41503915d5ab40c8b38af8046b8fdfcc', 'network_id': '7df55a0c-462c-4e24-8159-5f4b2a37923a', 'ip_version': 4, 'cidr': '165.214.13.192/26', 'allocation_pools': [{'start': '165.214.13.194', 'end': '165.214.13.254'}], 'gateway_ip': '165.214.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.214.13.194', 'tags': [], 'project_id': '41503915d5ab40c8b38af8046b8fdfcc'}}
2026-09-21 19:05:39,556 - INFO - Created VN ctest-vn-50919477
2026-09-21 19:05:39,611 - DEBUG - VN ctest-vn-50919477 UUID is 7df55a0c-462c-4e24-8159-5f4b2a37923a
2026-09-21 19:05:39,946 - DEBUG - Response for create_network : {'network': {'id': 'c50d133c-f3a1-4c25-87ef-bd938484be0d', 'name': 'ctest-vn-60074217', 'tenant_id': '41503915d5ab40c8b38af8046b8fdfcc', 'project_id': '41503915d5ab40c8b38af8046b8fdfcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13444960', 'ctest-vn-60074217'], 'port_security_enabled': True, 'description': ''}}
2026-09-21 19:05:40,150 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd662d3e0-0f4b-4c0f-ad37-6f63d01f8f1e', 'name': '', 'tenant_id': '41503915d5ab40c8b38af8046b8fdfcc', 'network_id': 'c50d133c-f3a1-4c25-87ef-bd938484be0d', 'ip_version': 4, 'cidr': '163.107.40.128/26', 'allocation_pools': [{'start': '163.107.40.130', 'end': '163.107.40.190'}], 'gateway_ip': '163.107.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.107.40.130', 'tags': [], 'project_id': '41503915d5ab40c8b38af8046b8fdfcc'}}
2026-09-21 19:05:40,169 - INFO - Created VN ctest-vn-60074217
2026-09-21 19:05:40,227 - DEBUG - VN ctest-vn-60074217 UUID is c50d133c-f3a1-4c25-87ef-bd938484be0d
2026-09-21 19:05:40,348 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-50919477, 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-13444960:ctest-vn-60074217, 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-09-21 19:05:40,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7df55a0c-462c-4e24-8159-5f4b2a37923a', 'name': 'ctest-vn-50919477', 'tenant_id': '41503915d5ab40c8b38af8046b8fdfcc', 'project_id': '41503915d5ab40c8b38af8046b8fdfcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1bcf98c4-a832-4401-92a0-7b47bf58cdb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13444960', 'ctest-vn-50919477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13444960', 'ctest-policy-allow-all-32491160']], 'subnet_ipam': [{'subnet_cidr': '165.214.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-21 19:05:40,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c50d133c-f3a1-4c25-87ef-bd938484be0d', 'name': 'ctest-vn-60074217', 'tenant_id': '41503915d5ab40c8b38af8046b8fdfcc', 'project_id': '41503915d5ab40c8b38af8046b8fdfcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d662d3e0-0f4b-4c0f-ad37-6f63d01f8f1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13444960', 'ctest-vn-60074217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13444960', 'ctest-policy-allow-all-32491160']], 'subnet_ipam': [{'subnet_cidr': '163.107.40.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-21 19:05:41,131 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 19:05:41,498 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 19:05:41,528 - DEBUG - Requesting: http://10.0.0.161:8082/domain/1ea92881-870c-4138-86d0-ed60f9e04349
2026-09-21 19:05:41,542 - DEBUG - Requesting: http://10.0.0.161:8082/project/41503915-d5ab-40c8-b38a-f8046b8fdfcc
2026-09-21 19:05:41,618 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7df55a0c-462c-4e24-8159-5f4b2a37923a
2026-09-21 19:05:41,632 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7df55a0c-462c-4e24-8159-5f4b2a37923a
2026-09-21 19:05:41,644 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/66922d85-4343-4f79-8c19-9f30a066a8ce
2026-09-21 19:05:41,654 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/66922d85-4343-4f79-8c19-9f30a066a8ce
2026-09-21 19:05:41,664 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/5fb053f0-f4e0-4efa-9299-8fa30ca8ee92
2026-09-21 19:05:41,673 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-21 19:05:41,673 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7df55a0c-462c-4e24-8159-5f4b2a37923a
2026-09-21 19:05:41,684 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/66922d85-4343-4f79-8c19-9f30a066a8ce
2026-09-21 19:05:41,708 - INFO - Verified VN network id 12 for VN 7df55a0c-462c-4e24-8159-5f4b2a37923a
2026-09-21 19:05:41,708 - INFO - Verifications in API Server for VN ctest-vn-50919477 passed
2026-09-21 19:05:41,708 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7df55a0c-462c-4e24-8159-5f4b2a37923a
2026-09-21 19:05:41,720 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/66922d85-4343-4f79-8c19-9f30a066a8ce
2026-09-21 19:05:41,730 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/66922d85-4343-4f79-8c19-9f30a066a8ce
2026-09-21 19:05:41,739 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/5fb053f0-f4e0-4efa-9299-8fa30ca8ee92
2026-09-21 19:05:41,753 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-50919477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13444960', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9076259632798518820', 'uuid-lslong': '9320585680255423034'}, 'enable': 'true', 'created': '2026-09-21T19:05:39', 'last-modified': '2026-09-21T19:05:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.094821'}
2026-09-21 19:05:41,762 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-21 19:05:41,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50919477 passed
2026-09-21 19:05:41,762 - DEBUG - ====Verifying policy data for ctest-vn-50919477 in API_Server ======
2026-09-21 19:05:41,762 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 19:05:41,768 - DEBUG - Requesting: http://10.0.0.161:8082/domain/1ea92881-870c-4138-86d0-ed60f9e04349
2026-09-21 19:05:41,781 - DEBUG - Requesting: http://10.0.0.161:8082/project/41503915-d5ab-40c8-b38a-f8046b8fdfcc
2026-09-21 19:05:41,862 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7df55a0c-462c-4e24-8159-5f4b2a37923a
2026-09-21 19:05:41,876 - DEBUG - ==>Verifying data for policy with id: 391389e5-2cce-479e-b348-ef7ec2292dab, fqn: ['default-domain', 'ctest-TestBasicPolicy-13444960', 'ctest-policy-allow-all-32491160']
2026-09-21 19:05:41,876 - INFO - VN ctest-vn-50919477 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-21 19:05:41,876 - DEBUG - Verifying the vn in opserver
2026-09-21 19:05:41,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-50919477 virtual network link through opserver 10.0.0.161
2026-09-21 19:05:41,876 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-21 19:05:42,254 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-21 19:05:42,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-50919477', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-50919477?flat'}
2026-09-21 19:05:42,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-50919477 is found in opserver
2026-09-21 19:05:42,332 - DEBUG - Do not have enough data to verify VN in agent
2026-09-21 19:05:42,338 - DEBUG - VRF ids for VN ctest-vn-50919477: {}
2026-09-21 19:05:42,338 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 19:05:42,344 - DEBUG - Requesting: http://10.0.0.161:8082/domain/1ea92881-870c-4138-86d0-ed60f9e04349
2026-09-21 19:05:42,358 - DEBUG - Requesting: http://10.0.0.161:8082/project/41503915-d5ab-40c8-b38a-f8046b8fdfcc
2026-09-21 19:05:42,446 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c50d133c-f3a1-4c25-87ef-bd938484be0d
2026-09-21 19:05:42,467 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c50d133c-f3a1-4c25-87ef-bd938484be0d
2026-09-21 19:05:42,480 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ace9dc4d-f659-499f-ab5f-6141a5e4eb94
2026-09-21 19:05:42,490 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ace9dc4d-f659-499f-ab5f-6141a5e4eb94
2026-09-21 19:05:42,498 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/927afb44-70b3-44f8-a96c-26c1dbcf6352
2026-09-21 19:05:42,506 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-21 19:05:42,506 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c50d133c-f3a1-4c25-87ef-bd938484be0d
2026-09-21 19:05:42,517 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ace9dc4d-f659-499f-ab5f-6141a5e4eb94
2026-09-21 19:05:42,533 - INFO - Verified VN network id 13 for VN c50d133c-f3a1-4c25-87ef-bd938484be0d
2026-09-21 19:05:42,533 - INFO - Verifications in API Server for VN ctest-vn-60074217 passed
2026-09-21 19:05:42,533 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c50d133c-f3a1-4c25-87ef-bd938484be0d
2026-09-21 19:05:42,547 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ace9dc4d-f659-499f-ab5f-6141a5e4eb94
2026-09-21 19:05:42,556 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ace9dc4d-f659-499f-ab5f-6141a5e4eb94
2026-09-21 19:05:42,566 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/927afb44-70b3-44f8-a96c-26c1dbcf6352
2026-09-21 19:05:42,582 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-60074217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13444960', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14199026352675441701', 'uuid-lslong': '9795256155835252237'}, 'enable': 'true', 'created': '2026-09-21T19:05:39', 'last-modified': '2026-09-21T19:05:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.664662'}
2026-09-21 19:05:42,591 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-21 19:05:42,591 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60074217 passed
2026-09-21 19:05:42,592 - DEBUG - ====Verifying policy data for ctest-vn-60074217 in API_Server ======
2026-09-21 19:05:42,592 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-21 19:05:42,599 - DEBUG - Requesting: http://10.0.0.161:8082/domain/1ea92881-870c-4138-86d0-ed60f9e04349
2026-09-21 19:05:42,612 - DEBUG - Requesting: http://10.0.0.161:8082/project/41503915-d5ab-40c8-b38a-f8046b8fdfcc
2026-09-21 19:05:42,697 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c50d133c-f3a1-4c25-87ef-bd938484be0d
2026-09-21 19:05:42,708 - DEBUG - ==>Verifying data for policy with id: 391389e5-2cce-479e-b348-ef7ec2292dab, fqn: ['default-domain', 'ctest-TestBasicPolicy-13444960', 'ctest-policy-allow-all-32491160']
2026-09-21 19:05:42,708 - INFO - VN ctest-vn-60074217 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-21 19:05:42,708 - DEBUG - Verifying the vn in opserver
2026-09-21 19:05:42,708 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-60074217 virtual network link through opserver 10.0.0.161
2026-09-21 19:05:42,708 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-21 19:05:42,721 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-60074217', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-60074217?flat'}
2026-09-21 19:05:42,721 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13444960:ctest-vn-60074217 is found in opserver
2026-09-21 19:05:42,734 - DEBUG - Do not have enough data to verify VN in agent
2026-09-21 19:05:42,741 - DEBUG - VRF ids for VN ctest-vn-60074217: {}
2026-09-21 19:05:42,813 - DEBUG - Services list from nova: [