2026-02-27 10:21:33,647 - INFO - Domain Default found not creating 2026-02-27 10:21:33,824 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80798884 not found, creating it 2026-02-27 10:21:34,317 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80798884, ID : 20c26d18-859b-4ae6-89dd-d6ac38663e77 2026-02-27 10:21:36,149 - INFO - ================================================================================ 2026-02-27 10:21:36,150 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-27 10:21:36,410 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-27 10:21:36,410 - INFO - Initial checks done. Running the testcase now 2026-02-27 10:21:36,410 - INFO - 2026-02-27 10:21:36,410 - INFO - ================================================================================ 2026-02-27 10:21:36,410 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-27 10:21:36,410 - 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-02-27 10:21:36,701 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-27 10:21:36,701 - INFO - Initial checks done. Running the testcase now 2026-02-27 10:21:36,701 - INFO - 2026-02-27 10:21:37,055 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80798884:ctest-vn4-54824801, 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-80798884:ctest-vn4-54824801, 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-80798884:ctest-vn4-54824801, 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-80798884:ctest-vn4-54824801, 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-02-27 10:21:37,578 - DEBUG - Response for create_network : {'network': {'id': 'ddb4a1fb-757c-4897-8181-964368c8be70', 'name': 'ctest-vn4-54824801', 'tenant_id': '20c26d18859b4ae689ddd6ac38663e77', 'project_id': '20c26d18859b4ae689ddd6ac38663e77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80798884', 'ctest-vn4-54824801'], 'port_security_enabled': True, 'description': ''}} 2026-02-27 10:21:37,751 - DEBUG - Response for create_subnet : {'subnet': {'id': '16b11359-a017-4fe7-9b05-d6daefe3a612', 'name': '', 'tenant_id': '20c26d18859b4ae689ddd6ac38663e77', 'network_id': 'ddb4a1fb-757c-4897-8181-964368c8be70', 'ip_version': 4, 'cidr': '135.153.197.128/26', 'allocation_pools': [{'start': '135.153.197.130', 'end': '135.153.197.190'}], 'gateway_ip': '135.153.197.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.153.197.130', 'tags': [], 'project_id': '20c26d18859b4ae689ddd6ac38663e77'}} 2026-02-27 10:21:37,933 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd111a926-acc4-4c72-902a-b2a8a1fb7c28', 'name': '', 'tenant_id': '20c26d18859b4ae689ddd6ac38663e77', 'network_id': 'ddb4a1fb-757c-4897-8181-964368c8be70', 'ip_version': 6, 'cidr': '3fd3:837f:96ca:f0e6:d160:7095::/96', 'allocation_pools': [{'start': '3fd3:837f:96ca:f0e6:d160:7095:0:2', 'end': '3fd3:837f:96ca:f0e6:d160:7095:ffff:fffe'}], 'gateway_ip': '3fd3:837f:96ca:f0e6:d160:7095:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fd3:837f:96ca:f0e6:d160:7095:0:2', 'tags': [], 'project_id': '20c26d18859b4ae689ddd6ac38663e77'}} 2026-02-27 10:21:37,954 - INFO - Created VN ctest-vn4-54824801 2026-02-27 10:21:38,004 - DEBUG - VN ctest-vn4-54824801 UUID is ddb4a1fb-757c-4897-8181-964368c8be70 2026-02-27 10:21:38,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddb4a1fb-757c-4897-8181-964368c8be70', 'name': 'ctest-vn4-54824801', 'tenant_id': '20c26d18859b4ae689ddd6ac38663e77', 'project_id': '20c26d18859b4ae689ddd6ac38663e77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16b11359-a017-4fe7-9b05-d6daefe3a612', 'd111a926-acc4-4c72-902a-b2a8a1fb7c28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80798884', 'ctest-vn4-54824801'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80798884', 'ctest-policy1-71948801']], 'subnet_ipam': [{'subnet_cidr': '135.153.197.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fd3:837f:96ca:f0e6:d160:7095::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-27 10:21:38,364 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 10:21:38,657 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 10:21:38,689 - DEBUG - Requesting: http://10.0.0.38:8082/domain/141435af-8789-4291-b58c-92079d8bb1c4 2026-02-27 10:21:38,702 - DEBUG - Requesting: http://10.0.0.38:8082/project/20c26d18-859b-4ae6-89dd-d6ac38663e77 2026-02-27 10:21:38,777 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ddb4a1fb-757c-4897-8181-964368c8be70 2026-02-27 10:21:38,789 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ddb4a1fb-757c-4897-8181-964368c8be70 2026-02-27 10:21:38,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa7dc237-c071-417c-9ca4-a5710f1dce8e 2026-02-27 10:21:38,804 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa7dc237-c071-417c-9ca4-a5710f1dce8e 2026-02-27 10:21:38,810 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fc042d14-0dd8-4125-a8b1-ba7db49fd133 2026-02-27 10:21:38,816 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-27 10:21:38,816 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ddb4a1fb-757c-4897-8181-964368c8be70 2026-02-27 10:21:38,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa7dc237-c071-417c-9ca4-a5710f1dce8e 2026-02-27 10:21:38,837 - INFO - Verified VN network id 11 for VN ddb4a1fb-757c-4897-8181-964368c8be70 2026-02-27 10:21:38,837 - INFO - Verifications in API Server for VN ctest-vn4-54824801 passed 2026-02-27 10:21:38,838 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ddb4a1fb-757c-4897-8181-964368c8be70 2026-02-27 10:21:38,846 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa7dc237-c071-417c-9ca4-a5710f1dce8e 2026-02-27 10:21:38,853 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa7dc237-c071-417c-9ca4-a5710f1dce8e 2026-02-27 10:21:38,859 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fc042d14-0dd8-4125-a8b1-ba7db49fd133 2026-02-27 10:21:38,869 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80798884:ctest-vn4-54824801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80798884', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15975571879569934487', 'uuid-lslong': '9331905119153340016'}, 'enable': 'true', 'created': '2026-02-27T10:21:37', 'last-modified': '2026-02-27T10:21:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690686'} 2026-02-27 10:21:38,877 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-27 10:21:38,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54824801 passed 2026-02-27 10:21:38,877 - DEBUG - ====Verifying policy data for ctest-vn4-54824801 in API_Server ====== 2026-02-27 10:21:38,877 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 10:21:38,883 - DEBUG - Requesting: http://10.0.0.38:8082/domain/141435af-8789-4291-b58c-92079d8bb1c4 2026-02-27 10:21:38,893 - DEBUG - Requesting: http://10.0.0.38:8082/project/20c26d18-859b-4ae6-89dd-d6ac38663e77 2026-02-27 10:21:38,962 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ddb4a1fb-757c-4897-8181-964368c8be70 2026-02-27 10:21:38,972 - DEBUG - ==>Verifying data for policy with id: a7b74f92-9a39-4db5-823a-abe7d14675b2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80798884', 'ctest-policy1-71948801'] 2026-02-27 10:21:38,972 - INFO - VN ctest-vn4-54824801 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-27 10:21:38,972 - DEBUG - Verifying the vn in opserver 2026-02-27 10:21:38,972 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80798884:ctest-vn4-54824801 virtual network link through opserver 10.0.0.38 2026-02-27 10:21:38,972 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-27 10:21:39,263 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-27 10:21:39,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80798884:ctest-vn4-54824801', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80798884:ctest-vn4-54824801?flat'} 2026-02-27 10:21:39,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80798884:ctest-vn4-54824801 is found in opserver 2026-02-27 10:21:39,329 - DEBUG - Do not have enough data to verify VN in agent 2026-02-27 10:21:39,334 - DEBUG - VRF ids for VN ctest-vn4-54824801: {} 2026-02-27 10:21:39,335 - DEBUG - ====Verifying data for ctest-policy1-71948801 in API_Server ====== 2026-02-27 10:21:39,335 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 10:21:39,341 - DEBUG - Requesting: http://10.0.0.38:8082/domain/141435af-8789-4291-b58c-92079d8bb1c4 2026-02-27 10:21:39,353 - DEBUG - Requesting: http://10.0.0.38:8082/project/20c26d18-859b-4ae6-89dd-d6ac38663e77 2026-02-27 10:21:39,421 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a7b74f92-9a39-4db5-823a-abe7d14675b2 2026-02-27 10:21:39,429 - INFO - Verified policy ctest-policy1-71948801 in API Server, Result: True 2026-02-27 10:21:39,429 - INFO - Done with setup and verification, moving onto test .. 2026-02-27 10:21:39,437 - INFO - Deleting VN ctest-vn4-54824801 2026-02-27 10:21:39,552 - DEBUG - Response for deleting network () 2026-02-27 10:21:39,552 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa7dc237-c071-417c-9ca4-a5710f1dce8e 2026-02-27 10:21:39,557 - DEBUG - Response Code: 404 2026-02-27 10:21:39,557 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-27 10:21:39,562 - DEBUG - Requesting: http://10.0.0.38:8082/domain/141435af-8789-4291-b58c-92079d8bb1c4 2026-02-27 10:21:39,616 - DEBUG - Requesting: http://10.0.0.38:8082/project/20c26d18-859b-4ae6-89dd-d6ac38663e77 2026-02-27 10:21:39,689 - INFO - Validated that VN ctest-vn4-54824801 is not found in API Server 2026-02-27 10:21:39,699 - DEBUG - VN ctest-vn4-54824801 is not present in Agent 10.0.0.38 2026-02-27 10:21:39,699 - INFO - Validated that VN ctest-vn4-54824801 is not in any agent 2026-02-27 10:21:39,715 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54824801 info 2026-02-27 10:21:39,747 - INFO - Deleted policy ctest-policy1-71948801 2026-02-27 10:21:39,911 - DEBUG - policy ctest-policy1-71948801 is not found in API Server 2026-02-27 10:21:40,164 - DEBUG - No XMPP flaps were noticed during the test