2026-04-17 11:52:01,355 - INFO - Domain Default found not creating 2026-04-17 11:52:01,550 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92141083 not found, creating it 2026-04-17 11:52:02,013 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92141083, ID : 2ea7979c-0b6b-4caa-8977-afa9128c7301 2026-04-17 11:52:03,546 - INFO - ================================================================================ 2026-04-17 11:52:03,546 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 11:52:03,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with 2026-04-17 11:52:03,808 - INFO - Initial checks done. Running the testcase now 2026-04-17 11:52:03,808 - INFO - 2026-04-17 11:52:03,808 - INFO - ================================================================================ 2026-04-17 11:52:03,809 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 11:52:03,809 - 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-04-17 11:52:04,117 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with 2026-04-17 11:52:04,117 - INFO - Initial checks done. Running the testcase now 2026-04-17 11:52:04,117 - INFO - 2026-04-17 11:52:04,482 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92141083:ctest-vn4-39880915, 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-92141083:ctest-vn4-39880915, 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-92141083:ctest-vn4-39880915, 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-92141083:ctest-vn4-39880915, 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-04-17 11:52:05,020 - DEBUG - Response for create_network : {'network': {'id': '6db8617a-32b5-4f33-a7ad-909a70b870f8', 'name': 'ctest-vn4-39880915', 'tenant_id': '2ea7979c0b6b4caa8977afa9128c7301', 'project_id': '2ea7979c0b6b4caa8977afa9128c7301', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92141083', 'ctest-vn4-39880915'], 'port_security_enabled': True, 'description': ''}} 2026-04-17 11:52:05,209 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db0eebba-7a93-45ad-96e7-415b63c4d3fa', 'name': '', 'tenant_id': '2ea7979c0b6b4caa8977afa9128c7301', 'network_id': '6db8617a-32b5-4f33-a7ad-909a70b870f8', 'ip_version': 4, 'cidr': '29.224.227.64/26', 'allocation_pools': [{'start': '29.224.227.66', 'end': '29.224.227.126'}], 'gateway_ip': '29.224.227.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.224.227.66', 'tags': [], 'project_id': '2ea7979c0b6b4caa8977afa9128c7301'}} 2026-04-17 11:52:05,368 - DEBUG - Response for create_subnet : {'subnet': {'id': '3882d61c-112e-49dd-83de-898c8167760b', 'name': '', 'tenant_id': '2ea7979c0b6b4caa8977afa9128c7301', 'network_id': '6db8617a-32b5-4f33-a7ad-909a70b870f8', 'ip_version': 6, 'cidr': '32f4:f754:5f00:4620:fd9e:1841::/96', 'allocation_pools': [{'start': '32f4:f754:5f00:4620:fd9e:1841:0:2', 'end': '32f4:f754:5f00:4620:fd9e:1841:ffff:fffe'}], 'gateway_ip': '32f4:f754:5f00:4620:fd9e:1841:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32f4:f754:5f00:4620:fd9e:1841:0:2', 'tags': [], 'project_id': '2ea7979c0b6b4caa8977afa9128c7301'}} 2026-04-17 11:52:05,390 - INFO - Created VN ctest-vn4-39880915 2026-04-17 11:52:05,442 - DEBUG - VN ctest-vn4-39880915 UUID is 6db8617a-32b5-4f33-a7ad-909a70b870f8 2026-04-17 11:52:05,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6db8617a-32b5-4f33-a7ad-909a70b870f8', 'name': 'ctest-vn4-39880915', 'tenant_id': '2ea7979c0b6b4caa8977afa9128c7301', 'project_id': '2ea7979c0b6b4caa8977afa9128c7301', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db0eebba-7a93-45ad-96e7-415b63c4d3fa', '3882d61c-112e-49dd-83de-898c8167760b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92141083', 'ctest-vn4-39880915'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92141083', 'ctest-policy1-12208274']], 'subnet_ipam': [{'subnet_cidr': '29.224.227.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32f4:f754:5f00:4620:fd9e:1841::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-17 11:52:05,818 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-17 11:52:06,130 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-17 11:52:06,169 - DEBUG - Requesting: http://10.0.0.23:8082/domain/062f32a0-b8a6-4da4-b773-bbb2b5286e6c 2026-04-17 11:52:06,180 - DEBUG - Requesting: http://10.0.0.23:8082/project/2ea7979c-0b6b-4caa-8977-afa9128c7301 2026-04-17 11:52:06,259 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6db8617a-32b5-4f33-a7ad-909a70b870f8 2026-04-17 11:52:06,273 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6db8617a-32b5-4f33-a7ad-909a70b870f8 2026-04-17 11:52:06,288 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4a45350f-7414-4a75-b6ea-14dfad7c62fe 2026-04-17 11:52:06,295 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4a45350f-7414-4a75-b6ea-14dfad7c62fe 2026-04-17 11:52:06,302 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/521c68cc-3aa1-4961-bcc3-b82bb190d889 2026-04-17 11:52:06,308 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 11:52:06,308 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6db8617a-32b5-4f33-a7ad-909a70b870f8 2026-04-17 11:52:06,318 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4a45350f-7414-4a75-b6ea-14dfad7c62fe 2026-04-17 11:52:06,338 - INFO - Verified VN network id 11 for VN 6db8617a-32b5-4f33-a7ad-909a70b870f8 2026-04-17 11:52:06,338 - INFO - Verifications in API Server for VN ctest-vn4-39880915 passed 2026-04-17 11:52:06,338 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6db8617a-32b5-4f33-a7ad-909a70b870f8 2026-04-17 11:52:06,348 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4a45350f-7414-4a75-b6ea-14dfad7c62fe 2026-04-17 11:52:06,358 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4a45350f-7414-4a75-b6ea-14dfad7c62fe 2026-04-17 11:52:06,367 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/521c68cc-3aa1-4961-bcc3-b82bb190d889 2026-04-17 11:52:06,380 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92141083:ctest-vn4-39880915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92141083', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7906176323313553203', 'uuid-lslong': '12082472368295407864'}, 'enable': 'true', 'created': '2026-04-17T11:52:04', 'last-modified': '2026-04-17T11:52:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750394'} 2026-04-17 11:52:06,387 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 11:52:06,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39880915 passed 2026-04-17 11:52:06,387 - DEBUG - ====Verifying policy data for ctest-vn4-39880915 in API_Server ====== 2026-04-17 11:52:06,387 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-17 11:52:06,396 - DEBUG - Requesting: http://10.0.0.23:8082/domain/062f32a0-b8a6-4da4-b773-bbb2b5286e6c 2026-04-17 11:52:06,415 - DEBUG - Requesting: http://10.0.0.23:8082/project/2ea7979c-0b6b-4caa-8977-afa9128c7301 2026-04-17 11:52:06,500 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6db8617a-32b5-4f33-a7ad-909a70b870f8 2026-04-17 11:52:06,511 - DEBUG - ==>Verifying data for policy with id: b2ba8908-fb0c-43e0-b282-ebadd8321228, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92141083', 'ctest-policy1-12208274'] 2026-04-17 11:52:06,511 - INFO - VN ctest-vn4-39880915 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-17 11:52:06,512 - DEBUG - Verifying the vn in opserver 2026-04-17 11:52:06,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92141083:ctest-vn4-39880915 virtual network link through opserver 10.0.0.23 2026-04-17 11:52:06,512 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-17 11:52:06,818 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-17 11:52:06,883 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92141083:ctest-vn4-39880915', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92141083:ctest-vn4-39880915?flat'} 2026-04-17 11:52:06,883 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92141083:ctest-vn4-39880915 is found in opserver 2026-04-17 11:52:06,894 - DEBUG - Do not have enough data to verify VN in agent 2026-04-17 11:52:06,900 - DEBUG - VRF ids for VN ctest-vn4-39880915: {} 2026-04-17 11:52:06,900 - DEBUG - ====Verifying data for ctest-policy1-12208274 in API_Server ====== 2026-04-17 11:52:06,901 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-17 11:52:06,906 - DEBUG - Requesting: http://10.0.0.23:8082/domain/062f32a0-b8a6-4da4-b773-bbb2b5286e6c 2026-04-17 11:52:06,918 - DEBUG - Requesting: http://10.0.0.23:8082/project/2ea7979c-0b6b-4caa-8977-afa9128c7301 2026-04-17 11:52:06,990 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/b2ba8908-fb0c-43e0-b282-ebadd8321228 2026-04-17 11:52:07,000 - INFO - Verified policy ctest-policy1-12208274 in API Server, Result: True 2026-04-17 11:52:07,000 - INFO - Done with setup and verification, moving onto test .. 2026-04-17 11:52:07,010 - INFO - Deleting VN ctest-vn4-39880915 2026-04-17 11:52:07,136 - DEBUG - Response for deleting network () 2026-04-17 11:52:07,136 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/4a45350f-7414-4a75-b6ea-14dfad7c62fe 2026-04-17 11:52:07,140 - DEBUG - Response Code: 404 2026-04-17 11:52:07,141 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-17 11:52:07,146 - DEBUG - Requesting: http://10.0.0.23:8082/domain/062f32a0-b8a6-4da4-b773-bbb2b5286e6c 2026-04-17 11:52:07,203 - DEBUG - Requesting: http://10.0.0.23:8082/project/2ea7979c-0b6b-4caa-8977-afa9128c7301 2026-04-17 11:52:07,280 - INFO - Validated that VN ctest-vn4-39880915 is not found in API Server 2026-04-17 11:52:07,290 - DEBUG - VN ctest-vn4-39880915 is not present in Agent 10.0.0.23 2026-04-17 11:52:07,290 - INFO - Validated that VN ctest-vn4-39880915 is not in any agent 2026-04-17 11:52:07,306 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39880915 info 2026-04-17 11:52:07,336 - INFO - Deleted policy ctest-policy1-12208274 2026-04-17 11:52:07,497 - DEBUG - policy ctest-policy1-12208274 is not found in API Server 2026-04-17 11:52:07,769 - DEBUG - No XMPP flaps were noticed during the test