2026-03-16 01:58:51,941 - INFO - Domain Default found not creating 2026-03-16 01:58:52,106 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91620105 not found, creating it 2026-03-16 01:58:52,585 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91620105, ID : a2144283-b9f2-4f1d-b179-70a5ce6fc276 2026-03-16 01:58:54,050 - INFO - ================================================================================ 2026-03-16 01:58:54,050 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 01:58:54,308 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-03-16 01:58:54,308 - INFO - Initial checks done. Running the testcase now 2026-03-16 01:58:54,308 - INFO - 2026-03-16 01:58:54,308 - INFO - ================================================================================ 2026-03-16 01:58:54,308 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 01:58:54,308 - 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-03-16 01:58:54,605 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-03-16 01:58:54,605 - INFO - Initial checks done. Running the testcase now 2026-03-16 01:58:54,605 - INFO - 2026-03-16 01:58:54,974 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91620105:ctest-vn4-83116377, 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-91620105:ctest-vn4-83116377, 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-91620105:ctest-vn4-83116377, 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-91620105:ctest-vn4-83116377, 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-03-16 01:58:55,485 - DEBUG - Response for create_network : {'network': {'id': '43333551-faf3-44da-b82a-c3a3f5a10f09', 'name': 'ctest-vn4-83116377', 'tenant_id': 'a2144283b9f24f1db17970a5ce6fc276', 'project_id': 'a2144283b9f24f1db17970a5ce6fc276', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91620105', 'ctest-vn4-83116377'], 'port_security_enabled': True, 'description': ''}} 2026-03-16 01:58:55,670 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ebd9da07-f82a-4910-a7e2-9e7f03100931', 'name': '', 'tenant_id': 'a2144283b9f24f1db17970a5ce6fc276', 'network_id': '43333551-faf3-44da-b82a-c3a3f5a10f09', 'ip_version': 4, 'cidr': '18.132.104.128/26', 'allocation_pools': [{'start': '18.132.104.130', 'end': '18.132.104.190'}], 'gateway_ip': '18.132.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.132.104.130', 'tags': [], 'project_id': 'a2144283b9f24f1db17970a5ce6fc276'}} 2026-03-16 01:58:55,884 - DEBUG - Response for create_subnet : {'subnet': {'id': '00967898-1814-4850-8839-ef2e9647496b', 'name': '', 'tenant_id': 'a2144283b9f24f1db17970a5ce6fc276', 'network_id': '43333551-faf3-44da-b82a-c3a3f5a10f09', 'ip_version': 6, 'cidr': '382a:bf4:aef7:9419:1787:a085::/96', 'allocation_pools': [{'start': '382a:bf4:aef7:9419:1787:a085:0:2', 'end': '382a:bf4:aef7:9419:1787:a085:ffff:fffe'}], 'gateway_ip': '382a:bf4:aef7:9419:1787:a085:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '382a:bf4:aef7:9419:1787:a085:0:2', 'tags': [], 'project_id': 'a2144283b9f24f1db17970a5ce6fc276'}} 2026-03-16 01:58:55,903 - INFO - Created VN ctest-vn4-83116377 2026-03-16 01:58:55,966 - DEBUG - VN ctest-vn4-83116377 UUID is 43333551-faf3-44da-b82a-c3a3f5a10f09 2026-03-16 01:58:56,161 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43333551-faf3-44da-b82a-c3a3f5a10f09', 'name': 'ctest-vn4-83116377', 'tenant_id': 'a2144283b9f24f1db17970a5ce6fc276', 'project_id': 'a2144283b9f24f1db17970a5ce6fc276', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ebd9da07-f82a-4910-a7e2-9e7f03100931', '00967898-1814-4850-8839-ef2e9647496b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91620105', 'ctest-vn4-83116377'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91620105', 'ctest-policy1-26333433']], 'subnet_ipam': [{'subnet_cidr': '18.132.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '382a:bf4:aef7:9419:1787:a085::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-16 01:58:56,314 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-16 01:58:56,616 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-16 01:58:56,645 - DEBUG - Requesting: http://10.0.0.242:8082/domain/366c747b-7590-41e4-98f2-be52755fe3d3 2026-03-16 01:58:56,657 - DEBUG - Requesting: http://10.0.0.242:8082/project/a2144283-b9f2-4f1d-b179-70a5ce6fc276 2026-03-16 01:58:56,728 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/43333551-faf3-44da-b82a-c3a3f5a10f09 2026-03-16 01:58:56,738 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/43333551-faf3-44da-b82a-c3a3f5a10f09 2026-03-16 01:58:56,747 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb738d61-2607-4009-90f6-fe4cf246d23b 2026-03-16 01:58:56,754 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb738d61-2607-4009-90f6-fe4cf246d23b 2026-03-16 01:58:56,760 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f815552f-37d6-4cd5-9a2a-7d3ac1c90117 2026-03-16 01:58:56,766 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 01:58:56,766 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/43333551-faf3-44da-b82a-c3a3f5a10f09 2026-03-16 01:58:56,775 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb738d61-2607-4009-90f6-fe4cf246d23b 2026-03-16 01:58:56,788 - INFO - Verified VN network id 11 for VN 43333551-faf3-44da-b82a-c3a3f5a10f09 2026-03-16 01:58:56,788 - INFO - Verifications in API Server for VN ctest-vn4-83116377 passed 2026-03-16 01:58:56,788 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/43333551-faf3-44da-b82a-c3a3f5a10f09 2026-03-16 01:58:56,797 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb738d61-2607-4009-90f6-fe4cf246d23b 2026-03-16 01:58:56,804 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb738d61-2607-4009-90f6-fe4cf246d23b 2026-03-16 01:58:56,811 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f815552f-37d6-4cd5-9a2a-7d3ac1c90117 2026-03-16 01:58:56,822 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91620105:ctest-vn4-83116377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91620105', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4842272650572285146', 'uuid-lslong': '13270634360968646409'}, 'enable': 'true', 'created': '2026-03-16T01:58:55', 'last-modified': '2026-03-16T01:58:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.685189'} 2026-03-16 01:58:56,830 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 01:58:56,830 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83116377 passed 2026-03-16 01:58:56,831 - DEBUG - ====Verifying policy data for ctest-vn4-83116377 in API_Server ====== 2026-03-16 01:58:56,831 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-16 01:58:56,837 - DEBUG - Requesting: http://10.0.0.242:8082/domain/366c747b-7590-41e4-98f2-be52755fe3d3 2026-03-16 01:58:56,847 - DEBUG - Requesting: http://10.0.0.242:8082/project/a2144283-b9f2-4f1d-b179-70a5ce6fc276 2026-03-16 01:58:56,918 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/43333551-faf3-44da-b82a-c3a3f5a10f09 2026-03-16 01:58:56,929 - DEBUG - ==>Verifying data for policy with id: a75fc8b1-2628-4639-ab98-7da74f73950c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91620105', 'ctest-policy1-26333433'] 2026-03-16 01:58:56,929 - INFO - VN ctest-vn4-83116377 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-16 01:58:56,929 - DEBUG - Verifying the vn in opserver 2026-03-16 01:58:56,929 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91620105:ctest-vn4-83116377 virtual network link through opserver 10.0.0.242 2026-03-16 01:58:56,930 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-16 01:58:57,238 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-16 01:58:57,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91620105:ctest-vn4-83116377', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91620105:ctest-vn4-83116377?flat'} 2026-03-16 01:58:57,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91620105:ctest-vn4-83116377 is found in opserver 2026-03-16 01:58:57,346 - DEBUG - Do not have enough data to verify VN in agent 2026-03-16 01:58:57,350 - DEBUG - VRF ids for VN ctest-vn4-83116377: {} 2026-03-16 01:58:57,350 - DEBUG - ====Verifying data for ctest-policy1-26333433 in API_Server ====== 2026-03-16 01:58:57,350 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-16 01:58:57,358 - DEBUG - Requesting: http://10.0.0.242:8082/domain/366c747b-7590-41e4-98f2-be52755fe3d3 2026-03-16 01:58:57,415 - DEBUG - Requesting: http://10.0.0.242:8082/project/a2144283-b9f2-4f1d-b179-70a5ce6fc276 2026-03-16 01:58:57,509 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/a75fc8b1-2628-4639-ab98-7da74f73950c 2026-03-16 01:58:57,523 - INFO - Verified policy ctest-policy1-26333433 in API Server, Result: True 2026-03-16 01:58:57,523 - INFO - Done with setup and verification, moving onto test .. 2026-03-16 01:58:57,533 - INFO - Deleting VN ctest-vn4-83116377 2026-03-16 01:58:57,792 - DEBUG - Response for deleting network () 2026-03-16 01:58:57,793 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bb738d61-2607-4009-90f6-fe4cf246d23b 2026-03-16 01:58:57,798 - DEBUG - Response Code: 404 2026-03-16 01:58:57,798 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-16 01:58:57,804 - DEBUG - Requesting: http://10.0.0.242:8082/domain/366c747b-7590-41e4-98f2-be52755fe3d3 2026-03-16 01:58:57,856 - DEBUG - Requesting: http://10.0.0.242:8082/project/a2144283-b9f2-4f1d-b179-70a5ce6fc276 2026-03-16 01:58:57,922 - INFO - Validated that VN ctest-vn4-83116377 is not found in API Server 2026-03-16 01:58:57,931 - DEBUG - VN ctest-vn4-83116377 is not present in Agent 10.0.0.242 2026-03-16 01:58:57,931 - INFO - Validated that VN ctest-vn4-83116377 is not in any agent 2026-03-16 01:58:57,944 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83116377 info 2026-03-16 01:58:57,969 - INFO - Deleted policy ctest-policy1-26333433 2026-03-16 01:58:58,130 - DEBUG - policy ctest-policy1-26333433 is not found in API Server 2026-03-16 01:58:58,383 - DEBUG - No XMPP flaps were noticed during the test 2026-03-16 01:58:58,383 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-16 01:58:58,383 - INFO - -------------------------------------------------------------------------------- 2026-03-16 01:58:58,672 - DEBUG - No XMPP flaps were noticed during the test 2026-03-16 01:58:58,672 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-16 01:58:58,672 - INFO - -------------------------------------------------------------------------------- 2026-03-16 01:58:59,348 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91620105, ID : a2144283-b9f2-4f1d-b179-70a5ce6fc276