2026-02-03 07:09:33,753 - INFO - Reading existing Domain with UUID a20a955c-6c44-478d-8a7f-02c90676183f 2026-02-03 07:09:33,764 - INFO - Using existing domain ['admin_domain'](a20a955c-6c44-478d-8a7f-02c90676183f) 2026-02-03 07:09:33,941 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33685799 not found, creating it 2026-02-03 07:09:34,414 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33685799, ID : 77a3ce22-5fa1-4108-a3c5-ff252cb4bca6 2026-02-03 07:09:36,380 - INFO - ================================================================================ 2026-02-03 07:09:36,381 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 07:09:36,775 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-02-03 07:09:36,775 - INFO - Initial checks done. Running the testcase now 2026-02-03 07:09:36,776 - INFO - 2026-02-03 07:09:36,776 - INFO - ================================================================================ 2026-02-03 07:09:36,776 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 07:09:36,776 - 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-02-03 07:09:37,155 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-02-03 07:09:37,155 - INFO - Initial checks done. Running the testcase now 2026-02-03 07:09:37,155 - INFO - 2026-02-03 07:09:37,516 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323, 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-02-03 07:09:38,190 - DEBUG - Response for create_network : {'network': {'id': 'e4ec0614-9e83-4b2f-ae80-bd70dfd83f02', 'name': 'ctest-vn4-06599323', 'tenant_id': '77a3ce225fa14108a3c5ff252cb4bca6', 'project_id': '77a3ce225fa14108a3c5ff252cb4bca6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33685799', 'ctest-vn4-06599323'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-02-03 07:09:38,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c72fe15-8997-43e7-982c-9dbd3f5d7a2a', 'name': '', 'tenant_id': '77a3ce225fa14108a3c5ff252cb4bca6', 'network_id': 'e4ec0614-9e83-4b2f-ae80-bd70dfd83f02', 'ip_version': 4, 'cidr': '202.68.185.64/26', 'allocation_pools': [{'start': '202.68.185.66', 'end': '202.68.185.126'}], 'gateway_ip': '202.68.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-03T07:09:38.340447', 'updated_at': '2026-02-03T07:09:38.340447', 'dns_server_address': '202.68.185.66', 'tags': [], 'project_id': '77a3ce225fa14108a3c5ff252cb4bca6'}} 2026-02-03 07:09:38,703 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c01a0eac-3bc4-4ac2-bc27-863a53869c04', 'name': '', 'tenant_id': '77a3ce225fa14108a3c5ff252cb4bca6', 'network_id': 'e4ec0614-9e83-4b2f-ae80-bd70dfd83f02', 'ip_version': 6, 'cidr': '29ea:f003:fa35:2421:af79:cd99::/96', 'allocation_pools': [{'start': '29ea:f003:fa35:2421:af79:cd99:0:2', 'end': '29ea:f003:fa35:2421:af79:cd99:ffff:fffe'}], 'gateway_ip': '29ea:f003:fa35:2421:af79:cd99:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-03T07:09:38.588702', 'updated_at': '2026-02-03T07:09:38.588702', 'dns_server_address': '29ea:f003:fa35:2421:af79:cd99:0:2', 'tags': [], 'project_id': '77a3ce225fa14108a3c5ff252cb4bca6'}} 2026-02-03 07:09:38,772 - INFO - Created VN ctest-vn4-06599323 2026-02-03 07:09:38,826 - DEBUG - VN ctest-vn4-06599323 UUID is e4ec0614-9e83-4b2f-ae80-bd70dfd83f02 2026-02-03 07:09:39,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4ec0614-9e83-4b2f-ae80-bd70dfd83f02', 'name': 'ctest-vn4-06599323', 'tenant_id': '77a3ce225fa14108a3c5ff252cb4bca6', 'project_id': '77a3ce225fa14108a3c5ff252cb4bca6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c72fe15-8997-43e7-982c-9dbd3f5d7a2a', 'c01a0eac-3bc4-4ac2-bc27-863a53869c04'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33685799', 'ctest-vn4-06599323'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33685799', 'ctest-policy1-29111094']], 'subnet_ipam': [{'subnet_cidr': '202.68.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29ea:f003:fa35:2421:af79:cd99::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-03T07:09:38.118234', 'updated_at': '2026-02-03T07:09:38.601331'}} 2026-02-03 07:09:39,430 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-02-03 07:09:39,779 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-02-03 07:09:39,855 - DEBUG - Requesting: https://10.0.0.129:8082/domain/a20a955c-6c44-478d-8a7f-02c90676183f 2026-02-03 07:09:39,911 - DEBUG - Requesting: https://10.0.0.129:8082/project/77a3ce22-5fa1-4108-a3c5-ff252cb4bca6 2026-02-03 07:09:39,987 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e4ec0614-9e83-4b2f-ae80-bd70dfd83f02 2026-02-03 07:09:40,045 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e4ec0614-9e83-4b2f-ae80-bd70dfd83f02 2026-02-03 07:09:40,101 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/68e7d30d-a2c2-4275-95c4-d053a93d4c4a 2026-02-03 07:09:40,155 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/68e7d30d-a2c2-4275-95c4-d053a93d4c4a 2026-02-03 07:09:40,207 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/5227f10a-9e5b-44a5-b405-5b8063077e48 2026-02-03 07:09:40,259 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 07:09:40,259 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e4ec0614-9e83-4b2f-ae80-bd70dfd83f02 2026-02-03 07:09:40,316 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/68e7d30d-a2c2-4275-95c4-d053a93d4c4a 2026-02-03 07:09:40,378 - INFO - Verified VN network id 11 for VN e4ec0614-9e83-4b2f-ae80-bd70dfd83f02 2026-02-03 07:09:40,378 - INFO - Verifications in API Server for VN ctest-vn4-06599323 passed 2026-02-03 07:09:40,378 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e4ec0614-9e83-4b2f-ae80-bd70dfd83f02 2026-02-03 07:09:40,434 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/68e7d30d-a2c2-4275-95c4-d053a93d4c4a 2026-02-03 07:09:40,487 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/68e7d30d-a2c2-4275-95c4-d053a93d4c4a 2026-02-03 07:09:40,539 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/5227f10a-9e5b-44a5-b405-5b8063077e48 2026-02-03 07:09:40,647 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33685799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16495566220779801391', 'uuid-lslong': '12574258452107902722'}, 'enable': 'true', 'created': '2026-02-03T07:09:38', 'last-modified': '2026-02-03T07:09:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.410380'} 2026-02-03 07:09:40,700 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 07:09:40,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06599323 passed 2026-02-03 07:09:40,700 - DEBUG - ====Verifying policy data for ctest-vn4-06599323 in API_Server ====== 2026-02-03 07:09:40,700 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-02-03 07:09:40,751 - DEBUG - Requesting: https://10.0.0.129:8082/domain/a20a955c-6c44-478d-8a7f-02c90676183f 2026-02-03 07:09:40,807 - DEBUG - Requesting: https://10.0.0.129:8082/project/77a3ce22-5fa1-4108-a3c5-ff252cb4bca6 2026-02-03 07:09:40,883 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/e4ec0614-9e83-4b2f-ae80-bd70dfd83f02 2026-02-03 07:09:40,940 - DEBUG - ==>Verifying data for policy with id: f5d6f105-fb6d-471f-a6d7-8d3c2ebaa424, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33685799', 'ctest-policy1-29111094'] 2026-02-03 07:09:40,940 - INFO - VN ctest-vn4-06599323 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 07:09:40,941 - DEBUG - Verifying the vn in opserver 2026-02-03 07:09:40,941 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323 virtual network link through opserver 10.0.0.129 2026-02-03 07:09:40,941 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-03 07:09:41,313 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-03 07:09:41,419 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323?flat'} 2026-02-03 07:09:41,419 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-33685799:ctest-vn4-06599323 is found in opserver 2026-02-03 07:09:41,519 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 07:09:41,567 - DEBUG - VRF ids for VN ctest-vn4-06599323: {} 2026-02-03 07:09:41,567 - DEBUG - ====Verifying data for ctest-policy1-29111094 in API_Server ====== 2026-02-03 07:09:41,568 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-02-03 07:09:41,619 - DEBUG - Requesting: https://10.0.0.129:8082/domain/a20a955c-6c44-478d-8a7f-02c90676183f 2026-02-03 07:09:41,679 - DEBUG - Requesting: https://10.0.0.129:8082/project/77a3ce22-5fa1-4108-a3c5-ff252cb4bca6 2026-02-03 07:09:41,748 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/f5d6f105-fb6d-471f-a6d7-8d3c2ebaa424 2026-02-03 07:09:41,805 - INFO - Verified policy ctest-policy1-29111094 in API Server, Result: True 2026-02-03 07:09:41,805 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 07:09:41,812 - INFO - Deleting VN ctest-vn4-06599323 2026-02-03 07:09:41,974 - DEBUG - Response for deleting network () 2026-02-03 07:09:41,974 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/68e7d30d-a2c2-4275-95c4-d053a93d4c4a 2026-02-03 07:09:42,030 - DEBUG - Response Code: 404 2026-02-03 07:09:42,030 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-02-03 07:09:42,083 - DEBUG - Requesting: https://10.0.0.129:8082/domain/a20a955c-6c44-478d-8a7f-02c90676183f 2026-02-03 07:09:42,139 - DEBUG - Requesting: https://10.0.0.129:8082/project/77a3ce22-5fa1-4108-a3c5-ff252cb4bca6 2026-02-03 07:09:42,211 - INFO - Validated that VN ctest-vn4-06599323 is not found in API Server 2026-02-03 07:09:42,311 - DEBUG - VN ctest-vn4-06599323 is not present in Agent 10.0.0.129 2026-02-03 07:09:42,311 - INFO - Validated that VN ctest-vn4-06599323 is not in any agent 2026-02-03 07:09:42,459 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06599323 info 2026-02-03 07:09:42,487 - INFO - Deleted policy ctest-policy1-29111094 2026-02-03 07:09:42,654 - DEBUG - policy ctest-policy1-29111094 is not found in API Server 2026-02-03 07:09:43,039 - DEBUG - No XMPP flaps were noticed during the test