2026-02-20 02:36:12,166 - INFO - Domain Default found not creating 2026-02-20 02:36:12,350 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91489767 not found, creating it 2026-02-20 02:36:12,828 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91489767, ID : bade9775-d5ad-4363-89e5-c8d6a6f7d761 2026-02-20 02:36:14,412 - INFO - ================================================================================ 2026-02-20 02:36:14,412 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 02:36:14,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-02-20 02:36:14,681 - INFO - Initial checks done. Running the testcase now 2026-02-20 02:36:14,681 - INFO - 2026-02-20 02:36:14,681 - INFO - ================================================================================ 2026-02-20 02:36:14,681 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 02:36:14,681 - 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. 2026-02-20 02:36:14,966 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-02-20 02:36:14,966 - INFO - Initial checks done. Running the testcase now 2026-02-20 02:36:14,967 - INFO - 2026-02-20 02:36:15,327 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91489767:ctest-vn4-17721105, 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-91489767:ctest-vn4-17721105, 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-91489767:ctest-vn4-17721105, 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-91489767:ctest-vn4-17721105, 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] 2026-02-20 02:36:15,842 - DEBUG - Response for create_network : {'network': {'id': '3525f358-96ae-4c87-84b2-7f172de61bfe', 'name': 'ctest-vn4-17721105', 'tenant_id': 'bade9775d5ad436389e5c8d6a6f7d761', 'project_id': 'bade9775d5ad436389e5c8d6a6f7d761', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91489767', 'ctest-vn4-17721105'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 02:36:16,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '01261675-6e46-4d60-a7da-623a0627143a', 'name': '', 'tenant_id': 'bade9775d5ad436389e5c8d6a6f7d761', 'network_id': '3525f358-96ae-4c87-84b2-7f172de61bfe', 'ip_version': 4, 'cidr': '191.61.114.64/26', 'allocation_pools': [{'start': '191.61.114.66', 'end': '191.61.114.126'}], 'gateway_ip': '191.61.114.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.61.114.66', 'tags': [], 'project_id': 'bade9775d5ad436389e5c8d6a6f7d761'}} 2026-02-20 02:36:16,170 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dec413b6-f447-4d44-a5eb-f2ba45a5d1ac', 'name': '', 'tenant_id': 'bade9775d5ad436389e5c8d6a6f7d761', 'network_id': '3525f358-96ae-4c87-84b2-7f172de61bfe', 'ip_version': 6, 'cidr': '2a78:4021:4e95:d653:3101:aad1::/96', 'allocation_pools': [{'start': '2a78:4021:4e95:d653:3101:aad1:0:2', 'end': '2a78:4021:4e95:d653:3101:aad1:ffff:fffe'}], 'gateway_ip': '2a78:4021:4e95:d653:3101:aad1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a78:4021:4e95:d653:3101:aad1:0:2', 'tags': [], 'project_id': 'bade9775d5ad436389e5c8d6a6f7d761'}} 2026-02-20 02:36:16,189 - INFO - Created VN ctest-vn4-17721105 2026-02-20 02:36:16,237 - DEBUG - VN ctest-vn4-17721105 UUID is 3525f358-96ae-4c87-84b2-7f172de61bfe 2026-02-20 02:36:16,433 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3525f358-96ae-4c87-84b2-7f172de61bfe', 'name': 'ctest-vn4-17721105', 'tenant_id': 'bade9775d5ad436389e5c8d6a6f7d761', 'project_id': 'bade9775d5ad436389e5c8d6a6f7d761', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01261675-6e46-4d60-a7da-623a0627143a', 'dec413b6-f447-4d44-a5eb-f2ba45a5d1ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91489767', 'ctest-vn4-17721105'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91489767', 'ctest-policy1-47470250']], 'subnet_ipam': [{'subnet_cidr': '191.61.114.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a78:4021:4e95:d653:3101:aad1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 02:36:16,601 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-20 02:36:16,902 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-20 02:36:16,934 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ca049275-da47-401c-96b2-d127b0814970 2026-02-20 02:36:16,946 - DEBUG - Requesting: http://10.0.0.141:8082/project/bade9775-d5ad-4363-89e5-c8d6a6f7d761 2026-02-20 02:36:17,018 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3525f358-96ae-4c87-84b2-7f172de61bfe 2026-02-20 02:36:17,030 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3525f358-96ae-4c87-84b2-7f172de61bfe 2026-02-20 02:36:17,040 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8faf8c18-6b85-49d3-8966-64520a633697 2026-02-20 02:36:17,047 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8faf8c18-6b85-49d3-8966-64520a633697 2026-02-20 02:36:17,054 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/3eec80f6-19ae-4d75-801c-3acd632194a5 2026-02-20 02:36:17,061 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 02:36:17,061 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3525f358-96ae-4c87-84b2-7f172de61bfe 2026-02-20 02:36:17,070 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8faf8c18-6b85-49d3-8966-64520a633697 2026-02-20 02:36:17,084 - INFO - Verified VN network id 12 for VN 3525f358-96ae-4c87-84b2-7f172de61bfe 2026-02-20 02:36:17,084 - INFO - Verifications in API Server for VN ctest-vn4-17721105 passed 2026-02-20 02:36:17,084 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3525f358-96ae-4c87-84b2-7f172de61bfe 2026-02-20 02:36:17,093 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8faf8c18-6b85-49d3-8966-64520a633697 2026-02-20 02:36:17,099 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8faf8c18-6b85-49d3-8966-64520a633697 2026-02-20 02:36:17,105 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/3eec80f6-19ae-4d75-801c-3acd632194a5 2026-02-20 02:36:17,117 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91489767:ctest-vn4-17721105', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91489767', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3829734619959151751', 'uuid-lslong': '9561844696392014846'}, 'enable': 'true', 'created': '2026-02-20T02:36:15', 'last-modified': '2026-02-20T02:36:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708677'} 2026-02-20 02:36:17,124 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 02:36:17,124 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17721105 passed 2026-02-20 02:36:17,124 - DEBUG - ====Verifying policy data for ctest-vn4-17721105 in API_Server ====== 2026-02-20 02:36:17,124 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-20 02:36:17,130 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ca049275-da47-401c-96b2-d127b0814970 2026-02-20 02:36:17,142 - DEBUG - Requesting: http://10.0.0.141:8082/project/bade9775-d5ad-4363-89e5-c8d6a6f7d761 2026-02-20 02:36:17,215 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3525f358-96ae-4c87-84b2-7f172de61bfe 2026-02-20 02:36:17,225 - DEBUG - ==>Verifying data for policy with id: e8efe2ce-e41e-4485-9cfd-354449c0c007, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91489767', 'ctest-policy1-47470250'] 2026-02-20 02:36:17,225 - INFO - VN ctest-vn4-17721105 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 02:36:17,225 - DEBUG - Verifying the vn in opserver 2026-02-20 02:36:17,225 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91489767:ctest-vn4-17721105 virtual network link through opserver 10.0.0.141 2026-02-20 02:36:17,225 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-20 02:36:17,521 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-20 02:36:17,582 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91489767:ctest-vn4-17721105', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91489767:ctest-vn4-17721105?flat'} 2026-02-20 02:36:17,582 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91489767:ctest-vn4-17721105 is found in opserver 2026-02-20 02:36:17,592 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 02:36:17,597 - DEBUG - VRF ids for VN ctest-vn4-17721105: {} 2026-02-20 02:36:17,597 - DEBUG - ====Verifying data for ctest-policy1-47470250 in API_Server ====== 2026-02-20 02:36:17,597 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-20 02:36:17,603 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ca049275-da47-401c-96b2-d127b0814970 2026-02-20 02:36:17,615 - DEBUG - Requesting: http://10.0.0.141:8082/project/bade9775-d5ad-4363-89e5-c8d6a6f7d761 2026-02-20 02:36:17,683 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/e8efe2ce-e41e-4485-9cfd-354449c0c007 2026-02-20 02:36:17,692 - INFO - Verified policy ctest-policy1-47470250 in API Server, Result: True 2026-02-20 02:36:17,692 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 02:36:17,700 - INFO - Deleting VN ctest-vn4-17721105 2026-02-20 02:36:17,827 - DEBUG - Response for deleting network () 2026-02-20 02:36:17,827 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8faf8c18-6b85-49d3-8966-64520a633697 2026-02-20 02:36:17,832 - DEBUG - Response Code: 404 2026-02-20 02:36:17,833 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-20 02:36:17,837 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ca049275-da47-401c-96b2-d127b0814970 2026-02-20 02:36:17,890 - DEBUG - Requesting: http://10.0.0.141:8082/project/bade9775-d5ad-4363-89e5-c8d6a6f7d761 2026-02-20 02:36:17,962 - INFO - Validated that VN ctest-vn4-17721105 is not found in API Server 2026-02-20 02:36:17,971 - DEBUG - VN ctest-vn4-17721105 is not present in Agent 10.0.0.141 2026-02-20 02:36:17,971 - INFO - Validated that VN ctest-vn4-17721105 is not in any agent 2026-02-20 02:36:17,985 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17721105 info 2026-02-20 02:36:18,011 - INFO - Deleted policy ctest-policy1-47470250 2026-02-20 02:36:18,181 - DEBUG - policy ctest-policy1-47470250 is not found in API Server 2026-02-20 02:36:18,438 - DEBUG - No XMPP flaps were noticed during the test 2026-02-20 02:36:18,438 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-20 02:36:18,438 - INFO - -------------------------------------------------------------------------------- 2026-02-20 02:36:18,742 - DEBUG - No XMPP flaps were noticed during the test 2026-02-20 02:36:18,742 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-20 02:36:18,742 - INFO - -------------------------------------------------------------------------------- 2026-02-20 02:36:19,435 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91489767, ID : bade9775-d5ad-4363-89e5-c8d6a6f7d761