2025-11-07 22:37:10,792 - INFO - Domain Default found not creating
2025-11-07 22:37:10,966 - INFO - Project ctest-TestBasicPolicy-80674551 not found, creating it
2025-11-07 22:37:11,410 - INFO - Created Project:ctest-TestBasicPolicy-80674551, ID : a04d6c7f-b09d-4247-935b-6cba92a5e99c
2025-11-07 22:37:12,807 - INFO - ================================================================================
2025-11-07 22:37:12,808 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-07 22:37:12,808 - 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
2025-11-07 22:37:13,065 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-07 22:37:13,065 - INFO - Initial checks done. Running the testcase now
2025-11-07 22:37:13,065 - INFO -
2025-11-07 22:37:13,593 - DEBUG - Response for create_network : {'network': {'id': 'f5e3b9a7-8275-4471-8085-11fe3959627c', 'name': 'ctest-vn-33447035', 'tenant_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'project_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80674551', 'ctest-vn-33447035'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 22:37:13,752 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe082cbe-2b50-4beb-9c2f-a4ceb27df783', 'name': '', 'tenant_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'network_id': 'f5e3b9a7-8275-4471-8085-11fe3959627c', 'ip_version': 4, 'cidr': '131.97.11.128/26', 'allocation_pools': [{'start': '131.97.11.130', 'end': '131.97.11.190'}], 'gateway_ip': '131.97.11.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.97.11.130', 'tags': [], 'project_id': 'a04d6c7fb09d4247935b6cba92a5e99c'}}
2025-11-07 22:37:13,769 - INFO - Created VN ctest-vn-33447035
2025-11-07 22:37:13,820 - DEBUG - VN ctest-vn-33447035 UUID is f5e3b9a7-8275-4471-8085-11fe3959627c
2025-11-07 22:37:14,137 - DEBUG - Response for create_network : {'network': {'id': '43f3652a-776e-4a1e-817f-dec8b23dc289', 'name': 'ctest-vn-39471751', 'tenant_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'project_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80674551', 'ctest-vn-39471751'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 22:37:14,283 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6d0f22a-8bea-490a-9035-cc7dacb9fea4', 'name': '', 'tenant_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'network_id': '43f3652a-776e-4a1e-817f-dec8b23dc289', 'ip_version': 4, 'cidr': '70.215.110.128/26', 'allocation_pools': [{'start': '70.215.110.130', 'end': '70.215.110.190'}], 'gateway_ip': '70.215.110.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.215.110.130', 'tags': [], 'project_id': 'a04d6c7fb09d4247935b6cba92a5e99c'}}
2025-11-07 22:37:14,299 - INFO - Created VN ctest-vn-39471751
2025-11-07 22:37:14,352 - DEBUG - VN ctest-vn-39471751 UUID is 43f3652a-776e-4a1e-817f-dec8b23dc289
2025-11-07 22:37:14,495 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-33447035, 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-80674551:ctest-vn-39471751, 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]
2025-11-07 22:37:14,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5e3b9a7-8275-4471-8085-11fe3959627c', 'name': 'ctest-vn-33447035', 'tenant_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'project_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe082cbe-2b50-4beb-9c2f-a4ceb27df783'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80674551', 'ctest-vn-33447035'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80674551', 'ctest-policy-allow-all-12078853']], 'subnet_ipam': [{'subnet_cidr': '131.97.11.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 22:37:15,026 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43f3652a-776e-4a1e-817f-dec8b23dc289', 'name': 'ctest-vn-39471751', 'tenant_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'project_id': 'a04d6c7fb09d4247935b6cba92a5e99c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6d0f22a-8bea-490a-9035-cc7dacb9fea4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80674551', 'ctest-vn-39471751'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80674551', 'ctest-policy-allow-all-12078853']], 'subnet_ipam': [{'subnet_cidr': '70.215.110.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 22:37:15,196 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-07 22:37:15,489 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-07 22:37:15,519 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bf08a1e0-abd2-4653-aa26-833242a4b05f
2025-11-07 22:37:15,530 - DEBUG - Requesting: http://10.0.0.22:8082/project/a04d6c7f-b09d-4247-935b-6cba92a5e99c
2025-11-07 22:37:15,600 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5e3b9a7-8275-4471-8085-11fe3959627c
2025-11-07 22:37:15,610 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5e3b9a7-8275-4471-8085-11fe3959627c
2025-11-07 22:37:15,618 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73b82332-8977-4f1a-9ef6-d15569977153
2025-11-07 22:37:15,624 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73b82332-8977-4f1a-9ef6-d15569977153
2025-11-07 22:37:15,629 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c37f27cb-331d-4717-856e-0c5c7d3d765d
2025-11-07 22:37:15,634 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 22:37:15,634 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5e3b9a7-8275-4471-8085-11fe3959627c
2025-11-07 22:37:15,641 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73b82332-8977-4f1a-9ef6-d15569977153
2025-11-07 22:37:15,651 - INFO - Verified VN network id 12 for VN f5e3b9a7-8275-4471-8085-11fe3959627c
2025-11-07 22:37:15,651 - INFO - Verifications in API Server for VN ctest-vn-33447035 passed
2025-11-07 22:37:15,651 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5e3b9a7-8275-4471-8085-11fe3959627c
2025-11-07 22:37:15,660 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73b82332-8977-4f1a-9ef6-d15569977153
2025-11-07 22:37:15,665 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73b82332-8977-4f1a-9ef6-d15569977153
2025-11-07 22:37:15,671 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c37f27cb-331d-4717-856e-0c5c7d3d765d
2025-11-07 22:37:15,682 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-33447035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80674551', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17718209488105063537', 'uuid-lslong': '9260827992338817660'}, 'enable': 'true', 'created': '2025-11-07T22:37:13', 'last-modified': '2025-11-07T22:37:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911664'}
2025-11-07 22:37:15,688 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 22:37:15,688 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33447035 passed
2025-11-07 22:37:15,688 - DEBUG - ====Verifying policy data for ctest-vn-33447035 in API_Server ======
2025-11-07 22:37:15,688 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-07 22:37:15,693 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bf08a1e0-abd2-4653-aa26-833242a4b05f
2025-11-07 22:37:15,702 - DEBUG - Requesting: http://10.0.0.22:8082/project/a04d6c7f-b09d-4247-935b-6cba92a5e99c
2025-11-07 22:37:15,768 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f5e3b9a7-8275-4471-8085-11fe3959627c
2025-11-07 22:37:15,777 - DEBUG - ==>Verifying data for policy with id: c5677f82-a4eb-490b-aa44-7d3f4bab3aee, fqn: ['default-domain', 'ctest-TestBasicPolicy-80674551', 'ctest-policy-allow-all-12078853']
2025-11-07 22:37:15,777 - INFO - VN ctest-vn-33447035 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 22:37:15,777 - DEBUG - Verifying the vn in opserver
2025-11-07 22:37:15,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-33447035 virtual network link through opserver 10.0.0.22
2025-11-07 22:37:15,777 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-07 22:37:16,071 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-07 22:37:16,125 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-33447035', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-33447035?flat'}
2025-11-07 22:37:16,125 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-33447035 is found in opserver
2025-11-07 22:37:16,134 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 22:37:16,138 - DEBUG - VRF ids for VN ctest-vn-33447035: {}
2025-11-07 22:37:16,138 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-07 22:37:16,144 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bf08a1e0-abd2-4653-aa26-833242a4b05f
2025-11-07 22:37:16,154 - DEBUG - Requesting: http://10.0.0.22:8082/project/a04d6c7f-b09d-4247-935b-6cba92a5e99c
2025-11-07 22:37:16,227 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/43f3652a-776e-4a1e-817f-dec8b23dc289
2025-11-07 22:37:16,237 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/43f3652a-776e-4a1e-817f-dec8b23dc289
2025-11-07 22:37:16,246 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a17fd184-ea03-4a38-bf5a-9fa4c9c5eaab
2025-11-07 22:37:16,253 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a17fd184-ea03-4a38-bf5a-9fa4c9c5eaab
2025-11-07 22:37:16,260 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f4e3b89f-1664-4a0e-8598-b0a49bdba1ad
2025-11-07 22:37:16,266 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 22:37:16,266 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/43f3652a-776e-4a1e-817f-dec8b23dc289
2025-11-07 22:37:16,275 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a17fd184-ea03-4a38-bf5a-9fa4c9c5eaab
2025-11-07 22:37:16,288 - INFO - Verified VN network id 13 for VN 43f3652a-776e-4a1e-817f-dec8b23dc289
2025-11-07 22:37:16,288 - INFO - Verifications in API Server for VN ctest-vn-39471751 passed
2025-11-07 22:37:16,288 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/43f3652a-776e-4a1e-817f-dec8b23dc289
2025-11-07 22:37:16,297 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a17fd184-ea03-4a38-bf5a-9fa4c9c5eaab
2025-11-07 22:37:16,303 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a17fd184-ea03-4a38-bf5a-9fa4c9c5eaab
2025-11-07 22:37:16,310 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f4e3b89f-1664-4a0e-8598-b0a49bdba1ad
2025-11-07 22:37:16,322 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-39471751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80674551', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4896368452948609566', 'uuid-lslong': '9331421906500174473'}, 'enable': 'true', 'created': '2025-11-07T22:37:14', 'last-modified': '2025-11-07T22:37:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.321051'}
2025-11-07 22:37:16,327 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 22:37:16,327 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39471751 passed
2025-11-07 22:37:16,328 - DEBUG - ====Verifying policy data for ctest-vn-39471751 in API_Server ======
2025-11-07 22:37:16,328 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-07 22:37:16,333 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bf08a1e0-abd2-4653-aa26-833242a4b05f
2025-11-07 22:37:16,342 - DEBUG - Requesting: http://10.0.0.22:8082/project/a04d6c7f-b09d-4247-935b-6cba92a5e99c
2025-11-07 22:37:16,410 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/43f3652a-776e-4a1e-817f-dec8b23dc289
2025-11-07 22:37:16,418 - DEBUG - ==>Verifying data for policy with id: c5677f82-a4eb-490b-aa44-7d3f4bab3aee, fqn: ['default-domain', 'ctest-TestBasicPolicy-80674551', 'ctest-policy-allow-all-12078853']
2025-11-07 22:37:16,418 - INFO - VN ctest-vn-39471751 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 22:37:16,418 - DEBUG - Verifying the vn in opserver
2025-11-07 22:37:16,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-39471751 virtual network link through opserver 10.0.0.22
2025-11-07 22:37:16,418 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-07 22:37:16,427 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-39471751', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-39471751?flat'}
2025-11-07 22:37:16,427 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80674551:ctest-vn-39471751 is found in opserver
2025-11-07 22:37:16,435 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 22:37:16,439 - DEBUG - VRF ids for VN ctest-vn-39471751: {}
2025-11-07 22:37:16,496 - DEBUG - Services list from nova: [