2026-08-25 20:36:25,479 - INFO - Domain Default found not creating 2026-08-25 20:36:25,650 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67228332 not found, creating it 2026-08-25 20:36:26,161 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67228332, ID : cf637153-5715-4414-aa5f-8178638237ba 2026-08-25 20:36:27,943 - INFO - ================================================================================ 2026-08-25 20:36:27,943 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 20:36:28,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-08-25 20:36:28,214 - INFO - Initial checks done. Running the testcase now 2026-08-25 20:36:28,214 - INFO - 2026-08-25 20:36:28,214 - INFO - ================================================================================ 2026-08-25 20:36:28,214 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 20:36:28,215 - 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-08-25 20:36:28,510 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-08-25 20:36:28,511 - INFO - Initial checks done. Running the testcase now 2026-08-25 20:36:28,511 - INFO - 2026-08-25 20:36:28,959 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67228332:ctest-vn4-81154658, 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-67228332:ctest-vn4-81154658, 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-67228332:ctest-vn4-81154658, 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-67228332:ctest-vn4-81154658, 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-08-25 20:36:29,531 - DEBUG - Response for create_network : {'network': {'id': 'cb87f0c6-02c2-4f2a-94e5-832d899527b0', 'name': 'ctest-vn4-81154658', 'tenant_id': 'cf63715357154414aa5f8178638237ba', 'project_id': 'cf63715357154414aa5f8178638237ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67228332', 'ctest-vn4-81154658'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 20:36:29,792 - DEBUG - Response for create_subnet : {'subnet': {'id': '5dc1e8e1-1e92-4a31-aa2e-8cfc21aa886c', 'name': '', 'tenant_id': 'cf63715357154414aa5f8178638237ba', 'network_id': 'cb87f0c6-02c2-4f2a-94e5-832d899527b0', 'ip_version': 4, 'cidr': '14.184.167.128/26', 'allocation_pools': [{'start': '14.184.167.130', 'end': '14.184.167.190'}], 'gateway_ip': '14.184.167.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.184.167.130', 'tags': [], 'project_id': 'cf63715357154414aa5f8178638237ba'}} 2026-08-25 20:36:29,984 - DEBUG - Response for create_subnet : {'subnet': {'id': '02a73638-df26-469e-aa48-c88c05eb943b', 'name': '', 'tenant_id': 'cf63715357154414aa5f8178638237ba', 'network_id': 'cb87f0c6-02c2-4f2a-94e5-832d899527b0', 'ip_version': 6, 'cidr': '333e:f3a9:40a5:e69c:75d1:6e8e::/96', 'allocation_pools': [{'start': '333e:f3a9:40a5:e69c:75d1:6e8e:0:2', 'end': '333e:f3a9:40a5:e69c:75d1:6e8e:ffff:fffe'}], 'gateway_ip': '333e:f3a9:40a5:e69c:75d1:6e8e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '333e:f3a9:40a5:e69c:75d1:6e8e:0:2', 'tags': [], 'project_id': 'cf63715357154414aa5f8178638237ba'}} 2026-08-25 20:36:30,003 - INFO - Created VN ctest-vn4-81154658 2026-08-25 20:36:30,057 - DEBUG - VN ctest-vn4-81154658 UUID is cb87f0c6-02c2-4f2a-94e5-832d899527b0 2026-08-25 20:36:30,300 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb87f0c6-02c2-4f2a-94e5-832d899527b0', 'name': 'ctest-vn4-81154658', 'tenant_id': 'cf63715357154414aa5f8178638237ba', 'project_id': 'cf63715357154414aa5f8178638237ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5dc1e8e1-1e92-4a31-aa2e-8cfc21aa886c', '02a73638-df26-469e-aa48-c88c05eb943b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67228332', 'ctest-vn4-81154658'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67228332', 'ctest-policy1-16083009']], 'subnet_ipam': [{'subnet_cidr': '14.184.167.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '333e:f3a9:40a5:e69c:75d1:6e8e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 20:36:30,473 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-25 20:36:30,837 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-25 20:36:30,869 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7847e42b-e827-4df0-bacf-1cc4c77740a1 2026-08-25 20:36:30,887 - DEBUG - Requesting: http://10.0.0.33:8082/project/cf637153-5715-4414-aa5f-8178638237ba 2026-08-25 20:36:30,977 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87f0c6-02c2-4f2a-94e5-832d899527b0 2026-08-25 20:36:30,992 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87f0c6-02c2-4f2a-94e5-832d899527b0 2026-08-25 20:36:31,003 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b10efa4-97a3-4cab-afd1-8b45f0585f13 2026-08-25 20:36:31,012 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b10efa4-97a3-4cab-afd1-8b45f0585f13 2026-08-25 20:36:31,020 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c0da5b8d-5e70-48dd-b976-c29417eaa30c 2026-08-25 20:36:31,029 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 20:36:31,029 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87f0c6-02c2-4f2a-94e5-832d899527b0 2026-08-25 20:36:31,040 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b10efa4-97a3-4cab-afd1-8b45f0585f13 2026-08-25 20:36:31,059 - INFO - Verified VN network id 11 for VN cb87f0c6-02c2-4f2a-94e5-832d899527b0 2026-08-25 20:36:31,059 - INFO - Verifications in API Server for VN ctest-vn4-81154658 passed 2026-08-25 20:36:31,059 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87f0c6-02c2-4f2a-94e5-832d899527b0 2026-08-25 20:36:31,075 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b10efa4-97a3-4cab-afd1-8b45f0585f13 2026-08-25 20:36:31,084 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b10efa4-97a3-4cab-afd1-8b45f0585f13 2026-08-25 20:36:31,092 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c0da5b8d-5e70-48dd-b976-c29417eaa30c 2026-08-25 20:36:31,108 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67228332:ctest-vn4-81154658', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67228332', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14665955444795789098', 'uuid-lslong': '10729125918885095344'}, 'enable': 'true', 'created': '2026-08-25T20:36:29', 'last-modified': '2026-08-25T20:36:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.845685'} 2026-08-25 20:36:31,117 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 20:36:31,117 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81154658 passed 2026-08-25 20:36:31,117 - DEBUG - ====Verifying policy data for ctest-vn4-81154658 in API_Server ====== 2026-08-25 20:36:31,117 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-25 20:36:31,125 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7847e42b-e827-4df0-bacf-1cc4c77740a1 2026-08-25 20:36:31,137 - DEBUG - Requesting: http://10.0.0.33:8082/project/cf637153-5715-4414-aa5f-8178638237ba 2026-08-25 20:36:31,218 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87f0c6-02c2-4f2a-94e5-832d899527b0 2026-08-25 20:36:31,231 - DEBUG - ==>Verifying data for policy with id: aaf75846-ebba-4b62-8bae-6c035da4cde9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67228332', 'ctest-policy1-16083009'] 2026-08-25 20:36:31,231 - INFO - VN ctest-vn4-81154658 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 20:36:31,231 - DEBUG - Verifying the vn in opserver 2026-08-25 20:36:31,231 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67228332:ctest-vn4-81154658 virtual network link through opserver 10.0.0.33 2026-08-25 20:36:31,231 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-08-25 20:36:31,615 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-08-25 20:36:31,678 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67228332:ctest-vn4-81154658', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67228332:ctest-vn4-81154658?flat'} 2026-08-25 20:36:31,678 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67228332:ctest-vn4-81154658 is found in opserver 2026-08-25 20:36:31,690 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 20:36:31,696 - DEBUG - VRF ids for VN ctest-vn4-81154658: {} 2026-08-25 20:36:31,697 - DEBUG - ====Verifying data for ctest-policy1-16083009 in API_Server ====== 2026-08-25 20:36:31,697 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-25 20:36:31,705 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7847e42b-e827-4df0-bacf-1cc4c77740a1 2026-08-25 20:36:31,720 - DEBUG - Requesting: http://10.0.0.33:8082/project/cf637153-5715-4414-aa5f-8178638237ba 2026-08-25 20:36:31,800 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/aaf75846-ebba-4b62-8bae-6c035da4cde9 2026-08-25 20:36:31,814 - INFO - Verified policy ctest-policy1-16083009 in API Server, Result: True 2026-08-25 20:36:31,814 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 20:36:31,826 - INFO - Deleting VN ctest-vn4-81154658 2026-08-25 20:36:31,983 - DEBUG - Response for deleting network () 2026-08-25 20:36:31,983 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1b10efa4-97a3-4cab-afd1-8b45f0585f13 2026-08-25 20:36:31,989 - DEBUG - Response Code: 404 2026-08-25 20:36:31,989 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-25 20:36:31,997 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7847e42b-e827-4df0-bacf-1cc4c77740a1 2026-08-25 20:36:32,051 - DEBUG - Requesting: http://10.0.0.33:8082/project/cf637153-5715-4414-aa5f-8178638237ba 2026-08-25 20:36:32,132 - INFO - Validated that VN ctest-vn4-81154658 is not found in API Server 2026-08-25 20:36:32,147 - DEBUG - VN ctest-vn4-81154658 is not present in Agent 10.0.0.33 2026-08-25 20:36:32,147 - INFO - Validated that VN ctest-vn4-81154658 is not in any agent 2026-08-25 20:36:32,168 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81154658 info 2026-08-25 20:36:32,208 - INFO - Deleted policy ctest-policy1-16083009 2026-08-25 20:36:32,389 - DEBUG - policy ctest-policy1-16083009 is not found in API Server 2026-08-25 20:36:32,663 - DEBUG - No XMPP flaps were noticed during the test