2026-04-29 14:13:52,245 - INFO - Domain Default found not creating
2026-04-29 14:13:52,443 - INFO - Project ctest-TestBasicPolicy-92627073 not found, creating it
2026-04-29 14:13:52,951 - INFO - Created Project:ctest-TestBasicPolicy-92627073, ID : e95123fb-96d4-446b-9a25-a8ad6d28d380
2026-04-29 14:13:54,541 - INFO - ================================================================================
2026-04-29 14:13:54,541 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-29 14:13:54,541 - 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-29 14:13:54,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-29 14:13:54,797 - INFO - Initial checks done. Running the testcase now
2026-04-29 14:13:54,797 - INFO -
2026-04-29 14:13:55,374 - DEBUG - Response for create_network : {'network': {'id': 'd488a8e8-b284-42de-89b2-653e762c3cc6', 'name': 'ctest-vn-30835714', 'tenant_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'project_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92627073', 'ctest-vn-30835714'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 14:13:55,536 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4328006-25de-4172-8f5e-e01771c7b552', 'name': '', 'tenant_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'network_id': 'd488a8e8-b284-42de-89b2-653e762c3cc6', 'ip_version': 4, 'cidr': '87.72.180.0/26', 'allocation_pools': [{'start': '87.72.180.2', 'end': '87.72.180.62'}], 'gateway_ip': '87.72.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.72.180.2', 'tags': [], 'project_id': 'e95123fb96d4446b9a25a8ad6d28d380'}}
2026-04-29 14:13:55,555 - INFO - Created VN ctest-vn-30835714
2026-04-29 14:13:55,610 - DEBUG - VN ctest-vn-30835714 UUID is d488a8e8-b284-42de-89b2-653e762c3cc6
2026-04-29 14:13:55,923 - DEBUG - Response for create_network : {'network': {'id': '247d02a1-ffa2-42f2-a856-ec19d78c4da3', 'name': 'ctest-vn-24785865', 'tenant_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'project_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92627073', 'ctest-vn-24785865'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 14:13:56,076 - DEBUG - Response for create_subnet : {'subnet': {'id': '867dbbc0-ff45-4aec-9266-5000e77340ab', 'name': '', 'tenant_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'network_id': '247d02a1-ffa2-42f2-a856-ec19d78c4da3', 'ip_version': 4, 'cidr': '137.142.197.192/26', 'allocation_pools': [{'start': '137.142.197.194', 'end': '137.142.197.254'}], 'gateway_ip': '137.142.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.142.197.194', 'tags': [], 'project_id': 'e95123fb96d4446b9a25a8ad6d28d380'}}
2026-04-29 14:13:56,093 - INFO - Created VN ctest-vn-24785865
2026-04-29 14:13:56,146 - DEBUG - VN ctest-vn-24785865 UUID is 247d02a1-ffa2-42f2-a856-ec19d78c4da3
2026-04-29 14:13:56,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-30835714, 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-92627073:ctest-vn-24785865, 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-29 14:13:56,556 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd488a8e8-b284-42de-89b2-653e762c3cc6', 'name': 'ctest-vn-30835714', 'tenant_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'project_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4328006-25de-4172-8f5e-e01771c7b552'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92627073', 'ctest-vn-30835714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92627073', 'ctest-policy-allow-all-22357761']], 'subnet_ipam': [{'subnet_cidr': '87.72.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 14:13:56,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '247d02a1-ffa2-42f2-a856-ec19d78c4da3', 'name': 'ctest-vn-24785865', 'tenant_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'project_id': 'e95123fb96d4446b9a25a8ad6d28d380', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['867dbbc0-ff45-4aec-9266-5000e77340ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92627073', 'ctest-vn-24785865'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92627073', 'ctest-policy-allow-all-22357761']], 'subnet_ipam': [{'subnet_cidr': '137.142.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 14:13:56,958 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 14:13:57,266 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 14:13:57,299 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b616e12f-51c1-4b49-8976-d95ba1be5731
2026-04-29 14:13:57,312 - DEBUG - Requesting: http://10.0.0.50:8082/project/e95123fb-96d4-446b-9a25-a8ad6d28d380
2026-04-29 14:13:57,386 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d488a8e8-b284-42de-89b2-653e762c3cc6
2026-04-29 14:13:57,400 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d488a8e8-b284-42de-89b2-653e762c3cc6
2026-04-29 14:13:57,412 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa1fa628-15d7-4f84-9b44-beb9d8029d5f
2026-04-29 14:13:57,420 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa1fa628-15d7-4f84-9b44-beb9d8029d5f
2026-04-29 14:13:57,429 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/efd31f95-a29f-4d4b-940a-8cc8000fa2dd
2026-04-29 14:13:57,435 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 14:13:57,435 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d488a8e8-b284-42de-89b2-653e762c3cc6
2026-04-29 14:13:57,445 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa1fa628-15d7-4f84-9b44-beb9d8029d5f
2026-04-29 14:13:57,463 - INFO - Verified VN network id 11 for VN d488a8e8-b284-42de-89b2-653e762c3cc6
2026-04-29 14:13:57,463 - INFO - Verifications in API Server for VN ctest-vn-30835714 passed
2026-04-29 14:13:57,463 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d488a8e8-b284-42de-89b2-653e762c3cc6
2026-04-29 14:13:57,474 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa1fa628-15d7-4f84-9b44-beb9d8029d5f
2026-04-29 14:13:57,483 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa1fa628-15d7-4f84-9b44-beb9d8029d5f
2026-04-29 14:13:57,490 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/efd31f95-a29f-4d4b-940a-8cc8000fa2dd
2026-04-29 14:13:57,503 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-30835714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92627073', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15314676250254263006', 'uuid-lslong': '9922104247995612358'}, 'enable': 'true', 'created': '2026-04-29T14:13:55', 'last-modified': '2026-04-29T14:13:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.973777'}
2026-04-29 14:13:57,511 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 14:13:57,511 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30835714 passed
2026-04-29 14:13:57,511 - DEBUG - ====Verifying policy data for ctest-vn-30835714 in API_Server ======
2026-04-29 14:13:57,511 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 14:13:57,517 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b616e12f-51c1-4b49-8976-d95ba1be5731
2026-04-29 14:13:57,528 - DEBUG - Requesting: http://10.0.0.50:8082/project/e95123fb-96d4-446b-9a25-a8ad6d28d380
2026-04-29 14:13:57,605 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d488a8e8-b284-42de-89b2-653e762c3cc6
2026-04-29 14:13:57,614 - DEBUG - ==>Verifying data for policy with id: 73fdbb37-0e84-4029-8072-8b6f658d4ebb, fqn: ['default-domain', 'ctest-TestBasicPolicy-92627073', 'ctest-policy-allow-all-22357761']
2026-04-29 14:13:57,614 - INFO - VN ctest-vn-30835714 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 14:13:57,614 - DEBUG - Verifying the vn in opserver
2026-04-29 14:13:57,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-30835714 virtual network link through opserver 10.0.0.50
2026-04-29 14:13:57,614 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 14:13:57,911 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 14:13:57,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-30835714', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-30835714?flat'}
2026-04-29 14:13:57,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-30835714 is found in opserver
2026-04-29 14:13:57,990 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 14:13:57,994 - DEBUG - VRF ids for VN ctest-vn-30835714: {}
2026-04-29 14:13:57,994 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 14:13:58,000 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b616e12f-51c1-4b49-8976-d95ba1be5731
2026-04-29 14:13:58,011 - DEBUG - Requesting: http://10.0.0.50:8082/project/e95123fb-96d4-446b-9a25-a8ad6d28d380
2026-04-29 14:13:58,080 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/247d02a1-ffa2-42f2-a856-ec19d78c4da3
2026-04-29 14:13:58,091 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/247d02a1-ffa2-42f2-a856-ec19d78c4da3
2026-04-29 14:13:58,100 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf70f879-2f1c-4ae7-9c5d-ac23ca3c727e
2026-04-29 14:13:58,108 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf70f879-2f1c-4ae7-9c5d-ac23ca3c727e
2026-04-29 14:13:58,115 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fc031a48-c1cf-4be9-a50d-97a5c2d6a19a
2026-04-29 14:13:58,121 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 14:13:58,121 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/247d02a1-ffa2-42f2-a856-ec19d78c4da3
2026-04-29 14:13:58,129 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf70f879-2f1c-4ae7-9c5d-ac23ca3c727e
2026-04-29 14:13:58,145 - INFO - Verified VN network id 12 for VN 247d02a1-ffa2-42f2-a856-ec19d78c4da3
2026-04-29 14:13:58,145 - INFO - Verifications in API Server for VN ctest-vn-24785865 passed
2026-04-29 14:13:58,145 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/247d02a1-ffa2-42f2-a856-ec19d78c4da3
2026-04-29 14:13:58,154 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf70f879-2f1c-4ae7-9c5d-ac23ca3c727e
2026-04-29 14:13:58,162 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cf70f879-2f1c-4ae7-9c5d-ac23ca3c727e
2026-04-29 14:13:58,171 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fc031a48-c1cf-4be9-a50d-97a5c2d6a19a
2026-04-29 14:13:58,185 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-24785865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92627073', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2629260652256051954', 'uuid-lslong': '12130142242103643555'}, 'enable': 'true', 'created': '2026-04-29T14:13:55', 'last-modified': '2026-04-29T14:13:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412812'}
2026-04-29 14:13:58,191 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 14:13:58,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24785865 passed
2026-04-29 14:13:58,191 - DEBUG - ====Verifying policy data for ctest-vn-24785865 in API_Server ======
2026-04-29 14:13:58,192 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 14:13:58,197 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b616e12f-51c1-4b49-8976-d95ba1be5731
2026-04-29 14:13:58,210 - DEBUG - Requesting: http://10.0.0.50:8082/project/e95123fb-96d4-446b-9a25-a8ad6d28d380
2026-04-29 14:13:58,283 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/247d02a1-ffa2-42f2-a856-ec19d78c4da3
2026-04-29 14:13:58,291 - DEBUG - ==>Verifying data for policy with id: 73fdbb37-0e84-4029-8072-8b6f658d4ebb, fqn: ['default-domain', 'ctest-TestBasicPolicy-92627073', 'ctest-policy-allow-all-22357761']
2026-04-29 14:13:58,292 - INFO - VN ctest-vn-24785865 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 14:13:58,292 - DEBUG - Verifying the vn in opserver
2026-04-29 14:13:58,292 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-24785865 virtual network link through opserver 10.0.0.50
2026-04-29 14:13:58,292 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 14:13:58,301 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-24785865', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-24785865?flat'}
2026-04-29 14:13:58,301 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92627073:ctest-vn-24785865 is found in opserver
2026-04-29 14:13:58,312 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 14:13:58,318 - DEBUG - VRF ids for VN ctest-vn-24785865: {}
2026-04-29 14:13:58,403 - DEBUG - Services list from nova: [