2025-08-28 21:26:42,800 - INFO - Domain Default found not creating 2025-08-28 21:26:42,943 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01430313 not found, creating it 2025-08-28 21:26:43,357 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01430313, ID : bf31eb37-73a5-4363-aa8a-e8ba352aafae 2025-08-28 21:26:44,687 - INFO - ================================================================================ 2025-08-28 21:26:44,687 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 21:26:44,936 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-08-28 21:26:44,936 - INFO - Initial checks done. Running the testcase now 2025-08-28 21:26:44,936 - INFO - 2025-08-28 21:26:44,936 - INFO - ================================================================================ 2025-08-28 21:26:44,936 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 21:26:44,936 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2025-08-28 21:26:45,226 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-08-28 21:26:45,226 - INFO - Initial checks done. Running the testcase now 2025-08-28 21:26:45,226 - INFO - 2025-08-28 21:26:45,559 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343, 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-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343, 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-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343, 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-08-28 21:26:46,030 - DEBUG - Response for create_network : {'network': {'id': '97fb435e-965e-4f5c-97be-52a8d3442f3f', 'name': 'ctest-vn4-36946343', 'tenant_id': 'bf31eb3773a54363aa8ae8ba352aafae', 'project_id': 'bf31eb3773a54363aa8ae8ba352aafae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01430313', 'ctest-vn4-36946343'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 21:26:46,247 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d18b3b3-6746-4b32-979d-b3ce0a3a94cf', 'name': '', 'tenant_id': 'bf31eb3773a54363aa8ae8ba352aafae', 'network_id': '97fb435e-965e-4f5c-97be-52a8d3442f3f', 'ip_version': 4, 'cidr': '159.110.147.0/26', 'allocation_pools': [{'start': '159.110.147.2', 'end': '159.110.147.62'}], 'gateway_ip': '159.110.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.110.147.2', 'tags': [], 'project_id': 'bf31eb3773a54363aa8ae8ba352aafae'}} 2025-08-28 21:26:46,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b002e69-bfd8-4a99-b600-b7460a6b9d7c', 'name': '', 'tenant_id': 'bf31eb3773a54363aa8ae8ba352aafae', 'network_id': '97fb435e-965e-4f5c-97be-52a8d3442f3f', 'ip_version': 6, 'cidr': '2519:a1ec:e2b0:3863:30a5:8c55::/96', 'allocation_pools': [{'start': '2519:a1ec:e2b0:3863:30a5:8c55:0:2', 'end': '2519:a1ec:e2b0:3863:30a5:8c55:ffff:fffe'}], 'gateway_ip': '2519:a1ec:e2b0:3863:30a5:8c55:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2519:a1ec:e2b0:3863:30a5:8c55:0:2', 'tags': [], 'project_id': 'bf31eb3773a54363aa8ae8ba352aafae'}} 2025-08-28 21:26:46,467 - INFO - Created VN ctest-vn4-36946343 2025-08-28 21:26:46,523 - DEBUG - VN ctest-vn4-36946343 UUID is 97fb435e-965e-4f5c-97be-52a8d3442f3f 2025-08-28 21:26:46,699 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97fb435e-965e-4f5c-97be-52a8d3442f3f', 'name': 'ctest-vn4-36946343', 'tenant_id': 'bf31eb3773a54363aa8ae8ba352aafae', 'project_id': 'bf31eb3773a54363aa8ae8ba352aafae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d18b3b3-6746-4b32-979d-b3ce0a3a94cf', '1b002e69-bfd8-4a99-b600-b7460a6b9d7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01430313', 'ctest-vn4-36946343'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01430313', 'ctest-policy1-57882328']], 'subnet_ipam': [{'subnet_cidr': '159.110.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2519:a1ec:e2b0:3863:30a5:8c55::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 21:26:46,855 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-28 21:26:47,148 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-28 21:26:47,173 - DEBUG - Requesting: http://10.0.0.48:8082/domain/042e84a8-87ca-463c-aa69-7b66a83f7a51 2025-08-28 21:26:47,187 - DEBUG - Requesting: http://10.0.0.48:8082/project/bf31eb37-73a5-4363-aa8a-e8ba352aafae 2025-08-28 21:26:47,260 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97fb435e-965e-4f5c-97be-52a8d3442f3f 2025-08-28 21:26:47,271 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97fb435e-965e-4f5c-97be-52a8d3442f3f 2025-08-28 21:26:47,281 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fed6c711-531d-4ae3-b720-ef74dcb063da 2025-08-28 21:26:47,287 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fed6c711-531d-4ae3-b720-ef74dcb063da 2025-08-28 21:26:47,293 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ae24c396-a9af-4e21-8edc-e3520971a1fe 2025-08-28 21:26:47,299 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 21:26:47,299 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97fb435e-965e-4f5c-97be-52a8d3442f3f 2025-08-28 21:26:47,308 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fed6c711-531d-4ae3-b720-ef74dcb063da 2025-08-28 21:26:47,320 - INFO - Verified VN network id 12 for VN 97fb435e-965e-4f5c-97be-52a8d3442f3f 2025-08-28 21:26:47,320 - INFO - Verifications in API Server for VN ctest-vn4-36946343 passed 2025-08-28 21:26:47,321 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97fb435e-965e-4f5c-97be-52a8d3442f3f 2025-08-28 21:26:47,329 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fed6c711-531d-4ae3-b720-ef74dcb063da 2025-08-28 21:26:47,337 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fed6c711-531d-4ae3-b720-ef74dcb063da 2025-08-28 21:26:47,344 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/ae24c396-a9af-4e21-8edc-e3520971a1fe 2025-08-28 21:26:47,357 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01430313', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10951420992410242908', 'uuid-lslong': '10934267830354587455'}, 'enable': 'true', 'created': '2025-08-28T21:26:46', 'last-modified': '2025-08-28T21:26:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.685281'} 2025-08-28 21:26:47,362 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 21:26:47,362 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36946343 passed 2025-08-28 21:26:47,363 - DEBUG - ====Verifying policy data for ctest-vn4-36946343 in API_Server ====== 2025-08-28 21:26:47,363 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-28 21:26:47,368 - DEBUG - Requesting: http://10.0.0.48:8082/domain/042e84a8-87ca-463c-aa69-7b66a83f7a51 2025-08-28 21:26:47,379 - DEBUG - Requesting: http://10.0.0.48:8082/project/bf31eb37-73a5-4363-aa8a-e8ba352aafae 2025-08-28 21:26:47,446 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/97fb435e-965e-4f5c-97be-52a8d3442f3f 2025-08-28 21:26:47,454 - DEBUG - ==>Verifying data for policy with id: 1e97fc57-0f23-4a6d-83ed-a40e08ba4dfd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01430313', 'ctest-policy1-57882328'] 2025-08-28 21:26:47,454 - INFO - VN ctest-vn4-36946343 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 21:26:47,454 - DEBUG - Verifying the vn in opserver 2025-08-28 21:26:47,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343 virtual network link through opserver 10.0.0.48 2025-08-28 21:26:47,454 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-28 21:26:47,741 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-28 21:26:47,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343?flat'} 2025-08-28 21:26:47,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01430313:ctest-vn4-36946343 is found in opserver 2025-08-28 21:26:47,794 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 21:26:47,797 - DEBUG - VRF ids for VN ctest-vn4-36946343: {} 2025-08-28 21:26:47,798 - DEBUG - ====Verifying data for ctest-policy1-57882328 in API_Server ====== 2025-08-28 21:26:47,798 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-28 21:26:47,802 - DEBUG - Requesting: http://10.0.0.48:8082/domain/042e84a8-87ca-463c-aa69-7b66a83f7a51 2025-08-28 21:26:47,810 - DEBUG - Requesting: http://10.0.0.48:8082/project/bf31eb37-73a5-4363-aa8a-e8ba352aafae 2025-08-28 21:26:47,872 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/1e97fc57-0f23-4a6d-83ed-a40e08ba4dfd 2025-08-28 21:26:47,879 - INFO - Verified policy ctest-policy1-57882328 in API Server, Result: True 2025-08-28 21:26:47,879 - INFO - Done with setup and verification, moving onto test .. 2025-08-28 21:26:47,885 - INFO - Deleting VN ctest-vn4-36946343 2025-08-28 21:26:47,980 - DEBUG - Response for deleting network () 2025-08-28 21:26:47,980 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/fed6c711-531d-4ae3-b720-ef74dcb063da 2025-08-28 21:26:47,984 - DEBUG - Response Code: 404 2025-08-28 21:26:47,984 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-28 21:26:47,989 - DEBUG - Requesting: http://10.0.0.48:8082/domain/042e84a8-87ca-463c-aa69-7b66a83f7a51 2025-08-28 21:26:48,039 - DEBUG - Requesting: http://10.0.0.48:8082/project/bf31eb37-73a5-4363-aa8a-e8ba352aafae 2025-08-28 21:26:48,111 - INFO - Validated that VN ctest-vn4-36946343 is not found in API Server 2025-08-28 21:26:48,122 - DEBUG - VN ctest-vn4-36946343 is not present in Agent 10.0.0.48 2025-08-28 21:26:48,122 - INFO - Validated that VN ctest-vn4-36946343 is not in any agent 2025-08-28 21:26:48,137 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36946343 info 2025-08-28 21:26:48,159 - INFO - Deleted policy ctest-policy1-57882328 2025-08-28 21:26:48,318 - DEBUG - policy ctest-policy1-57882328 is not found in API Server 2025-08-28 21:26:48,578 - DEBUG - No XMPP flaps were noticed during the test 2025-08-28 21:26:48,578 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-28 21:26:48,579 - INFO - -------------------------------------------------------------------------------- 2025-08-28 21:26:48,866 - DEBUG - No XMPP flaps were noticed during the test 2025-08-28 21:26:48,866 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-28 21:26:48,866 - INFO - -------------------------------------------------------------------------------- 2025-08-28 21:26:49,497 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-01430313, ID : bf31eb37-73a5-4363-aa8a-e8ba352aafae