2026-10-22 22:10:56,880 - INFO - Domain Default found not creating 2026-10-22 22:10:57,202 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74558360 not found, creating it 2026-10-22 22:10:57,885 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74558360, ID : cd16a44b-0aa7-49eb-80ac-d292f0760d51 2026-10-22 22:11:00,373 - INFO - ================================================================================ 2026-10-22 22:11:00,373 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-22 22:11:00,656 - DEBUG - Nothing to compare xmpp stats {'10.0.0.191': {'10.20.0.254': '0'}} with 2026-10-22 22:11:00,656 - INFO - Initial checks done. Running the testcase now 2026-10-22 22:11:00,656 - INFO - 2026-10-22 22:11:00,656 - INFO - ================================================================================ 2026-10-22 22:11:00,656 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-22 22:11:00,657 - 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-10-22 22:11:00,990 - DEBUG - Nothing to compare xmpp stats {'10.0.0.191': {'10.20.0.254': '0'}} with 2026-10-22 22:11:00,990 - INFO - Initial checks done. Running the testcase now 2026-10-22 22:11:00,990 - INFO - 2026-10-22 22:11:01,533 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74558360:ctest-vn4-86107800, 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-74558360:ctest-vn4-86107800, 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-74558360:ctest-vn4-86107800, 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-74558360:ctest-vn4-86107800, 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-10-22 22:11:02,175 - DEBUG - Response for create_network : {'network': {'id': 'ae6491a7-ea0f-4520-9605-1e68cf78da08', 'name': 'ctest-vn4-86107800', 'tenant_id': 'cd16a44b0aa749eb80acd292f0760d51', 'project_id': 'cd16a44b0aa749eb80acd292f0760d51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74558360', 'ctest-vn4-86107800'], 'port_security_enabled': True, 'description': ''}} 2026-10-22 22:11:02,401 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e67029f-551a-46f4-9cc2-1be2f5869369', 'name': '', 'tenant_id': 'cd16a44b0aa749eb80acd292f0760d51', 'network_id': 'ae6491a7-ea0f-4520-9605-1e68cf78da08', 'ip_version': 4, 'cidr': '114.129.229.64/26', 'allocation_pools': [{'start': '114.129.229.66', 'end': '114.129.229.126'}], 'gateway_ip': '114.129.229.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.129.229.66', 'tags': [], 'project_id': 'cd16a44b0aa749eb80acd292f0760d51'}} 2026-10-22 22:11:02,598 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e9acc5b-69d5-4e83-a24c-48d253156ce7', 'name': '', 'tenant_id': 'cd16a44b0aa749eb80acd292f0760d51', 'network_id': 'ae6491a7-ea0f-4520-9605-1e68cf78da08', 'ip_version': 6, 'cidr': '21b3:e73f:5716:4280:d1d7:ea36::/96', 'allocation_pools': [{'start': '21b3:e73f:5716:4280:d1d7:ea36:0:2', 'end': '21b3:e73f:5716:4280:d1d7:ea36:ffff:fffe'}], 'gateway_ip': '21b3:e73f:5716:4280:d1d7:ea36:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21b3:e73f:5716:4280:d1d7:ea36:0:2', 'tags': [], 'project_id': 'cd16a44b0aa749eb80acd292f0760d51'}} 2026-10-22 22:11:02,630 - INFO - Created VN ctest-vn4-86107800 2026-10-22 22:11:02,688 - DEBUG - VN ctest-vn4-86107800 UUID is ae6491a7-ea0f-4520-9605-1e68cf78da08 2026-10-22 22:11:02,983 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae6491a7-ea0f-4520-9605-1e68cf78da08', 'name': 'ctest-vn4-86107800', 'tenant_id': 'cd16a44b0aa749eb80acd292f0760d51', 'project_id': 'cd16a44b0aa749eb80acd292f0760d51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6e67029f-551a-46f4-9cc2-1be2f5869369', '5e9acc5b-69d5-4e83-a24c-48d253156ce7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74558360', 'ctest-vn4-86107800'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74558360', 'ctest-policy1-82932149']], 'subnet_ipam': [{'subnet_cidr': '114.129.229.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21b3:e73f:5716:4280:d1d7:ea36::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-22 22:11:03,159 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-10-22 22:11:03,577 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-10-22 22:11:03,614 - DEBUG - Requesting: http://10.0.0.191:8082/domain/e4518450-1ee7-483a-9faa-f2e7b0e80855 2026-10-22 22:11:03,634 - DEBUG - Requesting: http://10.0.0.191:8082/project/cd16a44b-0aa7-49eb-80ac-d292f0760d51 2026-10-22 22:11:03,724 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/ae6491a7-ea0f-4520-9605-1e68cf78da08 2026-10-22 22:11:03,746 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/ae6491a7-ea0f-4520-9605-1e68cf78da08 2026-10-22 22:11:03,765 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/5d848de3-cf49-4c75-a846-117f8d54f527 2026-10-22 22:11:03,777 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/5d848de3-cf49-4c75-a846-117f8d54f527 2026-10-22 22:11:03,793 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/c19e8973-b8c0-4f93-b980-94ae6b3a19a5 2026-10-22 22:11:03,807 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-22 22:11:03,807 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/ae6491a7-ea0f-4520-9605-1e68cf78da08 2026-10-22 22:11:03,824 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/5d848de3-cf49-4c75-a846-117f8d54f527 2026-10-22 22:11:03,848 - INFO - Verified VN network id 11 for VN ae6491a7-ea0f-4520-9605-1e68cf78da08 2026-10-22 22:11:03,848 - INFO - Verifications in API Server for VN ctest-vn4-86107800 passed 2026-10-22 22:11:03,848 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/ae6491a7-ea0f-4520-9605-1e68cf78da08 2026-10-22 22:11:03,865 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/5d848de3-cf49-4c75-a846-117f8d54f527 2026-10-22 22:11:03,879 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/5d848de3-cf49-4c75-a846-117f8d54f527 2026-10-22 22:11:03,892 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/c19e8973-b8c0-4f93-b980-94ae6b3a19a5 2026-10-22 22:11:03,921 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74558360:ctest-vn4-86107800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74558360', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12566329010642961696', 'uuid-lslong': '10810079916078979592'}, 'enable': 'true', 'created': '2026-10-22T22:11:02', 'last-modified': '2026-10-22T22:11:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981198'} 2026-10-22 22:11:03,933 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-22 22:11:03,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86107800 passed 2026-10-22 22:11:03,934 - DEBUG - ====Verifying policy data for ctest-vn4-86107800 in API_Server ====== 2026-10-22 22:11:03,934 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-10-22 22:11:03,944 - DEBUG - Requesting: http://10.0.0.191:8082/domain/e4518450-1ee7-483a-9faa-f2e7b0e80855 2026-10-22 22:11:03,964 - DEBUG - Requesting: http://10.0.0.191:8082/project/cd16a44b-0aa7-49eb-80ac-d292f0760d51 2026-10-22 22:11:04,061 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/ae6491a7-ea0f-4520-9605-1e68cf78da08 2026-10-22 22:11:04,081 - DEBUG - ==>Verifying data for policy with id: 8408300f-d676-4a6b-8bf1-da8e49f9e416, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74558360', 'ctest-policy1-82932149'] 2026-10-22 22:11:04,082 - INFO - VN ctest-vn4-86107800 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-22 22:11:04,082 - DEBUG - Verifying the vn in opserver 2026-10-22 22:11:04,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74558360:ctest-vn4-86107800 virtual network link through opserver 10.0.0.191 2026-10-22 22:11:04,082 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-10-22 22:11:04,501 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-10-22 22:11:04,580 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74558360:ctest-vn4-86107800', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74558360:ctest-vn4-86107800?flat'} 2026-10-22 22:11:04,580 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74558360:ctest-vn4-86107800 is found in opserver 2026-10-22 22:11:04,597 - DEBUG - Do not have enough data to verify VN in agent 2026-10-22 22:11:04,605 - DEBUG - VRF ids for VN ctest-vn4-86107800: {} 2026-10-22 22:11:04,606 - DEBUG - ====Verifying data for ctest-policy1-82932149 in API_Server ====== 2026-10-22 22:11:04,606 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-10-22 22:11:04,616 - DEBUG - Requesting: http://10.0.0.191:8082/domain/e4518450-1ee7-483a-9faa-f2e7b0e80855 2026-10-22 22:11:04,633 - DEBUG - Requesting: http://10.0.0.191:8082/project/cd16a44b-0aa7-49eb-80ac-d292f0760d51 2026-10-22 22:11:04,731 - DEBUG - Requesting: http://10.0.0.191:8082/network-policy/8408300f-d676-4a6b-8bf1-da8e49f9e416 2026-10-22 22:11:04,749 - INFO - Verified policy ctest-policy1-82932149 in API Server, Result: True 2026-10-22 22:11:04,749 - INFO - Done with setup and verification, moving onto test .. 2026-10-22 22:11:04,766 - INFO - Deleting VN ctest-vn4-86107800 2026-10-22 22:11:04,988 - DEBUG - Response for deleting network () 2026-10-22 22:11:04,989 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/5d848de3-cf49-4c75-a846-117f8d54f527 2026-10-22 22:11:04,998 - DEBUG - Response Code: 404 2026-10-22 22:11:04,999 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-10-22 22:11:05,011 - DEBUG - Requesting: http://10.0.0.191:8082/domain/e4518450-1ee7-483a-9faa-f2e7b0e80855 2026-10-22 22:11:05,071 - DEBUG - Requesting: http://10.0.0.191:8082/project/cd16a44b-0aa7-49eb-80ac-d292f0760d51 2026-10-22 22:11:05,165 - INFO - Validated that VN ctest-vn4-86107800 is not found in API Server 2026-10-22 22:11:05,184 - DEBUG - VN ctest-vn4-86107800 is not present in Agent 10.0.0.191 2026-10-22 22:11:05,184 - INFO - Validated that VN ctest-vn4-86107800 is not in any agent 2026-10-22 22:11:05,211 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86107800 info 2026-10-22 22:11:05,254 - INFO - Deleted policy ctest-policy1-82932149 2026-10-22 22:11:05,447 - DEBUG - policy ctest-policy1-82932149 is not found in API Server 2026-10-22 22:11:05,739 - DEBUG - No XMPP flaps were noticed during the test