2026-04-22 12:04:25,290 - INFO - Domain Default found not creating
2026-04-22 12:04:25,466 - INFO - Project ctest-TestBasicPolicy-95373363 not found, creating it
2026-04-22 12:04:25,942 - INFO - Created Project:ctest-TestBasicPolicy-95373363, ID : c17c7f69-577b-49aa-b2ec-600dc4fc0ed7
2026-04-22 12:04:27,482 - INFO - ================================================================================
2026-04-22 12:04:27,482 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-22 12:04:27,482 - 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-22 12:04:27,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-04-22 12:04:27,740 - INFO - Initial checks done. Running the testcase now
2026-04-22 12:04:27,740 - INFO -
2026-04-22 12:04:28,329 - DEBUG - Response for create_network : {'network': {'id': 'fe4edaea-3427-4743-9a17-ac4e1230b775', 'name': 'ctest-vn-08368952', 'tenant_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'project_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95373363', 'ctest-vn-08368952'], 'port_security_enabled': True, 'description': ''}}
2026-04-22 12:04:28,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '306525a7-d89f-4629-bd92-4644b5ab178d', 'name': '', 'tenant_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'network_id': 'fe4edaea-3427-4743-9a17-ac4e1230b775', 'ip_version': 4, 'cidr': '108.114.240.192/26', 'allocation_pools': [{'start': '108.114.240.194', 'end': '108.114.240.254'}], 'gateway_ip': '108.114.240.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.114.240.194', 'tags': [], 'project_id': 'c17c7f69577b49aab2ec600dc4fc0ed7'}}
2026-04-22 12:04:28,534 - INFO - Created VN ctest-vn-08368952
2026-04-22 12:04:28,584 - DEBUG - VN ctest-vn-08368952 UUID is fe4edaea-3427-4743-9a17-ac4e1230b775
2026-04-22 12:04:28,863 - DEBUG - Response for create_network : {'network': {'id': '68520f6f-ccf3-4912-b385-c4f20422a7fa', 'name': 'ctest-vn-62545524', 'tenant_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'project_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95373363', 'ctest-vn-62545524'], 'port_security_enabled': True, 'description': ''}}
2026-04-22 12:04:29,015 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6d3258e-8f01-4aec-accc-008b794707cc', 'name': '', 'tenant_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'network_id': '68520f6f-ccf3-4912-b385-c4f20422a7fa', 'ip_version': 4, 'cidr': '77.253.151.0/26', 'allocation_pools': [{'start': '77.253.151.2', 'end': '77.253.151.62'}], 'gateway_ip': '77.253.151.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.253.151.2', 'tags': [], 'project_id': 'c17c7f69577b49aab2ec600dc4fc0ed7'}}
2026-04-22 12:04:29,032 - INFO - Created VN ctest-vn-62545524
2026-04-22 12:04:29,084 - DEBUG - VN ctest-vn-62545524 UUID is 68520f6f-ccf3-4912-b385-c4f20422a7fa
2026-04-22 12:04:29,200 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-08368952, 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-95373363:ctest-vn-62545524, 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-22 12:04:29,509 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe4edaea-3427-4743-9a17-ac4e1230b775', 'name': 'ctest-vn-08368952', 'tenant_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'project_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['306525a7-d89f-4629-bd92-4644b5ab178d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95373363', 'ctest-vn-08368952'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95373363', 'ctest-policy-allow-all-31854024']], 'subnet_ipam': [{'subnet_cidr': '108.114.240.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-22 12:04:29,731 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68520f6f-ccf3-4912-b385-c4f20422a7fa', 'name': 'ctest-vn-62545524', 'tenant_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'project_id': 'c17c7f69577b49aab2ec600dc4fc0ed7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6d3258e-8f01-4aec-accc-008b794707cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95373363', 'ctest-vn-62545524'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95373363', 'ctest-policy-allow-all-31854024']], 'subnet_ipam': [{'subnet_cidr': '77.253.151.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-22 12:04:29,864 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-22 12:04:30,160 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-22 12:04:30,206 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8b78576-4667-489e-bea1-74f808195562
2026-04-22 12:04:30,222 - DEBUG - Requesting: http://10.0.0.33:8082/project/c17c7f69-577b-49aa-b2ec-600dc4fc0ed7
2026-04-22 12:04:30,308 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe4edaea-3427-4743-9a17-ac4e1230b775
2026-04-22 12:04:30,323 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe4edaea-3427-4743-9a17-ac4e1230b775
2026-04-22 12:04:30,333 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8a9d9f9-a66c-4904-b488-bd2fc145033e
2026-04-22 12:04:30,340 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8a9d9f9-a66c-4904-b488-bd2fc145033e
2026-04-22 12:04:30,347 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1c06df88-4137-4017-a106-c96d5e7daf8e
2026-04-22 12:04:30,353 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-22 12:04:30,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe4edaea-3427-4743-9a17-ac4e1230b775
2026-04-22 12:04:30,361 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8a9d9f9-a66c-4904-b488-bd2fc145033e
2026-04-22 12:04:30,375 - INFO - Verified VN network id 11 for VN fe4edaea-3427-4743-9a17-ac4e1230b775
2026-04-22 12:04:30,375 - INFO - Verifications in API Server for VN ctest-vn-08368952 passed
2026-04-22 12:04:30,375 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe4edaea-3427-4743-9a17-ac4e1230b775
2026-04-22 12:04:30,384 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8a9d9f9-a66c-4904-b488-bd2fc145033e
2026-04-22 12:04:30,390 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8a9d9f9-a66c-4904-b488-bd2fc145033e
2026-04-22 12:04:30,397 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1c06df88-4137-4017-a106-c96d5e7daf8e
2026-04-22 12:04:30,412 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-08368952', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95373363', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18324824633249318723', 'uuid-lslong': '11103532857617856373'}, 'enable': 'true', 'created': '2026-04-22T12:04:28', 'last-modified': '2026-04-22T12:04:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927096'}
2026-04-22 12:04:30,418 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-22 12:04:30,418 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08368952 passed
2026-04-22 12:04:30,419 - DEBUG - ====Verifying policy data for ctest-vn-08368952 in API_Server ======
2026-04-22 12:04:30,419 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-22 12:04:30,425 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8b78576-4667-489e-bea1-74f808195562
2026-04-22 12:04:30,436 - DEBUG - Requesting: http://10.0.0.33:8082/project/c17c7f69-577b-49aa-b2ec-600dc4fc0ed7
2026-04-22 12:04:30,508 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe4edaea-3427-4743-9a17-ac4e1230b775
2026-04-22 12:04:30,518 - DEBUG - ==>Verifying data for policy with id: d852f7bb-23b9-4d11-92aa-fc0c52bc0158, fqn: ['default-domain', 'ctest-TestBasicPolicy-95373363', 'ctest-policy-allow-all-31854024']
2026-04-22 12:04:30,518 - INFO - VN ctest-vn-08368952 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-22 12:04:30,518 - DEBUG - Verifying the vn in opserver
2026-04-22 12:04:30,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-08368952 virtual network link through opserver 10.0.0.33
2026-04-22 12:04:30,519 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-22 12:04:30,816 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-22 12:04:30,881 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-08368952', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-08368952?flat'}
2026-04-22 12:04:30,881 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-08368952 is found in opserver
2026-04-22 12:04:30,890 - DEBUG - Do not have enough data to verify VN in agent
2026-04-22 12:04:30,895 - DEBUG - VRF ids for VN ctest-vn-08368952: {}
2026-04-22 12:04:30,895 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-22 12:04:30,900 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8b78576-4667-489e-bea1-74f808195562
2026-04-22 12:04:30,913 - DEBUG - Requesting: http://10.0.0.33:8082/project/c17c7f69-577b-49aa-b2ec-600dc4fc0ed7
2026-04-22 12:04:30,994 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/68520f6f-ccf3-4912-b385-c4f20422a7fa
2026-04-22 12:04:31,007 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/68520f6f-ccf3-4912-b385-c4f20422a7fa
2026-04-22 12:04:31,016 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0f4a87dc-4c3b-435e-a949-63a98fc4fbff
2026-04-22 12:04:31,023 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0f4a87dc-4c3b-435e-a949-63a98fc4fbff
2026-04-22 12:04:31,030 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/33a628e5-e7e6-4a4f-8f27-a8779b976999
2026-04-22 12:04:31,037 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-22 12:04:31,037 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/68520f6f-ccf3-4912-b385-c4f20422a7fa
2026-04-22 12:04:31,046 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0f4a87dc-4c3b-435e-a949-63a98fc4fbff
2026-04-22 12:04:31,060 - INFO - Verified VN network id 12 for VN 68520f6f-ccf3-4912-b385-c4f20422a7fa
2026-04-22 12:04:31,060 - INFO - Verifications in API Server for VN ctest-vn-62545524 passed
2026-04-22 12:04:31,060 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/68520f6f-ccf3-4912-b385-c4f20422a7fa
2026-04-22 12:04:31,069 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0f4a87dc-4c3b-435e-a949-63a98fc4fbff
2026-04-22 12:04:31,075 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0f4a87dc-4c3b-435e-a949-63a98fc4fbff
2026-04-22 12:04:31,081 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/33a628e5-e7e6-4a4f-8f27-a8779b976999
2026-04-22 12:04:31,094 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-62545524', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95373363', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7517087700889061650', 'uuid-lslong': '12935962048422127610'}, 'enable': 'true', 'created': '2026-04-22T12:04:28', 'last-modified': '2026-04-22T12:04:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380914'}
2026-04-22 12:04:31,100 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-22 12:04:31,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62545524 passed
2026-04-22 12:04:31,100 - DEBUG - ====Verifying policy data for ctest-vn-62545524 in API_Server ======
2026-04-22 12:04:31,100 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-22 12:04:31,106 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8b78576-4667-489e-bea1-74f808195562
2026-04-22 12:04:31,118 - DEBUG - Requesting: http://10.0.0.33:8082/project/c17c7f69-577b-49aa-b2ec-600dc4fc0ed7
2026-04-22 12:04:31,198 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/68520f6f-ccf3-4912-b385-c4f20422a7fa
2026-04-22 12:04:31,206 - DEBUG - ==>Verifying data for policy with id: d852f7bb-23b9-4d11-92aa-fc0c52bc0158, fqn: ['default-domain', 'ctest-TestBasicPolicy-95373363', 'ctest-policy-allow-all-31854024']
2026-04-22 12:04:31,206 - INFO - VN ctest-vn-62545524 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-22 12:04:31,206 - DEBUG - Verifying the vn in opserver
2026-04-22 12:04:31,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-62545524 virtual network link through opserver 10.0.0.33
2026-04-22 12:04:31,206 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-22 12:04:31,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-62545524', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-62545524?flat'}
2026-04-22 12:04:31,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95373363:ctest-vn-62545524 is found in opserver
2026-04-22 12:04:31,223 - DEBUG - Do not have enough data to verify VN in agent
2026-04-22 12:04:31,228 - DEBUG - VRF ids for VN ctest-vn-62545524: {}
2026-04-22 12:04:31,286 - DEBUG - Services list from nova: [