2026-03-30 13:05:53,603 - INFO - Domain Default found not creating 2026-03-30 13:05:53,809 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47792748 not found, creating it 2026-03-30 13:05:54,288 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47792748, ID : 749bc54b-af4e-4cf7-895a-918d762c12ce 2026-03-30 13:05:55,847 - INFO - ================================================================================ 2026-03-30 13:05:55,847 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 13:05:56,113 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-03-30 13:05:56,114 - INFO - Initial checks done. Running the testcase now 2026-03-30 13:05:56,114 - INFO - 2026-03-30 13:05:56,114 - INFO - ================================================================================ 2026-03-30 13:05:56,114 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 13:05:56,114 - 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-03-30 13:05:56,394 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-03-30 13:05:56,394 - INFO - Initial checks done. Running the testcase now 2026-03-30 13:05:56,394 - INFO - 2026-03-30 13:05:56,805 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47792748:ctest-vn4-67006311, 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-47792748:ctest-vn4-67006311, 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-47792748:ctest-vn4-67006311, 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-47792748:ctest-vn4-67006311, 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-03-30 13:05:57,363 - DEBUG - Response for create_network : {'network': {'id': '63c3032f-4510-42fd-a071-a31fddaf7bf7', 'name': 'ctest-vn4-67006311', 'tenant_id': '749bc54baf4e4cf7895a918d762c12ce', 'project_id': '749bc54baf4e4cf7895a918d762c12ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47792748', 'ctest-vn4-67006311'], 'port_security_enabled': True, 'description': ''}} 2026-03-30 13:05:57,564 - DEBUG - Response for create_subnet : {'subnet': {'id': '70322ffb-6c1a-48ff-bb7c-71bc1d76f07c', 'name': '', 'tenant_id': '749bc54baf4e4cf7895a918d762c12ce', 'network_id': '63c3032f-4510-42fd-a071-a31fddaf7bf7', 'ip_version': 4, 'cidr': '4.63.234.64/26', 'allocation_pools': [{'start': '4.63.234.66', 'end': '4.63.234.126'}], 'gateway_ip': '4.63.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.63.234.66', 'tags': [], 'project_id': '749bc54baf4e4cf7895a918d762c12ce'}} 2026-03-30 13:05:57,721 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd559cbeb-821b-4057-9f77-d16d74c98a4b', 'name': '', 'tenant_id': '749bc54baf4e4cf7895a918d762c12ce', 'network_id': '63c3032f-4510-42fd-a071-a31fddaf7bf7', 'ip_version': 6, 'cidr': '3b34:24f9:dd20:8152:6232:b81b::/96', 'allocation_pools': [{'start': '3b34:24f9:dd20:8152:6232:b81b:0:2', 'end': '3b34:24f9:dd20:8152:6232:b81b:ffff:fffe'}], 'gateway_ip': '3b34:24f9:dd20:8152:6232:b81b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b34:24f9:dd20:8152:6232:b81b:0:2', 'tags': [], 'project_id': '749bc54baf4e4cf7895a918d762c12ce'}} 2026-03-30 13:05:57,742 - INFO - Created VN ctest-vn4-67006311 2026-03-30 13:05:57,793 - DEBUG - VN ctest-vn4-67006311 UUID is 63c3032f-4510-42fd-a071-a31fddaf7bf7 2026-03-30 13:05:57,997 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63c3032f-4510-42fd-a071-a31fddaf7bf7', 'name': 'ctest-vn4-67006311', 'tenant_id': '749bc54baf4e4cf7895a918d762c12ce', 'project_id': '749bc54baf4e4cf7895a918d762c12ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70322ffb-6c1a-48ff-bb7c-71bc1d76f07c', 'd559cbeb-821b-4057-9f77-d16d74c98a4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47792748', 'ctest-vn4-67006311'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47792748', 'ctest-policy1-94006249']], 'subnet_ipam': [{'subnet_cidr': '4.63.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b34:24f9:dd20:8152:6232:b81b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-30 13:05:58,165 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 13:05:58,464 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 13:05:58,496 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f2f2ae3c-a347-4004-a6a3-9fdc2c6a8ed8 2026-03-30 13:05:58,512 - DEBUG - Requesting: http://10.0.0.22:8082/project/749bc54b-af4e-4cf7-895a-918d762c12ce 2026-03-30 13:05:58,583 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c3032f-4510-42fd-a071-a31fddaf7bf7 2026-03-30 13:05:58,597 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c3032f-4510-42fd-a071-a31fddaf7bf7 2026-03-30 13:05:58,611 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab29e9ed-1063-4fed-9cd7-5f4e834e2979 2026-03-30 13:05:58,618 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab29e9ed-1063-4fed-9cd7-5f4e834e2979 2026-03-30 13:05:58,625 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/50407ac1-99af-482c-8d03-886ec5eae5ce 2026-03-30 13:05:58,630 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 13:05:58,631 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c3032f-4510-42fd-a071-a31fddaf7bf7 2026-03-30 13:05:58,640 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab29e9ed-1063-4fed-9cd7-5f4e834e2979 2026-03-30 13:05:58,655 - INFO - Verified VN network id 11 for VN 63c3032f-4510-42fd-a071-a31fddaf7bf7 2026-03-30 13:05:58,655 - INFO - Verifications in API Server for VN ctest-vn4-67006311 passed 2026-03-30 13:05:58,655 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c3032f-4510-42fd-a071-a31fddaf7bf7 2026-03-30 13:05:58,664 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab29e9ed-1063-4fed-9cd7-5f4e834e2979 2026-03-30 13:05:58,671 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab29e9ed-1063-4fed-9cd7-5f4e834e2979 2026-03-30 13:05:58,677 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/50407ac1-99af-482c-8d03-886ec5eae5ce 2026-03-30 13:05:58,688 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47792748:ctest-vn4-67006311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47792748', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7188592931770483453', 'uuid-lslong': '11561201075695352823'}, 'enable': 'true', 'created': '2026-03-30T13:05:57', 'last-modified': '2026-03-30T13:05:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.721276'} 2026-03-30 13:05:58,695 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 13:05:58,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67006311 passed 2026-03-30 13:05:58,695 - DEBUG - ====Verifying policy data for ctest-vn4-67006311 in API_Server ====== 2026-03-30 13:05:58,696 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 13:05:58,701 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f2f2ae3c-a347-4004-a6a3-9fdc2c6a8ed8 2026-03-30 13:05:58,713 - DEBUG - Requesting: http://10.0.0.22:8082/project/749bc54b-af4e-4cf7-895a-918d762c12ce 2026-03-30 13:05:58,783 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/63c3032f-4510-42fd-a071-a31fddaf7bf7 2026-03-30 13:05:58,796 - DEBUG - ==>Verifying data for policy with id: 06c05edc-a45d-480b-8944-e2c1eef8589d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47792748', 'ctest-policy1-94006249'] 2026-03-30 13:05:58,796 - INFO - VN ctest-vn4-67006311 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-30 13:05:58,796 - DEBUG - Verifying the vn in opserver 2026-03-30 13:05:58,796 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47792748:ctest-vn4-67006311 virtual network link through opserver 10.0.0.22 2026-03-30 13:05:58,796 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-30 13:05:59,089 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-30 13:05:59,157 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47792748:ctest-vn4-67006311', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47792748:ctest-vn4-67006311?flat'} 2026-03-30 13:05:59,157 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47792748:ctest-vn4-67006311 is found in opserver 2026-03-30 13:05:59,169 - DEBUG - Do not have enough data to verify VN in agent 2026-03-30 13:05:59,181 - DEBUG - VRF ids for VN ctest-vn4-67006311: {} 2026-03-30 13:05:59,182 - DEBUG - ====Verifying data for ctest-policy1-94006249 in API_Server ====== 2026-03-30 13:05:59,182 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 13:05:59,187 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f2f2ae3c-a347-4004-a6a3-9fdc2c6a8ed8 2026-03-30 13:05:59,198 - DEBUG - Requesting: http://10.0.0.22:8082/project/749bc54b-af4e-4cf7-895a-918d762c12ce 2026-03-30 13:05:59,285 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/06c05edc-a45d-480b-8944-e2c1eef8589d 2026-03-30 13:05:59,296 - INFO - Verified policy ctest-policy1-94006249 in API Server, Result: True 2026-03-30 13:05:59,296 - INFO - Done with setup and verification, moving onto test .. 2026-03-30 13:05:59,304 - INFO - Deleting VN ctest-vn4-67006311 2026-03-30 13:05:59,420 - DEBUG - Response for deleting network () 2026-03-30 13:05:59,420 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ab29e9ed-1063-4fed-9cd7-5f4e834e2979 2026-03-30 13:05:59,425 - DEBUG - Response Code: 404 2026-03-30 13:05:59,425 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 13:05:59,431 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f2f2ae3c-a347-4004-a6a3-9fdc2c6a8ed8 2026-03-30 13:05:59,481 - DEBUG - Requesting: http://10.0.0.22:8082/project/749bc54b-af4e-4cf7-895a-918d762c12ce 2026-03-30 13:05:59,567 - INFO - Validated that VN ctest-vn4-67006311 is not found in API Server 2026-03-30 13:05:59,576 - DEBUG - VN ctest-vn4-67006311 is not present in Agent 10.0.0.22 2026-03-30 13:05:59,576 - INFO - Validated that VN ctest-vn4-67006311 is not in any agent 2026-03-30 13:05:59,630 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67006311 info 2026-03-30 13:05:59,664 - INFO - Deleted policy ctest-policy1-94006249 2026-03-30 13:05:59,841 - DEBUG - policy ctest-policy1-94006249 is not found in API Server 2026-03-30 13:06:00,099 - DEBUG - No XMPP flaps were noticed during the test