2026-04-28 10:13:10,928 - INFO - Domain Default found not creating 2026-04-28 10:13:11,119 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50597301 not found, creating it 2026-04-28 10:13:11,611 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50597301, ID : 4df22c09-b450-46e5-a042-333a4ba00b65 2026-04-28 10:13:13,235 - INFO - ================================================================================ 2026-04-28 10:13:13,235 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 10:13:13,497 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-28 10:13:13,497 - INFO - Initial checks done. Running the testcase now 2026-04-28 10:13:13,497 - INFO - 2026-04-28 10:13:13,497 - INFO - ================================================================================ 2026-04-28 10:13:13,497 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 10:13:13,497 - 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 10:13:13,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-28 10:13:13,797 - INFO - Initial checks done. Running the testcase now 2026-04-28 10:13:13,797 - INFO - 2026-04-28 10:13:14,173 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50597301:ctest-vn4-62491984, 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-50597301:ctest-vn4-62491984, 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-50597301:ctest-vn4-62491984, 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-50597301:ctest-vn4-62491984, 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 10:13:14,739 - DEBUG - Response for create_network : {'network': {'id': '2a121c03-cfbd-43f0-b2b0-c5acad70a8da', 'name': 'ctest-vn4-62491984', 'tenant_id': '4df22c09b45046e5a042333a4ba00b65', 'project_id': '4df22c09b45046e5a042333a4ba00b65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50597301', 'ctest-vn4-62491984'], 'port_security_enabled': True, 'description': ''}} 2026-04-28 10:13:14,930 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e810239a-b2a7-4ce3-bc72-078a383f7f54', 'name': '', 'tenant_id': '4df22c09b45046e5a042333a4ba00b65', 'network_id': '2a121c03-cfbd-43f0-b2b0-c5acad70a8da', 'ip_version': 4, 'cidr': '139.245.195.192/26', 'allocation_pools': [{'start': '139.245.195.194', 'end': '139.245.195.254'}], 'gateway_ip': '139.245.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.245.195.194', 'tags': [], 'project_id': '4df22c09b45046e5a042333a4ba00b65'}} 2026-04-28 10:13:15,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '50a3c92f-e39b-4128-a555-3cc589575887', 'name': '', 'tenant_id': '4df22c09b45046e5a042333a4ba00b65', 'network_id': '2a121c03-cfbd-43f0-b2b0-c5acad70a8da', 'ip_version': 6, 'cidr': '286a:162c:4623:bc72:837e:9e09::/96', 'allocation_pools': [{'start': '286a:162c:4623:bc72:837e:9e09:0:2', 'end': '286a:162c:4623:bc72:837e:9e09:ffff:fffe'}], 'gateway_ip': '286a:162c:4623:bc72:837e:9e09:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '286a:162c:4623:bc72:837e:9e09:0:2', 'tags': [], 'project_id': '4df22c09b45046e5a042333a4ba00b65'}} 2026-04-28 10:13:15,096 - INFO - Created VN ctest-vn4-62491984 2026-04-28 10:13:15,151 - DEBUG - VN ctest-vn4-62491984 UUID is 2a121c03-cfbd-43f0-b2b0-c5acad70a8da 2026-04-28 10:13:15,358 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a121c03-cfbd-43f0-b2b0-c5acad70a8da', 'name': 'ctest-vn4-62491984', 'tenant_id': '4df22c09b45046e5a042333a4ba00b65', 'project_id': '4df22c09b45046e5a042333a4ba00b65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e810239a-b2a7-4ce3-bc72-078a383f7f54', '50a3c92f-e39b-4128-a555-3cc589575887'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50597301', 'ctest-vn4-62491984'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50597301', 'ctest-policy1-25343820']], 'subnet_ipam': [{'subnet_cidr': '139.245.195.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '286a:162c:4623:bc72:837e:9e09::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-28 10:13:15,531 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 10:13:15,829 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 10:13:15,861 - DEBUG - Requesting: http://10.0.0.50:8082/domain/664169a6-8b72-42f3-a3c6-2aeabed85036 2026-04-28 10:13:15,875 - DEBUG - Requesting: http://10.0.0.50:8082/project/4df22c09-b450-46e5-a042-333a4ba00b65 2026-04-28 10:13:15,950 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2a121c03-cfbd-43f0-b2b0-c5acad70a8da 2026-04-28 10:13:15,965 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2a121c03-cfbd-43f0-b2b0-c5acad70a8da 2026-04-28 10:13:15,977 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b05d8938-348b-4c16-b61f-b34feab21b5c 2026-04-28 10:13:15,987 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b05d8938-348b-4c16-b61f-b34feab21b5c 2026-04-28 10:13:15,995 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1623b519-f933-46c4-8361-521164f73871 2026-04-28 10:13:16,004 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 10:13:16,004 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2a121c03-cfbd-43f0-b2b0-c5acad70a8da 2026-04-28 10:13:16,019 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b05d8938-348b-4c16-b61f-b34feab21b5c 2026-04-28 10:13:16,035 - INFO - Verified VN network id 11 for VN 2a121c03-cfbd-43f0-b2b0-c5acad70a8da 2026-04-28 10:13:16,036 - INFO - Verifications in API Server for VN ctest-vn4-62491984 passed 2026-04-28 10:13:16,036 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2a121c03-cfbd-43f0-b2b0-c5acad70a8da 2026-04-28 10:13:16,048 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b05d8938-348b-4c16-b61f-b34feab21b5c 2026-04-28 10:13:16,058 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b05d8938-348b-4c16-b61f-b34feab21b5c 2026-04-28 10:13:16,067 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1623b519-f933-46c4-8361-521164f73871 2026-04-28 10:13:16,081 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50597301:ctest-vn4-62491984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50597301', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3031516301869532144', 'uuid-lslong': '12876008680087136474'}, 'enable': 'true', 'created': '2026-04-28T10:13:14', 'last-modified': '2026-04-28T10:13:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749534'} 2026-04-28 10:13:16,087 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 10:13:16,087 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62491984 passed 2026-04-28 10:13:16,087 - DEBUG - ====Verifying policy data for ctest-vn4-62491984 in API_Server ====== 2026-04-28 10:13:16,087 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 10:13:16,094 - DEBUG - Requesting: http://10.0.0.50:8082/domain/664169a6-8b72-42f3-a3c6-2aeabed85036 2026-04-28 10:13:16,108 - DEBUG - Requesting: http://10.0.0.50:8082/project/4df22c09-b450-46e5-a042-333a4ba00b65 2026-04-28 10:13:16,181 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2a121c03-cfbd-43f0-b2b0-c5acad70a8da 2026-04-28 10:13:16,192 - DEBUG - ==>Verifying data for policy with id: 64528634-ae58-4188-8e19-932f75ef0030, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50597301', 'ctest-policy1-25343820'] 2026-04-28 10:13:16,192 - INFO - VN ctest-vn4-62491984 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-28 10:13:16,192 - DEBUG - Verifying the vn in opserver 2026-04-28 10:13:16,192 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50597301:ctest-vn4-62491984 virtual network link through opserver 10.0.0.50 2026-04-28 10:13:16,192 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-28 10:13:16,491 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-28 10:13:16,556 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50597301:ctest-vn4-62491984', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50597301:ctest-vn4-62491984?flat'} 2026-04-28 10:13:16,556 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50597301:ctest-vn4-62491984 is found in opserver 2026-04-28 10:13:16,567 - DEBUG - Do not have enough data to verify VN in agent 2026-04-28 10:13:16,572 - DEBUG - VRF ids for VN ctest-vn4-62491984: {} 2026-04-28 10:13:16,572 - DEBUG - ====Verifying data for ctest-policy1-25343820 in API_Server ====== 2026-04-28 10:13:16,572 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 10:13:16,578 - DEBUG - Requesting: http://10.0.0.50:8082/domain/664169a6-8b72-42f3-a3c6-2aeabed85036 2026-04-28 10:13:16,589 - DEBUG - Requesting: http://10.0.0.50:8082/project/4df22c09-b450-46e5-a042-333a4ba00b65 2026-04-28 10:13:16,662 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/64528634-ae58-4188-8e19-932f75ef0030 2026-04-28 10:13:16,672 - INFO - Verified policy ctest-policy1-25343820 in API Server, Result: True 2026-04-28 10:13:16,672 - INFO - Done with setup and verification, moving onto test .. 2026-04-28 10:13:16,680 - INFO - Deleting VN ctest-vn4-62491984 2026-04-28 10:13:16,804 - DEBUG - Response for deleting network () 2026-04-28 10:13:16,804 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b05d8938-348b-4c16-b61f-b34feab21b5c 2026-04-28 10:13:16,811 - DEBUG - Response Code: 404 2026-04-28 10:13:16,811 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 10:13:16,816 - DEBUG - Requesting: http://10.0.0.50:8082/domain/664169a6-8b72-42f3-a3c6-2aeabed85036 2026-04-28 10:13:16,869 - DEBUG - Requesting: http://10.0.0.50:8082/project/4df22c09-b450-46e5-a042-333a4ba00b65 2026-04-28 10:13:16,944 - INFO - Validated that VN ctest-vn4-62491984 is not found in API Server 2026-04-28 10:13:16,955 - DEBUG - VN ctest-vn4-62491984 is not present in Agent 10.0.0.50 2026-04-28 10:13:16,955 - INFO - Validated that VN ctest-vn4-62491984 is not in any agent 2026-04-28 10:13:16,969 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62491984 info 2026-04-28 10:13:17,002 - INFO - Deleted policy ctest-policy1-25343820 2026-04-28 10:13:17,175 - DEBUG - policy ctest-policy1-25343820 is not found in API Server 2026-04-28 10:13:17,446 - DEBUG - No XMPP flaps were noticed during the test