2026-02-20 12:15:17,099 - INFO - Domain Default found not creating 2026-02-20 12:15:17,284 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61755860 not found, creating it 2026-02-20 12:15:17,774 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61755860, ID : d452947d-2c86-440d-9a31-2cb969ace9ce 2026-02-20 12:15:19,573 - INFO - ================================================================================ 2026-02-20 12:15:19,573 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 12:15:19,834 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2026-02-20 12:15:19,835 - INFO - Initial checks done. Running the testcase now 2026-02-20 12:15:19,835 - INFO - 2026-02-20 12:15:19,835 - INFO - ================================================================================ 2026-02-20 12:15:19,835 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 12:15:19,835 - 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 12:15:20,132 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with 2026-02-20 12:15:20,132 - INFO - Initial checks done. Running the testcase now 2026-02-20 12:15:20,133 - INFO - 2026-02-20 12:15:20,573 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61755860:ctest-vn4-54227677, 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-61755860:ctest-vn4-54227677, 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-61755860:ctest-vn4-54227677, 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-61755860:ctest-vn4-54227677, 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 12:15:21,151 - DEBUG - Response for create_network : {'network': {'id': '91858e66-ac75-4dfd-b34c-c9ac48b60e8b', 'name': 'ctest-vn4-54227677', 'tenant_id': 'd452947d2c86440d9a312cb969ace9ce', 'project_id': 'd452947d2c86440d9a312cb969ace9ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61755860', 'ctest-vn4-54227677'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 12:15:21,315 - DEBUG - Response for create_subnet : {'subnet': {'id': '766cce69-70ec-46be-a742-e36dae4e7ae2', 'name': '', 'tenant_id': 'd452947d2c86440d9a312cb969ace9ce', 'network_id': '91858e66-ac75-4dfd-b34c-c9ac48b60e8b', 'ip_version': 4, 'cidr': '44.176.44.192/26', 'allocation_pools': [{'start': '44.176.44.194', 'end': '44.176.44.254'}], 'gateway_ip': '44.176.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.176.44.194', 'tags': [], 'project_id': 'd452947d2c86440d9a312cb969ace9ce'}} 2026-02-20 12:15:21,473 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6e3ffae-ad4b-441d-9622-3abb9c5b4d80', 'name': '', 'tenant_id': 'd452947d2c86440d9a312cb969ace9ce', 'network_id': '91858e66-ac75-4dfd-b34c-c9ac48b60e8b', 'ip_version': 6, 'cidr': '3357:513e:ae0:f8a5:7adc:91df::/96', 'allocation_pools': [{'start': '3357:513e:ae0:f8a5:7adc:91df:0:2', 'end': '3357:513e:ae0:f8a5:7adc:91df:ffff:fffe'}], 'gateway_ip': '3357:513e:ae0:f8a5:7adc:91df:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3357:513e:ae0:f8a5:7adc:91df:0:2', 'tags': [], 'project_id': 'd452947d2c86440d9a312cb969ace9ce'}} 2026-02-20 12:15:21,498 - INFO - Created VN ctest-vn4-54227677 2026-02-20 12:15:21,553 - DEBUG - VN ctest-vn4-54227677 UUID is 91858e66-ac75-4dfd-b34c-c9ac48b60e8b 2026-02-20 12:15:21,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91858e66-ac75-4dfd-b34c-c9ac48b60e8b', 'name': 'ctest-vn4-54227677', 'tenant_id': 'd452947d2c86440d9a312cb969ace9ce', 'project_id': 'd452947d2c86440d9a312cb969ace9ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['766cce69-70ec-46be-a742-e36dae4e7ae2', 'c6e3ffae-ad4b-441d-9622-3abb9c5b4d80'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61755860', 'ctest-vn4-54227677'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61755860', 'ctest-policy1-79382615']], 'subnet_ipam': [{'subnet_cidr': '44.176.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3357:513e:ae0:f8a5:7adc:91df::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 12:15:21,961 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 12:15:22,320 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 12:15:22,361 - DEBUG - Requesting: http://10.0.0.241:8082/domain/82491e38-2c1c-4e4b-b59d-72612b9d69c5 2026-02-20 12:15:22,375 - DEBUG - Requesting: http://10.0.0.241:8082/project/d452947d-2c86-440d-9a31-2cb969ace9ce 2026-02-20 12:15:22,454 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/91858e66-ac75-4dfd-b34c-c9ac48b60e8b 2026-02-20 12:15:22,468 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/91858e66-ac75-4dfd-b34c-c9ac48b60e8b 2026-02-20 12:15:22,478 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/13e18d11-2f4c-4fb6-8801-5ae3214fb8d7 2026-02-20 12:15:22,486 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/13e18d11-2f4c-4fb6-8801-5ae3214fb8d7 2026-02-20 12:15:22,493 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/78bef774-44e2-4b4e-83ad-4de8395f94cc 2026-02-20 12:15:22,500 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 12:15:22,500 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/91858e66-ac75-4dfd-b34c-c9ac48b60e8b 2026-02-20 12:15:22,510 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/13e18d11-2f4c-4fb6-8801-5ae3214fb8d7 2026-02-20 12:15:22,526 - INFO - Verified VN network id 11 for VN 91858e66-ac75-4dfd-b34c-c9ac48b60e8b 2026-02-20 12:15:22,527 - INFO - Verifications in API Server for VN ctest-vn4-54227677 passed 2026-02-20 12:15:22,527 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/91858e66-ac75-4dfd-b34c-c9ac48b60e8b 2026-02-20 12:15:22,537 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/13e18d11-2f4c-4fb6-8801-5ae3214fb8d7 2026-02-20 12:15:22,546 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/13e18d11-2f4c-4fb6-8801-5ae3214fb8d7 2026-02-20 12:15:22,554 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/78bef774-44e2-4b4e-83ad-4de8395f94cc 2026-02-20 12:15:22,567 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61755860:ctest-vn4-54227677', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61755860', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10485943879033245181', 'uuid-lslong': '12919923172810559115'}, 'enable': 'true', 'created': '2026-02-20T12:15:21', 'last-modified': '2026-02-20T12:15:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.806885'} 2026-02-20 12:15:22,574 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 12:15:22,574 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54227677 passed 2026-02-20 12:15:22,574 - DEBUG - ====Verifying policy data for ctest-vn4-54227677 in API_Server ====== 2026-02-20 12:15:22,574 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 12:15:22,580 - DEBUG - Requesting: http://10.0.0.241:8082/domain/82491e38-2c1c-4e4b-b59d-72612b9d69c5 2026-02-20 12:15:22,592 - DEBUG - Requesting: http://10.0.0.241:8082/project/d452947d-2c86-440d-9a31-2cb969ace9ce 2026-02-20 12:15:22,670 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/91858e66-ac75-4dfd-b34c-c9ac48b60e8b 2026-02-20 12:15:22,683 - DEBUG - ==>Verifying data for policy with id: c341b534-495d-43f9-8913-f78ca0a4351e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61755860', 'ctest-policy1-79382615'] 2026-02-20 12:15:22,683 - INFO - VN ctest-vn4-54227677 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 12:15:22,683 - DEBUG - Verifying the vn in opserver 2026-02-20 12:15:22,684 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61755860:ctest-vn4-54227677 virtual network link through opserver 10.0.0.241 2026-02-20 12:15:22,684 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-20 12:15:23,038 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-20 12:15:23,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61755860:ctest-vn4-54227677', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61755860:ctest-vn4-54227677?flat'} 2026-02-20 12:15:23,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61755860:ctest-vn4-54227677 is found in opserver 2026-02-20 12:15:23,119 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 12:15:23,123 - DEBUG - VRF ids for VN ctest-vn4-54227677: {} 2026-02-20 12:15:23,124 - DEBUG - ====Verifying data for ctest-policy1-79382615 in API_Server ====== 2026-02-20 12:15:23,124 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 12:15:23,131 - DEBUG - Requesting: http://10.0.0.241:8082/domain/82491e38-2c1c-4e4b-b59d-72612b9d69c5 2026-02-20 12:15:23,145 - DEBUG - Requesting: http://10.0.0.241:8082/project/d452947d-2c86-440d-9a31-2cb969ace9ce 2026-02-20 12:15:23,219 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/c341b534-495d-43f9-8913-f78ca0a4351e 2026-02-20 12:15:23,231 - INFO - Verified policy ctest-policy1-79382615 in API Server, Result: True 2026-02-20 12:15:23,231 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 12:15:23,242 - INFO - Deleting VN ctest-vn4-54227677 2026-02-20 12:15:23,372 - DEBUG - Response for deleting network () 2026-02-20 12:15:23,372 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/13e18d11-2f4c-4fb6-8801-5ae3214fb8d7 2026-02-20 12:15:23,378 - DEBUG - Response Code: 404 2026-02-20 12:15:23,378 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-02-20 12:15:23,384 - DEBUG - Requesting: http://10.0.0.241:8082/domain/82491e38-2c1c-4e4b-b59d-72612b9d69c5 2026-02-20 12:15:23,438 - DEBUG - Requesting: http://10.0.0.241:8082/project/d452947d-2c86-440d-9a31-2cb969ace9ce 2026-02-20 12:15:23,508 - INFO - Validated that VN ctest-vn4-54227677 is not found in API Server 2026-02-20 12:15:23,518 - DEBUG - VN ctest-vn4-54227677 is not present in Agent 10.0.0.241 2026-02-20 12:15:23,519 - INFO - Validated that VN ctest-vn4-54227677 is not in any agent 2026-02-20 12:15:23,533 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54227677 info 2026-02-20 12:15:23,561 - INFO - Deleted policy ctest-policy1-79382615 2026-02-20 12:15:23,736 - DEBUG - policy ctest-policy1-79382615 is not found in API Server 2026-02-20 12:15:23,995 - DEBUG - No XMPP flaps were noticed during the test