2025-10-16 17:13:24,390 - INFO - Domain Default found not creating 2025-10-16 17:13:24,649 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12545127 not found, creating it 2025-10-16 17:13:25,292 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12545127, ID : d2623c1c-2414-4f44-950f-ad56606a694b 2025-10-16 17:13:27,540 - INFO - ================================================================================ 2025-10-16 17:13:27,541 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 17:13:27,861 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-10-16 17:13:27,861 - INFO - Initial checks done. Running the testcase now 2025-10-16 17:13:27,862 - INFO - 2025-10-16 17:13:27,862 - INFO - ================================================================================ 2025-10-16 17:13:27,862 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 17:13:27,862 - 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-10-16 17:13:28,203 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-10-16 17:13:28,203 - INFO - Initial checks done. Running the testcase now 2025-10-16 17:13:28,204 - INFO - 2025-10-16 17:13:28,666 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12545127:ctest-vn4-08981079, 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-12545127:ctest-vn4-08981079, 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-12545127:ctest-vn4-08981079, 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-12545127:ctest-vn4-08981079, 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-10-16 17:13:29,337 - DEBUG - Response for create_network : {'network': {'id': 'e10fd2cc-a752-4827-94dd-d9797bd666be', 'name': 'ctest-vn4-08981079', 'tenant_id': 'd2623c1c24144f44950fad56606a694b', 'project_id': 'd2623c1c24144f44950fad56606a694b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12545127', 'ctest-vn4-08981079'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 17:13:29,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '3865dfd5-0a80-479a-933a-bee377d3d334', 'name': '', 'tenant_id': 'd2623c1c24144f44950fad56606a694b', 'network_id': 'e10fd2cc-a752-4827-94dd-d9797bd666be', 'ip_version': 4, 'cidr': '220.94.76.0/26', 'allocation_pools': [{'start': '220.94.76.2', 'end': '220.94.76.62'}], 'gateway_ip': '220.94.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.94.76.2', 'tags': [], 'project_id': 'd2623c1c24144f44950fad56606a694b'}} 2025-10-16 17:13:29,772 - DEBUG - Response for create_subnet : {'subnet': {'id': '897c24cb-392e-4703-87d1-78d33a3dbff4', 'name': '', 'tenant_id': 'd2623c1c24144f44950fad56606a694b', 'network_id': 'e10fd2cc-a752-4827-94dd-d9797bd666be', 'ip_version': 6, 'cidr': '36e7:fde5:db14:df23:6f44:b0b7::/96', 'allocation_pools': [{'start': '36e7:fde5:db14:df23:6f44:b0b7:0:2', 'end': '36e7:fde5:db14:df23:6f44:b0b7:ffff:fffe'}], 'gateway_ip': '36e7:fde5:db14:df23:6f44:b0b7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36e7:fde5:db14:df23:6f44:b0b7:0:2', 'tags': [], 'project_id': 'd2623c1c24144f44950fad56606a694b'}} 2025-10-16 17:13:29,796 - INFO - Created VN ctest-vn4-08981079 2025-10-16 17:13:29,851 - DEBUG - VN ctest-vn4-08981079 UUID is e10fd2cc-a752-4827-94dd-d9797bd666be 2025-10-16 17:13:30,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e10fd2cc-a752-4827-94dd-d9797bd666be', 'name': 'ctest-vn4-08981079', 'tenant_id': 'd2623c1c24144f44950fad56606a694b', 'project_id': 'd2623c1c24144f44950fad56606a694b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3865dfd5-0a80-479a-933a-bee377d3d334', '897c24cb-392e-4703-87d1-78d33a3dbff4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12545127', 'ctest-vn4-08981079'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12545127', 'ctest-policy1-01438074']], 'subnet_ipam': [{'subnet_cidr': '220.94.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36e7:fde5:db14:df23:6f44:b0b7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 17:13:30,374 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:30,667 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:30,717 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:13:30,736 - DEBUG - Requesting: http://10.0.0.22:8082/project/d2623c1c-2414-4f44-950f-ad56606a694b 2025-10-16 17:13:30,826 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e10fd2cc-a752-4827-94dd-d9797bd666be 2025-10-16 17:13:30,844 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e10fd2cc-a752-4827-94dd-d9797bd666be 2025-10-16 17:13:30,859 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/da51bbde-eee7-4a14-b480-56d300e02ed7 2025-10-16 17:13:30,875 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/da51bbde-eee7-4a14-b480-56d300e02ed7 2025-10-16 17:13:30,892 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/badf4429-2a95-4c29-a798-f584dc1292a4 2025-10-16 17:13:30,908 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 17:13:30,908 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e10fd2cc-a752-4827-94dd-d9797bd666be 2025-10-16 17:13:30,935 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/da51bbde-eee7-4a14-b480-56d300e02ed7 2025-10-16 17:13:30,976 - INFO - Verified VN network id 11 for VN e10fd2cc-a752-4827-94dd-d9797bd666be 2025-10-16 17:13:30,976 - INFO - Verifications in API Server for VN ctest-vn4-08981079 passed 2025-10-16 17:13:30,976 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e10fd2cc-a752-4827-94dd-d9797bd666be 2025-10-16 17:13:30,998 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/da51bbde-eee7-4a14-b480-56d300e02ed7 2025-10-16 17:13:31,012 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/da51bbde-eee7-4a14-b480-56d300e02ed7 2025-10-16 17:13:31,025 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/badf4429-2a95-4c29-a798-f584dc1292a4 2025-10-16 17:13:31,052 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12545127:ctest-vn4-08981079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12545127', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16217412559606794279', 'uuid-lslong': '10726969003258308286'}, 'enable': 'true', 'created': '2025-10-16T17:13:29', 'last-modified': '2025-10-16T17:13:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906786'} 2025-10-16 17:13:31,064 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 17:13:31,064 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08981079 passed 2025-10-16 17:13:31,065 - DEBUG - ====Verifying policy data for ctest-vn4-08981079 in API_Server ====== 2025-10-16 17:13:31,065 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:31,077 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:13:31,100 - DEBUG - Requesting: http://10.0.0.22:8082/project/d2623c1c-2414-4f44-950f-ad56606a694b 2025-10-16 17:13:31,199 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e10fd2cc-a752-4827-94dd-d9797bd666be 2025-10-16 17:13:31,216 - DEBUG - ==>Verifying data for policy with id: 84514be6-34b4-4bf8-8047-1dccfe0a5ffd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12545127', 'ctest-policy1-01438074'] 2025-10-16 17:13:31,216 - INFO - VN ctest-vn4-08981079 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 17:13:31,216 - DEBUG - Verifying the vn in opserver 2025-10-16 17:13:31,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12545127:ctest-vn4-08981079 virtual network link through opserver 10.0.0.22 2025-10-16 17:13:31,217 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 17:13:31,512 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 17:13:31,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12545127:ctest-vn4-08981079', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12545127:ctest-vn4-08981079?flat'} 2025-10-16 17:13:31,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12545127:ctest-vn4-08981079 is found in opserver 2025-10-16 17:13:31,607 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 17:13:31,615 - DEBUG - VRF ids for VN ctest-vn4-08981079: {} 2025-10-16 17:13:31,615 - DEBUG - ====Verifying data for ctest-policy1-01438074 in API_Server ====== 2025-10-16 17:13:31,615 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:31,622 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:13:31,638 - DEBUG - Requesting: http://10.0.0.22:8082/project/d2623c1c-2414-4f44-950f-ad56606a694b 2025-10-16 17:13:31,733 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/84514be6-34b4-4bf8-8047-1dccfe0a5ffd 2025-10-16 17:13:31,745 - INFO - Verified policy ctest-policy1-01438074 in API Server, Result: True 2025-10-16 17:13:31,746 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 17:13:31,757 - INFO - Deleting VN ctest-vn4-08981079 2025-10-16 17:13:31,929 - DEBUG - Response for deleting network () 2025-10-16 17:13:31,930 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/da51bbde-eee7-4a14-b480-56d300e02ed7 2025-10-16 17:13:31,936 - DEBUG - Response Code: 404 2025-10-16 17:13:31,936 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 17:13:31,945 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2 2025-10-16 17:13:32,000 - DEBUG - Requesting: http://10.0.0.22:8082/project/d2623c1c-2414-4f44-950f-ad56606a694b 2025-10-16 17:13:32,090 - INFO - Validated that VN ctest-vn4-08981079 is not found in API Server 2025-10-16 17:13:32,103 - DEBUG - VN ctest-vn4-08981079 is not present in Agent 10.0.0.22 2025-10-16 17:13:32,103 - INFO - Validated that VN ctest-vn4-08981079 is not in any agent 2025-10-16 17:13:32,123 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08981079 info 2025-10-16 17:13:32,175 - INFO - Deleted policy ctest-policy1-01438074 2025-10-16 17:13:32,350 - DEBUG - policy ctest-policy1-01438074 is not found in API Server 2025-10-16 17:13:32,664 - DEBUG - No XMPP flaps were noticed during the test