2026-02-01 16:21:32,971 - INFO - Domain Default found not creating
2026-02-01 16:21:33,181 - INFO - Project ctest-TestBasicPolicy-47277901 not found, creating it
2026-02-01 16:21:33,678 - INFO - Created Project:ctest-TestBasicPolicy-47277901, ID : 8b68ab4d-9dbf-4986-8945-d37492ad598c
2026-02-01 16:21:35,360 - INFO - ================================================================================
2026-02-01 16:21:35,360 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-01 16:21:35,360 - 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-02-01 16:21:35,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-02-01 16:21:35,622 - INFO - Initial checks done. Running the testcase now
2026-02-01 16:21:35,622 - INFO -
2026-02-01 16:21:36,240 - DEBUG - Response for create_network : {'network': {'id': '78bc0138-c7a3-48f3-a889-75e4ca78558a', 'name': 'ctest-vn-40511564', 'tenant_id': '8b68ab4d9dbf49868945d37492ad598c', 'project_id': '8b68ab4d9dbf49868945d37492ad598c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47277901', 'ctest-vn-40511564'], 'port_security_enabled': True, 'description': ''}}
2026-02-01 16:21:36,406 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c949c69-7e33-4ea7-b2de-e59d6cb33506', 'name': '', 'tenant_id': '8b68ab4d9dbf49868945d37492ad598c', 'network_id': '78bc0138-c7a3-48f3-a889-75e4ca78558a', 'ip_version': 4, 'cidr': '209.163.77.192/26', 'allocation_pools': [{'start': '209.163.77.194', 'end': '209.163.77.254'}], 'gateway_ip': '209.163.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.163.77.194', 'tags': [], 'project_id': '8b68ab4d9dbf49868945d37492ad598c'}}
2026-02-01 16:21:36,430 - INFO - Created VN ctest-vn-40511564
2026-02-01 16:21:36,488 - DEBUG - VN ctest-vn-40511564 UUID is 78bc0138-c7a3-48f3-a889-75e4ca78558a
2026-02-01 16:21:36,827 - DEBUG - Response for create_network : {'network': {'id': '1733a131-3362-4bda-a6b4-ab0f4f12c041', 'name': 'ctest-vn-04708920', 'tenant_id': '8b68ab4d9dbf49868945d37492ad598c', 'project_id': '8b68ab4d9dbf49868945d37492ad598c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47277901', 'ctest-vn-04708920'], 'port_security_enabled': True, 'description': ''}}
2026-02-01 16:21:37,018 - DEBUG - Response for create_subnet : {'subnet': {'id': '41b2b5ed-153b-41b8-8170-ccbf62fd5449', 'name': '', 'tenant_id': '8b68ab4d9dbf49868945d37492ad598c', 'network_id': '1733a131-3362-4bda-a6b4-ab0f4f12c041', 'ip_version': 4, 'cidr': '52.66.124.0/26', 'allocation_pools': [{'start': '52.66.124.2', 'end': '52.66.124.62'}], 'gateway_ip': '52.66.124.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.66.124.2', 'tags': [], 'project_id': '8b68ab4d9dbf49868945d37492ad598c'}}
2026-02-01 16:21:37,045 - INFO - Created VN ctest-vn-04708920
2026-02-01 16:21:37,104 - DEBUG - VN ctest-vn-04708920 UUID is 1733a131-3362-4bda-a6b4-ab0f4f12c041
2026-02-01 16:21:37,237 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-40511564, 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-47277901:ctest-vn-04708920, 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-02-01 16:21:37,559 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78bc0138-c7a3-48f3-a889-75e4ca78558a', 'name': 'ctest-vn-40511564', 'tenant_id': '8b68ab4d9dbf49868945d37492ad598c', 'project_id': '8b68ab4d9dbf49868945d37492ad598c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c949c69-7e33-4ea7-b2de-e59d6cb33506'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47277901', 'ctest-vn-40511564'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47277901', 'ctest-policy-allow-all-32045508']], 'subnet_ipam': [{'subnet_cidr': '209.163.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-01 16:21:37,800 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1733a131-3362-4bda-a6b4-ab0f4f12c041', 'name': 'ctest-vn-04708920', 'tenant_id': '8b68ab4d9dbf49868945d37492ad598c', 'project_id': '8b68ab4d9dbf49868945d37492ad598c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41b2b5ed-153b-41b8-8170-ccbf62fd5449'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47277901', 'ctest-vn-04708920'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47277901', 'ctest-policy-allow-all-32045508']], 'subnet_ipam': [{'subnet_cidr': '52.66.124.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-01 16:21:37,960 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 16:21:38,265 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 16:21:38,302 - DEBUG - Requesting: http://10.0.0.33:8082/domain/54c263ed-51a6-4c79-97ae-dd4212c7dd74
2026-02-01 16:21:38,316 - DEBUG - Requesting: http://10.0.0.33:8082/project/8b68ab4d-9dbf-4986-8945-d37492ad598c
2026-02-01 16:21:38,393 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/78bc0138-c7a3-48f3-a889-75e4ca78558a
2026-02-01 16:21:38,405 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/78bc0138-c7a3-48f3-a889-75e4ca78558a
2026-02-01 16:21:38,420 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f67d271e-f927-4424-af12-9e7c75fede97
2026-02-01 16:21:38,428 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f67d271e-f927-4424-af12-9e7c75fede97
2026-02-01 16:21:38,436 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/618c9fe2-0e8a-4cea-89d9-d2f719956747
2026-02-01 16:21:38,446 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-01 16:21:38,446 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/78bc0138-c7a3-48f3-a889-75e4ca78558a
2026-02-01 16:21:38,457 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f67d271e-f927-4424-af12-9e7c75fede97
2026-02-01 16:21:38,474 - INFO - Verified VN network id 11 for VN 78bc0138-c7a3-48f3-a889-75e4ca78558a
2026-02-01 16:21:38,475 - INFO - Verifications in API Server for VN ctest-vn-40511564 passed
2026-02-01 16:21:38,475 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/78bc0138-c7a3-48f3-a889-75e4ca78558a
2026-02-01 16:21:38,486 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f67d271e-f927-4424-af12-9e7c75fede97
2026-02-01 16:21:38,496 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f67d271e-f927-4424-af12-9e7c75fede97
2026-02-01 16:21:38,505 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/618c9fe2-0e8a-4cea-89d9-d2f719956747
2026-02-01 16:21:38,520 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-40511564', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47277901', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8699829923552119027', 'uuid-lslong': '12144367495691130250'}, 'enable': 'true', 'created': '2026-02-01T16:21:36', 'last-modified': '2026-02-01T16:21:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988698'}
2026-02-01 16:21:38,528 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-01 16:21:38,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40511564 passed
2026-02-01 16:21:38,528 - DEBUG - ====Verifying policy data for ctest-vn-40511564 in API_Server ======
2026-02-01 16:21:38,528 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 16:21:38,536 - DEBUG - Requesting: http://10.0.0.33:8082/domain/54c263ed-51a6-4c79-97ae-dd4212c7dd74
2026-02-01 16:21:38,550 - DEBUG - Requesting: http://10.0.0.33:8082/project/8b68ab4d-9dbf-4986-8945-d37492ad598c
2026-02-01 16:21:38,625 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/78bc0138-c7a3-48f3-a889-75e4ca78558a
2026-02-01 16:21:38,635 - DEBUG - ==>Verifying data for policy with id: 82087e9b-0ec8-4119-8471-d44bfbb89677, fqn: ['default-domain', 'ctest-TestBasicPolicy-47277901', 'ctest-policy-allow-all-32045508']
2026-02-01 16:21:38,635 - INFO - VN ctest-vn-40511564 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-01 16:21:38,635 - DEBUG - Verifying the vn in opserver
2026-02-01 16:21:38,635 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-40511564 virtual network link through opserver 10.0.0.33
2026-02-01 16:21:38,635 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-01 16:21:38,947 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-01 16:21:39,022 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-40511564', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-40511564?flat'}
2026-02-01 16:21:39,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-40511564 is found in opserver
2026-02-01 16:21:39,032 - DEBUG - Do not have enough data to verify VN in agent
2026-02-01 16:21:39,036 - DEBUG - VRF ids for VN ctest-vn-40511564: {}
2026-02-01 16:21:39,037 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 16:21:39,043 - DEBUG - Requesting: http://10.0.0.33:8082/domain/54c263ed-51a6-4c79-97ae-dd4212c7dd74
2026-02-01 16:21:39,055 - DEBUG - Requesting: http://10.0.0.33:8082/project/8b68ab4d-9dbf-4986-8945-d37492ad598c
2026-02-01 16:21:39,127 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1733a131-3362-4bda-a6b4-ab0f4f12c041
2026-02-01 16:21:39,142 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1733a131-3362-4bda-a6b4-ab0f4f12c041
2026-02-01 16:21:39,155 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/828ec900-860f-4308-b4ba-7821236f75c8
2026-02-01 16:21:39,166 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/828ec900-860f-4308-b4ba-7821236f75c8
2026-02-01 16:21:39,176 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/621ed3df-5634-42d7-8032-210c79af0a1e
2026-02-01 16:21:39,186 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-01 16:21:39,186 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1733a131-3362-4bda-a6b4-ab0f4f12c041
2026-02-01 16:21:39,198 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/828ec900-860f-4308-b4ba-7821236f75c8
2026-02-01 16:21:39,217 - INFO - Verified VN network id 12 for VN 1733a131-3362-4bda-a6b4-ab0f4f12c041
2026-02-01 16:21:39,217 - INFO - Verifications in API Server for VN ctest-vn-04708920 passed
2026-02-01 16:21:39,217 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1733a131-3362-4bda-a6b4-ab0f4f12c041
2026-02-01 16:21:39,228 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/828ec900-860f-4308-b4ba-7821236f75c8
2026-02-01 16:21:39,236 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/828ec900-860f-4308-b4ba-7821236f75c8
2026-02-01 16:21:39,245 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/621ed3df-5634-42d7-8032-210c79af0a1e
2026-02-01 16:21:39,260 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-04708920', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47277901', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1671857119372135386', 'uuid-lslong': '12012414188343443521'}, 'enable': 'true', 'created': '2026-02-01T16:21:36', 'last-modified': '2026-02-01T16:21:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482409'}
2026-02-01 16:21:39,267 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-01 16:21:39,267 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04708920 passed
2026-02-01 16:21:39,267 - DEBUG - ====Verifying policy data for ctest-vn-04708920 in API_Server ======
2026-02-01 16:21:39,267 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 16:21:39,277 - DEBUG - Requesting: http://10.0.0.33:8082/domain/54c263ed-51a6-4c79-97ae-dd4212c7dd74
2026-02-01 16:21:39,289 - DEBUG - Requesting: http://10.0.0.33:8082/project/8b68ab4d-9dbf-4986-8945-d37492ad598c
2026-02-01 16:21:39,368 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1733a131-3362-4bda-a6b4-ab0f4f12c041
2026-02-01 16:21:39,379 - DEBUG - ==>Verifying data for policy with id: 82087e9b-0ec8-4119-8471-d44bfbb89677, fqn: ['default-domain', 'ctest-TestBasicPolicy-47277901', 'ctest-policy-allow-all-32045508']
2026-02-01 16:21:39,379 - INFO - VN ctest-vn-04708920 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-01 16:21:39,379 - DEBUG - Verifying the vn in opserver
2026-02-01 16:21:39,379 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-04708920 virtual network link through opserver 10.0.0.33
2026-02-01 16:21:39,379 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-01 16:21:39,391 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-04708920', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-04708920?flat'}
2026-02-01 16:21:39,391 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47277901:ctest-vn-04708920 is found in opserver
2026-02-01 16:21:39,401 - DEBUG - Do not have enough data to verify VN in agent
2026-02-01 16:21:39,406 - DEBUG - VRF ids for VN ctest-vn-04708920: {}
2026-02-01 16:21:39,477 - DEBUG - Services list from nova: [