2026-04-20 16:33:44,483 - INFO - Domain Default found not creating
2026-04-20 16:33:44,677 - INFO - Project ctest-TestBasicPolicy-70837897 not found, creating it
2026-04-20 16:33:45,159 - INFO - Created Project:ctest-TestBasicPolicy-70837897, ID : 13088b07-6099-4d1b-b9fd-e0598fd8ee06
2026-04-20 16:33:46,782 - INFO - ================================================================================
2026-04-20 16:33:46,782 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-20 16:33:46,782 - 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-20 16:33:47,052 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2026-04-20 16:33:47,052 - INFO - Initial checks done. Running the testcase now
2026-04-20 16:33:47,052 - INFO -
2026-04-20 16:33:47,627 - DEBUG - Response for create_network : {'network': {'id': '731823e1-5699-4c8a-8eaa-f903b4a02fea', 'name': 'ctest-vn-75193859', 'tenant_id': '13088b0760994d1bb9fde0598fd8ee06', 'project_id': '13088b0760994d1bb9fde0598fd8ee06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70837897', 'ctest-vn-75193859'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:33:47,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '6beed26a-b3b8-4254-af8e-4a9032c1daa2', 'name': '', 'tenant_id': '13088b0760994d1bb9fde0598fd8ee06', 'network_id': '731823e1-5699-4c8a-8eaa-f903b4a02fea', 'ip_version': 4, 'cidr': '92.58.50.192/26', 'allocation_pools': [{'start': '92.58.50.194', 'end': '92.58.50.254'}], 'gateway_ip': '92.58.50.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.58.50.194', 'tags': [], 'project_id': '13088b0760994d1bb9fde0598fd8ee06'}}
2026-04-20 16:33:47,862 - INFO - Created VN ctest-vn-75193859
2026-04-20 16:33:47,915 - DEBUG - VN ctest-vn-75193859 UUID is 731823e1-5699-4c8a-8eaa-f903b4a02fea
2026-04-20 16:33:48,221 - DEBUG - Response for create_network : {'network': {'id': 'f1cdf214-3afa-456d-94bf-173fc77bc9ba', 'name': 'ctest-vn-55023717', 'tenant_id': '13088b0760994d1bb9fde0598fd8ee06', 'project_id': '13088b0760994d1bb9fde0598fd8ee06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70837897', 'ctest-vn-55023717'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:33:48,396 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d4de821-c1ce-421b-a90b-c1ed7518fc83', 'name': '', 'tenant_id': '13088b0760994d1bb9fde0598fd8ee06', 'network_id': 'f1cdf214-3afa-456d-94bf-173fc77bc9ba', 'ip_version': 4, 'cidr': '53.166.118.192/26', 'allocation_pools': [{'start': '53.166.118.194', 'end': '53.166.118.254'}], 'gateway_ip': '53.166.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.166.118.194', 'tags': [], 'project_id': '13088b0760994d1bb9fde0598fd8ee06'}}
2026-04-20 16:33:48,415 - INFO - Created VN ctest-vn-55023717
2026-04-20 16:33:48,467 - DEBUG - VN ctest-vn-55023717 UUID is f1cdf214-3afa-456d-94bf-173fc77bc9ba
2026-04-20 16:33:48,588 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-75193859, 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-70837897:ctest-vn-55023717, 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-20 16:33:48,884 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '731823e1-5699-4c8a-8eaa-f903b4a02fea', 'name': 'ctest-vn-75193859', 'tenant_id': '13088b0760994d1bb9fde0598fd8ee06', 'project_id': '13088b0760994d1bb9fde0598fd8ee06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6beed26a-b3b8-4254-af8e-4a9032c1daa2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70837897', 'ctest-vn-75193859'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70837897', 'ctest-policy-allow-all-78559278']], 'subnet_ipam': [{'subnet_cidr': '92.58.50.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:33:49,114 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1cdf214-3afa-456d-94bf-173fc77bc9ba', 'name': 'ctest-vn-55023717', 'tenant_id': '13088b0760994d1bb9fde0598fd8ee06', 'project_id': '13088b0760994d1bb9fde0598fd8ee06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d4de821-c1ce-421b-a90b-c1ed7518fc83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70837897', 'ctest-vn-55023717'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70837897', 'ctest-policy-allow-all-78559278']], 'subnet_ipam': [{'subnet_cidr': '53.166.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:33:49,275 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-20 16:33:49,571 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-20 16:33:49,605 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2e599472-dfbb-44ed-b398-bd02b3b02a68
2026-04-20 16:33:49,617 - DEBUG - Requesting: http://10.0.0.27:8082/project/13088b07-6099-4d1b-b9fd-e0598fd8ee06
2026-04-20 16:33:49,691 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/731823e1-5699-4c8a-8eaa-f903b4a02fea
2026-04-20 16:33:49,704 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/731823e1-5699-4c8a-8eaa-f903b4a02fea
2026-04-20 16:33:49,715 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/83c8068b-cf88-45ea-acea-6f175f661726
2026-04-20 16:33:49,724 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/83c8068b-cf88-45ea-acea-6f175f661726
2026-04-20 16:33:49,732 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3918c48f-a5fd-45a2-bdb8-b01049d0bf43
2026-04-20 16:33:49,739 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 16:33:49,739 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/731823e1-5699-4c8a-8eaa-f903b4a02fea
2026-04-20 16:33:49,748 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/83c8068b-cf88-45ea-acea-6f175f661726
2026-04-20 16:33:49,768 - INFO - Verified VN network id 11 for VN 731823e1-5699-4c8a-8eaa-f903b4a02fea
2026-04-20 16:33:49,768 - INFO - Verifications in API Server for VN ctest-vn-75193859 passed
2026-04-20 16:33:49,768 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/731823e1-5699-4c8a-8eaa-f903b4a02fea
2026-04-20 16:33:49,780 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/83c8068b-cf88-45ea-acea-6f175f661726
2026-04-20 16:33:49,788 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/83c8068b-cf88-45ea-acea-6f175f661726
2026-04-20 16:33:49,798 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3918c48f-a5fd-45a2-bdb8-b01049d0bf43
2026-04-20 16:33:49,810 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-75193859', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70837897', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8293418164530269322', 'uuid-lslong': '10280302893737193450'}, 'enable': 'true', 'created': '2026-04-20T16:33:47', 'last-modified': '2026-04-20T16:33:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953636'}
2026-04-20 16:33:49,819 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 16:33:49,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75193859 passed
2026-04-20 16:33:49,819 - DEBUG - ====Verifying policy data for ctest-vn-75193859 in API_Server ======
2026-04-20 16:33:49,819 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-20 16:33:49,828 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2e599472-dfbb-44ed-b398-bd02b3b02a68
2026-04-20 16:33:49,843 - DEBUG - Requesting: http://10.0.0.27:8082/project/13088b07-6099-4d1b-b9fd-e0598fd8ee06
2026-04-20 16:33:49,914 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/731823e1-5699-4c8a-8eaa-f903b4a02fea
2026-04-20 16:33:49,926 - DEBUG - ==>Verifying data for policy with id: 2816ea50-eb71-4a95-b3b2-d258cdec7e5a, fqn: ['default-domain', 'ctest-TestBasicPolicy-70837897', 'ctest-policy-allow-all-78559278']
2026-04-20 16:33:49,926 - INFO - VN ctest-vn-75193859 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 16:33:49,926 - DEBUG - Verifying the vn in opserver
2026-04-20 16:33:49,926 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-75193859 virtual network link through opserver 10.0.0.27
2026-04-20 16:33:49,927 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-20 16:33:50,228 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-20 16:33:50,309 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-75193859', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-75193859?flat'}
2026-04-20 16:33:50,309 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-75193859 is found in opserver
2026-04-20 16:33:50,321 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 16:33:50,326 - DEBUG - VRF ids for VN ctest-vn-75193859: {}
2026-04-20 16:33:50,326 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-20 16:33:50,332 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2e599472-dfbb-44ed-b398-bd02b3b02a68
2026-04-20 16:33:50,344 - DEBUG - Requesting: http://10.0.0.27:8082/project/13088b07-6099-4d1b-b9fd-e0598fd8ee06
2026-04-20 16:33:50,417 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f1cdf214-3afa-456d-94bf-173fc77bc9ba
2026-04-20 16:33:50,431 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f1cdf214-3afa-456d-94bf-173fc77bc9ba
2026-04-20 16:33:50,441 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a4dc2146-72df-4bef-bb7b-853cd5792910
2026-04-20 16:33:50,449 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a4dc2146-72df-4bef-bb7b-853cd5792910
2026-04-20 16:33:50,457 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d3fdabd9-61e9-40ca-8638-004f426eb498
2026-04-20 16:33:50,464 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 16:33:50,465 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f1cdf214-3afa-456d-94bf-173fc77bc9ba
2026-04-20 16:33:50,475 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a4dc2146-72df-4bef-bb7b-853cd5792910
2026-04-20 16:33:50,495 - INFO - Verified VN network id 12 for VN f1cdf214-3afa-456d-94bf-173fc77bc9ba
2026-04-20 16:33:50,495 - INFO - Verifications in API Server for VN ctest-vn-55023717 passed
2026-04-20 16:33:50,496 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f1cdf214-3afa-456d-94bf-173fc77bc9ba
2026-04-20 16:33:50,508 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a4dc2146-72df-4bef-bb7b-853cd5792910
2026-04-20 16:33:50,519 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a4dc2146-72df-4bef-bb7b-853cd5792910
2026-04-20 16:33:50,526 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d3fdabd9-61e9-40ca-8638-004f426eb498
2026-04-20 16:33:50,539 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-55023717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70837897', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17423848702069065069', 'uuid-lslong': '10718311200862226874'}, 'enable': 'true', 'created': '2026-04-20T16:33:48', 'last-modified': '2026-04-20T16:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441861'}
2026-04-20 16:33:50,545 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 16:33:50,546 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55023717 passed
2026-04-20 16:33:50,546 - DEBUG - ====Verifying policy data for ctest-vn-55023717 in API_Server ======
2026-04-20 16:33:50,546 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-20 16:33:50,552 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2e599472-dfbb-44ed-b398-bd02b3b02a68
2026-04-20 16:33:50,565 - DEBUG - Requesting: http://10.0.0.27:8082/project/13088b07-6099-4d1b-b9fd-e0598fd8ee06
2026-04-20 16:33:50,638 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f1cdf214-3afa-456d-94bf-173fc77bc9ba
2026-04-20 16:33:50,647 - DEBUG - ==>Verifying data for policy with id: 2816ea50-eb71-4a95-b3b2-d258cdec7e5a, fqn: ['default-domain', 'ctest-TestBasicPolicy-70837897', 'ctest-policy-allow-all-78559278']
2026-04-20 16:33:50,647 - INFO - VN ctest-vn-55023717 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 16:33:50,647 - DEBUG - Verifying the vn in opserver
2026-04-20 16:33:50,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-55023717 virtual network link through opserver 10.0.0.27
2026-04-20 16:33:50,647 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-20 16:33:50,658 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-55023717', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-55023717?flat'}
2026-04-20 16:33:50,658 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70837897:ctest-vn-55023717 is found in opserver
2026-04-20 16:33:50,669 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 16:33:50,674 - DEBUG - VRF ids for VN ctest-vn-55023717: {}
2026-04-20 16:33:50,740 - DEBUG - Services list from nova: [