2026-02-16 02:06:39,500 - INFO - Domain Default found not creating 2026-02-16 02:06:39,673 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87796048 not found, creating it 2026-02-16 02:06:40,171 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87796048, ID : b3f4e62e-17e2-4b53-aba6-6e852202ce37 2026-02-16 02:06:41,792 - INFO - ================================================================================ 2026-02-16 02:06:41,792 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 02:06:42,048 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.241': '0'}} with 2026-02-16 02:06:42,048 - INFO - Initial checks done. Running the testcase now 2026-02-16 02:06:42,048 - INFO - 2026-02-16 02:06:42,048 - INFO - ================================================================================ 2026-02-16 02:06:42,048 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 02:06:42,048 - 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-16 02:06:42,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.241': '0'}} with 2026-02-16 02:06:42,344 - INFO - Initial checks done. Running the testcase now 2026-02-16 02:06:42,344 - INFO - 2026-02-16 02:06:42,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87796048:ctest-vn4-40697063, 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-87796048:ctest-vn4-40697063, 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-87796048:ctest-vn4-40697063, 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-87796048:ctest-vn4-40697063, 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-16 02:06:43,228 - DEBUG - Response for create_network : {'network': {'id': 'dd533dd5-ceb9-42c7-8d77-c4f644da21f3', 'name': 'ctest-vn4-40697063', 'tenant_id': 'b3f4e62e17e24b53aba66e852202ce37', 'project_id': 'b3f4e62e17e24b53aba66e852202ce37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87796048', 'ctest-vn4-40697063'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 02:06:43,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d57e8d1-5616-436f-b00a-76f5bfcaf835', 'name': '', 'tenant_id': 'b3f4e62e17e24b53aba66e852202ce37', 'network_id': 'dd533dd5-ceb9-42c7-8d77-c4f644da21f3', 'ip_version': 4, 'cidr': '215.240.125.128/26', 'allocation_pools': [{'start': '215.240.125.130', 'end': '215.240.125.190'}], 'gateway_ip': '215.240.125.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.240.125.130', 'tags': [], 'project_id': 'b3f4e62e17e24b53aba66e852202ce37'}} 2026-02-16 02:06:43,668 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b365eb90-096a-41d9-8a79-c58f1dcfd037', 'name': '', 'tenant_id': 'b3f4e62e17e24b53aba66e852202ce37', 'network_id': 'dd533dd5-ceb9-42c7-8d77-c4f644da21f3', 'ip_version': 6, 'cidr': '2662:aed4:d24:aaab:27b4:bee4::/96', 'allocation_pools': [{'start': '2662:aed4:d24:aaab:27b4:bee4:0:2', 'end': '2662:aed4:d24:aaab:27b4:bee4:ffff:fffe'}], 'gateway_ip': '2662:aed4:d24:aaab:27b4:bee4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2662:aed4:d24:aaab:27b4:bee4:0:2', 'tags': [], 'project_id': 'b3f4e62e17e24b53aba66e852202ce37'}} 2026-02-16 02:06:43,690 - INFO - Created VN ctest-vn4-40697063 2026-02-16 02:06:43,742 - DEBUG - VN ctest-vn4-40697063 UUID is dd533dd5-ceb9-42c7-8d77-c4f644da21f3 2026-02-16 02:06:43,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd533dd5-ceb9-42c7-8d77-c4f644da21f3', 'name': 'ctest-vn4-40697063', 'tenant_id': 'b3f4e62e17e24b53aba66e852202ce37', 'project_id': 'b3f4e62e17e24b53aba66e852202ce37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d57e8d1-5616-436f-b00a-76f5bfcaf835', 'b365eb90-096a-41d9-8a79-c58f1dcfd037'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87796048', 'ctest-vn4-40697063'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87796048', 'ctest-policy1-95169863']], 'subnet_ipam': [{'subnet_cidr': '215.240.125.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2662:aed4:d24:aaab:27b4:bee4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 02:06:44,106 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-16 02:06:44,399 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-16 02:06:44,434 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8337375-e237-4612-ba9d-f84db96d6475 2026-02-16 02:06:44,447 - DEBUG - Requesting: http://10.0.0.130:8082/project/b3f4e62e-17e2-4b53-aba6-6e852202ce37 2026-02-16 02:06:44,519 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/dd533dd5-ceb9-42c7-8d77-c4f644da21f3 2026-02-16 02:06:44,530 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/dd533dd5-ceb9-42c7-8d77-c4f644da21f3 2026-02-16 02:06:44,539 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/565e3145-54b7-427d-9597-b03568ed24bb 2026-02-16 02:06:44,546 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/565e3145-54b7-427d-9597-b03568ed24bb 2026-02-16 02:06:44,552 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d6d387c6-5b7e-4181-b175-c584b4aa78ad 2026-02-16 02:06:44,559 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 02:06:44,559 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/dd533dd5-ceb9-42c7-8d77-c4f644da21f3 2026-02-16 02:06:44,569 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/565e3145-54b7-427d-9597-b03568ed24bb 2026-02-16 02:06:44,583 - INFO - Verified VN network id 12 for VN dd533dd5-ceb9-42c7-8d77-c4f644da21f3 2026-02-16 02:06:44,583 - INFO - Verifications in API Server for VN ctest-vn4-40697063 passed 2026-02-16 02:06:44,583 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/dd533dd5-ceb9-42c7-8d77-c4f644da21f3 2026-02-16 02:06:44,592 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/565e3145-54b7-427d-9597-b03568ed24bb 2026-02-16 02:06:44,598 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/565e3145-54b7-427d-9597-b03568ed24bb 2026-02-16 02:06:44,604 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d6d387c6-5b7e-4181-b175-c584b4aa78ad 2026-02-16 02:06:44,615 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87796048:ctest-vn4-40697063', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87796048', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15948158693954634439', 'uuid-lslong': '10193832843572552179'}, 'enable': 'true', 'created': '2026-02-16T02:06:43', 'last-modified': '2026-02-16T02:06:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696130'} 2026-02-16 02:06:44,621 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 02:06:44,621 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40697063 passed 2026-02-16 02:06:44,621 - DEBUG - ====Verifying policy data for ctest-vn4-40697063 in API_Server ====== 2026-02-16 02:06:44,621 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-16 02:06:44,626 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8337375-e237-4612-ba9d-f84db96d6475 2026-02-16 02:06:44,637 - DEBUG - Requesting: http://10.0.0.130:8082/project/b3f4e62e-17e2-4b53-aba6-6e852202ce37 2026-02-16 02:06:44,706 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/dd533dd5-ceb9-42c7-8d77-c4f644da21f3 2026-02-16 02:06:44,715 - DEBUG - ==>Verifying data for policy with id: 3047c383-58a1-41e5-8844-e4bc2e11832a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87796048', 'ctest-policy1-95169863'] 2026-02-16 02:06:44,715 - INFO - VN ctest-vn4-40697063 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 02:06:44,715 - DEBUG - Verifying the vn in opserver 2026-02-16 02:06:44,715 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87796048:ctest-vn4-40697063 virtual network link through opserver 10.0.0.130 2026-02-16 02:06:44,715 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-16 02:06:45,012 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-16 02:06:45,080 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87796048:ctest-vn4-40697063', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87796048:ctest-vn4-40697063?flat'} 2026-02-16 02:06:45,080 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87796048:ctest-vn4-40697063 is found in opserver 2026-02-16 02:06:45,089 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 02:06:45,094 - DEBUG - VRF ids for VN ctest-vn4-40697063: {} 2026-02-16 02:06:45,094 - DEBUG - ====Verifying data for ctest-policy1-95169863 in API_Server ====== 2026-02-16 02:06:45,094 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-16 02:06:45,100 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8337375-e237-4612-ba9d-f84db96d6475 2026-02-16 02:06:45,110 - DEBUG - Requesting: http://10.0.0.130:8082/project/b3f4e62e-17e2-4b53-aba6-6e852202ce37 2026-02-16 02:06:45,180 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/3047c383-58a1-41e5-8844-e4bc2e11832a 2026-02-16 02:06:45,190 - INFO - Verified policy ctest-policy1-95169863 in API Server, Result: True 2026-02-16 02:06:45,190 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 02:06:45,198 - INFO - Deleting VN ctest-vn4-40697063 2026-02-16 02:06:45,319 - DEBUG - Response for deleting network () 2026-02-16 02:06:45,319 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/565e3145-54b7-427d-9597-b03568ed24bb 2026-02-16 02:06:45,323 - DEBUG - Response Code: 404 2026-02-16 02:06:45,323 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-16 02:06:45,328 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8337375-e237-4612-ba9d-f84db96d6475 2026-02-16 02:06:45,379 - DEBUG - Requesting: http://10.0.0.130:8082/project/b3f4e62e-17e2-4b53-aba6-6e852202ce37 2026-02-16 02:06:45,448 - INFO - Validated that VN ctest-vn4-40697063 is not found in API Server 2026-02-16 02:06:45,457 - DEBUG - VN ctest-vn4-40697063 is not present in Agent 10.0.0.130 2026-02-16 02:06:45,457 - INFO - Validated that VN ctest-vn4-40697063 is not in any agent 2026-02-16 02:06:45,471 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40697063 info 2026-02-16 02:06:45,494 - INFO - Deleted policy ctest-policy1-95169863 2026-02-16 02:06:45,658 - DEBUG - policy ctest-policy1-95169863 is not found in API Server 2026-02-16 02:06:45,914 - DEBUG - No XMPP flaps were noticed during the test