2026-02-19 14:06:18,633 - INFO - Domain Default found not creating 2026-02-19 14:06:18,807 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84656404 not found, creating it 2026-02-19 14:06:19,247 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84656404, ID : 3ff2ac00-33ab-4c50-b3ce-adeea7c72037 2026-02-19 14:06:20,743 - INFO - ================================================================================ 2026-02-19 14:06:20,743 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 14:06:20,999 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-02-19 14:06:20,999 - INFO - Initial checks done. Running the testcase now 2026-02-19 14:06:20,999 - INFO - 2026-02-19 14:06:20,999 - INFO - ================================================================================ 2026-02-19 14:06:20,999 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 14:06:21,000 - 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-19 14:06:21,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-02-19 14:06:21,297 - INFO - Initial checks done. Running the testcase now 2026-02-19 14:06:21,297 - INFO - 2026-02-19 14:06:21,644 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84656404:ctest-vn4-37210101, 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-84656404:ctest-vn4-37210101, 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-84656404:ctest-vn4-37210101, 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-84656404:ctest-vn4-37210101, 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-19 14:06:22,156 - DEBUG - Response for create_network : {'network': {'id': '77f33fde-4e7c-4b50-befc-b6ef9e05a9d3', 'name': 'ctest-vn4-37210101', 'tenant_id': '3ff2ac0033ab4c50b3ceadeea7c72037', 'project_id': '3ff2ac0033ab4c50b3ceadeea7c72037', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84656404', 'ctest-vn4-37210101'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 14:06:22,318 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8d6bd51-9af8-482c-aa61-31c98508afd4', 'name': '', 'tenant_id': '3ff2ac0033ab4c50b3ceadeea7c72037', 'network_id': '77f33fde-4e7c-4b50-befc-b6ef9e05a9d3', 'ip_version': 4, 'cidr': '104.55.198.0/26', 'allocation_pools': [{'start': '104.55.198.2', 'end': '104.55.198.62'}], 'gateway_ip': '104.55.198.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.55.198.2', 'tags': [], 'project_id': '3ff2ac0033ab4c50b3ceadeea7c72037'}} 2026-02-19 14:06:22,489 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a839099-2af0-450b-9d23-d6310049cd2b', 'name': '', 'tenant_id': '3ff2ac0033ab4c50b3ceadeea7c72037', 'network_id': '77f33fde-4e7c-4b50-befc-b6ef9e05a9d3', 'ip_version': 6, 'cidr': '39e1:e00d:8b58:27ac:170f:c027::/96', 'allocation_pools': [{'start': '39e1:e00d:8b58:27ac:170f:c027:0:2', 'end': '39e1:e00d:8b58:27ac:170f:c027:ffff:fffe'}], 'gateway_ip': '39e1:e00d:8b58:27ac:170f:c027:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39e1:e00d:8b58:27ac:170f:c027:0:2', 'tags': [], 'project_id': '3ff2ac0033ab4c50b3ceadeea7c72037'}} 2026-02-19 14:06:22,509 - INFO - Created VN ctest-vn4-37210101 2026-02-19 14:06:22,560 - DEBUG - VN ctest-vn4-37210101 UUID is 77f33fde-4e7c-4b50-befc-b6ef9e05a9d3 2026-02-19 14:06:22,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77f33fde-4e7c-4b50-befc-b6ef9e05a9d3', 'name': 'ctest-vn4-37210101', 'tenant_id': '3ff2ac0033ab4c50b3ceadeea7c72037', 'project_id': '3ff2ac0033ab4c50b3ceadeea7c72037', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8d6bd51-9af8-482c-aa61-31c98508afd4', '2a839099-2af0-450b-9d23-d6310049cd2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84656404', 'ctest-vn4-37210101'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84656404', 'ctest-policy1-85883369']], 'subnet_ipam': [{'subnet_cidr': '104.55.198.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39e1:e00d:8b58:27ac:170f:c027::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 14:06:22,924 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-19 14:06:23,218 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-19 14:06:23,249 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3abc0499-5fed-454b-bc40-4924a8f6c5a5 2026-02-19 14:06:23,263 - DEBUG - Requesting: http://10.0.0.27:8082/project/3ff2ac00-33ab-4c50-b3ce-adeea7c72037 2026-02-19 14:06:23,339 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/77f33fde-4e7c-4b50-befc-b6ef9e05a9d3 2026-02-19 14:06:23,353 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/77f33fde-4e7c-4b50-befc-b6ef9e05a9d3 2026-02-19 14:06:23,364 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d4c8912-6245-43c0-9ff4-e89346a461fb 2026-02-19 14:06:23,371 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d4c8912-6245-43c0-9ff4-e89346a461fb 2026-02-19 14:06:23,379 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/302e5709-9c28-4808-8a02-47d4d1294a43 2026-02-19 14:06:23,386 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 14:06:23,386 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/77f33fde-4e7c-4b50-befc-b6ef9e05a9d3 2026-02-19 14:06:23,396 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d4c8912-6245-43c0-9ff4-e89346a461fb 2026-02-19 14:06:23,411 - INFO - Verified VN network id 12 for VN 77f33fde-4e7c-4b50-befc-b6ef9e05a9d3 2026-02-19 14:06:23,411 - INFO - Verifications in API Server for VN ctest-vn4-37210101 passed 2026-02-19 14:06:23,412 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/77f33fde-4e7c-4b50-befc-b6ef9e05a9d3 2026-02-19 14:06:23,423 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d4c8912-6245-43c0-9ff4-e89346a461fb 2026-02-19 14:06:23,431 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d4c8912-6245-43c0-9ff4-e89346a461fb 2026-02-19 14:06:23,438 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/302e5709-9c28-4808-8a02-47d4d1294a43 2026-02-19 14:06:23,450 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84656404:ctest-vn4-37210101', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84656404', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8643322333886171984', 'uuid-lslong': '13762075701602003411'}, 'enable': 'true', 'created': '2026-02-19T14:06:22', 'last-modified': '2026-02-19T14:06:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714494'} 2026-02-19 14:06:23,455 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 14:06:23,456 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37210101 passed 2026-02-19 14:06:23,456 - DEBUG - ====Verifying policy data for ctest-vn4-37210101 in API_Server ====== 2026-02-19 14:06:23,456 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-19 14:06:23,461 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3abc0499-5fed-454b-bc40-4924a8f6c5a5 2026-02-19 14:06:23,472 - DEBUG - Requesting: http://10.0.0.27:8082/project/3ff2ac00-33ab-4c50-b3ce-adeea7c72037 2026-02-19 14:06:23,542 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/77f33fde-4e7c-4b50-befc-b6ef9e05a9d3 2026-02-19 14:06:23,552 - DEBUG - ==>Verifying data for policy with id: 3c6b1d61-47c6-491b-96eb-5e9b00da6649, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84656404', 'ctest-policy1-85883369'] 2026-02-19 14:06:23,553 - INFO - VN ctest-vn4-37210101 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 14:06:23,553 - DEBUG - Verifying the vn in opserver 2026-02-19 14:06:23,553 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84656404:ctest-vn4-37210101 virtual network link through opserver 10.0.0.27 2026-02-19 14:06:23,553 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-19 14:06:23,845 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-19 14:06:23,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84656404:ctest-vn4-37210101', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84656404:ctest-vn4-37210101?flat'} 2026-02-19 14:06:23,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84656404:ctest-vn4-37210101 is found in opserver 2026-02-19 14:06:23,925 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 14:06:23,930 - DEBUG - VRF ids for VN ctest-vn4-37210101: {} 2026-02-19 14:06:23,931 - DEBUG - ====Verifying data for ctest-policy1-85883369 in API_Server ====== 2026-02-19 14:06:23,931 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-19 14:06:23,937 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3abc0499-5fed-454b-bc40-4924a8f6c5a5 2026-02-19 14:06:23,949 - DEBUG - Requesting: http://10.0.0.27:8082/project/3ff2ac00-33ab-4c50-b3ce-adeea7c72037 2026-02-19 14:06:24,027 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/3c6b1d61-47c6-491b-96eb-5e9b00da6649 2026-02-19 14:06:24,037 - INFO - Verified policy ctest-policy1-85883369 in API Server, Result: True 2026-02-19 14:06:24,037 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 14:06:24,046 - INFO - Deleting VN ctest-vn4-37210101 2026-02-19 14:06:24,159 - DEBUG - Response for deleting network () 2026-02-19 14:06:24,159 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d4c8912-6245-43c0-9ff4-e89346a461fb 2026-02-19 14:06:24,165 - DEBUG - Response Code: 404 2026-02-19 14:06:24,165 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-19 14:06:24,171 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3abc0499-5fed-454b-bc40-4924a8f6c5a5 2026-02-19 14:06:24,224 - DEBUG - Requesting: http://10.0.0.27:8082/project/3ff2ac00-33ab-4c50-b3ce-adeea7c72037 2026-02-19 14:06:24,297 - INFO - Validated that VN ctest-vn4-37210101 is not found in API Server 2026-02-19 14:06:24,309 - DEBUG - VN ctest-vn4-37210101 is not present in Agent 10.0.0.27 2026-02-19 14:06:24,309 - INFO - Validated that VN ctest-vn4-37210101 is not in any agent 2026-02-19 14:06:24,322 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37210101 info 2026-02-19 14:06:24,346 - INFO - Deleted policy ctest-policy1-85883369 2026-02-19 14:06:24,508 - DEBUG - policy ctest-policy1-85883369 is not found in API Server 2026-02-19 14:06:24,762 - DEBUG - No XMPP flaps were noticed during the test