2026-09-19 19:11:44,884 - INFO - Domain Default found not creating 2026-09-19 19:11:45,126 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65370420 not found, creating it 2026-09-19 19:11:45,701 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65370420, ID : bf90b1c9-7771-475d-a1c0-8781440d74c0 2026-09-19 19:11:47,655 - INFO - ================================================================================ 2026-09-19 19:11:47,655 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-19 19:11:47,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-09-19 19:11:47,929 - INFO - Initial checks done. Running the testcase now 2026-09-19 19:11:47,929 - INFO - 2026-09-19 19:11:47,929 - INFO - ================================================================================ 2026-09-19 19:11:47,929 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-19 19:11:47,929 - 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-09-19 19:11:48,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-09-19 19:11:48,231 - INFO - Initial checks done. Running the testcase now 2026-09-19 19:11:48,231 - INFO - 2026-09-19 19:11:48,712 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65370420:ctest-vn4-81370602, 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-65370420:ctest-vn4-81370602, 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-65370420:ctest-vn4-81370602, 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-65370420:ctest-vn4-81370602, 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-09-19 19:11:49,326 - DEBUG - Response for create_network : {'network': {'id': '05e85a81-56f8-40b4-b39b-030bcf77baa2', 'name': 'ctest-vn4-81370602', 'tenant_id': 'bf90b1c97771475da1c08781440d74c0', 'project_id': 'bf90b1c97771475da1c08781440d74c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65370420', 'ctest-vn4-81370602'], 'port_security_enabled': True, 'description': ''}} 2026-09-19 19:11:49,567 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c49b2655-963b-46aa-bbb5-2efbff4af4bb', 'name': '', 'tenant_id': 'bf90b1c97771475da1c08781440d74c0', 'network_id': '05e85a81-56f8-40b4-b39b-030bcf77baa2', 'ip_version': 4, 'cidr': '175.39.149.0/26', 'allocation_pools': [{'start': '175.39.149.2', 'end': '175.39.149.62'}], 'gateway_ip': '175.39.149.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.39.149.2', 'tags': [], 'project_id': 'bf90b1c97771475da1c08781440d74c0'}} 2026-09-19 19:11:49,780 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccf8d323-9dc9-4140-8f42-26cc647b28de', 'name': '', 'tenant_id': 'bf90b1c97771475da1c08781440d74c0', 'network_id': '05e85a81-56f8-40b4-b39b-030bcf77baa2', 'ip_version': 6, 'cidr': '3ed3:8b9a:f6d1:e381:4e60:52da::/96', 'allocation_pools': [{'start': '3ed3:8b9a:f6d1:e381:4e60:52da:0:2', 'end': '3ed3:8b9a:f6d1:e381:4e60:52da:ffff:fffe'}], 'gateway_ip': '3ed3:8b9a:f6d1:e381:4e60:52da:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ed3:8b9a:f6d1:e381:4e60:52da:0:2', 'tags': [], 'project_id': 'bf90b1c97771475da1c08781440d74c0'}} 2026-09-19 19:11:49,811 - INFO - Created VN ctest-vn4-81370602 2026-09-19 19:11:49,867 - DEBUG - VN ctest-vn4-81370602 UUID is 05e85a81-56f8-40b4-b39b-030bcf77baa2 2026-09-19 19:11:50,160 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05e85a81-56f8-40b4-b39b-030bcf77baa2', 'name': 'ctest-vn4-81370602', 'tenant_id': 'bf90b1c97771475da1c08781440d74c0', 'project_id': 'bf90b1c97771475da1c08781440d74c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c49b2655-963b-46aa-bbb5-2efbff4af4bb', 'ccf8d323-9dc9-4140-8f42-26cc647b28de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65370420', 'ctest-vn4-81370602'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65370420', 'ctest-policy1-64554668']], 'subnet_ipam': [{'subnet_cidr': '175.39.149.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ed3:8b9a:f6d1:e381:4e60:52da::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-19 19:11:50,344 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-19 19:11:50,738 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-19 19:11:50,775 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9698228a-b6db-412f-a5f5-f735b5c0ac25 2026-09-19 19:11:50,792 - DEBUG - Requesting: http://10.0.0.185:8082/project/bf90b1c9-7771-475d-a1c0-8781440d74c0 2026-09-19 19:11:50,893 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/05e85a81-56f8-40b4-b39b-030bcf77baa2 2026-09-19 19:11:50,912 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/05e85a81-56f8-40b4-b39b-030bcf77baa2 2026-09-19 19:11:50,927 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/13afb9ee-b64d-4e89-88b1-61e22c306ecf 2026-09-19 19:11:50,937 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/13afb9ee-b64d-4e89-88b1-61e22c306ecf 2026-09-19 19:11:50,947 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/52b3c625-2d92-49b2-8d53-99b06407a074 2026-09-19 19:11:50,956 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-19 19:11:50,956 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/05e85a81-56f8-40b4-b39b-030bcf77baa2 2026-09-19 19:11:50,969 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/13afb9ee-b64d-4e89-88b1-61e22c306ecf 2026-09-19 19:11:50,992 - INFO - Verified VN network id 12 for VN 05e85a81-56f8-40b4-b39b-030bcf77baa2 2026-09-19 19:11:50,993 - INFO - Verifications in API Server for VN ctest-vn4-81370602 passed 2026-09-19 19:11:50,993 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/05e85a81-56f8-40b4-b39b-030bcf77baa2 2026-09-19 19:11:51,006 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/13afb9ee-b64d-4e89-88b1-61e22c306ecf 2026-09-19 19:11:51,015 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/13afb9ee-b64d-4e89-88b1-61e22c306ecf 2026-09-19 19:11:51,026 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/52b3c625-2d92-49b2-8d53-99b06407a074 2026-09-19 19:11:51,046 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65370420:ctest-vn4-81370602', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65370420', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '425689676342902964', 'uuid-lslong': '12941941303439506082'}, 'enable': 'true', 'created': '2026-09-19T19:11:49', 'last-modified': '2026-09-19T19:11:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937698'} 2026-09-19 19:11:51,055 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-19 19:11:51,055 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81370602 passed 2026-09-19 19:11:51,056 - DEBUG - ====Verifying policy data for ctest-vn4-81370602 in API_Server ====== 2026-09-19 19:11:51,056 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-19 19:11:51,063 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9698228a-b6db-412f-a5f5-f735b5c0ac25 2026-09-19 19:11:51,079 - DEBUG - Requesting: http://10.0.0.185:8082/project/bf90b1c9-7771-475d-a1c0-8781440d74c0 2026-09-19 19:11:51,180 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/05e85a81-56f8-40b4-b39b-030bcf77baa2 2026-09-19 19:11:51,193 - DEBUG - ==>Verifying data for policy with id: e87c1a3c-c0b7-4b3e-90bb-f342563167d9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65370420', 'ctest-policy1-64554668'] 2026-09-19 19:11:51,193 - INFO - VN ctest-vn4-81370602 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-19 19:11:51,193 - DEBUG - Verifying the vn in opserver 2026-09-19 19:11:51,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65370420:ctest-vn4-81370602 virtual network link through opserver 10.0.0.185 2026-09-19 19:11:51,193 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-19 19:11:51,592 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-19 19:11:51,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65370420:ctest-vn4-81370602', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65370420:ctest-vn4-81370602?flat'} 2026-09-19 19:11:51,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65370420:ctest-vn4-81370602 is found in opserver 2026-09-19 19:11:51,687 - DEBUG - Do not have enough data to verify VN in agent 2026-09-19 19:11:51,693 - DEBUG - VRF ids for VN ctest-vn4-81370602: {} 2026-09-19 19:11:51,694 - DEBUG - ====Verifying data for ctest-policy1-64554668 in API_Server ====== 2026-09-19 19:11:51,694 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-19 19:11:51,701 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9698228a-b6db-412f-a5f5-f735b5c0ac25 2026-09-19 19:11:51,715 - DEBUG - Requesting: http://10.0.0.185:8082/project/bf90b1c9-7771-475d-a1c0-8781440d74c0 2026-09-19 19:11:51,797 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/e87c1a3c-c0b7-4b3e-90bb-f342563167d9 2026-09-19 19:11:51,813 - INFO - Verified policy ctest-policy1-64554668 in API Server, Result: True 2026-09-19 19:11:51,813 - INFO - Done with setup and verification, moving onto test .. 2026-09-19 19:11:51,825 - INFO - Deleting VN ctest-vn4-81370602 2026-09-19 19:11:52,017 - DEBUG - Response for deleting network () 2026-09-19 19:11:52,018 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/13afb9ee-b64d-4e89-88b1-61e22c306ecf 2026-09-19 19:11:52,025 - DEBUG - Response Code: 404 2026-09-19 19:11:52,025 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-19 19:11:52,034 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9698228a-b6db-412f-a5f5-f735b5c0ac25 2026-09-19 19:11:52,091 - DEBUG - Requesting: http://10.0.0.185:8082/project/bf90b1c9-7771-475d-a1c0-8781440d74c0 2026-09-19 19:11:52,204 - INFO - Validated that VN ctest-vn4-81370602 is not found in API Server 2026-09-19 19:11:52,220 - DEBUG - VN ctest-vn4-81370602 is not present in Agent 10.0.0.185 2026-09-19 19:11:52,220 - INFO - Validated that VN ctest-vn4-81370602 is not in any agent 2026-09-19 19:11:52,241 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81370602 info 2026-09-19 19:11:52,290 - INFO - Deleted policy ctest-policy1-64554668 2026-09-19 19:11:52,491 - DEBUG - policy ctest-policy1-64554668 is not found in API Server 2026-09-19 19:11:52,760 - DEBUG - No XMPP flaps were noticed during the test