2026-09-15 11:15:29,881 - INFO - Domain Default found not creating 2026-09-15 11:15:30,069 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19192613 not found, creating it 2026-09-15 11:15:30,589 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19192613, ID : 190ce1e0-e775-4930-bc37-6fd6dcba6912 2026-09-15 11:15:32,408 - INFO - ================================================================================ 2026-09-15 11:15:32,408 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-15 11:15:32,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-09-15 11:15:32,673 - INFO - Initial checks done. Running the testcase now 2026-09-15 11:15:32,673 - INFO - 2026-09-15 11:15:32,673 - INFO - ================================================================================ 2026-09-15 11:15:32,673 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-15 11:15:32,673 - 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-09-15 11:15:32,974 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-09-15 11:15:32,974 - INFO - Initial checks done. Running the testcase now 2026-09-15 11:15:32,974 - INFO - 2026-09-15 11:15:33,455 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19192613:ctest-vn4-02501080, 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-19192613:ctest-vn4-02501080, 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-19192613:ctest-vn4-02501080, 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-19192613:ctest-vn4-02501080, 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-09-15 11:15:34,027 - DEBUG - Response for create_network : {'network': {'id': 'e9a60785-c000-4c54-9988-88265fdadf83', 'name': 'ctest-vn4-02501080', 'tenant_id': '190ce1e0e7754930bc376fd6dcba6912', 'project_id': '190ce1e0e7754930bc376fd6dcba6912', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19192613', 'ctest-vn4-02501080'], 'port_security_enabled': True, 'description': ''}} 2026-09-15 11:15:34,216 - DEBUG - Response for create_subnet : {'subnet': {'id': '62eaa670-64a2-4e67-b7b5-fafc3f8df567', 'name': '', 'tenant_id': '190ce1e0e7754930bc376fd6dcba6912', 'network_id': 'e9a60785-c000-4c54-9988-88265fdadf83', 'ip_version': 4, 'cidr': '108.174.171.0/26', 'allocation_pools': [{'start': '108.174.171.2', 'end': '108.174.171.62'}], 'gateway_ip': '108.174.171.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.174.171.2', 'tags': [], 'project_id': '190ce1e0e7754930bc376fd6dcba6912'}} 2026-09-15 11:15:34,380 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e54ed252-bbfd-4bde-b016-6387d1f8a10a', 'name': '', 'tenant_id': '190ce1e0e7754930bc376fd6dcba6912', 'network_id': 'e9a60785-c000-4c54-9988-88265fdadf83', 'ip_version': 6, 'cidr': '270c:ffc1:c62e:7a23:b315:bb00::/96', 'allocation_pools': [{'start': '270c:ffc1:c62e:7a23:b315:bb00:0:2', 'end': '270c:ffc1:c62e:7a23:b315:bb00:ffff:fffe'}], 'gateway_ip': '270c:ffc1:c62e:7a23:b315:bb00:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '270c:ffc1:c62e:7a23:b315:bb00:0:2', 'tags': [], 'project_id': '190ce1e0e7754930bc376fd6dcba6912'}} 2026-09-15 11:15:34,400 - INFO - Created VN ctest-vn4-02501080 2026-09-15 11:15:34,453 - DEBUG - VN ctest-vn4-02501080 UUID is e9a60785-c000-4c54-9988-88265fdadf83 2026-09-15 11:15:34,677 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9a60785-c000-4c54-9988-88265fdadf83', 'name': 'ctest-vn4-02501080', 'tenant_id': '190ce1e0e7754930bc376fd6dcba6912', 'project_id': '190ce1e0e7754930bc376fd6dcba6912', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['62eaa670-64a2-4e67-b7b5-fafc3f8df567', 'e54ed252-bbfd-4bde-b016-6387d1f8a10a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19192613', 'ctest-vn4-02501080'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19192613', 'ctest-policy1-39093152']], 'subnet_ipam': [{'subnet_cidr': '108.174.171.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '270c:ffc1:c62e:7a23:b315:bb00::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-15 11:15:34,865 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-15 11:15:35,236 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-15 11:15:35,266 - DEBUG - Requesting: http://10.0.0.163:8082/domain/0678f5e7-3a63-4b53-aa60-c1f845d5d3b7 2026-09-15 11:15:35,280 - DEBUG - Requesting: http://10.0.0.163:8082/project/190ce1e0-e775-4930-bc37-6fd6dcba6912 2026-09-15 11:15:35,368 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e9a60785-c000-4c54-9988-88265fdadf83 2026-09-15 11:15:35,390 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e9a60785-c000-4c54-9988-88265fdadf83 2026-09-15 11:15:35,402 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b3725ce1-2a62-47e9-9738-c2f30a11b90a 2026-09-15 11:15:35,411 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b3725ce1-2a62-47e9-9738-c2f30a11b90a 2026-09-15 11:15:35,418 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/b1078b12-8dbe-4e60-b911-809adae5e57e 2026-09-15 11:15:35,425 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-15 11:15:35,425 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e9a60785-c000-4c54-9988-88265fdadf83 2026-09-15 11:15:35,435 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b3725ce1-2a62-47e9-9738-c2f30a11b90a 2026-09-15 11:15:35,451 - INFO - Verified VN network id 10 for VN e9a60785-c000-4c54-9988-88265fdadf83 2026-09-15 11:15:35,451 - INFO - Verifications in API Server for VN ctest-vn4-02501080 passed 2026-09-15 11:15:35,451 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e9a60785-c000-4c54-9988-88265fdadf83 2026-09-15 11:15:35,462 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b3725ce1-2a62-47e9-9738-c2f30a11b90a 2026-09-15 11:15:35,470 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b3725ce1-2a62-47e9-9738-c2f30a11b90a 2026-09-15 11:15:35,479 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/b1078b12-8dbe-4e60-b911-809adae5e57e 2026-09-15 11:15:35,495 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19192613:ctest-vn4-02501080', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19192613', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16836152528004467796', 'uuid-lslong': '11063242183033937795'}, 'enable': 'true', 'created': '2026-09-15T11:15:33', 'last-modified': '2026-09-15T11:15:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.853377'} 2026-09-15 11:15:35,504 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-15 11:15:35,504 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02501080 passed 2026-09-15 11:15:35,504 - DEBUG - ====Verifying policy data for ctest-vn4-02501080 in API_Server ====== 2026-09-15 11:15:35,504 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-15 11:15:35,511 - DEBUG - Requesting: http://10.0.0.163:8082/domain/0678f5e7-3a63-4b53-aa60-c1f845d5d3b7 2026-09-15 11:15:35,524 - DEBUG - Requesting: http://10.0.0.163:8082/project/190ce1e0-e775-4930-bc37-6fd6dcba6912 2026-09-15 11:15:35,600 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e9a60785-c000-4c54-9988-88265fdadf83 2026-09-15 11:15:35,611 - DEBUG - ==>Verifying data for policy with id: 7e37e92c-6e40-4c86-b0d0-87e45acc5a58, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19192613', 'ctest-policy1-39093152'] 2026-09-15 11:15:35,611 - INFO - VN ctest-vn4-02501080 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-15 11:15:35,611 - DEBUG - Verifying the vn in opserver 2026-09-15 11:15:35,611 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19192613:ctest-vn4-02501080 virtual network link through opserver 10.0.0.163 2026-09-15 11:15:35,611 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-09-15 11:15:35,974 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-09-15 11:15:36,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19192613:ctest-vn4-02501080', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19192613:ctest-vn4-02501080?flat'} 2026-09-15 11:15:36,036 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19192613:ctest-vn4-02501080 is found in opserver 2026-09-15 11:15:36,050 - DEBUG - Do not have enough data to verify VN in agent 2026-09-15 11:15:36,056 - DEBUG - VRF ids for VN ctest-vn4-02501080: {} 2026-09-15 11:15:36,056 - DEBUG - ====Verifying data for ctest-policy1-39093152 in API_Server ====== 2026-09-15 11:15:36,056 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-15 11:15:36,064 - DEBUG - Requesting: http://10.0.0.163:8082/domain/0678f5e7-3a63-4b53-aa60-c1f845d5d3b7 2026-09-15 11:15:36,076 - DEBUG - Requesting: http://10.0.0.163:8082/project/190ce1e0-e775-4930-bc37-6fd6dcba6912 2026-09-15 11:15:36,153 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/7e37e92c-6e40-4c86-b0d0-87e45acc5a58 2026-09-15 11:15:36,166 - INFO - Verified policy ctest-policy1-39093152 in API Server, Result: True 2026-09-15 11:15:36,166 - INFO - Done with setup and verification, moving onto test .. 2026-09-15 11:15:36,174 - INFO - Deleting VN ctest-vn4-02501080 2026-09-15 11:15:36,313 - DEBUG - Response for deleting network () 2026-09-15 11:15:36,313 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/b3725ce1-2a62-47e9-9738-c2f30a11b90a 2026-09-15 11:15:36,319 - DEBUG - Response Code: 404 2026-09-15 11:15:36,320 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-15 11:15:36,326 - DEBUG - Requesting: http://10.0.0.163:8082/domain/0678f5e7-3a63-4b53-aa60-c1f845d5d3b7 2026-09-15 11:15:36,385 - DEBUG - Requesting: http://10.0.0.163:8082/project/190ce1e0-e775-4930-bc37-6fd6dcba6912 2026-09-15 11:15:36,465 - INFO - Validated that VN ctest-vn4-02501080 is not found in API Server 2026-09-15 11:15:36,478 - DEBUG - VN ctest-vn4-02501080 is not present in Agent 10.0.0.163 2026-09-15 11:15:36,478 - INFO - Validated that VN ctest-vn4-02501080 is not in any agent 2026-09-15 11:15:36,494 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02501080 info 2026-09-15 11:15:36,521 - INFO - Deleted policy ctest-policy1-39093152 2026-09-15 11:15:36,688 - DEBUG - policy ctest-policy1-39093152 is not found in API Server 2026-09-15 11:15:36,961 - DEBUG - No XMPP flaps were noticed during the test 2026-09-15 11:15:36,961 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-15 11:15:36,961 - INFO - -------------------------------------------------------------------------------- 2026-09-15 11:15:37,261 - DEBUG - No XMPP flaps were noticed during the test 2026-09-15 11:15:37,261 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-15 11:15:37,261 - INFO - -------------------------------------------------------------------------------- 2026-09-15 11:15:38,034 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19192613, ID : 190ce1e0-e775-4930-bc37-6fd6dcba6912