2026-02-09 23:01:17,205 - INFO - Domain Default found not creating 2026-02-09 23:01:17,357 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37219117 not found, creating it 2026-02-09 23:01:17,795 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37219117, ID : 802382a4-1518-45c7-b497-4cc0c3370c9b 2026-02-09 23:01:19,189 - INFO - ================================================================================ 2026-02-09 23:01:19,189 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 23:01:19,444 - DEBUG - Nothing to compare xmpp stats {'10.0.0.64': {'10.20.0.254': '0'}} with 2026-02-09 23:01:19,444 - INFO - Initial checks done. Running the testcase now 2026-02-09 23:01:19,444 - INFO - 2026-02-09 23:01:19,444 - INFO - ================================================================================ 2026-02-09 23:01:19,444 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 23:01:19,445 - 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-09 23:01:19,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.64': {'10.20.0.254': '0'}} with 2026-02-09 23:01:19,733 - INFO - Initial checks done. Running the testcase now 2026-02-09 23:01:19,733 - INFO - 2026-02-09 23:01:20,089 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37219117:ctest-vn4-35500080, 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-37219117:ctest-vn4-35500080, 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-37219117:ctest-vn4-35500080, 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-37219117:ctest-vn4-35500080, 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-09 23:01:20,578 - DEBUG - Response for create_network : {'network': {'id': '639f6c1a-689c-4d63-a528-6f8b5e4536f0', 'name': 'ctest-vn4-35500080', 'tenant_id': '802382a4151845c7b4974cc0c3370c9b', 'project_id': '802382a4151845c7b4974cc0c3370c9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37219117', 'ctest-vn4-35500080'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 23:01:20,762 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6d3da34-4123-47f1-a53c-81ef6c90d578', 'name': '', 'tenant_id': '802382a4151845c7b4974cc0c3370c9b', 'network_id': '639f6c1a-689c-4d63-a528-6f8b5e4536f0', 'ip_version': 4, 'cidr': '143.78.26.128/26', 'allocation_pools': [{'start': '143.78.26.130', 'end': '143.78.26.190'}], 'gateway_ip': '143.78.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.78.26.130', 'tags': [], 'project_id': '802382a4151845c7b4974cc0c3370c9b'}} 2026-02-09 23:01:20,920 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b34a30d3-2e34-4eb5-8963-0a5e1e3c6a1c', 'name': '', 'tenant_id': '802382a4151845c7b4974cc0c3370c9b', 'network_id': '639f6c1a-689c-4d63-a528-6f8b5e4536f0', 'ip_version': 6, 'cidr': '3b37:fdb2:a8b7:2d69:d500:b62::/96', 'allocation_pools': [{'start': '3b37:fdb2:a8b7:2d69:d500:b62:0:2', 'end': '3b37:fdb2:a8b7:2d69:d500:b62:ffff:fffe'}], 'gateway_ip': '3b37:fdb2:a8b7:2d69:d500:b62:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b37:fdb2:a8b7:2d69:d500:b62:0:2', 'tags': [], 'project_id': '802382a4151845c7b4974cc0c3370c9b'}} 2026-02-09 23:01:20,939 - INFO - Created VN ctest-vn4-35500080 2026-02-09 23:01:20,993 - DEBUG - VN ctest-vn4-35500080 UUID is 639f6c1a-689c-4d63-a528-6f8b5e4536f0 2026-02-09 23:01:21,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '639f6c1a-689c-4d63-a528-6f8b5e4536f0', 'name': 'ctest-vn4-35500080', 'tenant_id': '802382a4151845c7b4974cc0c3370c9b', 'project_id': '802382a4151845c7b4974cc0c3370c9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6d3da34-4123-47f1-a53c-81ef6c90d578', 'b34a30d3-2e34-4eb5-8963-0a5e1e3c6a1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37219117', 'ctest-vn4-35500080'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37219117', 'ctest-policy1-63243601']], 'subnet_ipam': [{'subnet_cidr': '143.78.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b37:fdb2:a8b7:2d69:d500:b62::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 23:01:21,350 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2026-02-09 23:01:21,641 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2026-02-09 23:01:21,666 - DEBUG - Requesting: http://10.0.0.64:8082/domain/f0dfb808-cf74-4636-99c1-32d02cc7e11f 2026-02-09 23:01:21,677 - DEBUG - Requesting: http://10.0.0.64:8082/project/802382a4-1518-45c7-b497-4cc0c3370c9b 2026-02-09 23:01:21,743 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/639f6c1a-689c-4d63-a528-6f8b5e4536f0 2026-02-09 23:01:21,753 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/639f6c1a-689c-4d63-a528-6f8b5e4536f0 2026-02-09 23:01:21,761 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/ff7b374c-e80d-4192-8e94-f4be253547c5 2026-02-09 23:01:21,767 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/ff7b374c-e80d-4192-8e94-f4be253547c5 2026-02-09 23:01:21,772 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/7a8e4503-11bb-4be1-a9ce-8e59880394cd 2026-02-09 23:01:21,777 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 23:01:21,777 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/639f6c1a-689c-4d63-a528-6f8b5e4536f0 2026-02-09 23:01:21,785 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/ff7b374c-e80d-4192-8e94-f4be253547c5 2026-02-09 23:01:21,796 - INFO - Verified VN network id 11 for VN 639f6c1a-689c-4d63-a528-6f8b5e4536f0 2026-02-09 23:01:21,796 - INFO - Verifications in API Server for VN ctest-vn4-35500080 passed 2026-02-09 23:01:21,796 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/639f6c1a-689c-4d63-a528-6f8b5e4536f0 2026-02-09 23:01:21,804 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/ff7b374c-e80d-4192-8e94-f4be253547c5 2026-02-09 23:01:21,810 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/ff7b374c-e80d-4192-8e94-f4be253547c5 2026-02-09 23:01:21,815 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/7a8e4503-11bb-4be1-a9ce-8e59880394cd 2026-02-09 23:01:21,825 - DEBUG - Control-node 10.0.0.64 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37219117:ctest-vn4-35500080', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37219117', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7178575191731883363', 'uuid-lslong': '11900884659699267312'}, 'enable': 'true', 'created': '2026-02-09T23:01:20', 'last-modified': '2026-02-09T23:01:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.666586'} 2026-02-09 23:01:21,830 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 23:01:21,830 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-35500080 passed 2026-02-09 23:01:21,830 - DEBUG - ====Verifying policy data for ctest-vn4-35500080 in API_Server ====== 2026-02-09 23:01:21,830 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2026-02-09 23:01:21,835 - DEBUG - Requesting: http://10.0.0.64:8082/domain/f0dfb808-cf74-4636-99c1-32d02cc7e11f 2026-02-09 23:01:21,846 - DEBUG - Requesting: http://10.0.0.64:8082/project/802382a4-1518-45c7-b497-4cc0c3370c9b 2026-02-09 23:01:21,913 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/639f6c1a-689c-4d63-a528-6f8b5e4536f0 2026-02-09 23:01:21,921 - DEBUG - ==>Verifying data for policy with id: 68bad99f-8a5b-4a5b-864f-58738d016cff, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37219117', 'ctest-policy1-63243601'] 2026-02-09 23:01:21,921 - INFO - VN ctest-vn4-35500080 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 23:01:21,922 - DEBUG - Verifying the vn in opserver 2026-02-09 23:01:21,922 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37219117:ctest-vn4-35500080 virtual network link through opserver 10.0.0.64 2026-02-09 23:01:21,922 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks 2026-02-09 23:01:22,213 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks 2026-02-09 23:01:22,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37219117:ctest-vn4-35500080', 'href': 'http://10.0.0.64:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37219117:ctest-vn4-35500080?flat'} 2026-02-09 23:01:22,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37219117:ctest-vn4-35500080 is found in opserver 2026-02-09 23:01:22,276 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 23:01:22,279 - DEBUG - VRF ids for VN ctest-vn4-35500080: {} 2026-02-09 23:01:22,280 - DEBUG - ====Verifying data for ctest-policy1-63243601 in API_Server ====== 2026-02-09 23:01:22,280 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2026-02-09 23:01:22,284 - DEBUG - Requesting: http://10.0.0.64:8082/domain/f0dfb808-cf74-4636-99c1-32d02cc7e11f 2026-02-09 23:01:22,293 - DEBUG - Requesting: http://10.0.0.64:8082/project/802382a4-1518-45c7-b497-4cc0c3370c9b 2026-02-09 23:01:22,361 - DEBUG - Requesting: http://10.0.0.64:8082/network-policy/68bad99f-8a5b-4a5b-864f-58738d016cff 2026-02-09 23:01:22,370 - INFO - Verified policy ctest-policy1-63243601 in API Server, Result: True 2026-02-09 23:01:22,370 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 23:01:22,377 - INFO - Deleting VN ctest-vn4-35500080 2026-02-09 23:01:22,494 - DEBUG - Response for deleting network () 2026-02-09 23:01:22,495 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/ff7b374c-e80d-4192-8e94-f4be253547c5 2026-02-09 23:01:22,499 - DEBUG - Response Code: 404 2026-02-09 23:01:22,499 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2026-02-09 23:01:22,504 - DEBUG - Requesting: http://10.0.0.64:8082/domain/f0dfb808-cf74-4636-99c1-32d02cc7e11f 2026-02-09 23:01:22,561 - DEBUG - Requesting: http://10.0.0.64:8082/project/802382a4-1518-45c7-b497-4cc0c3370c9b 2026-02-09 23:01:22,627 - INFO - Validated that VN ctest-vn4-35500080 is not found in API Server 2026-02-09 23:01:22,636 - DEBUG - VN ctest-vn4-35500080 is not present in Agent 10.0.0.64 2026-02-09 23:01:22,636 - INFO - Validated that VN ctest-vn4-35500080 is not in any agent 2026-02-09 23:01:22,648 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-35500080 info 2026-02-09 23:01:22,669 - INFO - Deleted policy ctest-policy1-63243601 2026-02-09 23:01:22,832 - DEBUG - policy ctest-policy1-63243601 is not found in API Server 2026-02-09 23:01:23,086 - DEBUG - No XMPP flaps were noticed during the test