2025-12-16 18:07:09,787 - INFO - Domain Default found not creating 2025-12-16 18:07:09,945 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29834796 not found, creating it 2025-12-16 18:07:10,452 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29834796, ID : 688bd8c1-9c6b-4167-acb2-fc6d110ce825 2025-12-16 18:07:11,858 - INFO - ================================================================================ 2025-12-16 18:07:11,859 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-16 18:07:12,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-12-16 18:07:12,114 - INFO - Initial checks done. Running the testcase now 2025-12-16 18:07:12,114 - INFO - 2025-12-16 18:07:12,114 - INFO - ================================================================================ 2025-12-16 18:07:12,114 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-16 18:07:12,114 - 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. 2025-12-16 18:07:12,402 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-12-16 18:07:12,402 - INFO - Initial checks done. Running the testcase now 2025-12-16 18:07:12,402 - INFO - 2025-12-16 18:07:13,029 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29834796:ctest-vn4-69523084, 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-29834796:ctest-vn4-69523084, 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-29834796:ctest-vn4-69523084, 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-29834796:ctest-vn4-69523084, 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] 2025-12-16 18:07:13,544 - DEBUG - Response for create_network : {'network': {'id': 'b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0', 'name': 'ctest-vn4-69523084', 'tenant_id': '688bd8c19c6b4167acb2fc6d110ce825', 'project_id': '688bd8c19c6b4167acb2fc6d110ce825', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29834796', 'ctest-vn4-69523084'], 'port_security_enabled': True, 'description': ''}} 2025-12-16 18:07:13,714 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ddccb79a-a8a6-4cd7-a57c-6f0a53d75f37', 'name': '', 'tenant_id': '688bd8c19c6b4167acb2fc6d110ce825', 'network_id': 'b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0', 'ip_version': 4, 'cidr': '130.212.238.64/26', 'allocation_pools': [{'start': '130.212.238.66', 'end': '130.212.238.126'}], 'gateway_ip': '130.212.238.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.212.238.66', 'tags': [], 'project_id': '688bd8c19c6b4167acb2fc6d110ce825'}} 2025-12-16 18:07:13,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dcc4f0b-a9cd-417c-aeb1-b13b8d11e847', 'name': '', 'tenant_id': '688bd8c19c6b4167acb2fc6d110ce825', 'network_id': 'b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0', 'ip_version': 6, 'cidr': '2817:93c1:7e7c:279c:51b8:7aaf::/96', 'allocation_pools': [{'start': '2817:93c1:7e7c:279c:51b8:7aaf:0:2', 'end': '2817:93c1:7e7c:279c:51b8:7aaf:ffff:fffe'}], 'gateway_ip': '2817:93c1:7e7c:279c:51b8:7aaf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2817:93c1:7e7c:279c:51b8:7aaf:0:2', 'tags': [], 'project_id': '688bd8c19c6b4167acb2fc6d110ce825'}} 2025-12-16 18:07:13,861 - INFO - Created VN ctest-vn4-69523084 2025-12-16 18:07:13,913 - DEBUG - VN ctest-vn4-69523084 UUID is b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0 2025-12-16 18:07:14,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0', 'name': 'ctest-vn4-69523084', 'tenant_id': '688bd8c19c6b4167acb2fc6d110ce825', 'project_id': '688bd8c19c6b4167acb2fc6d110ce825', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ddccb79a-a8a6-4cd7-a57c-6f0a53d75f37', '1dcc4f0b-a9cd-417c-aeb1-b13b8d11e847'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29834796', 'ctest-vn4-69523084'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29834796', 'ctest-policy1-99621081']], 'subnet_ipam': [{'subnet_cidr': '130.212.238.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2817:93c1:7e7c:279c:51b8:7aaf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-16 18:07:14,269 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-16 18:07:14,575 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-16 18:07:14,603 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc3b17c6-d27f-481e-a032-c36b05770de6 2025-12-16 18:07:14,615 - DEBUG - Requesting: http://10.0.0.38:8082/project/688bd8c1-9c6b-4167-acb2-fc6d110ce825 2025-12-16 18:07:14,680 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0 2025-12-16 18:07:14,692 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0 2025-12-16 18:07:14,702 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cca37d89-2c61-4a83-99a2-4cad7f3d4e09 2025-12-16 18:07:14,709 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cca37d89-2c61-4a83-99a2-4cad7f3d4e09 2025-12-16 18:07:14,715 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bcbde35c-7461-45b8-993b-221fd997451d 2025-12-16 18:07:14,721 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-16 18:07:14,721 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0 2025-12-16 18:07:14,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cca37d89-2c61-4a83-99a2-4cad7f3d4e09 2025-12-16 18:07:14,745 - INFO - Verified VN network id 11 for VN b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0 2025-12-16 18:07:14,745 - INFO - Verifications in API Server for VN ctest-vn4-69523084 passed 2025-12-16 18:07:14,745 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0 2025-12-16 18:07:14,755 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cca37d89-2c61-4a83-99a2-4cad7f3d4e09 2025-12-16 18:07:14,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cca37d89-2c61-4a83-99a2-4cad7f3d4e09 2025-12-16 18:07:14,768 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bcbde35c-7461-45b8-993b-221fd997451d 2025-12-16 18:07:14,778 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29834796:ctest-vn4-69523084', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29834796', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12722700408014917412', 'uuid-lslong': '11667819822427500272'}, 'enable': 'true', 'created': '2025-12-16T18:07:13', 'last-modified': '2025-12-16T18:07:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694250'} 2025-12-16 18:07:14,784 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-16 18:07:14,784 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69523084 passed 2025-12-16 18:07:14,784 - DEBUG - ====Verifying policy data for ctest-vn4-69523084 in API_Server ====== 2025-12-16 18:07:14,784 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-16 18:07:14,789 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc3b17c6-d27f-481e-a032-c36b05770de6 2025-12-16 18:07:14,799 - DEBUG - Requesting: http://10.0.0.38:8082/project/688bd8c1-9c6b-4167-acb2-fc6d110ce825 2025-12-16 18:07:14,867 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0901c9d-0372-4f24-a1ec-6c4f4b0d6ef0 2025-12-16 18:07:14,876 - DEBUG - ==>Verifying data for policy with id: e79dafc1-23f5-43b2-aa28-10f7868ffef6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29834796', 'ctest-policy1-99621081'] 2025-12-16 18:07:14,876 - INFO - VN ctest-vn4-69523084 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-16 18:07:14,876 - DEBUG - Verifying the vn in opserver 2025-12-16 18:07:14,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29834796:ctest-vn4-69523084 virtual network link through opserver 10.0.0.38 2025-12-16 18:07:14,876 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-16 18:07:15,168 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-16 18:07:15,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29834796:ctest-vn4-69523084', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29834796:ctest-vn4-69523084?flat'} 2025-12-16 18:07:15,222 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29834796:ctest-vn4-69523084 is found in opserver 2025-12-16 18:07:15,231 - DEBUG - Do not have enough data to verify VN in agent 2025-12-16 18:07:15,236 - DEBUG - VRF ids for VN ctest-vn4-69523084: {} 2025-12-16 18:07:15,236 - DEBUG - ====Verifying data for ctest-policy1-99621081 in API_Server ====== 2025-12-16 18:07:15,236 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-16 18:07:15,242 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc3b17c6-d27f-481e-a032-c36b05770de6 2025-12-16 18:07:15,252 - DEBUG - Requesting: http://10.0.0.38:8082/project/688bd8c1-9c6b-4167-acb2-fc6d110ce825 2025-12-16 18:07:15,322 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e79dafc1-23f5-43b2-aa28-10f7868ffef6 2025-12-16 18:07:15,332 - INFO - Verified policy ctest-policy1-99621081 in API Server, Result: True 2025-12-16 18:07:15,332 - INFO - Done with setup and verification, moving onto test .. 2025-12-16 18:07:15,341 - INFO - Deleting VN ctest-vn4-69523084 2025-12-16 18:07:15,454 - DEBUG - Response for deleting network () 2025-12-16 18:07:15,454 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cca37d89-2c61-4a83-99a2-4cad7f3d4e09 2025-12-16 18:07:15,458 - DEBUG - Response Code: 404 2025-12-16 18:07:15,458 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-16 18:07:15,464 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc3b17c6-d27f-481e-a032-c36b05770de6 2025-12-16 18:07:15,518 - DEBUG - Requesting: http://10.0.0.38:8082/project/688bd8c1-9c6b-4167-acb2-fc6d110ce825 2025-12-16 18:07:15,593 - INFO - Validated that VN ctest-vn4-69523084 is not found in API Server 2025-12-16 18:07:15,603 - DEBUG - VN ctest-vn4-69523084 is not present in Agent 10.0.0.38 2025-12-16 18:07:15,603 - INFO - Validated that VN ctest-vn4-69523084 is not in any agent 2025-12-16 18:07:15,618 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69523084 info 2025-12-16 18:07:15,644 - INFO - Deleted policy ctest-policy1-99621081 2025-12-16 18:07:15,801 - DEBUG - policy ctest-policy1-99621081 is not found in API Server 2025-12-16 18:07:16,055 - DEBUG - No XMPP flaps were noticed during the test