2026-10-27 17:31:48,559 - INFO - Domain Default found not creating 2026-10-27 17:31:48,751 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50525767 not found, creating it 2026-10-27 17:31:49,414 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50525767, ID : 19130eb7-7335-428e-885b-f3ab5524966d 2026-10-27 17:31:51,336 - INFO - ================================================================================ 2026-10-27 17:31:51,336 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-27 17:31:51,623 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.254': '0'}} with 2026-10-27 17:31:51,623 - INFO - Initial checks done. Running the testcase now 2026-10-27 17:31:51,623 - INFO - 2026-10-27 17:31:51,623 - INFO - ================================================================================ 2026-10-27 17:31:51,623 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-27 17:31:51,623 - 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-10-27 17:31:51,924 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.254': '0'}} with 2026-10-27 17:31:51,924 - INFO - Initial checks done. Running the testcase now 2026-10-27 17:31:51,924 - INFO - 2026-10-27 17:31:52,418 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50525767:ctest-vn4-22712935, 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-50525767:ctest-vn4-22712935, 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-50525767:ctest-vn4-22712935, 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-50525767:ctest-vn4-22712935, 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-10-27 17:31:52,964 - DEBUG - Response for create_network : {'network': {'id': '3bda1c12-8c09-4e9a-acf0-ba1f414db310', 'name': 'ctest-vn4-22712935', 'tenant_id': '19130eb77335428e885bf3ab5524966d', 'project_id': '19130eb77335428e885bf3ab5524966d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50525767', 'ctest-vn4-22712935'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-10-27 17:31:53,204 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd155bfac-ed57-4f4c-8027-e4bf1de560bc', 'name': '', 'tenant_id': '19130eb77335428e885bf3ab5524966d', 'network_id': '3bda1c12-8c09-4e9a-acf0-ba1f414db310', 'ip_version': 4, 'cidr': '116.144.165.0/26', 'allocation_pools': [{'start': '116.144.165.2', 'end': '116.144.165.62'}], 'gateway_ip': '116.144.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-10-27T17:31:53.065128', 'updated_at': '2026-10-27T17:31:53.065128', 'dns_server_address': '116.144.165.2', 'tags': [], 'project_id': '19130eb77335428e885bf3ab5524966d'}} 2026-10-27 17:31:53,455 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa992a68-2960-4d34-9189-77e99252f9b0', 'name': '', 'tenant_id': '19130eb77335428e885bf3ab5524966d', 'network_id': '3bda1c12-8c09-4e9a-acf0-ba1f414db310', 'ip_version': 6, 'cidr': '2f40:346b:55f8:84c1:7f5b:4f9f::/96', 'allocation_pools': [{'start': '2f40:346b:55f8:84c1:7f5b:4f9f:0:2', 'end': '2f40:346b:55f8:84c1:7f5b:4f9f:ffff:fffe'}], 'gateway_ip': '2f40:346b:55f8:84c1:7f5b:4f9f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-10-27T17:31:53.334858', 'updated_at': '2026-10-27T17:31:53.334858', 'dns_server_address': '2f40:346b:55f8:84c1:7f5b:4f9f:0:2', 'tags': [], 'project_id': '19130eb77335428e885bf3ab5524966d'}} 2026-10-27 17:31:53,481 - INFO - Created VN ctest-vn4-22712935 2026-10-27 17:31:53,536 - DEBUG - VN ctest-vn4-22712935 UUID is 3bda1c12-8c09-4e9a-acf0-ba1f414db310 2026-10-27 17:31:53,779 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bda1c12-8c09-4e9a-acf0-ba1f414db310', 'name': 'ctest-vn4-22712935', 'tenant_id': '19130eb77335428e885bf3ab5524966d', 'project_id': '19130eb77335428e885bf3ab5524966d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d155bfac-ed57-4f4c-8027-e4bf1de560bc', 'fa992a68-2960-4d34-9189-77e99252f9b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50525767', 'ctest-vn4-22712935'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50525767', 'ctest-policy1-01299447']], 'subnet_ipam': [{'subnet_cidr': '116.144.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f40:346b:55f8:84c1:7f5b:4f9f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-10-27T17:31:52.927387', 'updated_at': '2026-10-27T17:31:53.400023'}} 2026-10-27 17:31:53,952 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-27 17:31:54,324 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-27 17:31:54,353 - DEBUG - Requesting: http://10.0.0.190:8082/domain/db95c7c0-0778-4fff-b25e-491603e52b12 2026-10-27 17:31:54,370 - DEBUG - Requesting: http://10.0.0.190:8082/project/19130eb7-7335-428e-885b-f3ab5524966d 2026-10-27 17:31:54,461 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/3bda1c12-8c09-4e9a-acf0-ba1f414db310 2026-10-27 17:31:54,481 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/3bda1c12-8c09-4e9a-acf0-ba1f414db310 2026-10-27 17:31:54,496 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1d61682c-fcb2-4c03-9d81-f6c515f0f512 2026-10-27 17:31:54,506 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1d61682c-fcb2-4c03-9d81-f6c515f0f512 2026-10-27 17:31:54,516 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/bcf86593-a926-4928-805e-5991c2be77f7 2026-10-27 17:31:54,526 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-27 17:31:54,526 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/3bda1c12-8c09-4e9a-acf0-ba1f414db310 2026-10-27 17:31:54,540 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1d61682c-fcb2-4c03-9d81-f6c515f0f512 2026-10-27 17:31:54,560 - INFO - Verified VN network id 12 for VN 3bda1c12-8c09-4e9a-acf0-ba1f414db310 2026-10-27 17:31:54,560 - INFO - Verifications in API Server for VN ctest-vn4-22712935 passed 2026-10-27 17:31:54,560 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/3bda1c12-8c09-4e9a-acf0-ba1f414db310 2026-10-27 17:31:54,575 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1d61682c-fcb2-4c03-9d81-f6c515f0f512 2026-10-27 17:31:54,584 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1d61682c-fcb2-4c03-9d81-f6c515f0f512 2026-10-27 17:31:54,594 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/bcf86593-a926-4928-805e-5991c2be77f7 2026-10-27 17:31:54,611 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50525767:ctest-vn4-22712935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50525767', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4312790459145080474', 'uuid-lslong': '12461664812336526096'}, 'enable': 'true', 'created': '2026-10-27T17:31:52', 'last-modified': '2026-10-27T17:31:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.865099'} 2026-10-27 17:31:54,618 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-27 17:31:54,618 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22712935 passed 2026-10-27 17:31:54,618 - DEBUG - ====Verifying policy data for ctest-vn4-22712935 in API_Server ====== 2026-10-27 17:31:54,618 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-27 17:31:54,624 - DEBUG - Requesting: http://10.0.0.190:8082/domain/db95c7c0-0778-4fff-b25e-491603e52b12 2026-10-27 17:31:54,637 - DEBUG - Requesting: http://10.0.0.190:8082/project/19130eb7-7335-428e-885b-f3ab5524966d 2026-10-27 17:31:54,716 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/3bda1c12-8c09-4e9a-acf0-ba1f414db310 2026-10-27 17:31:54,730 - DEBUG - ==>Verifying data for policy with id: 49d8f5a0-4abc-44c9-ae4d-0a7a7e09e09b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50525767', 'ctest-policy1-01299447'] 2026-10-27 17:31:54,731 - INFO - VN ctest-vn4-22712935 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-27 17:31:54,731 - DEBUG - Verifying the vn in opserver 2026-10-27 17:31:54,731 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50525767:ctest-vn4-22712935 virtual network link through opserver 10.0.0.190 2026-10-27 17:31:54,731 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-27 17:31:55,098 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-27 17:31:55,153 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50525767:ctest-vn4-22712935', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50525767:ctest-vn4-22712935?flat'} 2026-10-27 17:31:55,153 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50525767:ctest-vn4-22712935 is found in opserver 2026-10-27 17:31:55,165 - DEBUG - Do not have enough data to verify VN in agent 2026-10-27 17:31:55,170 - DEBUG - VRF ids for VN ctest-vn4-22712935: {} 2026-10-27 17:31:55,170 - DEBUG - ====Verifying data for ctest-policy1-01299447 in API_Server ====== 2026-10-27 17:31:55,170 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-27 17:31:55,176 - DEBUG - Requesting: http://10.0.0.190:8082/domain/db95c7c0-0778-4fff-b25e-491603e52b12 2026-10-27 17:31:55,188 - DEBUG - Requesting: http://10.0.0.190:8082/project/19130eb7-7335-428e-885b-f3ab5524966d 2026-10-27 17:31:55,260 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/49d8f5a0-4abc-44c9-ae4d-0a7a7e09e09b 2026-10-27 17:31:55,271 - INFO - Verified policy ctest-policy1-01299447 in API Server, Result: True 2026-10-27 17:31:55,271 - INFO - Done with setup and verification, moving onto test .. 2026-10-27 17:31:55,282 - INFO - Deleting VN ctest-vn4-22712935 2026-10-27 17:31:55,448 - DEBUG - Response for deleting network () 2026-10-27 17:31:55,448 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1d61682c-fcb2-4c03-9d81-f6c515f0f512 2026-10-27 17:31:55,455 - DEBUG - Response Code: 404 2026-10-27 17:31:55,456 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-27 17:31:55,462 - DEBUG - Requesting: http://10.0.0.190:8082/domain/db95c7c0-0778-4fff-b25e-491603e52b12 2026-10-27 17:31:55,525 - DEBUG - Requesting: http://10.0.0.190:8082/project/19130eb7-7335-428e-885b-f3ab5524966d 2026-10-27 17:31:55,606 - INFO - Validated that VN ctest-vn4-22712935 is not found in API Server 2026-10-27 17:31:55,621 - DEBUG - VN ctest-vn4-22712935 is not present in Agent 10.0.0.190 2026-10-27 17:31:55,621 - INFO - Validated that VN ctest-vn4-22712935 is not in any agent 2026-10-27 17:31:55,639 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22712935 info 2026-10-27 17:31:55,675 - INFO - Deleted policy ctest-policy1-01299447 2026-10-27 17:31:55,858 - DEBUG - policy ctest-policy1-01299447 is not found in API Server 2026-10-27 17:31:56,140 - DEBUG - No XMPP flaps were noticed during the test