2025-12-22 02:10:03,162 - INFO - Domain Default found not creating
2025-12-22 02:10:03,364 - INFO - Project ctest-TestBasicPolicy-41851561 not found, creating it
2025-12-22 02:10:03,867 - INFO - Created Project:ctest-TestBasicPolicy-41851561, ID : 31c97cad-5014-45bd-9269-bd6e8cf89446
2025-12-22 02:10:05,543 - INFO - ================================================================================
2025-12-22 02:10:05,543 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-22 02:10:05,543 - 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-12-22 02:10:05,806 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.201': '0'}} with
2025-12-22 02:10:05,806 - INFO - Initial checks done. Running the testcase now
2025-12-22 02:10:05,806 - INFO -
2025-12-22 02:10:06,448 - DEBUG - Response for create_network : {'network': {'id': '0596922f-6c4e-48f1-a734-951148d3d56f', 'name': 'ctest-vn-58332651', 'tenant_id': '31c97cad501445bd9269bd6e8cf89446', 'project_id': '31c97cad501445bd9269bd6e8cf89446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41851561', 'ctest-vn-58332651'], 'port_security_enabled': True, 'description': ''}}
2025-12-22 02:10:06,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4af111c-eff9-479d-bbfd-b7f1cfff423b', 'name': '', 'tenant_id': '31c97cad501445bd9269bd6e8cf89446', 'network_id': '0596922f-6c4e-48f1-a734-951148d3d56f', 'ip_version': 4, 'cidr': '107.119.147.192/26', 'allocation_pools': [{'start': '107.119.147.194', 'end': '107.119.147.254'}], 'gateway_ip': '107.119.147.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.119.147.194', 'tags': [], 'project_id': '31c97cad501445bd9269bd6e8cf89446'}}
2025-12-22 02:10:06,676 - INFO - Created VN ctest-vn-58332651
2025-12-22 02:10:06,729 - DEBUG - VN ctest-vn-58332651 UUID is 0596922f-6c4e-48f1-a734-951148d3d56f
2025-12-22 02:10:07,049 - DEBUG - Response for create_network : {'network': {'id': '719fbcc9-b650-444c-bbfa-13f08f97f0e7', 'name': 'ctest-vn-07193533', 'tenant_id': '31c97cad501445bd9269bd6e8cf89446', 'project_id': '31c97cad501445bd9269bd6e8cf89446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41851561', 'ctest-vn-07193533'], 'port_security_enabled': True, 'description': ''}}
2025-12-22 02:10:07,211 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c6af5b5-e952-4fd0-98c1-8b9d4c86d905', 'name': '', 'tenant_id': '31c97cad501445bd9269bd6e8cf89446', 'network_id': '719fbcc9-b650-444c-bbfa-13f08f97f0e7', 'ip_version': 4, 'cidr': '13.220.173.64/26', 'allocation_pools': [{'start': '13.220.173.66', 'end': '13.220.173.126'}], 'gateway_ip': '13.220.173.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.220.173.66', 'tags': [], 'project_id': '31c97cad501445bd9269bd6e8cf89446'}}
2025-12-22 02:10:07,230 - INFO - Created VN ctest-vn-07193533
2025-12-22 02:10:07,281 - DEBUG - VN ctest-vn-07193533 UUID is 719fbcc9-b650-444c-bbfa-13f08f97f0e7
2025-12-22 02:10:07,393 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-58332651, 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-41851561:ctest-vn-07193533, 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-12-22 02:10:07,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0596922f-6c4e-48f1-a734-951148d3d56f', 'name': 'ctest-vn-58332651', 'tenant_id': '31c97cad501445bd9269bd6e8cf89446', 'project_id': '31c97cad501445bd9269bd6e8cf89446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4af111c-eff9-479d-bbfd-b7f1cfff423b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41851561', 'ctest-vn-58332651'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41851561', 'ctest-policy-allow-all-22342115']], 'subnet_ipam': [{'subnet_cidr': '107.119.147.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-22 02:10:07,926 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '719fbcc9-b650-444c-bbfa-13f08f97f0e7', 'name': 'ctest-vn-07193533', 'tenant_id': '31c97cad501445bd9269bd6e8cf89446', 'project_id': '31c97cad501445bd9269bd6e8cf89446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c6af5b5-e952-4fd0-98c1-8b9d4c86d905'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41851561', 'ctest-vn-07193533'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41851561', 'ctest-policy-allow-all-22342115']], 'subnet_ipam': [{'subnet_cidr': '13.220.173.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-22 02:10:08,093 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-12-22 02:10:08,434 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-12-22 02:10:08,470 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b07d984a-265b-499c-82d6-02806ee46735
2025-12-22 02:10:08,484 - DEBUG - Requesting: http://10.0.0.57:8082/project/31c97cad-5014-45bd-9269-bd6e8cf89446
2025-12-22 02:10:08,559 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0596922f-6c4e-48f1-a734-951148d3d56f
2025-12-22 02:10:08,570 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0596922f-6c4e-48f1-a734-951148d3d56f
2025-12-22 02:10:08,579 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/84185cd6-6c3d-42c6-9cc3-10752f1d3594
2025-12-22 02:10:08,586 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/84185cd6-6c3d-42c6-9cc3-10752f1d3594
2025-12-22 02:10:08,615 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/00faa98f-9e94-4019-8801-31dd9cf2f8f4
2025-12-22 02:10:08,622 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-22 02:10:08,622 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0596922f-6c4e-48f1-a734-951148d3d56f
2025-12-22 02:10:08,631 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/84185cd6-6c3d-42c6-9cc3-10752f1d3594
2025-12-22 02:10:08,645 - INFO - Verified VN network id 11 for VN 0596922f-6c4e-48f1-a734-951148d3d56f
2025-12-22 02:10:08,645 - INFO - Verifications in API Server for VN ctest-vn-58332651 passed
2025-12-22 02:10:08,645 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0596922f-6c4e-48f1-a734-951148d3d56f
2025-12-22 02:10:08,654 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/84185cd6-6c3d-42c6-9cc3-10752f1d3594
2025-12-22 02:10:08,664 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/84185cd6-6c3d-42c6-9cc3-10752f1d3594
2025-12-22 02:10:08,670 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/00faa98f-9e94-4019-8801-31dd9cf2f8f4
2025-12-22 02:10:08,682 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-58332651', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41851561', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '402669949074426097', 'uuid-lslong': '12048418804591744367'}, 'enable': 'true', 'created': '2025-12-22T02:10:06', 'last-modified': '2025-12-22T02:10:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019741'}
2025-12-22 02:10:08,688 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-22 02:10:08,689 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58332651 passed
2025-12-22 02:10:08,689 - DEBUG - ====Verifying policy data for ctest-vn-58332651 in API_Server ======
2025-12-22 02:10:08,689 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-12-22 02:10:08,694 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b07d984a-265b-499c-82d6-02806ee46735
2025-12-22 02:10:08,706 - DEBUG - Requesting: http://10.0.0.57:8082/project/31c97cad-5014-45bd-9269-bd6e8cf89446
2025-12-22 02:10:08,774 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0596922f-6c4e-48f1-a734-951148d3d56f
2025-12-22 02:10:08,784 - DEBUG - ==>Verifying data for policy with id: ded77d44-abee-4c73-b6ed-5dd7ed4ba33d, fqn: ['default-domain', 'ctest-TestBasicPolicy-41851561', 'ctest-policy-allow-all-22342115']
2025-12-22 02:10:08,784 - INFO - VN ctest-vn-58332651 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-22 02:10:08,784 - DEBUG - Verifying the vn in opserver
2025-12-22 02:10:08,784 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-58332651 virtual network link through opserver 10.0.0.57
2025-12-22 02:10:08,784 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-12-22 02:10:09,123 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-12-22 02:10:09,199 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-58332651', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-58332651?flat'}
2025-12-22 02:10:09,199 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-58332651 is found in opserver
2025-12-22 02:10:09,211 - DEBUG - Do not have enough data to verify VN in agent
2025-12-22 02:10:09,217 - DEBUG - VRF ids for VN ctest-vn-58332651: {}
2025-12-22 02:10:09,217 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-12-22 02:10:09,224 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b07d984a-265b-499c-82d6-02806ee46735
2025-12-22 02:10:09,239 - DEBUG - Requesting: http://10.0.0.57:8082/project/31c97cad-5014-45bd-9269-bd6e8cf89446
2025-12-22 02:10:09,306 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/719fbcc9-b650-444c-bbfa-13f08f97f0e7
2025-12-22 02:10:09,319 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/719fbcc9-b650-444c-bbfa-13f08f97f0e7
2025-12-22 02:10:09,329 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8aadb9e6-c3b1-4147-a874-7b0cc95fe61f
2025-12-22 02:10:09,337 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8aadb9e6-c3b1-4147-a874-7b0cc95fe61f
2025-12-22 02:10:09,346 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/27a635cf-d4aa-4c21-b1b1-3de2ae0cf833
2025-12-22 02:10:09,353 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-22 02:10:09,353 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/719fbcc9-b650-444c-bbfa-13f08f97f0e7
2025-12-22 02:10:09,364 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8aadb9e6-c3b1-4147-a874-7b0cc95fe61f
2025-12-22 02:10:09,380 - INFO - Verified VN network id 12 for VN 719fbcc9-b650-444c-bbfa-13f08f97f0e7
2025-12-22 02:10:09,380 - INFO - Verifications in API Server for VN ctest-vn-07193533 passed
2025-12-22 02:10:09,380 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/719fbcc9-b650-444c-bbfa-13f08f97f0e7
2025-12-22 02:10:09,389 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8aadb9e6-c3b1-4147-a874-7b0cc95fe61f
2025-12-22 02:10:09,395 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8aadb9e6-c3b1-4147-a874-7b0cc95fe61f
2025-12-22 02:10:09,402 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/27a635cf-d4aa-4c21-b1b1-3de2ae0cf833
2025-12-22 02:10:09,414 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-07193533', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41851561', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8187470222116013132', 'uuid-lslong': '13545160753192366311'}, 'enable': 'true', 'created': '2025-12-22T02:10:07', 'last-modified': '2025-12-22T02:10:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.513593'}
2025-12-22 02:10:09,420 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-22 02:10:09,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07193533 passed
2025-12-22 02:10:09,421 - DEBUG - ====Verifying policy data for ctest-vn-07193533 in API_Server ======
2025-12-22 02:10:09,421 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-12-22 02:10:09,427 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b07d984a-265b-499c-82d6-02806ee46735
2025-12-22 02:10:09,437 - DEBUG - Requesting: http://10.0.0.57:8082/project/31c97cad-5014-45bd-9269-bd6e8cf89446
2025-12-22 02:10:09,506 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/719fbcc9-b650-444c-bbfa-13f08f97f0e7
2025-12-22 02:10:09,515 - DEBUG - ==>Verifying data for policy with id: ded77d44-abee-4c73-b6ed-5dd7ed4ba33d, fqn: ['default-domain', 'ctest-TestBasicPolicy-41851561', 'ctest-policy-allow-all-22342115']
2025-12-22 02:10:09,515 - INFO - VN ctest-vn-07193533 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-22 02:10:09,515 - DEBUG - Verifying the vn in opserver
2025-12-22 02:10:09,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-07193533 virtual network link through opserver 10.0.0.57
2025-12-22 02:10:09,515 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-12-22 02:10:09,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-07193533', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-07193533?flat'}
2025-12-22 02:10:09,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41851561:ctest-vn-07193533 is found in opserver
2025-12-22 02:10:09,536 - DEBUG - Do not have enough data to verify VN in agent
2025-12-22 02:10:09,541 - DEBUG - VRF ids for VN ctest-vn-07193533: {}
2025-12-22 02:10:09,601 - DEBUG - Services list from nova: [