2025-11-21 17:19:33,768 - INFO - Domain Default found not creating 2025-11-21 17:19:33,953 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78033307 not found, creating it 2025-11-21 17:19:34,450 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78033307, ID : 21e10f17-6ab9-4379-92c4-ea5ad623d53f 2025-11-21 17:19:36,035 - INFO - ================================================================================ 2025-11-21 17:19:36,035 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-21 17:19:36,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with 2025-11-21 17:19:36,301 - INFO - Initial checks done. Running the testcase now 2025-11-21 17:19:36,301 - INFO - 2025-11-21 17:19:36,301 - INFO - ================================================================================ 2025-11-21 17:19:36,301 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-21 17:19:36,302 - 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-11-21 17:19:36,596 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with 2025-11-21 17:19:36,596 - INFO - Initial checks done. Running the testcase now 2025-11-21 17:19:36,596 - INFO - 2025-11-21 17:19:36,962 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78033307:ctest-vn4-17862208, 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-78033307:ctest-vn4-17862208, 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-78033307:ctest-vn4-17862208, 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-78033307:ctest-vn4-17862208, 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-21 17:19:37,481 - DEBUG - Response for create_network : {'network': {'id': '8b9b0c54-ff5e-4205-8918-2973e3816f0b', 'name': 'ctest-vn4-17862208', 'tenant_id': '21e10f176ab9437992c4ea5ad623d53f', 'project_id': '21e10f176ab9437992c4ea5ad623d53f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78033307', 'ctest-vn4-17862208'], 'port_security_enabled': True, 'description': ''}} 2025-11-21 17:19:37,687 - DEBUG - Response for create_subnet : {'subnet': {'id': '00088dbb-d21d-484c-917e-b587a5625ea2', 'name': '', 'tenant_id': '21e10f176ab9437992c4ea5ad623d53f', 'network_id': '8b9b0c54-ff5e-4205-8918-2973e3816f0b', 'ip_version': 4, 'cidr': '205.139.16.128/26', 'allocation_pools': [{'start': '205.139.16.130', 'end': '205.139.16.190'}], 'gateway_ip': '205.139.16.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.139.16.130', 'tags': [], 'project_id': '21e10f176ab9437992c4ea5ad623d53f'}} 2025-11-21 17:19:37,840 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b6a8d22-325f-4247-9e3d-39b46218d4fe', 'name': '', 'tenant_id': '21e10f176ab9437992c4ea5ad623d53f', 'network_id': '8b9b0c54-ff5e-4205-8918-2973e3816f0b', 'ip_version': 6, 'cidr': '27fb:dee3:c86:f762:b8c2:61fd::/96', 'allocation_pools': [{'start': '27fb:dee3:c86:f762:b8c2:61fd:0:2', 'end': '27fb:dee3:c86:f762:b8c2:61fd:ffff:fffe'}], 'gateway_ip': '27fb:dee3:c86:f762:b8c2:61fd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27fb:dee3:c86:f762:b8c2:61fd:0:2', 'tags': [], 'project_id': '21e10f176ab9437992c4ea5ad623d53f'}} 2025-11-21 17:19:37,861 - INFO - Created VN ctest-vn4-17862208 2025-11-21 17:19:37,914 - DEBUG - VN ctest-vn4-17862208 UUID is 8b9b0c54-ff5e-4205-8918-2973e3816f0b 2025-11-21 17:19:38,159 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b9b0c54-ff5e-4205-8918-2973e3816f0b', 'name': 'ctest-vn4-17862208', 'tenant_id': '21e10f176ab9437992c4ea5ad623d53f', 'project_id': '21e10f176ab9437992c4ea5ad623d53f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00088dbb-d21d-484c-917e-b587a5625ea2', '8b6a8d22-325f-4247-9e3d-39b46218d4fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78033307', 'ctest-vn4-17862208'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78033307', 'ctest-policy1-55709485']], 'subnet_ipam': [{'subnet_cidr': '205.139.16.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27fb:dee3:c86:f762:b8c2:61fd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-21 17:19:38,334 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-21 17:19:38,651 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-21 17:19:38,686 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06caa346-ce50-4cdf-b998-a07e05c37f3b 2025-11-21 17:19:38,700 - DEBUG - Requesting: http://10.0.0.22:8082/project/21e10f17-6ab9-4379-92c4-ea5ad623d53f 2025-11-21 17:19:38,779 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8b9b0c54-ff5e-4205-8918-2973e3816f0b 2025-11-21 17:19:38,792 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8b9b0c54-ff5e-4205-8918-2973e3816f0b 2025-11-21 17:19:38,802 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7ef5ef5-c3f3-4b53-b7ca-5c51a76c70f4 2025-11-21 17:19:38,810 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7ef5ef5-c3f3-4b53-b7ca-5c51a76c70f4 2025-11-21 17:19:38,817 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/40d9bd27-1f4d-46fb-a696-2400e181e8f6 2025-11-21 17:19:38,824 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-21 17:19:38,825 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8b9b0c54-ff5e-4205-8918-2973e3816f0b 2025-11-21 17:19:38,834 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7ef5ef5-c3f3-4b53-b7ca-5c51a76c70f4 2025-11-21 17:19:38,848 - INFO - Verified VN network id 11 for VN 8b9b0c54-ff5e-4205-8918-2973e3816f0b 2025-11-21 17:19:38,848 - INFO - Verifications in API Server for VN ctest-vn4-17862208 passed 2025-11-21 17:19:38,848 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8b9b0c54-ff5e-4205-8918-2973e3816f0b 2025-11-21 17:19:38,859 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7ef5ef5-c3f3-4b53-b7ca-5c51a76c70f4 2025-11-21 17:19:38,867 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7ef5ef5-c3f3-4b53-b7ca-5c51a76c70f4 2025-11-21 17:19:38,878 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/40d9bd27-1f4d-46fb-a696-2400e181e8f6 2025-11-21 17:19:38,891 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78033307:ctest-vn4-17862208', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78033307', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10059647751863288325', 'uuid-lslong': '9878691360352071435'}, 'enable': 'true', 'created': '2025-11-21T17:19:37', 'last-modified': '2025-11-21T17:19:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.765718'} 2025-11-21 17:19:38,897 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-21 17:19:38,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17862208 passed 2025-11-21 17:19:38,898 - DEBUG - ====Verifying policy data for ctest-vn4-17862208 in API_Server ====== 2025-11-21 17:19:38,898 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-21 17:19:38,904 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06caa346-ce50-4cdf-b998-a07e05c37f3b 2025-11-21 17:19:38,916 - DEBUG - Requesting: http://10.0.0.22:8082/project/21e10f17-6ab9-4379-92c4-ea5ad623d53f 2025-11-21 17:19:38,986 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8b9b0c54-ff5e-4205-8918-2973e3816f0b 2025-11-21 17:19:38,997 - DEBUG - ==>Verifying data for policy with id: 5dd3cb85-732f-42d0-823c-b8aa05298d22, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78033307', 'ctest-policy1-55709485'] 2025-11-21 17:19:38,997 - INFO - VN ctest-vn4-17862208 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-21 17:19:38,997 - DEBUG - Verifying the vn in opserver 2025-11-21 17:19:38,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78033307:ctest-vn4-17862208 virtual network link through opserver 10.0.0.22 2025-11-21 17:19:38,998 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-21 17:19:39,295 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-21 17:19:39,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78033307:ctest-vn4-17862208', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78033307:ctest-vn4-17862208?flat'} 2025-11-21 17:19:39,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78033307:ctest-vn4-17862208 is found in opserver 2025-11-21 17:19:39,377 - DEBUG - Do not have enough data to verify VN in agent 2025-11-21 17:19:39,381 - DEBUG - VRF ids for VN ctest-vn4-17862208: {} 2025-11-21 17:19:39,382 - DEBUG - ====Verifying data for ctest-policy1-55709485 in API_Server ====== 2025-11-21 17:19:39,382 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-21 17:19:39,388 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06caa346-ce50-4cdf-b998-a07e05c37f3b 2025-11-21 17:19:39,399 - DEBUG - Requesting: http://10.0.0.22:8082/project/21e10f17-6ab9-4379-92c4-ea5ad623d53f 2025-11-21 17:19:39,467 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/5dd3cb85-732f-42d0-823c-b8aa05298d22 2025-11-21 17:19:39,478 - INFO - Verified policy ctest-policy1-55709485 in API Server, Result: True 2025-11-21 17:19:39,479 - INFO - Done with setup and verification, moving onto test .. 2025-11-21 17:19:39,488 - INFO - Deleting VN ctest-vn4-17862208 2025-11-21 17:19:39,623 - DEBUG - Response for deleting network () 2025-11-21 17:19:39,624 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d7ef5ef5-c3f3-4b53-b7ca-5c51a76c70f4 2025-11-21 17:19:39,630 - DEBUG - Response Code: 404 2025-11-21 17:19:39,630 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-21 17:19:39,635 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06caa346-ce50-4cdf-b998-a07e05c37f3b 2025-11-21 17:19:39,692 - DEBUG - Requesting: http://10.0.0.22:8082/project/21e10f17-6ab9-4379-92c4-ea5ad623d53f 2025-11-21 17:19:39,768 - INFO - Validated that VN ctest-vn4-17862208 is not found in API Server 2025-11-21 17:19:39,778 - DEBUG - VN ctest-vn4-17862208 is not present in Agent 10.0.0.22 2025-11-21 17:19:39,778 - INFO - Validated that VN ctest-vn4-17862208 is not in any agent 2025-11-21 17:19:39,795 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17862208 info 2025-11-21 17:19:39,827 - INFO - Deleted policy ctest-policy1-55709485 2025-11-21 17:19:40,006 - DEBUG - policy ctest-policy1-55709485 is not found in API Server 2025-11-21 17:19:40,278 - DEBUG - No XMPP flaps were noticed during the test