2026-04-17 09:16:57,711 - INFO - Domain Default found not creating 2026-04-17 09:16:57,915 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76075231 not found, creating it 2026-04-17 09:16:58,416 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76075231, ID : 00c547ca-e210-4f89-99cb-9965eda6b429 2026-04-17 09:16:59,998 - INFO - ================================================================================ 2026-04-17 09:16:59,998 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 09:17:00,251 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-04-17 09:17:00,252 - INFO - Initial checks done. Running the testcase now 2026-04-17 09:17:00,252 - INFO - 2026-04-17 09:17:00,252 - INFO - ================================================================================ 2026-04-17 09:17:00,252 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 09:17:00,252 - 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-17 09:17:00,549 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-04-17 09:17:00,549 - INFO - Initial checks done. Running the testcase now 2026-04-17 09:17:00,550 - INFO - 2026-04-17 09:17:00,919 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76075231:ctest-vn4-75324645, 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-76075231:ctest-vn4-75324645, 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-76075231:ctest-vn4-75324645, 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-76075231:ctest-vn4-75324645, 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-17 09:17:01,460 - DEBUG - Response for create_network : {'network': {'id': '19f9a1a9-5ef4-46cf-854c-260c066be2fe', 'name': 'ctest-vn4-75324645', 'tenant_id': '00c547cae2104f8999cb9965eda6b429', 'project_id': '00c547cae2104f8999cb9965eda6b429', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76075231', 'ctest-vn4-75324645'], 'port_security_enabled': True, 'description': ''}} 2026-04-17 09:17:01,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '83c85799-ce64-42d7-8d50-779b094652f2', 'name': '', 'tenant_id': '00c547cae2104f8999cb9965eda6b429', 'network_id': '19f9a1a9-5ef4-46cf-854c-260c066be2fe', 'ip_version': 4, 'cidr': '209.2.205.0/26', 'allocation_pools': [{'start': '209.2.205.2', 'end': '209.2.205.62'}], 'gateway_ip': '209.2.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.2.205.2', 'tags': [], 'project_id': '00c547cae2104f8999cb9965eda6b429'}} 2026-04-17 09:17:01,784 - DEBUG - Response for create_subnet : {'subnet': {'id': '11b4f789-ebcd-4a75-bcf6-f9edcfbf6e63', 'name': '', 'tenant_id': '00c547cae2104f8999cb9965eda6b429', 'network_id': '19f9a1a9-5ef4-46cf-854c-260c066be2fe', 'ip_version': 6, 'cidr': '3a9d:3e19:4f1e:52ca:dd3c:3cfe::/96', 'allocation_pools': [{'start': '3a9d:3e19:4f1e:52ca:dd3c:3cfe:0:2', 'end': '3a9d:3e19:4f1e:52ca:dd3c:3cfe:ffff:fffe'}], 'gateway_ip': '3a9d:3e19:4f1e:52ca:dd3c:3cfe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a9d:3e19:4f1e:52ca:dd3c:3cfe:0:2', 'tags': [], 'project_id': '00c547cae2104f8999cb9965eda6b429'}} 2026-04-17 09:17:01,805 - INFO - Created VN ctest-vn4-75324645 2026-04-17 09:17:01,858 - DEBUG - VN ctest-vn4-75324645 UUID is 19f9a1a9-5ef4-46cf-854c-260c066be2fe 2026-04-17 09:17:02,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19f9a1a9-5ef4-46cf-854c-260c066be2fe', 'name': 'ctest-vn4-75324645', 'tenant_id': '00c547cae2104f8999cb9965eda6b429', 'project_id': '00c547cae2104f8999cb9965eda6b429', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['83c85799-ce64-42d7-8d50-779b094652f2', '11b4f789-ebcd-4a75-bcf6-f9edcfbf6e63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76075231', 'ctest-vn4-75324645'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76075231', 'ctest-policy1-52159993']], 'subnet_ipam': [{'subnet_cidr': '209.2.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a9d:3e19:4f1e:52ca:dd3c:3cfe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-17 09:17:02,390 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 09:17:02,712 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 09:17:02,745 - DEBUG - Requesting: http://10.0.0.50:8082/domain/acd3df83-2407-4a60-989f-98d23fa475f0 2026-04-17 09:17:02,758 - DEBUG - Requesting: http://10.0.0.50:8082/project/00c547ca-e210-4f89-99cb-9965eda6b429 2026-04-17 09:17:02,832 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19f9a1a9-5ef4-46cf-854c-260c066be2fe 2026-04-17 09:17:02,844 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19f9a1a9-5ef4-46cf-854c-260c066be2fe 2026-04-17 09:17:02,854 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5216424-7019-4c4e-9422-b7665c01c8e7 2026-04-17 09:17:02,863 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5216424-7019-4c4e-9422-b7665c01c8e7 2026-04-17 09:17:02,870 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2731f15c-37e1-4568-a64c-39d80e150f6d 2026-04-17 09:17:02,876 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 09:17:02,876 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19f9a1a9-5ef4-46cf-854c-260c066be2fe 2026-04-17 09:17:02,885 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5216424-7019-4c4e-9422-b7665c01c8e7 2026-04-17 09:17:02,900 - INFO - Verified VN network id 11 for VN 19f9a1a9-5ef4-46cf-854c-260c066be2fe 2026-04-17 09:17:02,900 - INFO - Verifications in API Server for VN ctest-vn4-75324645 passed 2026-04-17 09:17:02,900 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19f9a1a9-5ef4-46cf-854c-260c066be2fe 2026-04-17 09:17:02,910 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5216424-7019-4c4e-9422-b7665c01c8e7 2026-04-17 09:17:02,917 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5216424-7019-4c4e-9422-b7665c01c8e7 2026-04-17 09:17:02,923 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2731f15c-37e1-4568-a64c-39d80e150f6d 2026-04-17 09:17:02,935 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76075231:ctest-vn4-75324645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76075231', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1871704868963763919', 'uuid-lslong': '9605093938363622142'}, 'enable': 'true', 'created': '2026-04-17T09:17:01', 'last-modified': '2026-04-17T09:17:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.824408'} 2026-04-17 09:17:02,942 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 09:17:02,942 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75324645 passed 2026-04-17 09:17:02,942 - DEBUG - ====Verifying policy data for ctest-vn4-75324645 in API_Server ====== 2026-04-17 09:17:02,942 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 09:17:02,948 - DEBUG - Requesting: http://10.0.0.50:8082/domain/acd3df83-2407-4a60-989f-98d23fa475f0 2026-04-17 09:17:02,961 - DEBUG - Requesting: http://10.0.0.50:8082/project/00c547ca-e210-4f89-99cb-9965eda6b429 2026-04-17 09:17:03,031 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19f9a1a9-5ef4-46cf-854c-260c066be2fe 2026-04-17 09:17:03,039 - DEBUG - ==>Verifying data for policy with id: 9ede109d-6f64-47b3-9240-04b3c96806e3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76075231', 'ctest-policy1-52159993'] 2026-04-17 09:17:03,040 - INFO - VN ctest-vn4-75324645 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-17 09:17:03,040 - DEBUG - Verifying the vn in opserver 2026-04-17 09:17:03,040 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76075231:ctest-vn4-75324645 virtual network link through opserver 10.0.0.50 2026-04-17 09:17:03,040 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-17 09:17:03,333 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-17 09:17:03,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76075231:ctest-vn4-75324645', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76075231:ctest-vn4-75324645?flat'} 2026-04-17 09:17:03,407 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76075231:ctest-vn4-75324645 is found in opserver 2026-04-17 09:17:03,417 - DEBUG - Do not have enough data to verify VN in agent 2026-04-17 09:17:03,422 - DEBUG - VRF ids for VN ctest-vn4-75324645: {} 2026-04-17 09:17:03,422 - DEBUG - ====Verifying data for ctest-policy1-52159993 in API_Server ====== 2026-04-17 09:17:03,423 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 09:17:03,428 - DEBUG - Requesting: http://10.0.0.50:8082/domain/acd3df83-2407-4a60-989f-98d23fa475f0 2026-04-17 09:17:03,439 - DEBUG - Requesting: http://10.0.0.50:8082/project/00c547ca-e210-4f89-99cb-9965eda6b429 2026-04-17 09:17:03,511 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/9ede109d-6f64-47b3-9240-04b3c96806e3 2026-04-17 09:17:03,520 - INFO - Verified policy ctest-policy1-52159993 in API Server, Result: True 2026-04-17 09:17:03,520 - INFO - Done with setup and verification, moving onto test .. 2026-04-17 09:17:03,528 - INFO - Deleting VN ctest-vn4-75324645 2026-04-17 09:17:03,658 - DEBUG - Response for deleting network () 2026-04-17 09:17:03,658 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a5216424-7019-4c4e-9422-b7665c01c8e7 2026-04-17 09:17:03,664 - DEBUG - Response Code: 404 2026-04-17 09:17:03,664 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 09:17:03,670 - DEBUG - Requesting: http://10.0.0.50:8082/domain/acd3df83-2407-4a60-989f-98d23fa475f0 2026-04-17 09:17:03,724 - DEBUG - Requesting: http://10.0.0.50:8082/project/00c547ca-e210-4f89-99cb-9965eda6b429 2026-04-17 09:17:03,795 - INFO - Validated that VN ctest-vn4-75324645 is not found in API Server 2026-04-17 09:17:03,806 - DEBUG - VN ctest-vn4-75324645 is not present in Agent 10.0.0.50 2026-04-17 09:17:03,806 - INFO - Validated that VN ctest-vn4-75324645 is not in any agent 2026-04-17 09:17:03,820 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75324645 info 2026-04-17 09:17:03,844 - INFO - Deleted policy ctest-policy1-52159993 2026-04-17 09:17:04,006 - DEBUG - policy ctest-policy1-52159993 is not found in API Server 2026-04-17 09:17:04,260 - DEBUG - No XMPP flaps were noticed during the test