2026-04-28 13:32:59,409 - INFO - Domain Default found not creating 2026-04-28 13:32:59,599 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10139696 not found, creating it 2026-04-28 13:33:00,130 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10139696, ID : 22a65979-b432-4038-822d-390a6056ec5a 2026-04-28 13:33:01,857 - INFO - ================================================================================ 2026-04-28 13:33:01,857 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 13:33:02,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-04-28 13:33:02,129 - INFO - Initial checks done. Running the testcase now 2026-04-28 13:33:02,129 - INFO - 2026-04-28 13:33:02,129 - INFO - ================================================================================ 2026-04-28 13:33:02,129 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 13:33:02,130 - 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-04-28 13:33:02,433 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-04-28 13:33:02,433 - INFO - Initial checks done. Running the testcase now 2026-04-28 13:33:02,433 - INFO - 2026-04-28 13:33:02,869 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10139696:ctest-vn4-25173535, 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-10139696:ctest-vn4-25173535, 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-10139696:ctest-vn4-25173535, 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-10139696:ctest-vn4-25173535, 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-04-28 13:33:03,449 - DEBUG - Response for create_network : {'network': {'id': '03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1', 'name': 'ctest-vn4-25173535', 'tenant_id': '22a65979b4324038822d390a6056ec5a', 'project_id': '22a65979b4324038822d390a6056ec5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10139696', 'ctest-vn4-25173535'], 'port_security_enabled': True, 'description': ''}} 2026-04-28 13:33:03,654 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aee3bbb4-a7bf-487e-ade3-1d861efa2c04', 'name': '', 'tenant_id': '22a65979b4324038822d390a6056ec5a', 'network_id': '03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1', 'ip_version': 4, 'cidr': '113.172.60.64/26', 'allocation_pools': [{'start': '113.172.60.66', 'end': '113.172.60.126'}], 'gateway_ip': '113.172.60.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.172.60.66', 'tags': [], 'project_id': '22a65979b4324038822d390a6056ec5a'}} 2026-04-28 13:33:03,843 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c51a2f88-c0e8-42cb-9499-4da66aa16e18', 'name': '', 'tenant_id': '22a65979b4324038822d390a6056ec5a', 'network_id': '03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1', 'ip_version': 6, 'cidr': '2c97:5c16:be5c:3732:850a:516d::/96', 'allocation_pools': [{'start': '2c97:5c16:be5c:3732:850a:516d:0:2', 'end': '2c97:5c16:be5c:3732:850a:516d:ffff:fffe'}], 'gateway_ip': '2c97:5c16:be5c:3732:850a:516d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c97:5c16:be5c:3732:850a:516d:0:2', 'tags': [], 'project_id': '22a65979b4324038822d390a6056ec5a'}} 2026-04-28 13:33:03,872 - INFO - Created VN ctest-vn4-25173535 2026-04-28 13:33:03,931 - DEBUG - VN ctest-vn4-25173535 UUID is 03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1 2026-04-28 13:33:04,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1', 'name': 'ctest-vn4-25173535', 'tenant_id': '22a65979b4324038822d390a6056ec5a', 'project_id': '22a65979b4324038822d390a6056ec5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aee3bbb4-a7bf-487e-ade3-1d861efa2c04', 'c51a2f88-c0e8-42cb-9499-4da66aa16e18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10139696', 'ctest-vn4-25173535'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10139696', 'ctest-policy1-87026548']], 'subnet_ipam': [{'subnet_cidr': '113.172.60.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c97:5c16:be5c:3732:850a:516d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-28 13:33:04,383 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-28 13:33:04,744 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-28 13:33:04,789 - DEBUG - Requesting: http://10.0.0.19:8082/domain/b99f2910-4147-4e84-9f15-b606a7af05dc 2026-04-28 13:33:04,804 - DEBUG - Requesting: http://10.0.0.19:8082/project/22a65979-b432-4038-822d-390a6056ec5a 2026-04-28 13:33:04,886 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1 2026-04-28 13:33:04,903 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1 2026-04-28 13:33:04,917 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bf00099b-3b61-48eb-b3f0-2851f5d1c814 2026-04-28 13:33:04,927 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bf00099b-3b61-48eb-b3f0-2851f5d1c814 2026-04-28 13:33:04,938 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/0620716c-fbfb-4bd3-9225-47fec05a0553 2026-04-28 13:33:04,948 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 13:33:04,948 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1 2026-04-28 13:33:04,958 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bf00099b-3b61-48eb-b3f0-2851f5d1c814 2026-04-28 13:33:04,976 - INFO - Verified VN network id 11 for VN 03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1 2026-04-28 13:33:04,977 - INFO - Verifications in API Server for VN ctest-vn4-25173535 passed 2026-04-28 13:33:04,977 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1 2026-04-28 13:33:04,995 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bf00099b-3b61-48eb-b3f0-2851f5d1c814 2026-04-28 13:33:05,005 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bf00099b-3b61-48eb-b3f0-2851f5d1c814 2026-04-28 13:33:05,014 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/0620716c-fbfb-4bd3-9225-47fec05a0553 2026-04-28 13:33:05,029 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10139696:ctest-vn4-25173535', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10139696', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '275227246661944234', 'uuid-lslong': '12602901330884335265'}, 'enable': 'true', 'created': '2026-04-28T13:33:03', 'last-modified': '2026-04-28T13:33:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.871326'} 2026-04-28 13:33:05,040 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 13:33:05,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25173535 passed 2026-04-28 13:33:05,040 - DEBUG - ====Verifying policy data for ctest-vn4-25173535 in API_Server ====== 2026-04-28 13:33:05,040 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-28 13:33:05,048 - DEBUG - Requesting: http://10.0.0.19:8082/domain/b99f2910-4147-4e84-9f15-b606a7af05dc 2026-04-28 13:33:05,063 - DEBUG - Requesting: http://10.0.0.19:8082/project/22a65979-b432-4038-822d-390a6056ec5a 2026-04-28 13:33:05,147 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/03d1cdb8-fdcb-43aa-aee6-7ffcc6a896a1 2026-04-28 13:33:05,157 - DEBUG - ==>Verifying data for policy with id: 21d5990f-349e-40c2-8769-587837d0a074, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10139696', 'ctest-policy1-87026548'] 2026-04-28 13:33:05,157 - INFO - VN ctest-vn4-25173535 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-28 13:33:05,158 - DEBUG - Verifying the vn in opserver 2026-04-28 13:33:05,158 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10139696:ctest-vn4-25173535 virtual network link through opserver 10.0.0.19 2026-04-28 13:33:05,158 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-04-28 13:33:05,512 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-04-28 13:33:05,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10139696:ctest-vn4-25173535', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10139696:ctest-vn4-25173535?flat'} 2026-04-28 13:33:05,592 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10139696:ctest-vn4-25173535 is found in opserver 2026-04-28 13:33:05,608 - DEBUG - Do not have enough data to verify VN in agent 2026-04-28 13:33:05,614 - DEBUG - VRF ids for VN ctest-vn4-25173535: {} 2026-04-28 13:33:05,615 - DEBUG - ====Verifying data for ctest-policy1-87026548 in API_Server ====== 2026-04-28 13:33:05,615 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-28 13:33:05,630 - DEBUG - Requesting: http://10.0.0.19:8082/domain/b99f2910-4147-4e84-9f15-b606a7af05dc 2026-04-28 13:33:05,643 - DEBUG - Requesting: http://10.0.0.19:8082/project/22a65979-b432-4038-822d-390a6056ec5a 2026-04-28 13:33:05,723 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/21d5990f-349e-40c2-8769-587837d0a074 2026-04-28 13:33:05,738 - INFO - Verified policy ctest-policy1-87026548 in API Server, Result: True 2026-04-28 13:33:05,739 - INFO - Done with setup and verification, moving onto test .. 2026-04-28 13:33:05,749 - INFO - Deleting VN ctest-vn4-25173535 2026-04-28 13:33:05,921 - DEBUG - Response for deleting network () 2026-04-28 13:33:05,921 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/bf00099b-3b61-48eb-b3f0-2851f5d1c814 2026-04-28 13:33:05,928 - DEBUG - Response Code: 404 2026-04-28 13:33:05,928 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-28 13:33:05,935 - DEBUG - Requesting: http://10.0.0.19:8082/domain/b99f2910-4147-4e84-9f15-b606a7af05dc 2026-04-28 13:33:05,998 - DEBUG - Requesting: http://10.0.0.19:8082/project/22a65979-b432-4038-822d-390a6056ec5a 2026-04-28 13:33:06,081 - INFO - Validated that VN ctest-vn4-25173535 is not found in API Server 2026-04-28 13:33:06,095 - DEBUG - VN ctest-vn4-25173535 is not present in Agent 10.0.0.19 2026-04-28 13:33:06,095 - INFO - Validated that VN ctest-vn4-25173535 is not in any agent 2026-04-28 13:33:06,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25173535 info 2026-04-28 13:33:06,159 - INFO - Deleted policy ctest-policy1-87026548 2026-04-28 13:33:06,351 - DEBUG - policy ctest-policy1-87026548 is not found in API Server 2026-04-28 13:33:06,624 - DEBUG - No XMPP flaps were noticed during the test
2026-04-28 13:33:06,625 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-28 13:33:06,625 - INFO - -------------------------------------------------------------------------------- 2026-04-28 13:33:06,919 - DEBUG - No XMPP flaps were noticed during the test
2026-04-28 13:33:06,919 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-28 13:33:06,919 - INFO - -------------------------------------------------------------------------------- 2026-04-28 13:33:07,736 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10139696, ID : 22a65979-b432-4038-822d-390a6056ec5a