2026-02-11 13:44:26,598 - INFO - Domain Default found not creating 2026-02-11 13:44:26,770 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41314510 not found, creating it 2026-02-11 13:44:27,230 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41314510, ID : dfed8371-737e-4596-92c7-9897dfc7c7c3 2026-02-11 13:44:28,784 - INFO - ================================================================================ 2026-02-11 13:44:28,785 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 13:44:29,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with 2026-02-11 13:44:29,059 - INFO - Initial checks done. Running the testcase now 2026-02-11 13:44:29,059 - INFO - 2026-02-11 13:44:29,059 - INFO - ================================================================================ 2026-02-11 13:44:29,059 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 13:44:29,059 - 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-11 13:44:29,347 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with 2026-02-11 13:44:29,347 - INFO - Initial checks done. Running the testcase now 2026-02-11 13:44:29,347 - INFO - 2026-02-11 13:44:29,726 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41314510:ctest-vn4-98010963, 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-41314510:ctest-vn4-98010963, 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-41314510:ctest-vn4-98010963, 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-41314510:ctest-vn4-98010963, 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-11 13:44:30,234 - DEBUG - Response for create_network : {'network': {'id': '6bfcaa5e-bc7b-41f3-bde6-50a1c310daba', 'name': 'ctest-vn4-98010963', 'tenant_id': 'dfed8371737e459692c79897dfc7c7c3', 'project_id': 'dfed8371737e459692c79897dfc7c7c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41314510', 'ctest-vn4-98010963'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 13:44:30,382 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e97a2cf5-d75a-47ee-b11b-f919485dc56b', 'name': '', 'tenant_id': 'dfed8371737e459692c79897dfc7c7c3', 'network_id': '6bfcaa5e-bc7b-41f3-bde6-50a1c310daba', 'ip_version': 4, 'cidr': '129.99.138.128/26', 'allocation_pools': [{'start': '129.99.138.130', 'end': '129.99.138.190'}], 'gateway_ip': '129.99.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.99.138.130', 'tags': [], 'project_id': 'dfed8371737e459692c79897dfc7c7c3'}} 2026-02-11 13:44:30,544 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c03c96a-3a1a-4386-b371-667115bd3864', 'name': '', 'tenant_id': 'dfed8371737e459692c79897dfc7c7c3', 'network_id': '6bfcaa5e-bc7b-41f3-bde6-50a1c310daba', 'ip_version': 6, 'cidr': '38ee:200b:ba69:8b73:f907:c9ba::/96', 'allocation_pools': [{'start': '38ee:200b:ba69:8b73:f907:c9ba:0:2', 'end': '38ee:200b:ba69:8b73:f907:c9ba:ffff:fffe'}], 'gateway_ip': '38ee:200b:ba69:8b73:f907:c9ba:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38ee:200b:ba69:8b73:f907:c9ba:0:2', 'tags': [], 'project_id': 'dfed8371737e459692c79897dfc7c7c3'}} 2026-02-11 13:44:30,565 - INFO - Created VN ctest-vn4-98010963 2026-02-11 13:44:30,618 - DEBUG - VN ctest-vn4-98010963 UUID is 6bfcaa5e-bc7b-41f3-bde6-50a1c310daba 2026-02-11 13:44:30,821 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bfcaa5e-bc7b-41f3-bde6-50a1c310daba', 'name': 'ctest-vn4-98010963', 'tenant_id': 'dfed8371737e459692c79897dfc7c7c3', 'project_id': 'dfed8371737e459692c79897dfc7c7c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e97a2cf5-d75a-47ee-b11b-f919485dc56b', '0c03c96a-3a1a-4386-b371-667115bd3864'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41314510', 'ctest-vn4-98010963'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41314510', 'ctest-policy1-00923739']], 'subnet_ipam': [{'subnet_cidr': '129.99.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38ee:200b:ba69:8b73:f907:c9ba::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 13:44:30,981 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 13:44:31,280 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 13:44:31,313 - DEBUG - Requesting: http://10.0.0.141:8082/domain/afb4e00c-2e10-4bb2-8b9e-2cd58d43f13c 2026-02-11 13:44:31,326 - DEBUG - Requesting: http://10.0.0.141:8082/project/dfed8371-737e-4596-92c7-9897dfc7c7c3 2026-02-11 13:44:31,403 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6bfcaa5e-bc7b-41f3-bde6-50a1c310daba 2026-02-11 13:44:31,416 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6bfcaa5e-bc7b-41f3-bde6-50a1c310daba 2026-02-11 13:44:31,427 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fe8a5895-6cc9-4322-aed0-6c1dec896a86 2026-02-11 13:44:31,435 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fe8a5895-6cc9-4322-aed0-6c1dec896a86 2026-02-11 13:44:31,443 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/095b5fc9-641f-42e0-9cc1-95233f6195c9 2026-02-11 13:44:31,450 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 13:44:31,450 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6bfcaa5e-bc7b-41f3-bde6-50a1c310daba 2026-02-11 13:44:31,459 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fe8a5895-6cc9-4322-aed0-6c1dec896a86 2026-02-11 13:44:31,475 - INFO - Verified VN network id 11 for VN 6bfcaa5e-bc7b-41f3-bde6-50a1c310daba 2026-02-11 13:44:31,475 - INFO - Verifications in API Server for VN ctest-vn4-98010963 passed 2026-02-11 13:44:31,475 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6bfcaa5e-bc7b-41f3-bde6-50a1c310daba 2026-02-11 13:44:31,485 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fe8a5895-6cc9-4322-aed0-6c1dec896a86 2026-02-11 13:44:31,493 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fe8a5895-6cc9-4322-aed0-6c1dec896a86 2026-02-11 13:44:31,501 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/095b5fc9-641f-42e0-9cc1-95233f6195c9 2026-02-11 13:44:31,515 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41314510:ctest-vn4-98010963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41314510', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7781281580055216627', 'uuid-lslong': '13683713173504449210'}, 'enable': 'true', 'created': '2026-02-11T13:44:30', 'last-modified': '2026-02-11T13:44:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715791'} 2026-02-11 13:44:31,521 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 13:44:31,521 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98010963 passed 2026-02-11 13:44:31,521 - DEBUG - ====Verifying policy data for ctest-vn4-98010963 in API_Server ====== 2026-02-11 13:44:31,522 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 13:44:31,528 - DEBUG - Requesting: http://10.0.0.141:8082/domain/afb4e00c-2e10-4bb2-8b9e-2cd58d43f13c 2026-02-11 13:44:31,540 - DEBUG - Requesting: http://10.0.0.141:8082/project/dfed8371-737e-4596-92c7-9897dfc7c7c3 2026-02-11 13:44:31,611 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6bfcaa5e-bc7b-41f3-bde6-50a1c310daba 2026-02-11 13:44:31,620 - DEBUG - ==>Verifying data for policy with id: eef270a7-60ca-4e89-87e4-6f99a670a7f6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41314510', 'ctest-policy1-00923739'] 2026-02-11 13:44:31,620 - INFO - VN ctest-vn4-98010963 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 13:44:31,620 - DEBUG - Verifying the vn in opserver 2026-02-11 13:44:31,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41314510:ctest-vn4-98010963 virtual network link through opserver 10.0.0.141 2026-02-11 13:44:31,620 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-11 13:44:31,925 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-11 13:44:31,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41314510:ctest-vn4-98010963', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41314510:ctest-vn4-98010963?flat'} 2026-02-11 13:44:31,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41314510:ctest-vn4-98010963 is found in opserver 2026-02-11 13:44:32,002 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 13:44:32,007 - DEBUG - VRF ids for VN ctest-vn4-98010963: {} 2026-02-11 13:44:32,008 - DEBUG - ====Verifying data for ctest-policy1-00923739 in API_Server ====== 2026-02-11 13:44:32,008 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 13:44:32,013 - DEBUG - Requesting: http://10.0.0.141:8082/domain/afb4e00c-2e10-4bb2-8b9e-2cd58d43f13c 2026-02-11 13:44:32,026 - DEBUG - Requesting: http://10.0.0.141:8082/project/dfed8371-737e-4596-92c7-9897dfc7c7c3 2026-02-11 13:44:32,096 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/eef270a7-60ca-4e89-87e4-6f99a670a7f6 2026-02-11 13:44:32,104 - INFO - Verified policy ctest-policy1-00923739 in API Server, Result: True 2026-02-11 13:44:32,104 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 13:44:32,113 - INFO - Deleting VN ctest-vn4-98010963 2026-02-11 13:44:32,260 - DEBUG - Response for deleting network () 2026-02-11 13:44:32,260 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fe8a5895-6cc9-4322-aed0-6c1dec896a86 2026-02-11 13:44:32,265 - DEBUG - Response Code: 404 2026-02-11 13:44:32,266 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 13:44:32,272 - DEBUG - Requesting: http://10.0.0.141:8082/domain/afb4e00c-2e10-4bb2-8b9e-2cd58d43f13c 2026-02-11 13:44:32,327 - DEBUG - Requesting: http://10.0.0.141:8082/project/dfed8371-737e-4596-92c7-9897dfc7c7c3 2026-02-11 13:44:32,394 - INFO - Validated that VN ctest-vn4-98010963 is not found in API Server 2026-02-11 13:44:32,407 - DEBUG - VN ctest-vn4-98010963 is not present in Agent 10.0.0.141 2026-02-11 13:44:32,407 - INFO - Validated that VN ctest-vn4-98010963 is not in any agent 2026-02-11 13:44:32,424 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98010963 info 2026-02-11 13:44:32,451 - INFO - Deleted policy ctest-policy1-00923739 2026-02-11 13:44:32,613 - DEBUG - policy ctest-policy1-00923739 is not found in API Server 2026-02-11 13:44:32,870 - DEBUG - No XMPP flaps were noticed during the test