2026-09-07 02:17:06,623 - INFO - Domain Default found not creating 2026-09-07 02:17:06,811 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68243670 not found, creating it 2026-09-07 02:17:07,374 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68243670, ID : 43f9dce9-47a9-4680-b6b0-60f2a62646d6 2026-09-07 02:17:09,079 - INFO - ================================================================================ 2026-09-07 02:17:09,079 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 02:17:09,355 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-09-07 02:17:09,355 - INFO - Initial checks done. Running the testcase now 2026-09-07 02:17:09,355 - INFO - 2026-09-07 02:17:09,355 - INFO - ================================================================================ 2026-09-07 02:17:09,355 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 02:17:09,355 - 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 02:17:09,660 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-09-07 02:17:09,660 - INFO - Initial checks done. Running the testcase now 2026-09-07 02:17:09,660 - INFO - 2026-09-07 02:17:10,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68243670:ctest-vn4-41706975, 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-68243670:ctest-vn4-41706975, 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-68243670:ctest-vn4-41706975, 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-68243670:ctest-vn4-41706975, 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 02:17:10,684 - DEBUG - Response for create_network : {'network': {'id': '982255e2-87d2-4514-b747-b2ef27b8501c', 'name': 'ctest-vn4-41706975', 'tenant_id': '43f9dce947a94680b6b060f2a62646d6', 'project_id': '43f9dce947a94680b6b060f2a62646d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68243670', 'ctest-vn4-41706975'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-09-07 02:17:10,847 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7c6fd3a-c7e7-4ccc-85cb-4fb960fdae7d', 'name': '', 'tenant_id': '43f9dce947a94680b6b060f2a62646d6', 'network_id': '982255e2-87d2-4514-b747-b2ef27b8501c', 'ip_version': 4, 'cidr': '50.110.69.192/26', 'allocation_pools': [{'start': '50.110.69.194', 'end': '50.110.69.254'}], 'gateway_ip': '50.110.69.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-09-07T02:17:10.777688', 'updated_at': '2026-09-07T02:17:10.777688', 'dns_server_address': '50.110.69.194', 'tags': [], 'project_id': '43f9dce947a94680b6b060f2a62646d6'}} 2026-09-07 02:17:11,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '787ad55e-0672-4508-a392-19f8fa218546', 'name': '', 'tenant_id': '43f9dce947a94680b6b060f2a62646d6', 'network_id': '982255e2-87d2-4514-b747-b2ef27b8501c', 'ip_version': 6, 'cidr': '3a25:9096:c7eb:b9ec:288a:d4c::/96', 'allocation_pools': [{'start': '3a25:9096:c7eb:b9ec:288a:d4c:0:2', 'end': '3a25:9096:c7eb:b9ec:288a:d4c:ffff:fffe'}], 'gateway_ip': '3a25:9096:c7eb:b9ec:288a:d4c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-09-07T02:17:10.944634', 'updated_at': '2026-09-07T02:17:10.944634', 'dns_server_address': '3a25:9096:c7eb:b9ec:288a:d4c:0:2', 'tags': [], 'project_id': '43f9dce947a94680b6b060f2a62646d6'}} 2026-09-07 02:17:11,024 - INFO - Created VN ctest-vn4-41706975 2026-09-07 02:17:11,078 - DEBUG - VN ctest-vn4-41706975 UUID is 982255e2-87d2-4514-b747-b2ef27b8501c 2026-09-07 02:17:11,310 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '982255e2-87d2-4514-b747-b2ef27b8501c', 'name': 'ctest-vn4-41706975', 'tenant_id': '43f9dce947a94680b6b060f2a62646d6', 'project_id': '43f9dce947a94680b6b060f2a62646d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d7c6fd3a-c7e7-4ccc-85cb-4fb960fdae7d', '787ad55e-0672-4508-a392-19f8fa218546'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68243670', 'ctest-vn4-41706975'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68243670', 'ctest-policy1-42367908']], 'subnet_ipam': [{'subnet_cidr': '50.110.69.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a25:9096:c7eb:b9ec:288a:d4c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-09-07T02:17:10.614193', 'updated_at': '2026-09-07T02:17:10.958661'}} 2026-09-07 02:17:11,474 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-07 02:17:11,817 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-07 02:17:11,848 - DEBUG - Requesting: http://10.0.0.163:8082/domain/f0c743a3-1bc9-4596-bd51-59df39c5641b 2026-09-07 02:17:11,860 - DEBUG - Requesting: http://10.0.0.163:8082/project/43f9dce9-47a9-4680-b6b0-60f2a62646d6 2026-09-07 02:17:11,943 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/982255e2-87d2-4514-b747-b2ef27b8501c 2026-09-07 02:17:11,959 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/982255e2-87d2-4514-b747-b2ef27b8501c 2026-09-07 02:17:11,969 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ef601dc-b7cc-4909-b5e2-7d76685febc9 2026-09-07 02:17:11,977 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ef601dc-b7cc-4909-b5e2-7d76685febc9 2026-09-07 02:17:11,984 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/311173e5-2ddd-4f29-96c4-78809151a921 2026-09-07 02:17:11,990 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 02:17:11,990 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/982255e2-87d2-4514-b747-b2ef27b8501c 2026-09-07 02:17:12,000 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ef601dc-b7cc-4909-b5e2-7d76685febc9 2026-09-07 02:17:12,017 - INFO - Verified VN network id 12 for VN 982255e2-87d2-4514-b747-b2ef27b8501c 2026-09-07 02:17:12,017 - INFO - Verifications in API Server for VN ctest-vn4-41706975 passed 2026-09-07 02:17:12,017 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/982255e2-87d2-4514-b747-b2ef27b8501c 2026-09-07 02:17:12,029 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ef601dc-b7cc-4909-b5e2-7d76685febc9 2026-09-07 02:17:12,038 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ef601dc-b7cc-4909-b5e2-7d76685febc9 2026-09-07 02:17:12,045 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/311173e5-2ddd-4f29-96c4-78809151a921 2026-09-07 02:17:12,057 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68243670:ctest-vn4-41706975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68243670', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10962418874402882836', 'uuid-lslong': '13206721172520587292'}, 'enable': 'true', 'created': '2026-09-07T02:17:10', 'last-modified': '2026-09-07T02:17:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.788237'} 2026-09-07 02:17:12,063 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 02:17:12,063 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41706975 passed 2026-09-07 02:17:12,064 - DEBUG - ====Verifying policy data for ctest-vn4-41706975 in API_Server ====== 2026-09-07 02:17:12,064 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-07 02:17:12,070 - DEBUG - Requesting: http://10.0.0.163:8082/domain/f0c743a3-1bc9-4596-bd51-59df39c5641b 2026-09-07 02:17:12,082 - DEBUG - Requesting: http://10.0.0.163:8082/project/43f9dce9-47a9-4680-b6b0-60f2a62646d6 2026-09-07 02:17:12,160 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/982255e2-87d2-4514-b747-b2ef27b8501c 2026-09-07 02:17:12,173 - DEBUG - ==>Verifying data for policy with id: ab527899-6322-4a3e-940a-87cc02c19934, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68243670', 'ctest-policy1-42367908'] 2026-09-07 02:17:12,173 - INFO - VN ctest-vn4-41706975 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-07 02:17:12,173 - DEBUG - Verifying the vn in opserver 2026-09-07 02:17:12,173 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68243670:ctest-vn4-41706975 virtual network link through opserver 10.0.0.163 2026-09-07 02:17:12,173 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-09-07 02:17:12,518 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-09-07 02:17:12,603 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68243670:ctest-vn4-41706975', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68243670:ctest-vn4-41706975?flat'} 2026-09-07 02:17:12,603 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68243670:ctest-vn4-41706975 is found in opserver 2026-09-07 02:17:12,615 - DEBUG - Do not have enough data to verify VN in agent 2026-09-07 02:17:12,621 - DEBUG - VRF ids for VN ctest-vn4-41706975: {} 2026-09-07 02:17:12,622 - DEBUG - ====Verifying data for ctest-policy1-42367908 in API_Server ====== 2026-09-07 02:17:12,622 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-07 02:17:12,628 - DEBUG - Requesting: http://10.0.0.163:8082/domain/f0c743a3-1bc9-4596-bd51-59df39c5641b 2026-09-07 02:17:12,640 - DEBUG - Requesting: http://10.0.0.163:8082/project/43f9dce9-47a9-4680-b6b0-60f2a62646d6 2026-09-07 02:17:12,718 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/ab527899-6322-4a3e-940a-87cc02c19934 2026-09-07 02:17:12,729 - INFO - Verified policy ctest-policy1-42367908 in API Server, Result: True 2026-09-07 02:17:12,729 - INFO - Done with setup and verification, moving onto test .. 2026-09-07 02:17:12,739 - INFO - Deleting VN ctest-vn4-41706975 2026-09-07 02:17:12,883 - DEBUG - Response for deleting network () 2026-09-07 02:17:12,883 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ef601dc-b7cc-4909-b5e2-7d76685febc9 2026-09-07 02:17:12,888 - DEBUG - Response Code: 404 2026-09-07 02:17:12,889 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-07 02:17:12,895 - DEBUG - Requesting: http://10.0.0.163:8082/domain/f0c743a3-1bc9-4596-bd51-59df39c5641b 2026-09-07 02:17:12,947 - DEBUG - Requesting: http://10.0.0.163:8082/project/43f9dce9-47a9-4680-b6b0-60f2a62646d6 2026-09-07 02:17:13,026 - INFO - Validated that VN ctest-vn4-41706975 is not found in API Server 2026-09-07 02:17:13,037 - DEBUG - VN ctest-vn4-41706975 is not present in Agent 10.0.0.163 2026-09-07 02:17:13,037 - INFO - Validated that VN ctest-vn4-41706975 is not in any agent 2026-09-07 02:17:13,057 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41706975 info 2026-09-07 02:17:13,086 - INFO - Deleted policy ctest-policy1-42367908 2026-09-07 02:17:13,254 - DEBUG - policy ctest-policy1-42367908 is not found in API Server 2026-09-07 02:17:13,514 - DEBUG - No XMPP flaps were noticed during the test