2026-08-22 18:55:06,071 - INFO - Domain Default found not creating 2026-08-22 18:55:06,245 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25903496 not found, creating it 2026-08-22 18:55:06,753 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25903496, ID : a020b329-6b6d-4c5a-8263-5c5d079b4e32 2026-08-22 18:55:08,603 - INFO - ================================================================================ 2026-08-22 18:55:08,603 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-22 18:55:08,867 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-22 18:55:08,867 - INFO - Initial checks done. Running the testcase now 2026-08-22 18:55:08,868 - INFO - 2026-08-22 18:55:08,868 - INFO - ================================================================================ 2026-08-22 18:55:08,868 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-22 18:55:08,868 - 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-22 18:55:09,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-22 18:55:09,171 - INFO - Initial checks done. Running the testcase now 2026-08-22 18:55:09,171 - INFO - 2026-08-22 18:55:09,610 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25903496:ctest-vn4-32519089, 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-25903496:ctest-vn4-32519089, 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-25903496:ctest-vn4-32519089, 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-25903496:ctest-vn4-32519089, 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-22 18:55:10,175 - DEBUG - Response for create_network : {'network': {'id': 'dcdf2ed1-d663-4332-ba13-50e82cf9dab1', 'name': 'ctest-vn4-32519089', 'tenant_id': 'a020b3296b6d4c5a82635c5d079b4e32', 'project_id': 'a020b3296b6d4c5a82635c5d079b4e32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25903496', 'ctest-vn4-32519089'], 'port_security_enabled': True, 'description': ''}} 2026-08-22 18:55:10,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e53d620-2fe4-4158-8fe6-d1ef2f1436c8', 'name': '', 'tenant_id': 'a020b3296b6d4c5a82635c5d079b4e32', 'network_id': 'dcdf2ed1-d663-4332-ba13-50e82cf9dab1', 'ip_version': 4, 'cidr': '13.176.216.192/26', 'allocation_pools': [{'start': '13.176.216.194', 'end': '13.176.216.254'}], 'gateway_ip': '13.176.216.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.176.216.194', 'tags': [], 'project_id': 'a020b3296b6d4c5a82635c5d079b4e32'}} 2026-08-22 18:55:10,576 - DEBUG - Response for create_subnet : {'subnet': {'id': '51b743f4-acbf-40f0-a81b-eee100a5709d', 'name': '', 'tenant_id': 'a020b3296b6d4c5a82635c5d079b4e32', 'network_id': 'dcdf2ed1-d663-4332-ba13-50e82cf9dab1', 'ip_version': 6, 'cidr': '3276:1fe0:22ea:5a39:a087:7ebe::/96', 'allocation_pools': [{'start': '3276:1fe0:22ea:5a39:a087:7ebe:0:2', 'end': '3276:1fe0:22ea:5a39:a087:7ebe:ffff:fffe'}], 'gateway_ip': '3276:1fe0:22ea:5a39:a087:7ebe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3276:1fe0:22ea:5a39:a087:7ebe:0:2', 'tags': [], 'project_id': 'a020b3296b6d4c5a82635c5d079b4e32'}} 2026-08-22 18:55:10,603 - INFO - Created VN ctest-vn4-32519089 2026-08-22 18:55:10,657 - DEBUG - VN ctest-vn4-32519089 UUID is dcdf2ed1-d663-4332-ba13-50e82cf9dab1 2026-08-22 18:55:10,905 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dcdf2ed1-d663-4332-ba13-50e82cf9dab1', 'name': 'ctest-vn4-32519089', 'tenant_id': 'a020b3296b6d4c5a82635c5d079b4e32', 'project_id': 'a020b3296b6d4c5a82635c5d079b4e32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e53d620-2fe4-4158-8fe6-d1ef2f1436c8', '51b743f4-acbf-40f0-a81b-eee100a5709d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25903496', 'ctest-vn4-32519089'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25903496', 'ctest-policy1-45690659']], 'subnet_ipam': [{'subnet_cidr': '13.176.216.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3276:1fe0:22ea:5a39:a087:7ebe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-22 18:55:11,069 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 18:55:11,440 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 18:55:11,472 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f61de404-4d22-40a1-b163-4b1a9b28dc72 2026-08-22 18:55:11,486 - DEBUG - Requesting: http://10.0.0.50:8082/project/a020b329-6b6d-4c5a-8263-5c5d079b4e32 2026-08-22 18:55:11,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcdf2ed1-d663-4332-ba13-50e82cf9dab1 2026-08-22 18:55:11,589 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcdf2ed1-d663-4332-ba13-50e82cf9dab1 2026-08-22 18:55:11,603 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81a93107-1a1b-46a5-9695-fadda4f7d7db 2026-08-22 18:55:11,614 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81a93107-1a1b-46a5-9695-fadda4f7d7db 2026-08-22 18:55:11,624 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1b3f1453-1734-494e-b538-7ea631573e43 2026-08-22 18:55:11,634 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-22 18:55:11,634 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcdf2ed1-d663-4332-ba13-50e82cf9dab1 2026-08-22 18:55:11,646 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81a93107-1a1b-46a5-9695-fadda4f7d7db 2026-08-22 18:55:11,669 - INFO - Verified VN network id 11 for VN dcdf2ed1-d663-4332-ba13-50e82cf9dab1 2026-08-22 18:55:11,669 - INFO - Verifications in API Server for VN ctest-vn4-32519089 passed 2026-08-22 18:55:11,669 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcdf2ed1-d663-4332-ba13-50e82cf9dab1 2026-08-22 18:55:11,680 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81a93107-1a1b-46a5-9695-fadda4f7d7db 2026-08-22 18:55:11,689 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81a93107-1a1b-46a5-9695-fadda4f7d7db 2026-08-22 18:55:11,697 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1b3f1453-1734-494e-b538-7ea631573e43 2026-08-22 18:55:11,712 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25903496:ctest-vn4-32519089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25903496', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15915491086930494258', 'uuid-lslong': '13408149473729305265'}, 'enable': 'true', 'created': '2026-08-22T18:55:10', 'last-modified': '2026-08-22T18:55:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.851666'} 2026-08-22 18:55:11,721 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-22 18:55:11,721 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32519089 passed 2026-08-22 18:55:11,721 - DEBUG - ====Verifying policy data for ctest-vn4-32519089 in API_Server ====== 2026-08-22 18:55:11,721 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 18:55:11,729 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f61de404-4d22-40a1-b163-4b1a9b28dc72 2026-08-22 18:55:11,743 - DEBUG - Requesting: http://10.0.0.50:8082/project/a020b329-6b6d-4c5a-8263-5c5d079b4e32 2026-08-22 18:55:11,833 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcdf2ed1-d663-4332-ba13-50e82cf9dab1 2026-08-22 18:55:11,847 - DEBUG - ==>Verifying data for policy with id: ccbdaa4f-844c-42be-ae25-0b30f6e3e5b3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25903496', 'ctest-policy1-45690659'] 2026-08-22 18:55:11,848 - INFO - VN ctest-vn4-32519089 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-22 18:55:11,848 - DEBUG - Verifying the vn in opserver 2026-08-22 18:55:11,848 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25903496:ctest-vn4-32519089 virtual network link through opserver 10.0.0.50 2026-08-22 18:55:11,848 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-22 18:55:12,221 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-22 18:55:12,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25903496:ctest-vn4-32519089', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25903496:ctest-vn4-32519089?flat'} 2026-08-22 18:55:12,287 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25903496:ctest-vn4-32519089 is found in opserver 2026-08-22 18:55:12,300 - DEBUG - Do not have enough data to verify VN in agent 2026-08-22 18:55:12,306 - DEBUG - VRF ids for VN ctest-vn4-32519089: {} 2026-08-22 18:55:12,307 - DEBUG - ====Verifying data for ctest-policy1-45690659 in API_Server ====== 2026-08-22 18:55:12,307 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 18:55:12,314 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f61de404-4d22-40a1-b163-4b1a9b28dc72 2026-08-22 18:55:12,329 - DEBUG - Requesting: http://10.0.0.50:8082/project/a020b329-6b6d-4c5a-8263-5c5d079b4e32 2026-08-22 18:55:12,412 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/ccbdaa4f-844c-42be-ae25-0b30f6e3e5b3 2026-08-22 18:55:12,426 - INFO - Verified policy ctest-policy1-45690659 in API Server, Result: True 2026-08-22 18:55:12,426 - INFO - Done with setup and verification, moving onto test .. 2026-08-22 18:55:12,438 - INFO - Deleting VN ctest-vn4-32519089 2026-08-22 18:55:12,618 - DEBUG - Response for deleting network () 2026-08-22 18:55:12,618 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81a93107-1a1b-46a5-9695-fadda4f7d7db 2026-08-22 18:55:12,629 - DEBUG - Response Code: 404 2026-08-22 18:55:12,629 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-22 18:55:12,648 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f61de404-4d22-40a1-b163-4b1a9b28dc72 2026-08-22 18:55:12,681 - DEBUG - Requesting: http://10.0.0.50:8082/project/a020b329-6b6d-4c5a-8263-5c5d079b4e32 2026-08-22 18:55:12,778 - INFO - Validated that VN ctest-vn4-32519089 is not found in API Server 2026-08-22 18:55:12,794 - DEBUG - VN ctest-vn4-32519089 is not present in Agent 10.0.0.50 2026-08-22 18:55:12,794 - INFO - Validated that VN ctest-vn4-32519089 is not in any agent 2026-08-22 18:55:12,818 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32519089 info 2026-08-22 18:55:12,858 - INFO - Deleted policy ctest-policy1-45690659 2026-08-22 18:55:13,041 - DEBUG - policy ctest-policy1-45690659 is not found in API Server 2026-08-22 18:55:13,308 - DEBUG - No XMPP flaps were noticed during the test 2026-08-22 18:55:13,308 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-22 18:55:13,308 - INFO - -------------------------------------------------------------------------------- 2026-08-22 18:55:13,613 - DEBUG - No XMPP flaps were noticed during the test 2026-08-22 18:55:13,613 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-22 18:55:13,613 - INFO - -------------------------------------------------------------------------------- 2026-08-22 18:55:14,488 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25903496, ID : a020b329-6b6d-4c5a-8263-5c5d079b4e32