2025-11-12 14:38:26,280 - INFO - Domain Default found not creating
2025-11-12 14:38:26,447 - INFO - Project ctest-TestBasicPolicy-39378075 not found, creating it
2025-11-12 14:38:26,917 - INFO - Created Project:ctest-TestBasicPolicy-39378075, ID : 106f5f24-ea21-463f-9cfc-f7f1b2c3cf14
2025-11-12 14:38:28,680 - INFO - ================================================================================
2025-11-12 14:38:28,680 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 14:38:28,680 - 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-12 14:38:28,936 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with
2025-11-12 14:38:28,936 - INFO - Initial checks done. Running the testcase now
2025-11-12 14:38:28,936 - INFO -
2025-11-12 14:38:29,551 - DEBUG - Response for create_network : {'network': {'id': 'e6569853-331d-4960-a9e9-ad3b32170a00', 'name': 'ctest-vn-50283256', 'tenant_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'project_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39378075', 'ctest-vn-50283256'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 14:38:29,721 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5760a20-2215-4d85-a842-54ccff2c75dc', 'name': '', 'tenant_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'network_id': 'e6569853-331d-4960-a9e9-ad3b32170a00', 'ip_version': 4, 'cidr': '14.69.216.64/26', 'allocation_pools': [{'start': '14.69.216.66', 'end': '14.69.216.126'}], 'gateway_ip': '14.69.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.69.216.66', 'tags': [], 'project_id': '106f5f24ea21463f9cfcf7f1b2c3cf14'}}
2025-11-12 14:38:29,741 - INFO - Created VN ctest-vn-50283256
2025-11-12 14:38:29,794 - DEBUG - VN ctest-vn-50283256 UUID is e6569853-331d-4960-a9e9-ad3b32170a00
2025-11-12 14:38:30,117 - DEBUG - Response for create_network : {'network': {'id': 'a1114900-5764-4461-881a-c4f8837f6f10', 'name': 'ctest-vn-64960281', 'tenant_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'project_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39378075', 'ctest-vn-64960281'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 14:38:30,310 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e0f8d47-fcbd-4a6a-aa99-9b83509463fb', 'name': '', 'tenant_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'network_id': 'a1114900-5764-4461-881a-c4f8837f6f10', 'ip_version': 4, 'cidr': '111.80.240.0/26', 'allocation_pools': [{'start': '111.80.240.2', 'end': '111.80.240.62'}], 'gateway_ip': '111.80.240.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.80.240.2', 'tags': [], 'project_id': '106f5f24ea21463f9cfcf7f1b2c3cf14'}}
2025-11-12 14:38:30,329 - INFO - Created VN ctest-vn-64960281
2025-11-12 14:38:30,382 - DEBUG - VN ctest-vn-64960281 UUID is a1114900-5764-4461-881a-c4f8837f6f10
2025-11-12 14:38:30,512 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-50283256, 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-39378075:ctest-vn-64960281, 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-12 14:38:30,818 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6569853-331d-4960-a9e9-ad3b32170a00', 'name': 'ctest-vn-50283256', 'tenant_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'project_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5760a20-2215-4d85-a842-54ccff2c75dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39378075', 'ctest-vn-50283256'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39378075', 'ctest-policy-allow-all-70063760']], 'subnet_ipam': [{'subnet_cidr': '14.69.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 14:38:31,076 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1114900-5764-4461-881a-c4f8837f6f10', 'name': 'ctest-vn-64960281', 'tenant_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'project_id': '106f5f24ea21463f9cfcf7f1b2c3cf14', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e0f8d47-fcbd-4a6a-aa99-9b83509463fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39378075', 'ctest-vn-64960281'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39378075', 'ctest-policy-allow-all-70063760']], 'subnet_ipam': [{'subnet_cidr': '111.80.240.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 14:38:31,230 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-11-12 14:38:31,587 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-11-12 14:38:31,618 - DEBUG - Requesting: http://10.0.0.129:8082/domain/6cbe8c8f-1bbc-4b1c-bd55-796431beaf86
2025-11-12 14:38:31,631 - DEBUG - Requesting: http://10.0.0.129:8082/project/106f5f24-ea21-463f-9cfc-f7f1b2c3cf14
2025-11-12 14:38:31,708 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e6569853-331d-4960-a9e9-ad3b32170a00
2025-11-12 14:38:31,722 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e6569853-331d-4960-a9e9-ad3b32170a00
2025-11-12 14:38:31,739 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4828a695-f23a-47db-9827-452b2f7285fe
2025-11-12 14:38:31,749 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4828a695-f23a-47db-9827-452b2f7285fe
2025-11-12 14:38:31,759 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/ba73e5ed-1705-4bea-bfcb-7c7e3423880b
2025-11-12 14:38:31,767 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 14:38:31,767 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e6569853-331d-4960-a9e9-ad3b32170a00
2025-11-12 14:38:31,780 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4828a695-f23a-47db-9827-452b2f7285fe
2025-11-12 14:38:31,797 - INFO - Verified VN network id 10 for VN e6569853-331d-4960-a9e9-ad3b32170a00
2025-11-12 14:38:31,797 - INFO - Verifications in API Server for VN ctest-vn-50283256 passed
2025-11-12 14:38:31,797 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e6569853-331d-4960-a9e9-ad3b32170a00
2025-11-12 14:38:31,809 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4828a695-f23a-47db-9827-452b2f7285fe
2025-11-12 14:38:31,817 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4828a695-f23a-47db-9827-452b2f7285fe
2025-11-12 14:38:31,824 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/ba73e5ed-1705-4bea-bfcb-7c7e3423880b
2025-11-12 14:38:31,839 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-50283256', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39378075', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16597620959827806560', 'uuid-lslong': '12243507531738450432'}, 'enable': 'true', 'created': '2025-11-12T14:38:29', 'last-modified': '2025-11-12T14:38:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046748'}
2025-11-12 14:38:31,849 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 14:38:31,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50283256 passed
2025-11-12 14:38:31,849 - DEBUG - ====Verifying policy data for ctest-vn-50283256 in API_Server ======
2025-11-12 14:38:31,849 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-11-12 14:38:31,856 - DEBUG - Requesting: http://10.0.0.129:8082/domain/6cbe8c8f-1bbc-4b1c-bd55-796431beaf86
2025-11-12 14:38:31,872 - DEBUG - Requesting: http://10.0.0.129:8082/project/106f5f24-ea21-463f-9cfc-f7f1b2c3cf14
2025-11-12 14:38:31,952 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e6569853-331d-4960-a9e9-ad3b32170a00
2025-11-12 14:38:31,963 - DEBUG - ==>Verifying data for policy with id: a639d010-64da-4946-8da1-2b2d7e179ace, fqn: ['default-domain', 'ctest-TestBasicPolicy-39378075', 'ctest-policy-allow-all-70063760']
2025-11-12 14:38:31,963 - INFO - VN ctest-vn-50283256 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 14:38:31,963 - DEBUG - Verifying the vn in opserver
2025-11-12 14:38:31,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-50283256 virtual network link through opserver 10.0.0.129
2025-11-12 14:38:31,964 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-11-12 14:38:32,304 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-11-12 14:38:32,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-50283256', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-50283256?flat'}
2025-11-12 14:38:32,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-50283256 is found in opserver
2025-11-12 14:38:32,381 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 14:38:32,386 - DEBUG - VRF ids for VN ctest-vn-50283256: {}
2025-11-12 14:38:32,386 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-11-12 14:38:32,392 - DEBUG - Requesting: http://10.0.0.129:8082/domain/6cbe8c8f-1bbc-4b1c-bd55-796431beaf86
2025-11-12 14:38:32,406 - DEBUG - Requesting: http://10.0.0.129:8082/project/106f5f24-ea21-463f-9cfc-f7f1b2c3cf14
2025-11-12 14:38:32,482 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a1114900-5764-4461-881a-c4f8837f6f10
2025-11-12 14:38:32,498 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a1114900-5764-4461-881a-c4f8837f6f10
2025-11-12 14:38:32,510 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/24ace7ea-1730-4044-b4fc-821bfe9b91a7
2025-11-12 14:38:32,518 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/24ace7ea-1730-4044-b4fc-821bfe9b91a7
2025-11-12 14:38:32,526 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/b98c5dfc-dd39-4f75-8b63-cbe7600f21e5
2025-11-12 14:38:32,534 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 14:38:32,534 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a1114900-5764-4461-881a-c4f8837f6f10
2025-11-12 14:38:32,544 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/24ace7ea-1730-4044-b4fc-821bfe9b91a7
2025-11-12 14:38:32,560 - INFO - Verified VN network id 11 for VN a1114900-5764-4461-881a-c4f8837f6f10
2025-11-12 14:38:32,560 - INFO - Verifications in API Server for VN ctest-vn-64960281 passed
2025-11-12 14:38:32,560 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a1114900-5764-4461-881a-c4f8837f6f10
2025-11-12 14:38:32,570 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/24ace7ea-1730-4044-b4fc-821bfe9b91a7
2025-11-12 14:38:32,578 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/24ace7ea-1730-4044-b4fc-821bfe9b91a7
2025-11-12 14:38:32,587 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/b98c5dfc-dd39-4f75-8b63-cbe7600f21e5
2025-11-12 14:38:32,602 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-64960281', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39378075', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11606137980525495393', 'uuid-lslong': '9807367710189776656'}, 'enable': 'true', 'created': '2025-11-12T14:38:30', 'last-modified': '2025-11-12T14:38:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.554595'}
2025-11-12 14:38:32,609 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 14:38:32,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64960281 passed
2025-11-12 14:38:32,609 - DEBUG - ====Verifying policy data for ctest-vn-64960281 in API_Server ======
2025-11-12 14:38:32,609 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-11-12 14:38:32,615 - DEBUG - Requesting: http://10.0.0.129:8082/domain/6cbe8c8f-1bbc-4b1c-bd55-796431beaf86
2025-11-12 14:38:32,626 - DEBUG - Requesting: http://10.0.0.129:8082/project/106f5f24-ea21-463f-9cfc-f7f1b2c3cf14
2025-11-12 14:38:32,698 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a1114900-5764-4461-881a-c4f8837f6f10
2025-11-12 14:38:32,709 - DEBUG - ==>Verifying data for policy with id: a639d010-64da-4946-8da1-2b2d7e179ace, fqn: ['default-domain', 'ctest-TestBasicPolicy-39378075', 'ctest-policy-allow-all-70063760']
2025-11-12 14:38:32,709 - INFO - VN ctest-vn-64960281 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 14:38:32,709 - DEBUG - Verifying the vn in opserver
2025-11-12 14:38:32,709 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-64960281 virtual network link through opserver 10.0.0.129
2025-11-12 14:38:32,710 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-11-12 14:38:32,721 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-64960281', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-64960281?flat'}
2025-11-12 14:38:32,721 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39378075:ctest-vn-64960281 is found in opserver
2025-11-12 14:38:32,732 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 14:38:32,738 - DEBUG - VRF ids for VN ctest-vn-64960281: {}
2025-11-12 14:38:32,806 - DEBUG - Services list from nova: [