2026-10-27 17:35:40,031 - INFO - Domain Default found not creating
2026-10-27 17:35:40,228 - INFO - Project ctest-TestBasicPolicy-94034436 not found, creating it
2026-10-27 17:35:40,696 - INFO - Created Project:ctest-TestBasicPolicy-94034436, ID : e63fbc92-88fe-4245-8a15-6586fd7fa260
2026-10-27 17:35:42,576 - INFO - ================================================================================
2026-10-27 17:35:42,576 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-27 17:35:42,576 - 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-10-27 17:35:42,842 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.14': '0'}} with
2026-10-27 17:35:42,842 - INFO - Initial checks done. Running the testcase now
2026-10-27 17:35:42,842 - INFO -
2026-10-27 17:35:43,503 - DEBUG - Response for create_network : {'network': {'id': 'eb754cc5-b8db-41e0-9c6a-3a6ffba17718', 'name': 'ctest-vn-86309349', 'tenant_id': 'e63fbc9288fe42458a156586fd7fa260', 'project_id': 'e63fbc9288fe42458a156586fd7fa260', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94034436', 'ctest-vn-86309349'], 'port_security_enabled': True, 'description': ''}}
2026-10-27 17:35:43,667 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4c81bff-1805-4dbc-9e84-6d7cc898211e', 'name': '', 'tenant_id': 'e63fbc9288fe42458a156586fd7fa260', 'network_id': 'eb754cc5-b8db-41e0-9c6a-3a6ffba17718', 'ip_version': 4, 'cidr': '94.233.209.128/26', 'allocation_pools': [{'start': '94.233.209.130', 'end': '94.233.209.190'}], 'gateway_ip': '94.233.209.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.233.209.130', 'tags': [], 'project_id': 'e63fbc9288fe42458a156586fd7fa260'}}
2026-10-27 17:35:43,687 - INFO - Created VN ctest-vn-86309349
2026-10-27 17:35:43,742 - DEBUG - VN ctest-vn-86309349 UUID is eb754cc5-b8db-41e0-9c6a-3a6ffba17718
2026-10-27 17:35:44,057 - DEBUG - Response for create_network : {'network': {'id': '50701fb2-8aa0-48a7-bf97-e1331afee6d4', 'name': 'ctest-vn-27892673', 'tenant_id': 'e63fbc9288fe42458a156586fd7fa260', 'project_id': 'e63fbc9288fe42458a156586fd7fa260', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94034436', 'ctest-vn-27892673'], 'port_security_enabled': True, 'description': ''}}
2026-10-27 17:35:44,229 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a34723f6-ac10-4044-af4e-cd5a56b0b641', 'name': '', 'tenant_id': 'e63fbc9288fe42458a156586fd7fa260', 'network_id': '50701fb2-8aa0-48a7-bf97-e1331afee6d4', 'ip_version': 4, 'cidr': '131.26.237.128/26', 'allocation_pools': [{'start': '131.26.237.130', 'end': '131.26.237.190'}], 'gateway_ip': '131.26.237.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.26.237.130', 'tags': [], 'project_id': 'e63fbc9288fe42458a156586fd7fa260'}}
2026-10-27 17:35:44,249 - INFO - Created VN ctest-vn-27892673
2026-10-27 17:35:44,303 - DEBUG - VN ctest-vn-27892673 UUID is 50701fb2-8aa0-48a7-bf97-e1331afee6d4
2026-10-27 17:35:44,420 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-86309349, 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-94034436:ctest-vn-27892673, 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-10-27 17:35:44,731 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb754cc5-b8db-41e0-9c6a-3a6ffba17718', 'name': 'ctest-vn-86309349', 'tenant_id': 'e63fbc9288fe42458a156586fd7fa260', 'project_id': 'e63fbc9288fe42458a156586fd7fa260', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d4c81bff-1805-4dbc-9e84-6d7cc898211e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94034436', 'ctest-vn-86309349'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94034436', 'ctest-policy-allow-all-32013220']], 'subnet_ipam': [{'subnet_cidr': '94.233.209.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-27 17:35:44,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50701fb2-8aa0-48a7-bf97-e1331afee6d4', 'name': 'ctest-vn-27892673', 'tenant_id': 'e63fbc9288fe42458a156586fd7fa260', 'project_id': 'e63fbc9288fe42458a156586fd7fa260', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a34723f6-ac10-4044-af4e-cd5a56b0b641'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94034436', 'ctest-vn-27892673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94034436', 'ctest-policy-allow-all-32013220']], 'subnet_ipam': [{'subnet_cidr': '131.26.237.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-27 17:35:45,158 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-10-27 17:35:45,530 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-10-27 17:35:45,567 - DEBUG - Requesting: http://10.0.0.189:8082/domain/15de4347-3b38-4739-a685-c53508fd382a
2026-10-27 17:35:45,581 - DEBUG - Requesting: http://10.0.0.189:8082/project/e63fbc92-88fe-4245-8a15-6586fd7fa260
2026-10-27 17:35:45,662 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/eb754cc5-b8db-41e0-9c6a-3a6ffba17718
2026-10-27 17:35:45,676 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/eb754cc5-b8db-41e0-9c6a-3a6ffba17718
2026-10-27 17:35:45,687 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f335f8cf-7c60-45e2-afd0-db1da353fe9e
2026-10-27 17:35:45,694 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f335f8cf-7c60-45e2-afd0-db1da353fe9e
2026-10-27 17:35:45,701 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/8b412b39-24ef-4eb4-a05d-f620e215b37d
2026-10-27 17:35:45,709 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-27 17:35:45,710 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/eb754cc5-b8db-41e0-9c6a-3a6ffba17718
2026-10-27 17:35:45,720 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f335f8cf-7c60-45e2-afd0-db1da353fe9e
2026-10-27 17:35:45,738 - INFO - Verified VN network id 10 for VN eb754cc5-b8db-41e0-9c6a-3a6ffba17718
2026-10-27 17:35:45,738 - INFO - Verifications in API Server for VN ctest-vn-86309349 passed
2026-10-27 17:35:45,738 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/eb754cc5-b8db-41e0-9c6a-3a6ffba17718
2026-10-27 17:35:45,754 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f335f8cf-7c60-45e2-afd0-db1da353fe9e
2026-10-27 17:35:45,762 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f335f8cf-7c60-45e2-afd0-db1da353fe9e
2026-10-27 17:35:45,771 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/8b412b39-24ef-4eb4-a05d-f620e215b37d
2026-10-27 17:35:45,788 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-86309349', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94034436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16966551583281856992', 'uuid-lslong': '11270885270085531416'}, 'enable': 'true', 'created': '2026-10-27T17:35:43', 'last-modified': '2026-10-27T17:35:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076369'}
2026-10-27 17:35:45,796 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-27 17:35:45,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86309349 passed
2026-10-27 17:35:45,797 - DEBUG - ====Verifying policy data for ctest-vn-86309349 in API_Server ======
2026-10-27 17:35:45,797 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-10-27 17:35:45,804 - DEBUG - Requesting: http://10.0.0.189:8082/domain/15de4347-3b38-4739-a685-c53508fd382a
2026-10-27 17:35:45,816 - DEBUG - Requesting: http://10.0.0.189:8082/project/e63fbc92-88fe-4245-8a15-6586fd7fa260
2026-10-27 17:35:45,889 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/eb754cc5-b8db-41e0-9c6a-3a6ffba17718
2026-10-27 17:35:45,899 - DEBUG - ==>Verifying data for policy with id: af10e4ae-4525-4845-93bd-80b56a45e384, fqn: ['default-domain', 'ctest-TestBasicPolicy-94034436', 'ctest-policy-allow-all-32013220']
2026-10-27 17:35:45,899 - INFO - VN ctest-vn-86309349 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-27 17:35:45,899 - DEBUG - Verifying the vn in opserver
2026-10-27 17:35:45,899 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-86309349 virtual network link through opserver 10.0.0.189
2026-10-27 17:35:45,899 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-10-27 17:35:46,265 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-10-27 17:35:46,329 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-86309349', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-86309349?flat'}
2026-10-27 17:35:46,330 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-86309349 is found in opserver
2026-10-27 17:35:46,339 - DEBUG - Do not have enough data to verify VN in agent
2026-10-27 17:35:46,344 - DEBUG - VRF ids for VN ctest-vn-86309349: {}
2026-10-27 17:35:46,344 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-10-27 17:35:46,351 - DEBUG - Requesting: http://10.0.0.189:8082/domain/15de4347-3b38-4739-a685-c53508fd382a
2026-10-27 17:35:46,361 - DEBUG - Requesting: http://10.0.0.189:8082/project/e63fbc92-88fe-4245-8a15-6586fd7fa260
2026-10-27 17:35:46,442 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/50701fb2-8aa0-48a7-bf97-e1331afee6d4
2026-10-27 17:35:46,455 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/50701fb2-8aa0-48a7-bf97-e1331afee6d4
2026-10-27 17:35:46,466 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d6819dbd-1d4a-43e5-b6e6-907fbe8c4756
2026-10-27 17:35:46,474 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d6819dbd-1d4a-43e5-b6e6-907fbe8c4756
2026-10-27 17:35:46,481 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/09cafb5b-94de-400a-ab38-319b8211a8c0
2026-10-27 17:35:46,488 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-27 17:35:46,488 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/50701fb2-8aa0-48a7-bf97-e1331afee6d4
2026-10-27 17:35:46,497 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d6819dbd-1d4a-43e5-b6e6-907fbe8c4756
2026-10-27 17:35:46,513 - INFO - Verified VN network id 11 for VN 50701fb2-8aa0-48a7-bf97-e1331afee6d4
2026-10-27 17:35:46,513 - INFO - Verifications in API Server for VN ctest-vn-27892673 passed
2026-10-27 17:35:46,513 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/50701fb2-8aa0-48a7-bf97-e1331afee6d4
2026-10-27 17:35:46,523 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d6819dbd-1d4a-43e5-b6e6-907fbe8c4756
2026-10-27 17:35:46,531 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d6819dbd-1d4a-43e5-b6e6-907fbe8c4756
2026-10-27 17:35:46,538 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/09cafb5b-94de-400a-ab38-319b8211a8c0
2026-10-27 17:35:46,553 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-27892673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94034436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5796167572116228263', 'uuid-lslong': '13805750792340039380'}, 'enable': 'true', 'created': '2026-10-27T17:35:44', 'last-modified': '2026-10-27T17:35:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598129'}
2026-10-27 17:35:46,559 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-27 17:35:46,560 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27892673 passed
2026-10-27 17:35:46,560 - DEBUG - ====Verifying policy data for ctest-vn-27892673 in API_Server ======
2026-10-27 17:35:46,560 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-10-27 17:35:46,566 - DEBUG - Requesting: http://10.0.0.189:8082/domain/15de4347-3b38-4739-a685-c53508fd382a
2026-10-27 17:35:46,578 - DEBUG - Requesting: http://10.0.0.189:8082/project/e63fbc92-88fe-4245-8a15-6586fd7fa260
2026-10-27 17:35:46,657 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/50701fb2-8aa0-48a7-bf97-e1331afee6d4
2026-10-27 17:35:46,669 - DEBUG - ==>Verifying data for policy with id: af10e4ae-4525-4845-93bd-80b56a45e384, fqn: ['default-domain', 'ctest-TestBasicPolicy-94034436', 'ctest-policy-allow-all-32013220']
2026-10-27 17:35:46,669 - INFO - VN ctest-vn-27892673 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-27 17:35:46,669 - DEBUG - Verifying the vn in opserver
2026-10-27 17:35:46,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-27892673 virtual network link through opserver 10.0.0.189
2026-10-27 17:35:46,669 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-10-27 17:35:46,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-27892673', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-27892673?flat'}
2026-10-27 17:35:46,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94034436:ctest-vn-27892673 is found in opserver
2026-10-27 17:35:46,690 - DEBUG - Do not have enough data to verify VN in agent
2026-10-27 17:35:46,697 - DEBUG - VRF ids for VN ctest-vn-27892673: {}
2026-10-27 17:35:46,765 - DEBUG - Services list from nova: [