2026-10-29 22:18:43,467 - INFO - Domain Default found not creating 2026-10-29 22:18:43,672 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29083251 not found, creating it 2026-10-29 22:18:44,232 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29083251, ID : 1441a52f-67e7-4616-afbc-bf70a73e2168 2026-10-29 22:18:46,114 - INFO - ================================================================================ 2026-10-29 22:18:46,115 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 22:18:46,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-10-29 22:18:46,377 - INFO - Initial checks done. Running the testcase now 2026-10-29 22:18:46,377 - INFO - 2026-10-29 22:18:46,377 - INFO - ================================================================================ 2026-10-29 22:18:46,377 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 22:18:46,377 - 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-10-29 22:18:46,671 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-10-29 22:18:46,672 - INFO - Initial checks done. Running the testcase now 2026-10-29 22:18:46,672 - INFO - 2026-10-29 22:18:47,100 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29083251:ctest-vn4-39805818, 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-29083251:ctest-vn4-39805818, 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-29083251:ctest-vn4-39805818, 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-29083251:ctest-vn4-39805818, 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-10-29 22:18:47,630 - DEBUG - Response for create_network : {'network': {'id': '55b782ca-b55c-4ed8-b7db-3a5b4101c9b0', 'name': 'ctest-vn4-39805818', 'tenant_id': '1441a52f67e74616afbcbf70a73e2168', 'project_id': '1441a52f67e74616afbcbf70a73e2168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29083251', 'ctest-vn4-39805818'], 'port_security_enabled': True, 'description': ''}} 2026-10-29 22:18:47,860 - DEBUG - Response for create_subnet : {'subnet': {'id': '99ec0604-ab76-4582-bc11-75a3341d3c34', 'name': '', 'tenant_id': '1441a52f67e74616afbcbf70a73e2168', 'network_id': '55b782ca-b55c-4ed8-b7db-3a5b4101c9b0', 'ip_version': 4, 'cidr': '25.124.35.192/26', 'allocation_pools': [{'start': '25.124.35.194', 'end': '25.124.35.254'}], 'gateway_ip': '25.124.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.124.35.194', 'tags': [], 'project_id': '1441a52f67e74616afbcbf70a73e2168'}} 2026-10-29 22:18:48,023 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b7f53f8-9fc1-4c5f-b57d-1521bf328959', 'name': '', 'tenant_id': '1441a52f67e74616afbcbf70a73e2168', 'network_id': '55b782ca-b55c-4ed8-b7db-3a5b4101c9b0', 'ip_version': 6, 'cidr': '2a52:8a25:2f28:c1d1:5c8d:ac04::/96', 'allocation_pools': [{'start': '2a52:8a25:2f28:c1d1:5c8d:ac04:0:2', 'end': '2a52:8a25:2f28:c1d1:5c8d:ac04:ffff:fffe'}], 'gateway_ip': '2a52:8a25:2f28:c1d1:5c8d:ac04:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a52:8a25:2f28:c1d1:5c8d:ac04:0:2', 'tags': [], 'project_id': '1441a52f67e74616afbcbf70a73e2168'}} 2026-10-29 22:18:48,058 - INFO - Created VN ctest-vn4-39805818 2026-10-29 22:18:48,111 - DEBUG - VN ctest-vn4-39805818 UUID is 55b782ca-b55c-4ed8-b7db-3a5b4101c9b0 2026-10-29 22:18:48,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55b782ca-b55c-4ed8-b7db-3a5b4101c9b0', 'name': 'ctest-vn4-39805818', 'tenant_id': '1441a52f67e74616afbcbf70a73e2168', 'project_id': '1441a52f67e74616afbcbf70a73e2168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['99ec0604-ab76-4582-bc11-75a3341d3c34', '2b7f53f8-9fc1-4c5f-b57d-1521bf328959'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29083251', 'ctest-vn4-39805818'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29083251', 'ctest-policy1-15741082']], 'subnet_ipam': [{'subnet_cidr': '25.124.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a52:8a25:2f28:c1d1:5c8d:ac04::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-29 22:18:48,510 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-29 22:18:48,889 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-29 22:18:48,918 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9fdedb90-1516-45f0-a6de-3d165129d486 2026-10-29 22:18:48,933 - DEBUG - Requesting: http://10.0.0.38:8082/project/1441a52f-67e7-4616-afbc-bf70a73e2168 2026-10-29 22:18:49,012 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/55b782ca-b55c-4ed8-b7db-3a5b4101c9b0 2026-10-29 22:18:49,027 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/55b782ca-b55c-4ed8-b7db-3a5b4101c9b0 2026-10-29 22:18:49,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8f378508-7305-4595-8112-bd6ec43bb4e6 2026-10-29 22:18:49,047 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8f378508-7305-4595-8112-bd6ec43bb4e6 2026-10-29 22:18:49,056 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c487415c-30b2-46b7-bcdb-a3b3b613f763 2026-10-29 22:18:49,064 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 22:18:49,065 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/55b782ca-b55c-4ed8-b7db-3a5b4101c9b0 2026-10-29 22:18:49,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8f378508-7305-4595-8112-bd6ec43bb4e6 2026-10-29 22:18:49,099 - INFO - Verified VN network id 12 for VN 55b782ca-b55c-4ed8-b7db-3a5b4101c9b0 2026-10-29 22:18:49,099 - INFO - Verifications in API Server for VN ctest-vn4-39805818 passed 2026-10-29 22:18:49,099 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/55b782ca-b55c-4ed8-b7db-3a5b4101c9b0 2026-10-29 22:18:49,115 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8f378508-7305-4595-8112-bd6ec43bb4e6 2026-10-29 22:18:49,125 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8f378508-7305-4595-8112-bd6ec43bb4e6 2026-10-29 22:18:49,133 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c487415c-30b2-46b7-bcdb-a3b3b613f763 2026-10-29 22:18:49,149 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29083251:ctest-vn4-39805818', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29083251', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6176549221099654872', 'uuid-lslong': '13248246892447517104'}, 'enable': 'true', 'created': '2026-10-29T22:18:47', 'last-modified': '2026-10-29T22:18:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.837341'} 2026-10-29 22:18:49,156 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 22:18:49,156 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39805818 passed 2026-10-29 22:18:49,157 - DEBUG - ====Verifying policy data for ctest-vn4-39805818 in API_Server ====== 2026-10-29 22:18:49,157 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-29 22:18:49,163 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9fdedb90-1516-45f0-a6de-3d165129d486 2026-10-29 22:18:49,174 - DEBUG - Requesting: http://10.0.0.38:8082/project/1441a52f-67e7-4616-afbc-bf70a73e2168 2026-10-29 22:18:49,251 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/55b782ca-b55c-4ed8-b7db-3a5b4101c9b0 2026-10-29 22:18:49,261 - DEBUG - ==>Verifying data for policy with id: a95a7665-24f7-4463-a179-8a23d2e1dc2b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29083251', 'ctest-policy1-15741082'] 2026-10-29 22:18:49,261 - INFO - VN ctest-vn4-39805818 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-29 22:18:49,262 - DEBUG - Verifying the vn in opserver 2026-10-29 22:18:49,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29083251:ctest-vn4-39805818 virtual network link through opserver 10.0.0.38 2026-10-29 22:18:49,262 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-29 22:18:49,634 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-29 22:18:49,692 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29083251:ctest-vn4-39805818', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29083251:ctest-vn4-39805818?flat'} 2026-10-29 22:18:49,692 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29083251:ctest-vn4-39805818 is found in opserver 2026-10-29 22:18:49,704 - DEBUG - Do not have enough data to verify VN in agent 2026-10-29 22:18:49,710 - DEBUG - VRF ids for VN ctest-vn4-39805818: {} 2026-10-29 22:18:49,711 - DEBUG - ====Verifying data for ctest-policy1-15741082 in API_Server ====== 2026-10-29 22:18:49,711 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-29 22:18:49,718 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9fdedb90-1516-45f0-a6de-3d165129d486 2026-10-29 22:18:49,731 - DEBUG - Requesting: http://10.0.0.38:8082/project/1441a52f-67e7-4616-afbc-bf70a73e2168 2026-10-29 22:18:49,808 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a95a7665-24f7-4463-a179-8a23d2e1dc2b 2026-10-29 22:18:49,819 - INFO - Verified policy ctest-policy1-15741082 in API Server, Result: True 2026-10-29 22:18:49,819 - INFO - Done with setup and verification, moving onto test .. 2026-10-29 22:18:49,830 - INFO - Deleting VN ctest-vn4-39805818 2026-10-29 22:18:49,972 - DEBUG - Response for deleting network () 2026-10-29 22:18:49,972 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8f378508-7305-4595-8112-bd6ec43bb4e6 2026-10-29 22:18:49,979 - DEBUG - Response Code: 404 2026-10-29 22:18:49,979 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-29 22:18:49,986 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9fdedb90-1516-45f0-a6de-3d165129d486 2026-10-29 22:18:50,041 - DEBUG - Requesting: http://10.0.0.38:8082/project/1441a52f-67e7-4616-afbc-bf70a73e2168 2026-10-29 22:18:50,116 - INFO - Validated that VN ctest-vn4-39805818 is not found in API Server 2026-10-29 22:18:50,130 - DEBUG - VN ctest-vn4-39805818 is not present in Agent 10.0.0.38 2026-10-29 22:18:50,130 - INFO - Validated that VN ctest-vn4-39805818 is not in any agent 2026-10-29 22:18:50,151 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39805818 info 2026-10-29 22:18:50,183 - INFO - Deleted policy ctest-policy1-15741082 2026-10-29 22:18:50,370 - DEBUG - policy ctest-policy1-15741082 is not found in API Server 2026-10-29 22:18:50,641 - DEBUG - No XMPP flaps were noticed during the test