2026-11-07 13:39:12,095 - INFO - Domain Default found not creating 2026-11-07 13:39:12,261 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83589258 not found, creating it 2026-11-07 13:39:12,728 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83589258, ID : 79ce6278-aa2a-46ad-96c9-6bb1d06cdf19 2026-11-07 13:39:14,282 - INFO - ================================================================================ 2026-11-07 13:39:14,282 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-07 13:39:14,536 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-11-07 13:39:14,536 - INFO - Initial checks done. Running the testcase now 2026-11-07 13:39:14,536 - INFO - 2026-11-07 13:39:14,536 - INFO - ================================================================================ 2026-11-07 13:39:14,536 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-07 13:39:14,537 - 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-11-07 13:39:14,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-11-07 13:39:14,836 - INFO - Initial checks done. Running the testcase now 2026-11-07 13:39:14,836 - INFO - 2026-11-07 13:39:15,206 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83589258:ctest-vn4-31781733, 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-83589258:ctest-vn4-31781733, 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-83589258:ctest-vn4-31781733, 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-83589258:ctest-vn4-31781733, 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-11-07 13:39:15,729 - DEBUG - Response for create_network : {'network': {'id': '986c8742-4776-460f-a8cc-9912e449402a', 'name': 'ctest-vn4-31781733', 'tenant_id': '79ce6278aa2a46ad96c96bb1d06cdf19', 'project_id': '79ce6278aa2a46ad96c96bb1d06cdf19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83589258', 'ctest-vn4-31781733'], 'port_security_enabled': True, 'description': ''}} 2026-11-07 13:39:15,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '313ad319-b4b1-4082-9d00-88e5b494c9cd', 'name': '', 'tenant_id': '79ce6278aa2a46ad96c96bb1d06cdf19', 'network_id': '986c8742-4776-460f-a8cc-9912e449402a', 'ip_version': 4, 'cidr': '99.206.172.192/26', 'allocation_pools': [{'start': '99.206.172.194', 'end': '99.206.172.254'}], 'gateway_ip': '99.206.172.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.206.172.194', 'tags': [], 'project_id': '79ce6278aa2a46ad96c96bb1d06cdf19'}} 2026-11-07 13:39:16,077 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed4e53f0-992d-402a-8995-bbf4c0678004', 'name': '', 'tenant_id': '79ce6278aa2a46ad96c96bb1d06cdf19', 'network_id': '986c8742-4776-460f-a8cc-9912e449402a', 'ip_version': 6, 'cidr': '2309:b354:2ff1:eb4d:1c1:cb32::/96', 'allocation_pools': [{'start': '2309:b354:2ff1:eb4d:1c1:cb32:0:2', 'end': '2309:b354:2ff1:eb4d:1c1:cb32:ffff:fffe'}], 'gateway_ip': '2309:b354:2ff1:eb4d:1c1:cb32:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2309:b354:2ff1:eb4d:1c1:cb32:0:2', 'tags': [], 'project_id': '79ce6278aa2a46ad96c96bb1d06cdf19'}} 2026-11-07 13:39:16,097 - INFO - Created VN ctest-vn4-31781733 2026-11-07 13:39:16,147 - DEBUG - VN ctest-vn4-31781733 UUID is 986c8742-4776-460f-a8cc-9912e449402a 2026-11-07 13:39:16,333 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '986c8742-4776-460f-a8cc-9912e449402a', 'name': 'ctest-vn4-31781733', 'tenant_id': '79ce6278aa2a46ad96c96bb1d06cdf19', 'project_id': '79ce6278aa2a46ad96c96bb1d06cdf19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['313ad319-b4b1-4082-9d00-88e5b494c9cd', 'ed4e53f0-992d-402a-8995-bbf4c0678004'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83589258', 'ctest-vn4-31781733'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83589258', 'ctest-policy1-40218125']], 'subnet_ipam': [{'subnet_cidr': '99.206.172.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2309:b354:2ff1:eb4d:1c1:cb32::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-07 13:39:16,495 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-07 13:39:16,813 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-07 13:39:16,837 - DEBUG - Requesting: http://10.0.0.161:8082/domain/492d21e0-9c05-4053-b8b8-150fedf6ba43 2026-11-07 13:39:16,848 - DEBUG - Requesting: http://10.0.0.161:8082/project/79ce6278-aa2a-46ad-96c9-6bb1d06cdf19 2026-11-07 13:39:16,922 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/986c8742-4776-460f-a8cc-9912e449402a 2026-11-07 13:39:16,933 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/986c8742-4776-460f-a8cc-9912e449402a 2026-11-07 13:39:16,941 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3d55b399-b67f-45a2-bf45-2c8ea8152e25 2026-11-07 13:39:16,947 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3d55b399-b67f-45a2-bf45-2c8ea8152e25 2026-11-07 13:39:16,953 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/4d4571cd-17fb-402b-8961-4420404a73c5 2026-11-07 13:39:16,959 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-07 13:39:16,959 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/986c8742-4776-460f-a8cc-9912e449402a 2026-11-07 13:39:16,967 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3d55b399-b67f-45a2-bf45-2c8ea8152e25 2026-11-07 13:39:16,979 - INFO - Verified VN network id 12 for VN 986c8742-4776-460f-a8cc-9912e449402a 2026-11-07 13:39:16,979 - INFO - Verifications in API Server for VN ctest-vn4-31781733 passed 2026-11-07 13:39:16,979 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/986c8742-4776-460f-a8cc-9912e449402a 2026-11-07 13:39:16,988 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3d55b399-b67f-45a2-bf45-2c8ea8152e25 2026-11-07 13:39:16,993 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3d55b399-b67f-45a2-bf45-2c8ea8152e25 2026-11-07 13:39:16,999 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/4d4571cd-17fb-402b-8961-4420404a73c5 2026-11-07 13:39:17,012 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83589258:ctest-vn4-31781733', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83589258', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10983302309986321935', 'uuid-lslong': '12163265000039333930'}, 'enable': 'true', 'created': '2026-11-07T13:39:15', 'last-modified': '2026-11-07T13:39:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705553'} 2026-11-07 13:39:17,018 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-07 13:39:17,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31781733 passed 2026-11-07 13:39:17,019 - DEBUG - ====Verifying policy data for ctest-vn4-31781733 in API_Server ====== 2026-11-07 13:39:17,019 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-07 13:39:17,024 - DEBUG - Requesting: http://10.0.0.161:8082/domain/492d21e0-9c05-4053-b8b8-150fedf6ba43 2026-11-07 13:39:17,033 - DEBUG - Requesting: http://10.0.0.161:8082/project/79ce6278-aa2a-46ad-96c9-6bb1d06cdf19 2026-11-07 13:39:17,099 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/986c8742-4776-460f-a8cc-9912e449402a 2026-11-07 13:39:17,116 - DEBUG - ==>Verifying data for policy with id: 77f4339c-c761-443c-9c59-3c859ab3be38, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83589258', 'ctest-policy1-40218125'] 2026-11-07 13:39:17,117 - INFO - VN ctest-vn4-31781733 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-07 13:39:17,117 - DEBUG - Verifying the vn in opserver 2026-11-07 13:39:17,117 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83589258:ctest-vn4-31781733 virtual network link through opserver 10.0.0.161 2026-11-07 13:39:17,118 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-07 13:39:17,480 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-07 13:39:17,531 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83589258:ctest-vn4-31781733', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83589258:ctest-vn4-31781733?flat'} 2026-11-07 13:39:17,531 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83589258:ctest-vn4-31781733 is found in opserver 2026-11-07 13:39:17,540 - DEBUG - Do not have enough data to verify VN in agent 2026-11-07 13:39:17,545 - DEBUG - VRF ids for VN ctest-vn4-31781733: {} 2026-11-07 13:39:17,545 - DEBUG - ====Verifying data for ctest-policy1-40218125 in API_Server ====== 2026-11-07 13:39:17,545 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-07 13:39:17,551 - DEBUG - Requesting: http://10.0.0.161:8082/domain/492d21e0-9c05-4053-b8b8-150fedf6ba43 2026-11-07 13:39:17,564 - DEBUG - Requesting: http://10.0.0.161:8082/project/79ce6278-aa2a-46ad-96c9-6bb1d06cdf19 2026-11-07 13:39:17,630 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/77f4339c-c761-443c-9c59-3c859ab3be38 2026-11-07 13:39:17,642 - INFO - Verified policy ctest-policy1-40218125 in API Server, Result: True 2026-11-07 13:39:17,642 - INFO - Done with setup and verification, moving onto test .. 2026-11-07 13:39:17,650 - INFO - Deleting VN ctest-vn4-31781733 2026-11-07 13:39:17,754 - DEBUG - Response for deleting network () 2026-11-07 13:39:17,754 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3d55b399-b67f-45a2-bf45-2c8ea8152e25 2026-11-07 13:39:17,759 - DEBUG - Response Code: 404 2026-11-07 13:39:17,759 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-07 13:39:17,764 - DEBUG - Requesting: http://10.0.0.161:8082/domain/492d21e0-9c05-4053-b8b8-150fedf6ba43 2026-11-07 13:39:17,819 - DEBUG - Requesting: http://10.0.0.161:8082/project/79ce6278-aa2a-46ad-96c9-6bb1d06cdf19 2026-11-07 13:39:17,895 - INFO - Validated that VN ctest-vn4-31781733 is not found in API Server 2026-11-07 13:39:17,905 - DEBUG - VN ctest-vn4-31781733 is not present in Agent 10.0.0.161 2026-11-07 13:39:17,905 - INFO - Validated that VN ctest-vn4-31781733 is not in any agent 2026-11-07 13:39:17,923 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31781733 info 2026-11-07 13:39:17,950 - INFO - Deleted policy ctest-policy1-40218125 2026-11-07 13:39:18,115 - DEBUG - policy ctest-policy1-40218125 is not found in API Server 2026-11-07 13:39:18,373 - DEBUG - No XMPP flaps were noticed during the test 2026-11-07 13:39:18,373 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-07 13:39:18,373 - INFO - -------------------------------------------------------------------------------- 2026-11-07 13:39:18,659 - DEBUG - No XMPP flaps were noticed during the test 2026-11-07 13:39:18,659 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-07 13:39:18,659 - INFO - -------------------------------------------------------------------------------- 2026-11-07 13:39:19,357 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83589258, ID : 79ce6278-aa2a-46ad-96c9-6bb1d06cdf19