2026-05-03 09:23:28,215 - INFO - Domain Default found not creating 2026-05-03 09:23:28,407 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45706359 not found, creating it 2026-05-03 09:23:28,866 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45706359, ID : 106443df-2a95-483d-b137-17eea9a28c56 2026-05-03 09:23:30,319 - INFO - ================================================================================ 2026-05-03 09:23:30,319 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-03 09:23:30,573 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-03 09:23:30,573 - INFO - Initial checks done. Running the testcase now 2026-05-03 09:23:30,573 - INFO - 2026-05-03 09:23:30,573 - INFO - ================================================================================ 2026-05-03 09:23:30,573 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-03 09:23:30,573 - 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-05-03 09:23:30,865 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-03 09:23:30,865 - INFO - Initial checks done. Running the testcase now 2026-05-03 09:23:30,865 - INFO - 2026-05-03 09:23:31,224 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45706359:ctest-vn4-43436823, 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-45706359:ctest-vn4-43436823, 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-45706359:ctest-vn4-43436823, 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-45706359:ctest-vn4-43436823, 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-05-03 09:23:31,750 - DEBUG - Response for create_network : {'network': {'id': '6a5be67b-5cf1-4895-8d48-615ebe023a92', 'name': 'ctest-vn4-43436823', 'tenant_id': '106443df2a95483db13717eea9a28c56', 'project_id': '106443df2a95483db13717eea9a28c56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45706359', 'ctest-vn4-43436823'], 'port_security_enabled': True, 'description': ''}} 2026-05-03 09:23:31,923 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abe6f95c-8f73-4fc2-aed8-3ba1cf3bc059', 'name': '', 'tenant_id': '106443df2a95483db13717eea9a28c56', 'network_id': '6a5be67b-5cf1-4895-8d48-615ebe023a92', 'ip_version': 4, 'cidr': '41.191.131.0/26', 'allocation_pools': [{'start': '41.191.131.2', 'end': '41.191.131.62'}], 'gateway_ip': '41.191.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.191.131.2', 'tags': [], 'project_id': '106443df2a95483db13717eea9a28c56'}} 2026-05-03 09:23:32,076 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa334e3c-d9e8-4d7c-863e-764986e73e11', 'name': '', 'tenant_id': '106443df2a95483db13717eea9a28c56', 'network_id': '6a5be67b-5cf1-4895-8d48-615ebe023a92', 'ip_version': 6, 'cidr': '3de8:9446:7bfd:6377:e395:136b::/96', 'allocation_pools': [{'start': '3de8:9446:7bfd:6377:e395:136b:0:2', 'end': '3de8:9446:7bfd:6377:e395:136b:ffff:fffe'}], 'gateway_ip': '3de8:9446:7bfd:6377:e395:136b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3de8:9446:7bfd:6377:e395:136b:0:2', 'tags': [], 'project_id': '106443df2a95483db13717eea9a28c56'}} 2026-05-03 09:23:32,094 - INFO - Created VN ctest-vn4-43436823 2026-05-03 09:23:32,144 - DEBUG - VN ctest-vn4-43436823 UUID is 6a5be67b-5cf1-4895-8d48-615ebe023a92 2026-05-03 09:23:32,334 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a5be67b-5cf1-4895-8d48-615ebe023a92', 'name': 'ctest-vn4-43436823', 'tenant_id': '106443df2a95483db13717eea9a28c56', 'project_id': '106443df2a95483db13717eea9a28c56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abe6f95c-8f73-4fc2-aed8-3ba1cf3bc059', 'aa334e3c-d9e8-4d7c-863e-764986e73e11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45706359', 'ctest-vn4-43436823'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45706359', 'ctest-policy1-36399186']], 'subnet_ipam': [{'subnet_cidr': '41.191.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3de8:9446:7bfd:6377:e395:136b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-03 09:23:32,496 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-03 09:23:32,797 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-03 09:23:32,828 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3f5c7-1515-4732-a643-c4088fd1bf1b 2026-05-03 09:23:32,844 - DEBUG - Requesting: http://10.0.0.50:8082/project/106443df-2a95-483d-b137-17eea9a28c56 2026-05-03 09:23:32,917 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a5be67b-5cf1-4895-8d48-615ebe023a92 2026-05-03 09:23:32,931 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a5be67b-5cf1-4895-8d48-615ebe023a92 2026-05-03 09:23:32,941 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2e370ac-a841-4c9e-9afd-ee3310789eec 2026-05-03 09:23:32,947 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2e370ac-a841-4c9e-9afd-ee3310789eec 2026-05-03 09:23:32,955 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/487ab13b-1e65-4709-890d-ab869152823b 2026-05-03 09:23:32,961 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-03 09:23:32,961 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a5be67b-5cf1-4895-8d48-615ebe023a92 2026-05-03 09:23:32,971 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2e370ac-a841-4c9e-9afd-ee3310789eec 2026-05-03 09:23:32,986 - INFO - Verified VN network id 11 for VN 6a5be67b-5cf1-4895-8d48-615ebe023a92 2026-05-03 09:23:32,986 - INFO - Verifications in API Server for VN ctest-vn4-43436823 passed 2026-05-03 09:23:32,986 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a5be67b-5cf1-4895-8d48-615ebe023a92 2026-05-03 09:23:32,995 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2e370ac-a841-4c9e-9afd-ee3310789eec 2026-05-03 09:23:33,001 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2e370ac-a841-4c9e-9afd-ee3310789eec 2026-05-03 09:23:33,008 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/487ab13b-1e65-4709-890d-ab869152823b 2026-05-03 09:23:33,019 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45706359:ctest-vn4-43436823', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45706359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7663972608415713429', 'uuid-lslong': '10180494017213643410'}, 'enable': 'true', 'created': '2026-05-03T09:23:31', 'last-modified': '2026-05-03T09:23:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711102'} 2026-05-03 09:23:33,026 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-03 09:23:33,026 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43436823 passed 2026-05-03 09:23:33,026 - DEBUG - ====Verifying policy data for ctest-vn4-43436823 in API_Server ====== 2026-05-03 09:23:33,026 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-03 09:23:33,032 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3f5c7-1515-4732-a643-c4088fd1bf1b 2026-05-03 09:23:33,042 - DEBUG - Requesting: http://10.0.0.50:8082/project/106443df-2a95-483d-b137-17eea9a28c56 2026-05-03 09:23:33,110 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6a5be67b-5cf1-4895-8d48-615ebe023a92 2026-05-03 09:23:33,123 - DEBUG - ==>Verifying data for policy with id: a301becd-dca0-4a1d-a663-4ddc92e0fb0b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45706359', 'ctest-policy1-36399186'] 2026-05-03 09:23:33,123 - INFO - VN ctest-vn4-43436823 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-03 09:23:33,123 - DEBUG - Verifying the vn in opserver 2026-05-03 09:23:33,123 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45706359:ctest-vn4-43436823 virtual network link through opserver 10.0.0.50 2026-05-03 09:23:33,124 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-03 09:23:33,419 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-03 09:23:33,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45706359:ctest-vn4-43436823', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45706359:ctest-vn4-43436823?flat'} 2026-05-03 09:23:33,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45706359:ctest-vn4-43436823 is found in opserver 2026-05-03 09:23:33,796 - DEBUG - Do not have enough data to verify VN in agent 2026-05-03 09:23:33,800 - DEBUG - VRF ids for VN ctest-vn4-43436823: {} 2026-05-03 09:23:33,801 - DEBUG - ====Verifying data for ctest-policy1-36399186 in API_Server ====== 2026-05-03 09:23:33,801 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-03 09:23:33,812 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3f5c7-1515-4732-a643-c4088fd1bf1b 2026-05-03 09:23:33,825 - DEBUG - Requesting: http://10.0.0.50:8082/project/106443df-2a95-483d-b137-17eea9a28c56 2026-05-03 09:23:33,902 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/a301becd-dca0-4a1d-a663-4ddc92e0fb0b 2026-05-03 09:23:33,912 - INFO - Verified policy ctest-policy1-36399186 in API Server, Result: True 2026-05-03 09:23:33,912 - INFO - Done with setup and verification, moving onto test .. 2026-05-03 09:23:33,921 - INFO - Deleting VN ctest-vn4-43436823 2026-05-03 09:23:34,053 - DEBUG - Response for deleting network () 2026-05-03 09:23:34,053 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2e370ac-a841-4c9e-9afd-ee3310789eec 2026-05-03 09:23:34,058 - DEBUG - Response Code: 404 2026-05-03 09:23:34,058 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-03 09:23:34,064 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3f5c7-1515-4732-a643-c4088fd1bf1b 2026-05-03 09:23:34,117 - DEBUG - Requesting: http://10.0.0.50:8082/project/106443df-2a95-483d-b137-17eea9a28c56 2026-05-03 09:23:34,195 - INFO - Validated that VN ctest-vn4-43436823 is not found in API Server 2026-05-03 09:23:34,207 - DEBUG - VN ctest-vn4-43436823 is not present in Agent 10.0.0.50 2026-05-03 09:23:34,207 - INFO - Validated that VN ctest-vn4-43436823 is not in any agent 2026-05-03 09:23:34,222 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43436823 info 2026-05-03 09:23:34,256 - INFO - Deleted policy ctest-policy1-36399186 2026-05-03 09:23:34,431 - DEBUG - policy ctest-policy1-36399186 is not found in API Server 2026-05-03 09:23:34,688 - DEBUG - No XMPP flaps were noticed during the test