2026-01-30 07:56:37,525 - INFO - Domain Default found not creating 2026-01-30 07:56:37,690 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51299689 not found, creating it 2026-01-30 07:56:38,130 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51299689, ID : 1499fd85-6228-469e-97c9-aaea749bc45d 2026-01-30 07:56:39,581 - INFO - ================================================================================ 2026-01-30 07:56:39,581 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 07:56:39,833 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.17': '0'}} with 2026-01-30 07:56:39,833 - INFO - Initial checks done. Running the testcase now 2026-01-30 07:56:39,833 - INFO - 2026-01-30 07:56:39,833 - INFO - ================================================================================ 2026-01-30 07:56:39,833 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 07:56:39,833 - 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-01-30 07:56:40,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.17': '0'}} with 2026-01-30 07:56:40,122 - INFO - Initial checks done. Running the testcase now 2026-01-30 07:56:40,122 - INFO - 2026-01-30 07:56:40,477 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51299689:ctest-vn4-81775558, 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-51299689:ctest-vn4-81775558, 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-51299689:ctest-vn4-81775558, 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-51299689:ctest-vn4-81775558, 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-01-30 07:56:40,971 - DEBUG - Response for create_network : {'network': {'id': 'c61acd0b-aaa5-458a-9866-15b7bc364402', 'name': 'ctest-vn4-81775558', 'tenant_id': '1499fd856228469e97c9aaea749bc45d', 'project_id': '1499fd856228469e97c9aaea749bc45d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51299689', 'ctest-vn4-81775558'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 07:56:41,150 - DEBUG - Response for create_subnet : {'subnet': {'id': '8df8a44a-2a6e-4d4e-bc79-95e3b5f5098b', 'name': '', 'tenant_id': '1499fd856228469e97c9aaea749bc45d', 'network_id': 'c61acd0b-aaa5-458a-9866-15b7bc364402', 'ip_version': 4, 'cidr': '147.113.14.64/26', 'allocation_pools': [{'start': '147.113.14.66', 'end': '147.113.14.126'}], 'gateway_ip': '147.113.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.113.14.66', 'tags': [], 'project_id': '1499fd856228469e97c9aaea749bc45d'}} 2026-01-30 07:56:41,304 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac553ab6-fd81-4ab6-8c41-bec2143ead9c', 'name': '', 'tenant_id': '1499fd856228469e97c9aaea749bc45d', 'network_id': 'c61acd0b-aaa5-458a-9866-15b7bc364402', 'ip_version': 6, 'cidr': '2da4:68f4:3251:b2b6:7cf2:c93e::/96', 'allocation_pools': [{'start': '2da4:68f4:3251:b2b6:7cf2:c93e:0:2', 'end': '2da4:68f4:3251:b2b6:7cf2:c93e:ffff:fffe'}], 'gateway_ip': '2da4:68f4:3251:b2b6:7cf2:c93e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2da4:68f4:3251:b2b6:7cf2:c93e:0:2', 'tags': [], 'project_id': '1499fd856228469e97c9aaea749bc45d'}} 2026-01-30 07:56:41,322 - INFO - Created VN ctest-vn4-81775558 2026-01-30 07:56:41,372 - DEBUG - VN ctest-vn4-81775558 UUID is c61acd0b-aaa5-458a-9866-15b7bc364402 2026-01-30 07:56:41,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c61acd0b-aaa5-458a-9866-15b7bc364402', 'name': 'ctest-vn4-81775558', 'tenant_id': '1499fd856228469e97c9aaea749bc45d', 'project_id': '1499fd856228469e97c9aaea749bc45d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8df8a44a-2a6e-4d4e-bc79-95e3b5f5098b', 'ac553ab6-fd81-4ab6-8c41-bec2143ead9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51299689', 'ctest-vn4-81775558'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51299689', 'ctest-policy1-89354861']], 'subnet_ipam': [{'subnet_cidr': '147.113.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2da4:68f4:3251:b2b6:7cf2:c93e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 07:56:41,704 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2026-01-30 07:56:41,999 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2026-01-30 07:56:42,029 - DEBUG - Requesting: http://10.0.0.42:8082/domain/f578d64e-2590-4f7b-83b2-7494bdcc7ade 2026-01-30 07:56:42,039 - DEBUG - Requesting: http://10.0.0.42:8082/project/1499fd85-6228-469e-97c9-aaea749bc45d 2026-01-30 07:56:42,118 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c61acd0b-aaa5-458a-9866-15b7bc364402 2026-01-30 07:56:42,129 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c61acd0b-aaa5-458a-9866-15b7bc364402 2026-01-30 07:56:42,140 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/48b929e3-354f-4a74-929e-4a4e498562dd 2026-01-30 07:56:42,148 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/48b929e3-354f-4a74-929e-4a4e498562dd 2026-01-30 07:56:42,154 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/586b2196-824f-4d14-9e26-367665a0755a 2026-01-30 07:56:42,159 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 07:56:42,159 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c61acd0b-aaa5-458a-9866-15b7bc364402 2026-01-30 07:56:42,167 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/48b929e3-354f-4a74-929e-4a4e498562dd 2026-01-30 07:56:42,180 - INFO - Verified VN network id 11 for VN c61acd0b-aaa5-458a-9866-15b7bc364402 2026-01-30 07:56:42,180 - INFO - Verifications in API Server for VN ctest-vn4-81775558 passed 2026-01-30 07:56:42,180 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c61acd0b-aaa5-458a-9866-15b7bc364402 2026-01-30 07:56:42,188 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/48b929e3-354f-4a74-929e-4a4e498562dd 2026-01-30 07:56:42,195 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/48b929e3-354f-4a74-929e-4a4e498562dd 2026-01-30 07:56:42,201 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/586b2196-824f-4d14-9e26-367665a0755a 2026-01-30 07:56:42,211 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51299689:ctest-vn4-81775558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51299689', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14274947418895500682', 'uuid-lslong': '10981488620270404610'}, 'enable': 'true', 'created': '2026-01-30T07:56:40', 'last-modified': '2026-01-30T07:56:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682812'} 2026-01-30 07:56:42,219 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 07:56:42,219 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81775558 passed 2026-01-30 07:56:42,219 - DEBUG - ====Verifying policy data for ctest-vn4-81775558 in API_Server ====== 2026-01-30 07:56:42,219 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2026-01-30 07:56:42,224 - DEBUG - Requesting: http://10.0.0.42:8082/domain/f578d64e-2590-4f7b-83b2-7494bdcc7ade 2026-01-30 07:56:42,234 - DEBUG - Requesting: http://10.0.0.42:8082/project/1499fd85-6228-469e-97c9-aaea749bc45d 2026-01-30 07:56:42,298 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c61acd0b-aaa5-458a-9866-15b7bc364402 2026-01-30 07:56:42,309 - DEBUG - ==>Verifying data for policy with id: 055cd66f-6fb9-406e-8231-d8a1b2eb9acb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51299689', 'ctest-policy1-89354861'] 2026-01-30 07:56:42,309 - INFO - VN ctest-vn4-81775558 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 07:56:42,309 - DEBUG - Verifying the vn in opserver 2026-01-30 07:56:42,309 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51299689:ctest-vn4-81775558 virtual network link through opserver 10.0.0.42 2026-01-30 07:56:42,309 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2026-01-30 07:56:42,605 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2026-01-30 07:56:42,666 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51299689:ctest-vn4-81775558', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51299689:ctest-vn4-81775558?flat'} 2026-01-30 07:56:42,666 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51299689:ctest-vn4-81775558 is found in opserver 2026-01-30 07:56:42,676 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 07:56:42,680 - DEBUG - VRF ids for VN ctest-vn4-81775558: {} 2026-01-30 07:56:42,680 - DEBUG - ====Verifying data for ctest-policy1-89354861 in API_Server ====== 2026-01-30 07:56:42,680 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2026-01-30 07:56:42,685 - DEBUG - Requesting: http://10.0.0.42:8082/domain/f578d64e-2590-4f7b-83b2-7494bdcc7ade 2026-01-30 07:56:42,695 - DEBUG - Requesting: http://10.0.0.42:8082/project/1499fd85-6228-469e-97c9-aaea749bc45d 2026-01-30 07:56:42,764 - DEBUG - Requesting: http://10.0.0.42:8082/network-policy/055cd66f-6fb9-406e-8231-d8a1b2eb9acb 2026-01-30 07:56:42,773 - INFO - Verified policy ctest-policy1-89354861 in API Server, Result: True 2026-01-30 07:56:42,773 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 07:56:42,781 - INFO - Deleting VN ctest-vn4-81775558 2026-01-30 07:56:42,894 - DEBUG - Response for deleting network () 2026-01-30 07:56:42,894 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/48b929e3-354f-4a74-929e-4a4e498562dd 2026-01-30 07:56:42,898 - DEBUG - Response Code: 404 2026-01-30 07:56:42,898 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2026-01-30 07:56:42,902 - DEBUG - Requesting: http://10.0.0.42:8082/domain/f578d64e-2590-4f7b-83b2-7494bdcc7ade 2026-01-30 07:56:42,953 - DEBUG - Requesting: http://10.0.0.42:8082/project/1499fd85-6228-469e-97c9-aaea749bc45d 2026-01-30 07:56:43,017 - INFO - Validated that VN ctest-vn4-81775558 is not found in API Server 2026-01-30 07:56:43,027 - DEBUG - VN ctest-vn4-81775558 is not present in Agent 10.0.0.42 2026-01-30 07:56:43,027 - INFO - Validated that VN ctest-vn4-81775558 is not in any agent 2026-01-30 07:56:43,039 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81775558 info 2026-01-30 07:56:43,073 - INFO - Deleted policy ctest-policy1-89354861 2026-01-30 07:56:43,240 - DEBUG - policy ctest-policy1-89354861 is not found in API Server 2026-01-30 07:56:43,497 - DEBUG - No XMPP flaps were noticed during the test