2026-09-07 11:02:19,440 - INFO - Domain Default found not creating 2026-09-07 11:02:19,575 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07807756 not found, creating it 2026-09-07 11:02:20,004 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07807756, ID : c6ffdb56-54ef-4b2b-aac7-4fa4ea311528 2026-09-07 11:02:21,552 - INFO - ================================================================================ 2026-09-07 11:02:21,552 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 11:02:21,807 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-07 11:02:21,807 - INFO - Initial checks done. Running the testcase now 2026-09-07 11:02:21,807 - INFO - 2026-09-07 11:02:21,807 - INFO - ================================================================================ 2026-09-07 11:02:21,807 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 11:02:21,807 - 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-07 11:02:22,095 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-07 11:02:22,095 - INFO - Initial checks done. Running the testcase now 2026-09-07 11:02:22,095 - INFO - 2026-09-07 11:02:22,509 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07807756:ctest-vn4-75139844, 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-07807756:ctest-vn4-75139844, 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-07807756:ctest-vn4-75139844, 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-07807756:ctest-vn4-75139844, 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-07 11:02:23,020 - DEBUG - Response for create_network : {'network': {'id': 'c55de545-c525-4841-86ed-f28686958f15', 'name': 'ctest-vn4-75139844', 'tenant_id': 'c6ffdb5654ef4b2baac74fa4ea311528', 'project_id': 'c6ffdb5654ef4b2baac74fa4ea311528', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07807756', 'ctest-vn4-75139844'], 'port_security_enabled': True, 'description': ''}} 2026-09-07 11:02:23,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '82d37a53-0b4d-4285-85c4-961c3298da53', 'name': '', 'tenant_id': 'c6ffdb5654ef4b2baac74fa4ea311528', 'network_id': 'c55de545-c525-4841-86ed-f28686958f15', 'ip_version': 4, 'cidr': '98.251.53.192/26', 'allocation_pools': [{'start': '98.251.53.194', 'end': '98.251.53.254'}], 'gateway_ip': '98.251.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.251.53.194', 'tags': [], 'project_id': 'c6ffdb5654ef4b2baac74fa4ea311528'}} 2026-09-07 11:02:23,341 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3d8e3d2-396a-4611-9345-b5c343c8f2f1', 'name': '', 'tenant_id': 'c6ffdb5654ef4b2baac74fa4ea311528', 'network_id': 'c55de545-c525-4841-86ed-f28686958f15', 'ip_version': 6, 'cidr': '382a:eca7:8eb7:47e8:e31a:ce25::/96', 'allocation_pools': [{'start': '382a:eca7:8eb7:47e8:e31a:ce25:0:2', 'end': '382a:eca7:8eb7:47e8:e31a:ce25:ffff:fffe'}], 'gateway_ip': '382a:eca7:8eb7:47e8:e31a:ce25:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '382a:eca7:8eb7:47e8:e31a:ce25:0:2', 'tags': [], 'project_id': 'c6ffdb5654ef4b2baac74fa4ea311528'}} 2026-09-07 11:02:23,357 - INFO - Created VN ctest-vn4-75139844 2026-09-07 11:02:23,414 - DEBUG - VN ctest-vn4-75139844 UUID is c55de545-c525-4841-86ed-f28686958f15 2026-09-07 11:02:23,600 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c55de545-c525-4841-86ed-f28686958f15', 'name': 'ctest-vn4-75139844', 'tenant_id': 'c6ffdb5654ef4b2baac74fa4ea311528', 'project_id': 'c6ffdb5654ef4b2baac74fa4ea311528', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['82d37a53-0b4d-4285-85c4-961c3298da53', 'c3d8e3d2-396a-4611-9345-b5c343c8f2f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07807756', 'ctest-vn4-75139844'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07807756', 'ctest-policy1-76788000']], 'subnet_ipam': [{'subnet_cidr': '98.251.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '382a:eca7:8eb7:47e8:e31a:ce25::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-07 11:02:23,758 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-07 11:02:24,117 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-07 11:02:24,148 - DEBUG - Requesting: http://10.0.0.189:8082/domain/324925fe-93de-4662-a1da-2b7e9cc371f6 2026-09-07 11:02:24,162 - DEBUG - Requesting: http://10.0.0.189:8082/project/c6ffdb56-54ef-4b2b-aac7-4fa4ea311528 2026-09-07 11:02:24,234 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c55de545-c525-4841-86ed-f28686958f15 2026-09-07 11:02:24,246 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c55de545-c525-4841-86ed-f28686958f15 2026-09-07 11:02:24,255 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a11c907e-948e-447f-989a-60af72d8a05b 2026-09-07 11:02:24,260 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a11c907e-948e-447f-989a-60af72d8a05b 2026-09-07 11:02:24,265 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/37cf84f4-8fdc-4587-92a8-8932aa5ea1bf 2026-09-07 11:02:24,272 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 11:02:24,272 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c55de545-c525-4841-86ed-f28686958f15 2026-09-07 11:02:24,283 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a11c907e-948e-447f-989a-60af72d8a05b 2026-09-07 11:02:24,295 - INFO - Verified VN network id 11 for VN c55de545-c525-4841-86ed-f28686958f15 2026-09-07 11:02:24,295 - INFO - Verifications in API Server for VN ctest-vn4-75139844 passed 2026-09-07 11:02:24,295 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c55de545-c525-4841-86ed-f28686958f15 2026-09-07 11:02:24,303 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a11c907e-948e-447f-989a-60af72d8a05b 2026-09-07 11:02:24,308 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a11c907e-948e-447f-989a-60af72d8a05b 2026-09-07 11:02:24,314 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/37cf84f4-8fdc-4587-92a8-8932aa5ea1bf 2026-09-07 11:02:24,323 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07807756:ctest-vn4-75139844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07807756', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14221775286128953409', 'uuid-lslong': '9722693830160256789'}, 'enable': 'true', 'created': '2026-09-07T11:02:22', 'last-modified': '2026-09-07T11:02:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755605'} 2026-09-07 11:02:24,330 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 11:02:24,330 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75139844 passed 2026-09-07 11:02:24,330 - DEBUG - ====Verifying policy data for ctest-vn4-75139844 in API_Server ====== 2026-09-07 11:02:24,331 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-07 11:02:24,336 - DEBUG - Requesting: http://10.0.0.189:8082/domain/324925fe-93de-4662-a1da-2b7e9cc371f6 2026-09-07 11:02:24,345 - DEBUG - Requesting: http://10.0.0.189:8082/project/c6ffdb56-54ef-4b2b-aac7-4fa4ea311528 2026-09-07 11:02:24,419 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c55de545-c525-4841-86ed-f28686958f15 2026-09-07 11:02:24,427 - DEBUG - ==>Verifying data for policy with id: 66328efa-5185-40af-9fd2-fc09d4061c8b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07807756', 'ctest-policy1-76788000'] 2026-09-07 11:02:24,427 - INFO - VN ctest-vn4-75139844 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-07 11:02:24,427 - DEBUG - Verifying the vn in opserver 2026-09-07 11:02:24,427 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07807756:ctest-vn4-75139844 virtual network link through opserver 10.0.0.189 2026-09-07 11:02:24,427 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-07 11:02:24,789 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-07 11:02:24,839 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07807756:ctest-vn4-75139844', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07807756:ctest-vn4-75139844?flat'} 2026-09-07 11:02:24,839 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07807756:ctest-vn4-75139844 is found in opserver 2026-09-07 11:02:24,848 - DEBUG - Do not have enough data to verify VN in agent 2026-09-07 11:02:24,852 - DEBUG - VRF ids for VN ctest-vn4-75139844: {} 2026-09-07 11:02:24,853 - DEBUG - ====Verifying data for ctest-policy1-76788000 in API_Server ====== 2026-09-07 11:02:24,853 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-07 11:02:24,858 - DEBUG - Requesting: http://10.0.0.189:8082/domain/324925fe-93de-4662-a1da-2b7e9cc371f6 2026-09-07 11:02:24,867 - DEBUG - Requesting: http://10.0.0.189:8082/project/c6ffdb56-54ef-4b2b-aac7-4fa4ea311528 2026-09-07 11:02:24,944 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/66328efa-5185-40af-9fd2-fc09d4061c8b 2026-09-07 11:02:24,953 - INFO - Verified policy ctest-policy1-76788000 in API Server, Result: True 2026-09-07 11:02:24,954 - INFO - Done with setup and verification, moving onto test .. 2026-09-07 11:02:24,961 - INFO - Deleting VN ctest-vn4-75139844 2026-09-07 11:02:25,068 - DEBUG - Response for deleting network () 2026-09-07 11:02:25,068 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a11c907e-948e-447f-989a-60af72d8a05b 2026-09-07 11:02:25,073 - DEBUG - Response Code: 404 2026-09-07 11:02:25,073 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-07 11:02:25,077 - DEBUG - Requesting: http://10.0.0.189:8082/domain/324925fe-93de-4662-a1da-2b7e9cc371f6 2026-09-07 11:02:25,130 - DEBUG - Requesting: http://10.0.0.189:8082/project/c6ffdb56-54ef-4b2b-aac7-4fa4ea311528 2026-09-07 11:02:25,200 - INFO - Validated that VN ctest-vn4-75139844 is not found in API Server 2026-09-07 11:02:25,209 - DEBUG - VN ctest-vn4-75139844 is not present in Agent 10.0.0.189 2026-09-07 11:02:25,209 - INFO - Validated that VN ctest-vn4-75139844 is not in any agent 2026-09-07 11:02:25,223 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75139844 info 2026-09-07 11:02:25,246 - INFO - Deleted policy ctest-policy1-76788000 2026-09-07 11:02:25,410 - DEBUG - policy ctest-policy1-76788000 is not found in API Server 2026-09-07 11:02:25,662 - DEBUG - No XMPP flaps were noticed during the test