2026-02-09 21:51:19,450 - INFO - Domain Default found not creating
2026-02-09 21:51:19,615 - INFO - Project ctest-TestBasicPolicy-29514620 not found, creating it
2026-02-09 21:51:20,056 - INFO - Created Project:ctest-TestBasicPolicy-29514620, ID : 8f581ff8-4356-41b3-a4f4-74c34ce56533
2026-02-09 21:51:21,532 - INFO - ================================================================================
2026-02-09 21:51:21,532 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 21:51:21,532 - 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-09 21:51:21,784 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-09 21:51:21,784 - INFO - Initial checks done. Running the testcase now
2026-02-09 21:51:21,784 - INFO -
2026-02-09 21:51:22,323 - DEBUG - Response for create_network : {'network': {'id': '3ec5bfa3-2d69-46fe-ac02-5af1cd883510', 'name': 'ctest-vn-58856529', 'tenant_id': '8f581ff8435641b3a4f474c34ce56533', 'project_id': '8f581ff8435641b3a4f474c34ce56533', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29514620', 'ctest-vn-58856529'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 21:51:22,517 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3e21458-b0e5-4e08-aa93-e6010316edb4', 'name': '', 'tenant_id': '8f581ff8435641b3a4f474c34ce56533', 'network_id': '3ec5bfa3-2d69-46fe-ac02-5af1cd883510', 'ip_version': 4, 'cidr': '119.239.87.0/26', 'allocation_pools': [{'start': '119.239.87.2', 'end': '119.239.87.62'}], 'gateway_ip': '119.239.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.239.87.2', 'tags': [], 'project_id': '8f581ff8435641b3a4f474c34ce56533'}}
2026-02-09 21:51:22,532 - INFO - Created VN ctest-vn-58856529
2026-02-09 21:51:22,583 - DEBUG - VN ctest-vn-58856529 UUID is 3ec5bfa3-2d69-46fe-ac02-5af1cd883510
2026-02-09 21:51:22,901 - DEBUG - Response for create_network : {'network': {'id': '3c95de09-0632-4bec-a3a9-bbe5854def60', 'name': 'ctest-vn-88580538', 'tenant_id': '8f581ff8435641b3a4f474c34ce56533', 'project_id': '8f581ff8435641b3a4f474c34ce56533', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29514620', 'ctest-vn-88580538'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 21:51:23,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '3343b8bc-b849-47a8-b15c-a5df390b2e3b', 'name': '', 'tenant_id': '8f581ff8435641b3a4f474c34ce56533', 'network_id': '3c95de09-0632-4bec-a3a9-bbe5854def60', 'ip_version': 4, 'cidr': '141.108.193.64/26', 'allocation_pools': [{'start': '141.108.193.66', 'end': '141.108.193.126'}], 'gateway_ip': '141.108.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.108.193.66', 'tags': [], 'project_id': '8f581ff8435641b3a4f474c34ce56533'}}
2026-02-09 21:51:23,121 - INFO - Created VN ctest-vn-88580538
2026-02-09 21:51:23,171 - DEBUG - VN ctest-vn-88580538 UUID is 3c95de09-0632-4bec-a3a9-bbe5854def60
2026-02-09 21:51:23,315 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-58856529, 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-29514620:ctest-vn-88580538, 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-09 21:51:23,587 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ec5bfa3-2d69-46fe-ac02-5af1cd883510', 'name': 'ctest-vn-58856529', 'tenant_id': '8f581ff8435641b3a4f474c34ce56533', 'project_id': '8f581ff8435641b3a4f474c34ce56533', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3e21458-b0e5-4e08-aa93-e6010316edb4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29514620', 'ctest-vn-58856529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29514620', 'ctest-policy-allow-all-75996802']], 'subnet_ipam': [{'subnet_cidr': '119.239.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 21:51:23,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c95de09-0632-4bec-a3a9-bbe5854def60', 'name': 'ctest-vn-88580538', 'tenant_id': '8f581ff8435641b3a4f474c34ce56533', 'project_id': '8f581ff8435641b3a4f474c34ce56533', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3343b8bc-b849-47a8-b15c-a5df390b2e3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29514620', 'ctest-vn-88580538'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29514620', 'ctest-policy-allow-all-75996802']], 'subnet_ipam': [{'subnet_cidr': '141.108.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 21:51:23,963 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 21:51:24,253 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 21:51:24,281 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f95a3f0d-f882-42ba-8357-354429176aff
2026-02-09 21:51:24,292 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f581ff8-4356-41b3-a4f4-74c34ce56533
2026-02-09 21:51:24,368 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec5bfa3-2d69-46fe-ac02-5af1cd883510
2026-02-09 21:51:24,377 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec5bfa3-2d69-46fe-ac02-5af1cd883510
2026-02-09 21:51:24,385 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9e056e-0dcc-4a5a-952a-9fb74d663336
2026-02-09 21:51:24,392 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9e056e-0dcc-4a5a-952a-9fb74d663336
2026-02-09 21:51:24,404 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/66d090ff-d711-4e22-aa09-0267dbdc472f
2026-02-09 21:51:24,411 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 21:51:24,411 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec5bfa3-2d69-46fe-ac02-5af1cd883510
2026-02-09 21:51:24,419 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9e056e-0dcc-4a5a-952a-9fb74d663336
2026-02-09 21:51:24,431 - INFO - Verified VN network id 11 for VN 3ec5bfa3-2d69-46fe-ac02-5af1cd883510
2026-02-09 21:51:24,432 - INFO - Verifications in API Server for VN ctest-vn-58856529 passed
2026-02-09 21:51:24,432 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec5bfa3-2d69-46fe-ac02-5af1cd883510
2026-02-09 21:51:24,439 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9e056e-0dcc-4a5a-952a-9fb74d663336
2026-02-09 21:51:24,444 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c9e056e-0dcc-4a5a-952a-9fb74d663336
2026-02-09 21:51:24,449 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/66d090ff-d711-4e22-aa09-0267dbdc472f
2026-02-09 21:51:24,458 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-58856529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29514620', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4523232108325979902', 'uuid-lslong': '12394569119058900240'}, 'enable': 'true', 'created': '2026-02-09T21:51:22', 'last-modified': '2026-02-09T21:51:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.889931'}
2026-02-09 21:51:24,465 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 21:51:24,465 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58856529 passed
2026-02-09 21:51:24,465 - DEBUG - ====Verifying policy data for ctest-vn-58856529 in API_Server ======
2026-02-09 21:51:24,465 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 21:51:24,469 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f95a3f0d-f882-42ba-8357-354429176aff
2026-02-09 21:51:24,477 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f581ff8-4356-41b3-a4f4-74c34ce56533
2026-02-09 21:51:24,546 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec5bfa3-2d69-46fe-ac02-5af1cd883510
2026-02-09 21:51:24,555 - DEBUG - ==>Verifying data for policy with id: 99c1b403-e2f1-4cbe-9d2e-c7a8b86b2b79, fqn: ['default-domain', 'ctest-TestBasicPolicy-29514620', 'ctest-policy-allow-all-75996802']
2026-02-09 21:51:24,555 - INFO - VN ctest-vn-58856529 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 21:51:24,555 - DEBUG - Verifying the vn in opserver
2026-02-09 21:51:24,555 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-58856529 virtual network link through opserver 10.0.0.50
2026-02-09 21:51:24,555 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-09 21:51:24,854 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-09 21:51:24,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-58856529', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-58856529?flat'}
2026-02-09 21:51:24,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-58856529 is found in opserver
2026-02-09 21:51:24,922 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 21:51:24,926 - DEBUG - VRF ids for VN ctest-vn-58856529: {}
2026-02-09 21:51:24,926 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 21:51:24,931 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f95a3f0d-f882-42ba-8357-354429176aff
2026-02-09 21:51:24,942 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f581ff8-4356-41b3-a4f4-74c34ce56533
2026-02-09 21:51:25,014 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c95de09-0632-4bec-a3a9-bbe5854def60
2026-02-09 21:51:25,023 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c95de09-0632-4bec-a3a9-bbe5854def60
2026-02-09 21:51:25,032 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4926fdca-97f2-4e88-80f3-b52d0853b736
2026-02-09 21:51:25,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4926fdca-97f2-4e88-80f3-b52d0853b736
2026-02-09 21:51:25,043 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/098c9c86-bebf-42b0-85a1-a4236bc97ba9
2026-02-09 21:51:25,049 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 21:51:25,049 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c95de09-0632-4bec-a3a9-bbe5854def60
2026-02-09 21:51:25,056 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4926fdca-97f2-4e88-80f3-b52d0853b736
2026-02-09 21:51:25,067 - INFO - Verified VN network id 12 for VN 3c95de09-0632-4bec-a3a9-bbe5854def60
2026-02-09 21:51:25,067 - INFO - Verifications in API Server for VN ctest-vn-88580538 passed
2026-02-09 21:51:25,067 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c95de09-0632-4bec-a3a9-bbe5854def60
2026-02-09 21:51:25,079 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4926fdca-97f2-4e88-80f3-b52d0853b736
2026-02-09 21:51:25,091 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4926fdca-97f2-4e88-80f3-b52d0853b736
2026-02-09 21:51:25,096 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/098c9c86-bebf-42b0-85a1-a4236bc97ba9
2026-02-09 21:51:25,107 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-88580538', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29514620', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4365639544145595372', 'uuid-lslong': '11793163693704736608'}, 'enable': 'true', 'created': '2026-02-09T21:51:22', 'last-modified': '2026-02-09T21:51:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.323908'}
2026-02-09 21:51:25,114 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 21:51:25,115 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88580538 passed
2026-02-09 21:51:25,115 - DEBUG - ====Verifying policy data for ctest-vn-88580538 in API_Server ======
2026-02-09 21:51:25,115 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 21:51:25,119 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f95a3f0d-f882-42ba-8357-354429176aff
2026-02-09 21:51:25,127 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f581ff8-4356-41b3-a4f4-74c34ce56533
2026-02-09 21:51:25,200 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c95de09-0632-4bec-a3a9-bbe5854def60
2026-02-09 21:51:25,207 - DEBUG - ==>Verifying data for policy with id: 99c1b403-e2f1-4cbe-9d2e-c7a8b86b2b79, fqn: ['default-domain', 'ctest-TestBasicPolicy-29514620', 'ctest-policy-allow-all-75996802']
2026-02-09 21:51:25,207 - INFO - VN ctest-vn-88580538 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 21:51:25,207 - DEBUG - Verifying the vn in opserver
2026-02-09 21:51:25,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-88580538 virtual network link through opserver 10.0.0.50
2026-02-09 21:51:25,208 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-09 21:51:25,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-88580538', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-88580538?flat'}
2026-02-09 21:51:25,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29514620:ctest-vn-88580538 is found in opserver
2026-02-09 21:51:25,223 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 21:51:25,228 - DEBUG - VRF ids for VN ctest-vn-88580538: {}
2026-02-09 21:51:25,277 - DEBUG - Services list from nova: [