2025-10-29 17:36:31,257 - INFO - Domain Default found not creating 2025-10-29 17:36:31,405 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68372782 not found, creating it 2025-10-29 17:36:31,857 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68372782, ID : 98244cb1-1fed-4b3a-bb56-bcde5a2ec1cd 2025-10-29 17:36:33,271 - INFO - ================================================================================ 2025-10-29 17:36:33,271 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 17:36:33,540 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.18': '0'}} with 2025-10-29 17:36:33,540 - INFO - Initial checks done. Running the testcase now 2025-10-29 17:36:33,540 - INFO - 2025-10-29 17:36:33,540 - INFO - ================================================================================ 2025-10-29 17:36:33,540 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 17:36:33,540 - 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-10-29 17:36:33,827 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.18': '0'}} with 2025-10-29 17:36:33,827 - INFO - Initial checks done. Running the testcase now 2025-10-29 17:36:33,828 - INFO - 2025-10-29 17:36:34,307 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68372782:ctest-vn4-69089681, 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-68372782:ctest-vn4-69089681, 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-68372782:ctest-vn4-69089681, 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-68372782:ctest-vn4-69089681, 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-10-29 17:36:34,818 - DEBUG - Response for create_network : {'network': {'id': '41d89197-0b3b-41f9-9562-e434b9401e8a', 'name': 'ctest-vn4-69089681', 'tenant_id': '98244cb11fed4b3abb56bcde5a2ec1cd', 'project_id': '98244cb11fed4b3abb56bcde5a2ec1cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68372782', 'ctest-vn4-69089681'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 17:36:35,044 - DEBUG - Response for create_subnet : {'subnet': {'id': 'feb940db-e639-4147-a999-5dc854541452', 'name': '', 'tenant_id': '98244cb11fed4b3abb56bcde5a2ec1cd', 'network_id': '41d89197-0b3b-41f9-9562-e434b9401e8a', 'ip_version': 4, 'cidr': '206.112.239.0/26', 'allocation_pools': [{'start': '206.112.239.2', 'end': '206.112.239.62'}], 'gateway_ip': '206.112.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.112.239.2', 'tags': [], 'project_id': '98244cb11fed4b3abb56bcde5a2ec1cd'}} 2025-10-29 17:36:35,224 - DEBUG - Response for create_subnet : {'subnet': {'id': '05b6eb57-596c-4f75-b135-19dfb071c30b', 'name': '', 'tenant_id': '98244cb11fed4b3abb56bcde5a2ec1cd', 'network_id': '41d89197-0b3b-41f9-9562-e434b9401e8a', 'ip_version': 6, 'cidr': '3f4b:5557:7c21:1aad:7c79:7661::/96', 'allocation_pools': [{'start': '3f4b:5557:7c21:1aad:7c79:7661:0:2', 'end': '3f4b:5557:7c21:1aad:7c79:7661:ffff:fffe'}], 'gateway_ip': '3f4b:5557:7c21:1aad:7c79:7661:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f4b:5557:7c21:1aad:7c79:7661:0:2', 'tags': [], 'project_id': '98244cb11fed4b3abb56bcde5a2ec1cd'}} 2025-10-29 17:36:35,243 - INFO - Created VN ctest-vn4-69089681 2025-10-29 17:36:35,294 - DEBUG - VN ctest-vn4-69089681 UUID is 41d89197-0b3b-41f9-9562-e434b9401e8a 2025-10-29 17:36:35,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41d89197-0b3b-41f9-9562-e434b9401e8a', 'name': 'ctest-vn4-69089681', 'tenant_id': '98244cb11fed4b3abb56bcde5a2ec1cd', 'project_id': '98244cb11fed4b3abb56bcde5a2ec1cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['feb940db-e639-4147-a999-5dc854541452', '05b6eb57-596c-4f75-b135-19dfb071c30b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68372782', 'ctest-vn4-69089681'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68372782', 'ctest-policy1-27858951']], 'subnet_ipam': [{'subnet_cidr': '206.112.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f4b:5557:7c21:1aad:7c79:7661::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 17:36:35,674 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-29 17:36:35,970 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-29 17:36:36,003 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2fa9b7e6-e606-4f3d-b674-0ade35196e22 2025-10-29 17:36:36,015 - DEBUG - Requesting: http://10.0.0.242:8082/project/98244cb1-1fed-4b3a-bb56-bcde5a2ec1cd 2025-10-29 17:36:36,086 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/41d89197-0b3b-41f9-9562-e434b9401e8a 2025-10-29 17:36:36,099 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/41d89197-0b3b-41f9-9562-e434b9401e8a 2025-10-29 17:36:36,110 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/098299f8-c2d1-4f03-9bd4-3a8537cd1e29 2025-10-29 17:36:36,119 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/098299f8-c2d1-4f03-9bd4-3a8537cd1e29 2025-10-29 17:36:36,126 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6c83986f-d6f3-4b71-be23-303ea7ac3cd9 2025-10-29 17:36:36,132 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 17:36:36,133 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/41d89197-0b3b-41f9-9562-e434b9401e8a 2025-10-29 17:36:36,141 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/098299f8-c2d1-4f03-9bd4-3a8537cd1e29 2025-10-29 17:36:36,155 - INFO - Verified VN network id 11 for VN 41d89197-0b3b-41f9-9562-e434b9401e8a 2025-10-29 17:36:36,155 - INFO - Verifications in API Server for VN ctest-vn4-69089681 passed 2025-10-29 17:36:36,155 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/41d89197-0b3b-41f9-9562-e434b9401e8a 2025-10-29 17:36:36,165 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/098299f8-c2d1-4f03-9bd4-3a8537cd1e29 2025-10-29 17:36:36,177 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/098299f8-c2d1-4f03-9bd4-3a8537cd1e29 2025-10-29 17:36:36,185 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6c83986f-d6f3-4b71-be23-303ea7ac3cd9 2025-10-29 17:36:36,199 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68372782:ctest-vn4-69089681', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68372782', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4744702285349339641', 'uuid-lslong': '10764416974466326154'}, 'enable': 'true', 'created': '2025-10-29T17:36:34', 'last-modified': '2025-10-29T17:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.721139'} 2025-10-29 17:36:36,205 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 17:36:36,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69089681 passed 2025-10-29 17:36:36,206 - DEBUG - ====Verifying policy data for ctest-vn4-69089681 in API_Server ====== 2025-10-29 17:36:36,206 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-29 17:36:36,212 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2fa9b7e6-e606-4f3d-b674-0ade35196e22 2025-10-29 17:36:36,222 - DEBUG - Requesting: http://10.0.0.242:8082/project/98244cb1-1fed-4b3a-bb56-bcde5a2ec1cd 2025-10-29 17:36:36,297 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/41d89197-0b3b-41f9-9562-e434b9401e8a 2025-10-29 17:36:36,311 - DEBUG - ==>Verifying data for policy with id: 22420265-78cb-4846-a1c3-7b7daf86c7e6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68372782', 'ctest-policy1-27858951'] 2025-10-29 17:36:36,311 - INFO - VN ctest-vn4-69089681 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 17:36:36,311 - DEBUG - Verifying the vn in opserver 2025-10-29 17:36:36,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68372782:ctest-vn4-69089681 virtual network link through opserver 10.0.0.242 2025-10-29 17:36:36,312 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-29 17:36:36,609 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-29 17:36:36,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68372782:ctest-vn4-69089681', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68372782:ctest-vn4-69089681?flat'} 2025-10-29 17:36:36,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68372782:ctest-vn4-69089681 is found in opserver 2025-10-29 17:36:36,672 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 17:36:36,678 - DEBUG - VRF ids for VN ctest-vn4-69089681: {} 2025-10-29 17:36:36,678 - DEBUG - ====Verifying data for ctest-policy1-27858951 in API_Server ====== 2025-10-29 17:36:36,678 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-29 17:36:36,690 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2fa9b7e6-e606-4f3d-b674-0ade35196e22 2025-10-29 17:36:36,704 - DEBUG - Requesting: http://10.0.0.242:8082/project/98244cb1-1fed-4b3a-bb56-bcde5a2ec1cd 2025-10-29 17:36:36,776 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/22420265-78cb-4846-a1c3-7b7daf86c7e6 2025-10-29 17:36:36,785 - INFO - Verified policy ctest-policy1-27858951 in API Server, Result: True 2025-10-29 17:36:36,785 - INFO - Done with setup and verification, moving onto test .. 2025-10-29 17:36:36,793 - INFO - Deleting VN ctest-vn4-69089681 2025-10-29 17:36:36,936 - DEBUG - Response for deleting network () 2025-10-29 17:36:36,936 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/098299f8-c2d1-4f03-9bd4-3a8537cd1e29 2025-10-29 17:36:36,941 - DEBUG - Response Code: 404 2025-10-29 17:36:36,941 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-29 17:36:36,946 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2fa9b7e6-e606-4f3d-b674-0ade35196e22 2025-10-29 17:36:37,003 - DEBUG - Requesting: http://10.0.0.242:8082/project/98244cb1-1fed-4b3a-bb56-bcde5a2ec1cd 2025-10-29 17:36:37,078 - INFO - Validated that VN ctest-vn4-69089681 is not found in API Server 2025-10-29 17:36:37,088 - DEBUG - VN ctest-vn4-69089681 is not present in Agent 10.0.0.242 2025-10-29 17:36:37,088 - INFO - Validated that VN ctest-vn4-69089681 is not in any agent 2025-10-29 17:36:37,101 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69089681 info 2025-10-29 17:36:37,127 - INFO - Deleted policy ctest-policy1-27858951 2025-10-29 17:36:37,298 - DEBUG - policy ctest-policy1-27858951 is not found in API Server 2025-10-29 17:36:37,559 - DEBUG - No XMPP flaps were noticed during the test
2025-10-29 17:36:37,559 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-29 17:36:37,559 - INFO - -------------------------------------------------------------------------------- 2025-10-29 17:36:37,851 - DEBUG - No XMPP flaps were noticed during the test
2025-10-29 17:36:37,851 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-29 17:36:37,851 - INFO - -------------------------------------------------------------------------------- 2025-10-29 17:36:38,515 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-68372782, ID : 98244cb1-1fed-4b3a-bb56-bcde5a2ec1cd