2026-06-18 15:03:27,312 - INFO - Domain Default found not creating
2026-06-18 15:03:27,472 - INFO - Project ctest-TestBasicPolicy-72229084 not found, creating it
2026-06-18 15:03:27,915 - INFO - Created Project:ctest-TestBasicPolicy-72229084, ID : d4f39807-a73d-4602-8140-3402d58a3329
2026-06-18 15:03:29,494 - INFO - ================================================================================
2026-06-18 15:03:29,494 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-18 15:03:29,494 - 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-06-18 15:03:29,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-06-18 15:03:29,751 - INFO - Initial checks done. Running the testcase now
2026-06-18 15:03:29,751 - INFO -
2026-06-18 15:03:30,378 - DEBUG - Response for create_network : {'network': {'id': 'bb88ae79-cca4-45cd-8358-ab4a1eef24ca', 'name': 'ctest-vn-96616148', 'tenant_id': 'd4f39807a73d460281403402d58a3329', 'project_id': 'd4f39807a73d460281403402d58a3329', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72229084', 'ctest-vn-96616148'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 15:03:30,551 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad019cc9-a6d4-47c5-a65f-eeab0267c9c3', 'name': '', 'tenant_id': 'd4f39807a73d460281403402d58a3329', 'network_id': 'bb88ae79-cca4-45cd-8358-ab4a1eef24ca', 'ip_version': 4, 'cidr': '189.45.188.128/26', 'allocation_pools': [{'start': '189.45.188.130', 'end': '189.45.188.190'}], 'gateway_ip': '189.45.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.45.188.130', 'tags': [], 'project_id': 'd4f39807a73d460281403402d58a3329'}}
2026-06-18 15:03:30,570 - INFO - Created VN ctest-vn-96616148
2026-06-18 15:03:30,624 - DEBUG - VN ctest-vn-96616148 UUID is bb88ae79-cca4-45cd-8358-ab4a1eef24ca
2026-06-18 15:03:30,937 - DEBUG - Response for create_network : {'network': {'id': 'a0ef1405-2a10-4264-8c01-5a54c00e3c96', 'name': 'ctest-vn-53173746', 'tenant_id': 'd4f39807a73d460281403402d58a3329', 'project_id': 'd4f39807a73d460281403402d58a3329', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72229084', 'ctest-vn-53173746'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 15:03:31,103 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4defc81-894f-4f79-9a22-b4dd9d4fe479', 'name': '', 'tenant_id': 'd4f39807a73d460281403402d58a3329', 'network_id': 'a0ef1405-2a10-4264-8c01-5a54c00e3c96', 'ip_version': 4, 'cidr': '166.60.196.0/26', 'allocation_pools': [{'start': '166.60.196.2', 'end': '166.60.196.62'}], 'gateway_ip': '166.60.196.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.60.196.2', 'tags': [], 'project_id': 'd4f39807a73d460281403402d58a3329'}}
2026-06-18 15:03:31,120 - INFO - Created VN ctest-vn-53173746
2026-06-18 15:03:31,172 - DEBUG - VN ctest-vn-53173746 UUID is a0ef1405-2a10-4264-8c01-5a54c00e3c96
2026-06-18 15:03:31,332 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-96616148, 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-72229084:ctest-vn-53173746, 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-06-18 15:03:31,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb88ae79-cca4-45cd-8358-ab4a1eef24ca', 'name': 'ctest-vn-96616148', 'tenant_id': 'd4f39807a73d460281403402d58a3329', 'project_id': 'd4f39807a73d460281403402d58a3329', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad019cc9-a6d4-47c5-a65f-eeab0267c9c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72229084', 'ctest-vn-96616148'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72229084', 'ctest-policy-allow-all-21496498']], 'subnet_ipam': [{'subnet_cidr': '189.45.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 15:03:32,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0ef1405-2a10-4264-8c01-5a54c00e3c96', 'name': 'ctest-vn-53173746', 'tenant_id': 'd4f39807a73d460281403402d58a3329', 'project_id': 'd4f39807a73d460281403402d58a3329', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4defc81-894f-4f79-9a22-b4dd9d4fe479'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72229084', 'ctest-vn-53173746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72229084', 'ctest-policy-allow-all-21496498']], 'subnet_ipam': [{'subnet_cidr': '166.60.196.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 15:03:32,188 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 15:03:32,549 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 15:03:32,579 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3b347f7c-4e4b-49c8-b565-0c444dfd64ad
2026-06-18 15:03:32,589 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4f39807-a73d-4602-8140-3402d58a3329
2026-06-18 15:03:32,662 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb88ae79-cca4-45cd-8358-ab4a1eef24ca
2026-06-18 15:03:32,673 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb88ae79-cca4-45cd-8358-ab4a1eef24ca
2026-06-18 15:03:32,681 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/430c9643-134c-470e-a244-765568ce15cf
2026-06-18 15:03:32,687 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/430c9643-134c-470e-a244-765568ce15cf
2026-06-18 15:03:32,693 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b4210cfc-0961-4367-960f-7104b6d8211f
2026-06-18 15:03:32,698 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 15:03:32,698 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb88ae79-cca4-45cd-8358-ab4a1eef24ca
2026-06-18 15:03:32,706 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/430c9643-134c-470e-a244-765568ce15cf
2026-06-18 15:03:32,719 - INFO - Verified VN network id 11 for VN bb88ae79-cca4-45cd-8358-ab4a1eef24ca
2026-06-18 15:03:32,719 - INFO - Verifications in API Server for VN ctest-vn-96616148 passed
2026-06-18 15:03:32,719 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb88ae79-cca4-45cd-8358-ab4a1eef24ca
2026-06-18 15:03:32,726 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/430c9643-134c-470e-a244-765568ce15cf
2026-06-18 15:03:32,732 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/430c9643-134c-470e-a244-765568ce15cf
2026-06-18 15:03:32,737 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b4210cfc-0961-4367-960f-7104b6d8211f
2026-06-18 15:03:32,751 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-96616148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72229084', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13513242520072766925', 'uuid-lslong': '9464502951754015946'}, 'enable': 'true', 'created': '2026-06-18T15:03:30', 'last-modified': '2026-06-18T15:03:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983920'}
2026-06-18 15:03:32,757 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 15:03:32,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96616148 passed
2026-06-18 15:03:32,757 - DEBUG - ====Verifying policy data for ctest-vn-96616148 in API_Server ======
2026-06-18 15:03:32,757 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 15:03:32,766 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3b347f7c-4e4b-49c8-b565-0c444dfd64ad
2026-06-18 15:03:32,775 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4f39807-a73d-4602-8140-3402d58a3329
2026-06-18 15:03:32,850 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bb88ae79-cca4-45cd-8358-ab4a1eef24ca
2026-06-18 15:03:32,859 - DEBUG - ==>Verifying data for policy with id: 743fa594-92a8-46de-acff-748eba6281f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-72229084', 'ctest-policy-allow-all-21496498']
2026-06-18 15:03:32,859 - INFO - VN ctest-vn-96616148 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 15:03:32,859 - DEBUG - Verifying the vn in opserver
2026-06-18 15:03:32,859 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-96616148 virtual network link through opserver 10.0.0.50
2026-06-18 15:03:32,859 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 15:03:33,220 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 15:03:33,281 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-96616148', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-96616148?flat'}
2026-06-18 15:03:33,281 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-96616148 is found in opserver
2026-06-18 15:03:33,291 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 15:03:33,295 - DEBUG - VRF ids for VN ctest-vn-96616148: {}
2026-06-18 15:03:33,295 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 15:03:33,300 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3b347f7c-4e4b-49c8-b565-0c444dfd64ad
2026-06-18 15:03:33,309 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4f39807-a73d-4602-8140-3402d58a3329
2026-06-18 15:03:33,379 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0ef1405-2a10-4264-8c01-5a54c00e3c96
2026-06-18 15:03:33,390 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0ef1405-2a10-4264-8c01-5a54c00e3c96
2026-06-18 15:03:33,399 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ae57141a-e2e8-4443-9f0b-619b39bedff0
2026-06-18 15:03:33,405 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ae57141a-e2e8-4443-9f0b-619b39bedff0
2026-06-18 15:03:33,410 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/adb91114-a0df-4dac-b1ba-a3414cb437ea
2026-06-18 15:03:33,416 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 15:03:33,416 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0ef1405-2a10-4264-8c01-5a54c00e3c96
2026-06-18 15:03:33,427 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ae57141a-e2e8-4443-9f0b-619b39bedff0
2026-06-18 15:03:33,442 - INFO - Verified VN network id 12 for VN a0ef1405-2a10-4264-8c01-5a54c00e3c96
2026-06-18 15:03:33,442 - INFO - Verifications in API Server for VN ctest-vn-53173746 passed
2026-06-18 15:03:33,442 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0ef1405-2a10-4264-8c01-5a54c00e3c96
2026-06-18 15:03:33,451 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ae57141a-e2e8-4443-9f0b-619b39bedff0
2026-06-18 15:03:33,457 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ae57141a-e2e8-4443-9f0b-619b39bedff0
2026-06-18 15:03:33,463 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/adb91114-a0df-4dac-b1ba-a3414cb437ea
2026-06-18 15:03:33,474 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-53173746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72229084', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11596509577915417188', 'uuid-lslong': '10088443960332532886'}, 'enable': 'true', 'created': '2026-06-18T15:03:30', 'last-modified': '2026-06-18T15:03:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.457333'}
2026-06-18 15:03:33,480 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 15:03:33,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53173746 passed
2026-06-18 15:03:33,480 - DEBUG - ====Verifying policy data for ctest-vn-53173746 in API_Server ======
2026-06-18 15:03:33,480 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 15:03:33,485 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3b347f7c-4e4b-49c8-b565-0c444dfd64ad
2026-06-18 15:03:33,495 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4f39807-a73d-4602-8140-3402d58a3329
2026-06-18 15:03:33,563 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a0ef1405-2a10-4264-8c01-5a54c00e3c96
2026-06-18 15:03:33,571 - DEBUG - ==>Verifying data for policy with id: 743fa594-92a8-46de-acff-748eba6281f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-72229084', 'ctest-policy-allow-all-21496498']
2026-06-18 15:03:33,572 - INFO - VN ctest-vn-53173746 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 15:03:33,572 - DEBUG - Verifying the vn in opserver
2026-06-18 15:03:33,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-53173746 virtual network link through opserver 10.0.0.50
2026-06-18 15:03:33,572 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 15:03:33,580 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-53173746', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-53173746?flat'}
2026-06-18 15:03:33,580 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72229084:ctest-vn-53173746 is found in opserver
2026-06-18 15:03:33,588 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 15:03:33,593 - DEBUG - VRF ids for VN ctest-vn-53173746: {}
2026-06-18 15:03:33,647 - DEBUG - Services list from nova: [