2026-02-19 18:20:36,018 - INFO - Domain Default found not creating 2026-02-19 18:20:36,194 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13723692 not found, creating it 2026-02-19 18:20:36,668 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13723692, ID : 2d944b73-084b-429d-805c-47a15d11c054 2026-02-19 18:20:38,153 - INFO - ================================================================================ 2026-02-19 18:20:38,153 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 18:20:38,415 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-19 18:20:38,415 - INFO - Initial checks done. Running the testcase now 2026-02-19 18:20:38,415 - INFO - 2026-02-19 18:20:38,415 - INFO - ================================================================================ 2026-02-19 18:20:38,415 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 18:20:38,415 - 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-19 18:20:38,702 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-19 18:20:38,702 - INFO - Initial checks done. Running the testcase now 2026-02-19 18:20:38,702 - INFO - 2026-02-19 18:20:39,062 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13723692:ctest-vn4-51163375, 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-13723692:ctest-vn4-51163375, 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-13723692:ctest-vn4-51163375, 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-13723692:ctest-vn4-51163375, 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-19 18:20:39,564 - DEBUG - Response for create_network : {'network': {'id': 'a6ad04cd-aee7-4690-899c-18fae69ccf55', 'name': 'ctest-vn4-51163375', 'tenant_id': '2d944b73084b429d805c47a15d11c054', 'project_id': '2d944b73084b429d805c47a15d11c054', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13723692', 'ctest-vn4-51163375'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 18:20:39,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fa56a31-30cd-4293-a627-566b0fbda937', 'name': '', 'tenant_id': '2d944b73084b429d805c47a15d11c054', 'network_id': 'a6ad04cd-aee7-4690-899c-18fae69ccf55', 'ip_version': 4, 'cidr': '53.36.90.0/26', 'allocation_pools': [{'start': '53.36.90.2', 'end': '53.36.90.62'}], 'gateway_ip': '53.36.90.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.36.90.2', 'tags': [], 'project_id': '2d944b73084b429d805c47a15d11c054'}} 2026-02-19 18:20:39,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '08f6b08d-7602-4c86-b6aa-8ff444966146', 'name': '', 'tenant_id': '2d944b73084b429d805c47a15d11c054', 'network_id': 'a6ad04cd-aee7-4690-899c-18fae69ccf55', 'ip_version': 6, 'cidr': '39b5:cad3:fab7:dfc6:68f7:f829::/96', 'allocation_pools': [{'start': '39b5:cad3:fab7:dfc6:68f7:f829:0:2', 'end': '39b5:cad3:fab7:dfc6:68f7:f829:ffff:fffe'}], 'gateway_ip': '39b5:cad3:fab7:dfc6:68f7:f829:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39b5:cad3:fab7:dfc6:68f7:f829:0:2', 'tags': [], 'project_id': '2d944b73084b429d805c47a15d11c054'}} 2026-02-19 18:20:39,955 - INFO - Created VN ctest-vn4-51163375 2026-02-19 18:20:40,009 - DEBUG - VN ctest-vn4-51163375 UUID is a6ad04cd-aee7-4690-899c-18fae69ccf55 2026-02-19 18:20:40,200 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6ad04cd-aee7-4690-899c-18fae69ccf55', 'name': 'ctest-vn4-51163375', 'tenant_id': '2d944b73084b429d805c47a15d11c054', 'project_id': '2d944b73084b429d805c47a15d11c054', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fa56a31-30cd-4293-a627-566b0fbda937', '08f6b08d-7602-4c86-b6aa-8ff444966146'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13723692', 'ctest-vn4-51163375'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13723692', 'ctest-policy1-20639572']], 'subnet_ipam': [{'subnet_cidr': '53.36.90.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39b5:cad3:fab7:dfc6:68f7:f829::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 18:20:40,361 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 18:20:40,653 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 18:20:40,680 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8074bd5b-8762-48a2-ac4f-36de6b3909b9 2026-02-19 18:20:40,691 - DEBUG - Requesting: http://10.0.0.129:8082/project/2d944b73-084b-429d-805c-47a15d11c054 2026-02-19 18:20:40,768 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a6ad04cd-aee7-4690-899c-18fae69ccf55 2026-02-19 18:20:40,779 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a6ad04cd-aee7-4690-899c-18fae69ccf55 2026-02-19 18:20:40,788 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/02367770-d6fc-4a81-abb0-47c30fa11fbf 2026-02-19 18:20:40,794 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/02367770-d6fc-4a81-abb0-47c30fa11fbf 2026-02-19 18:20:40,801 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/a94b9880-fbec-4d8d-a5ee-431b1c109e75 2026-02-19 18:20:40,809 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 18:20:40,809 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a6ad04cd-aee7-4690-899c-18fae69ccf55 2026-02-19 18:20:40,818 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/02367770-d6fc-4a81-abb0-47c30fa11fbf 2026-02-19 18:20:40,832 - INFO - Verified VN network id 11 for VN a6ad04cd-aee7-4690-899c-18fae69ccf55 2026-02-19 18:20:40,832 - INFO - Verifications in API Server for VN ctest-vn4-51163375 passed 2026-02-19 18:20:40,832 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a6ad04cd-aee7-4690-899c-18fae69ccf55 2026-02-19 18:20:40,841 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/02367770-d6fc-4a81-abb0-47c30fa11fbf 2026-02-19 18:20:40,848 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/02367770-d6fc-4a81-abb0-47c30fa11fbf 2026-02-19 18:20:40,855 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/a94b9880-fbec-4d8d-a5ee-431b1c109e75 2026-02-19 18:20:40,866 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13723692:ctest-vn4-51163375', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13723692', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12010261062716180112', 'uuid-lslong': '9915827945452916565'}, 'enable': 'true', 'created': '2026-02-19T18:20:39', 'last-modified': '2026-02-19T18:20:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688523'} 2026-02-19 18:20:40,871 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 18:20:40,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51163375 passed 2026-02-19 18:20:40,871 - DEBUG - ====Verifying policy data for ctest-vn4-51163375 in API_Server ====== 2026-02-19 18:20:40,871 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 18:20:40,877 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8074bd5b-8762-48a2-ac4f-36de6b3909b9 2026-02-19 18:20:40,887 - DEBUG - Requesting: http://10.0.0.129:8082/project/2d944b73-084b-429d-805c-47a15d11c054 2026-02-19 18:20:40,954 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a6ad04cd-aee7-4690-899c-18fae69ccf55 2026-02-19 18:20:40,962 - DEBUG - ==>Verifying data for policy with id: 87ac7c8f-2c94-4d8c-98b7-091cb821033e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13723692', 'ctest-policy1-20639572'] 2026-02-19 18:20:40,963 - INFO - VN ctest-vn4-51163375 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 18:20:40,963 - DEBUG - Verifying the vn in opserver 2026-02-19 18:20:40,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13723692:ctest-vn4-51163375 virtual network link through opserver 10.0.0.129 2026-02-19 18:20:40,963 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-19 18:20:41,252 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-19 18:20:41,325 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13723692:ctest-vn4-51163375', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13723692:ctest-vn4-51163375?flat'} 2026-02-19 18:20:41,325 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13723692:ctest-vn4-51163375 is found in opserver 2026-02-19 18:20:41,334 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 18:20:41,338 - DEBUG - VRF ids for VN ctest-vn4-51163375: {} 2026-02-19 18:20:41,339 - DEBUG - ====Verifying data for ctest-policy1-20639572 in API_Server ====== 2026-02-19 18:20:41,339 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 18:20:41,344 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8074bd5b-8762-48a2-ac4f-36de6b3909b9 2026-02-19 18:20:41,354 - DEBUG - Requesting: http://10.0.0.129:8082/project/2d944b73-084b-429d-805c-47a15d11c054 2026-02-19 18:20:41,419 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/87ac7c8f-2c94-4d8c-98b7-091cb821033e 2026-02-19 18:20:41,434 - INFO - Verified policy ctest-policy1-20639572 in API Server, Result: True 2026-02-19 18:20:41,434 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 18:20:41,441 - INFO - Deleting VN ctest-vn4-51163375 2026-02-19 18:20:41,548 - DEBUG - Response for deleting network () 2026-02-19 18:20:41,548 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/02367770-d6fc-4a81-abb0-47c30fa11fbf 2026-02-19 18:20:41,552 - DEBUG - Response Code: 404 2026-02-19 18:20:41,552 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 18:20:41,557 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8074bd5b-8762-48a2-ac4f-36de6b3909b9 2026-02-19 18:20:41,609 - DEBUG - Requesting: http://10.0.0.129:8082/project/2d944b73-084b-429d-805c-47a15d11c054 2026-02-19 18:20:41,676 - INFO - Validated that VN ctest-vn4-51163375 is not found in API Server 2026-02-19 18:20:41,684 - DEBUG - VN ctest-vn4-51163375 is not present in Agent 10.0.0.129 2026-02-19 18:20:41,684 - INFO - Validated that VN ctest-vn4-51163375 is not in any agent 2026-02-19 18:20:41,696 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51163375 info 2026-02-19 18:20:41,716 - INFO - Deleted policy ctest-policy1-20639572 2026-02-19 18:20:41,881 - DEBUG - policy ctest-policy1-20639572 is not found in API Server 2026-02-19 18:20:42,134 - DEBUG - No XMPP flaps were noticed during the test