2026-01-28 12:14:10,075 - INFO - Domain Default found not creating
2026-01-28 12:14:10,358 - INFO - Project ctest-TestBasicPolicy-64384484 not found, creating it
2026-01-28 12:14:10,871 - INFO - Created Project:ctest-TestBasicPolicy-64384484, ID : b31fe01c-0b47-414f-a8ae-fc524baa369a
2026-01-28 12:14:12,689 - INFO - ================================================================================
2026-01-28 12:14:12,689 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 12:14:12,689 - 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-01-28 12:14:12,988 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2026-01-28 12:14:12,988 - INFO - Initial checks done. Running the testcase now
2026-01-28 12:14:12,988 - INFO -
2026-01-28 12:14:13,704 - DEBUG - Response for create_network : {'network': {'id': '50d81cad-1f2d-4ffa-ac13-c5726d2e78fe', 'name': 'ctest-vn-89631853', 'tenant_id': 'b31fe01c0b47414fa8aefc524baa369a', 'project_id': 'b31fe01c0b47414fa8aefc524baa369a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64384484', 'ctest-vn-89631853'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 12:14:13,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc5b67db-578e-44f0-aa1e-7e5e5fe3cfa8', 'name': '', 'tenant_id': 'b31fe01c0b47414fa8aefc524baa369a', 'network_id': '50d81cad-1f2d-4ffa-ac13-c5726d2e78fe', 'ip_version': 4, 'cidr': '57.58.160.128/26', 'allocation_pools': [{'start': '57.58.160.130', 'end': '57.58.160.190'}], 'gateway_ip': '57.58.160.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.58.160.130', 'tags': [], 'project_id': 'b31fe01c0b47414fa8aefc524baa369a'}}
2026-01-28 12:14:13,963 - INFO - Created VN ctest-vn-89631853
2026-01-28 12:14:14,022 - DEBUG - VN ctest-vn-89631853 UUID is 50d81cad-1f2d-4ffa-ac13-c5726d2e78fe
2026-01-28 12:14:14,352 - DEBUG - Response for create_network : {'network': {'id': '1bf5b5b5-a198-4ab9-8077-da0de85f8a5c', 'name': 'ctest-vn-74405609', 'tenant_id': 'b31fe01c0b47414fa8aefc524baa369a', 'project_id': 'b31fe01c0b47414fa8aefc524baa369a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64384484', 'ctest-vn-74405609'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 12:14:14,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b75a2b6-fb17-49e3-aa9c-2a5c41247e47', 'name': '', 'tenant_id': 'b31fe01c0b47414fa8aefc524baa369a', 'network_id': '1bf5b5b5-a198-4ab9-8077-da0de85f8a5c', 'ip_version': 4, 'cidr': '12.68.79.0/26', 'allocation_pools': [{'start': '12.68.79.2', 'end': '12.68.79.62'}], 'gateway_ip': '12.68.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.68.79.2', 'tags': [], 'project_id': 'b31fe01c0b47414fa8aefc524baa369a'}}
2026-01-28 12:14:14,580 - INFO - Created VN ctest-vn-74405609
2026-01-28 12:14:14,634 - DEBUG - VN ctest-vn-74405609 UUID is 1bf5b5b5-a198-4ab9-8077-da0de85f8a5c
2026-01-28 12:14:14,763 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-89631853, 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-64384484:ctest-vn-74405609, 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-01-28 12:14:15,097 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50d81cad-1f2d-4ffa-ac13-c5726d2e78fe', 'name': 'ctest-vn-89631853', 'tenant_id': 'b31fe01c0b47414fa8aefc524baa369a', 'project_id': 'b31fe01c0b47414fa8aefc524baa369a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc5b67db-578e-44f0-aa1e-7e5e5fe3cfa8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64384484', 'ctest-vn-89631853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64384484', 'ctest-policy-allow-all-79828599']], 'subnet_ipam': [{'subnet_cidr': '57.58.160.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 12:14:15,364 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1bf5b5b5-a198-4ab9-8077-da0de85f8a5c', 'name': 'ctest-vn-74405609', 'tenant_id': 'b31fe01c0b47414fa8aefc524baa369a', 'project_id': 'b31fe01c0b47414fa8aefc524baa369a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b75a2b6-fb17-49e3-aa9c-2a5c41247e47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64384484', 'ctest-vn-74405609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64384484', 'ctest-policy-allow-all-79828599']], 'subnet_ipam': [{'subnet_cidr': '12.68.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 12:14:15,510 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-28 12:14:15,821 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-28 12:14:15,861 - DEBUG - Requesting: http://10.0.0.41:8082/domain/42cc43ea-94fc-4dc3-b416-505084781ce3
2026-01-28 12:14:15,877 - DEBUG - Requesting: http://10.0.0.41:8082/project/b31fe01c-0b47-414f-a8ae-fc524baa369a
2026-01-28 12:14:15,950 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/50d81cad-1f2d-4ffa-ac13-c5726d2e78fe
2026-01-28 12:14:15,961 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/50d81cad-1f2d-4ffa-ac13-c5726d2e78fe
2026-01-28 12:14:15,971 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4f486432-f6ba-46af-9cde-b5c6824600b3
2026-01-28 12:14:15,979 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4f486432-f6ba-46af-9cde-b5c6824600b3
2026-01-28 12:14:15,994 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8a81c241-b5c4-4add-a4c0-1cec5270ed71
2026-01-28 12:14:16,001 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 12:14:16,002 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/50d81cad-1f2d-4ffa-ac13-c5726d2e78fe
2026-01-28 12:14:16,011 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4f486432-f6ba-46af-9cde-b5c6824600b3
2026-01-28 12:14:16,027 - INFO - Verified VN network id 11 for VN 50d81cad-1f2d-4ffa-ac13-c5726d2e78fe
2026-01-28 12:14:16,027 - INFO - Verifications in API Server for VN ctest-vn-89631853 passed
2026-01-28 12:14:16,027 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/50d81cad-1f2d-4ffa-ac13-c5726d2e78fe
2026-01-28 12:14:16,036 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4f486432-f6ba-46af-9cde-b5c6824600b3
2026-01-28 12:14:16,044 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4f486432-f6ba-46af-9cde-b5c6824600b3
2026-01-28 12:14:16,050 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8a81c241-b5c4-4add-a4c0-1cec5270ed71
2026-01-28 12:14:16,063 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-89631853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64384484', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5825437647881719802', 'uuid-lslong': '12399471294329813246'}, 'enable': 'true', 'created': '2026-01-28T12:14:13', 'last-modified': '2026-01-28T12:14:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003051'}
2026-01-28 12:14:16,069 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 12:14:16,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89631853 passed
2026-01-28 12:14:16,069 - DEBUG - ====Verifying policy data for ctest-vn-89631853 in API_Server ======
2026-01-28 12:14:16,069 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-28 12:14:16,075 - DEBUG - Requesting: http://10.0.0.41:8082/domain/42cc43ea-94fc-4dc3-b416-505084781ce3
2026-01-28 12:14:16,090 - DEBUG - Requesting: http://10.0.0.41:8082/project/b31fe01c-0b47-414f-a8ae-fc524baa369a
2026-01-28 12:14:16,162 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/50d81cad-1f2d-4ffa-ac13-c5726d2e78fe
2026-01-28 12:14:16,172 - DEBUG - ==>Verifying data for policy with id: 8750fd3a-7cd1-45da-b6b8-5c06847ccb8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-64384484', 'ctest-policy-allow-all-79828599']
2026-01-28 12:14:16,172 - INFO - VN ctest-vn-89631853 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 12:14:16,172 - DEBUG - Verifying the vn in opserver
2026-01-28 12:14:16,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-89631853 virtual network link through opserver 10.0.0.41
2026-01-28 12:14:16,172 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-01-28 12:14:16,476 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-01-28 12:14:16,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-89631853', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-89631853?flat'}
2026-01-28 12:14:16,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-89631853 is found in opserver
2026-01-28 12:14:16,585 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 12:14:16,592 - DEBUG - VRF ids for VN ctest-vn-89631853: {}
2026-01-28 12:14:16,592 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-28 12:14:16,601 - DEBUG - Requesting: http://10.0.0.41:8082/domain/42cc43ea-94fc-4dc3-b416-505084781ce3
2026-01-28 12:14:16,619 - DEBUG - Requesting: http://10.0.0.41:8082/project/b31fe01c-0b47-414f-a8ae-fc524baa369a
2026-01-28 12:14:16,697 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1bf5b5b5-a198-4ab9-8077-da0de85f8a5c
2026-01-28 12:14:16,713 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1bf5b5b5-a198-4ab9-8077-da0de85f8a5c
2026-01-28 12:14:16,723 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8655d19c-37c6-428d-9364-4bdbe0eb7de4
2026-01-28 12:14:16,734 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8655d19c-37c6-428d-9364-4bdbe0eb7de4
2026-01-28 12:14:16,742 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5401b392-dd37-4c5f-8831-22d530e4f181
2026-01-28 12:14:16,752 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 12:14:16,752 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1bf5b5b5-a198-4ab9-8077-da0de85f8a5c
2026-01-28 12:14:16,762 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8655d19c-37c6-428d-9364-4bdbe0eb7de4
2026-01-28 12:14:16,780 - INFO - Verified VN network id 12 for VN 1bf5b5b5-a198-4ab9-8077-da0de85f8a5c
2026-01-28 12:14:16,780 - INFO - Verifications in API Server for VN ctest-vn-74405609 passed
2026-01-28 12:14:16,780 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1bf5b5b5-a198-4ab9-8077-da0de85f8a5c
2026-01-28 12:14:16,794 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8655d19c-37c6-428d-9364-4bdbe0eb7de4
2026-01-28 12:14:16,804 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8655d19c-37c6-428d-9364-4bdbe0eb7de4
2026-01-28 12:14:16,813 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5401b392-dd37-4c5f-8831-22d530e4f181
2026-01-28 12:14:16,827 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-74405609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64384484', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2014716200022985401', 'uuid-lslong': '9257107312351349340'}, 'enable': 'true', 'created': '2026-01-28T12:14:14', 'last-modified': '2026-01-28T12:14:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492381'}
2026-01-28 12:14:16,833 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 12:14:16,833 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74405609 passed
2026-01-28 12:14:16,833 - DEBUG - ====Verifying policy data for ctest-vn-74405609 in API_Server ======
2026-01-28 12:14:16,833 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-01-28 12:14:16,840 - DEBUG - Requesting: http://10.0.0.41:8082/domain/42cc43ea-94fc-4dc3-b416-505084781ce3
2026-01-28 12:14:16,853 - DEBUG - Requesting: http://10.0.0.41:8082/project/b31fe01c-0b47-414f-a8ae-fc524baa369a
2026-01-28 12:14:16,927 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1bf5b5b5-a198-4ab9-8077-da0de85f8a5c
2026-01-28 12:14:16,938 - DEBUG - ==>Verifying data for policy with id: 8750fd3a-7cd1-45da-b6b8-5c06847ccb8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-64384484', 'ctest-policy-allow-all-79828599']
2026-01-28 12:14:16,938 - INFO - VN ctest-vn-74405609 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 12:14:16,938 - DEBUG - Verifying the vn in opserver
2026-01-28 12:14:16,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-74405609 virtual network link through opserver 10.0.0.41
2026-01-28 12:14:16,938 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-01-28 12:14:16,951 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-74405609', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-74405609?flat'}
2026-01-28 12:14:16,951 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64384484:ctest-vn-74405609 is found in opserver
2026-01-28 12:14:16,966 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 12:14:16,972 - DEBUG - VRF ids for VN ctest-vn-74405609: {}
2026-01-28 12:14:17,047 - DEBUG - Services list from nova: [