2026-11-02 18:50:16,400 - INFO - Domain Default found not creating 2026-11-02 18:50:16,584 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06223709 not found, creating it 2026-11-02 18:50:17,097 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06223709, ID : b818cdd0-a724-4e23-8a66-e1caedc9268e 2026-11-02 18:50:18,969 - INFO - ================================================================================ 2026-11-02 18:50:18,969 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 18:50:19,227 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.25': '0'}} with 2026-11-02 18:50:19,227 - INFO - Initial checks done. Running the testcase now 2026-11-02 18:50:19,228 - INFO - 2026-11-02 18:50:19,228 - INFO - ================================================================================ 2026-11-02 18:50:19,228 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 18:50:19,228 - 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-11-02 18:50:19,524 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.25': '0'}} with 2026-11-02 18:50:19,524 - INFO - Initial checks done. Running the testcase now 2026-11-02 18:50:19,524 - INFO - 2026-11-02 18:50:19,946 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06223709:ctest-vn4-97617047, 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-06223709:ctest-vn4-97617047, 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-06223709:ctest-vn4-97617047, 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-06223709:ctest-vn4-97617047, 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-11-02 18:50:20,509 - DEBUG - Response for create_network : {'network': {'id': '842ff773-5aad-4e58-8c9a-12c700358555', 'name': 'ctest-vn4-97617047', 'tenant_id': 'b818cdd0a7244e238a66e1caedc9268e', 'project_id': 'b818cdd0a7244e238a66e1caedc9268e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06223709', 'ctest-vn4-97617047'], 'port_security_enabled': True, 'description': ''}} 2026-11-02 18:50:20,746 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c740f558-f068-492a-9d5b-c8bdf3ab3434', 'name': '', 'tenant_id': 'b818cdd0a7244e238a66e1caedc9268e', 'network_id': '842ff773-5aad-4e58-8c9a-12c700358555', 'ip_version': 4, 'cidr': '47.112.161.0/26', 'allocation_pools': [{'start': '47.112.161.2', 'end': '47.112.161.62'}], 'gateway_ip': '47.112.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.112.161.2', 'tags': [], 'project_id': 'b818cdd0a7244e238a66e1caedc9268e'}} 2026-11-02 18:50:20,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a7da9b0-5fb9-4325-8c52-9cfd19037cba', 'name': '', 'tenant_id': 'b818cdd0a7244e238a66e1caedc9268e', 'network_id': '842ff773-5aad-4e58-8c9a-12c700358555', 'ip_version': 6, 'cidr': '3a8b:d2eb:c6f9:3862:e855:c9dd::/96', 'allocation_pools': [{'start': '3a8b:d2eb:c6f9:3862:e855:c9dd:0:2', 'end': '3a8b:d2eb:c6f9:3862:e855:c9dd:ffff:fffe'}], 'gateway_ip': '3a8b:d2eb:c6f9:3862:e855:c9dd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a8b:d2eb:c6f9:3862:e855:c9dd:0:2', 'tags': [], 'project_id': 'b818cdd0a7244e238a66e1caedc9268e'}} 2026-11-02 18:50:20,993 - INFO - Created VN ctest-vn4-97617047 2026-11-02 18:50:21,049 - DEBUG - VN ctest-vn4-97617047 UUID is 842ff773-5aad-4e58-8c9a-12c700358555 2026-11-02 18:50:21,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '842ff773-5aad-4e58-8c9a-12c700358555', 'name': 'ctest-vn4-97617047', 'tenant_id': 'b818cdd0a7244e238a66e1caedc9268e', 'project_id': 'b818cdd0a7244e238a66e1caedc9268e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c740f558-f068-492a-9d5b-c8bdf3ab3434', '9a7da9b0-5fb9-4325-8c52-9cfd19037cba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06223709', 'ctest-vn4-97617047'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06223709', 'ctest-policy1-74378569']], 'subnet_ipam': [{'subnet_cidr': '47.112.161.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a8b:d2eb:c6f9:3862:e855:c9dd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-02 18:50:21,485 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-02 18:50:21,818 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-02 18:50:21,853 - DEBUG - Requesting: http://10.0.0.251:8082/domain/b1f9e354-6ab3-42f3-baae-bbcc43c36aa6 2026-11-02 18:50:21,869 - DEBUG - Requesting: http://10.0.0.251:8082/project/b818cdd0-a724-4e23-8a66-e1caedc9268e 2026-11-02 18:50:21,953 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/842ff773-5aad-4e58-8c9a-12c700358555 2026-11-02 18:50:21,967 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/842ff773-5aad-4e58-8c9a-12c700358555 2026-11-02 18:50:21,979 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/8c766fe0-2a5f-49ca-9595-b62109e0fe46 2026-11-02 18:50:21,988 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/8c766fe0-2a5f-49ca-9595-b62109e0fe46 2026-11-02 18:50:21,997 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/79789ec3-146b-48f0-98bb-ffb0fb0a116c 2026-11-02 18:50:22,005 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 18:50:22,006 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/842ff773-5aad-4e58-8c9a-12c700358555 2026-11-02 18:50:22,016 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/8c766fe0-2a5f-49ca-9595-b62109e0fe46 2026-11-02 18:50:22,034 - INFO - Verified VN network id 12 for VN 842ff773-5aad-4e58-8c9a-12c700358555 2026-11-02 18:50:22,034 - INFO - Verifications in API Server for VN ctest-vn4-97617047 passed 2026-11-02 18:50:22,034 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/842ff773-5aad-4e58-8c9a-12c700358555 2026-11-02 18:50:22,046 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/8c766fe0-2a5f-49ca-9595-b62109e0fe46 2026-11-02 18:50:22,053 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/8c766fe0-2a5f-49ca-9595-b62109e0fe46 2026-11-02 18:50:22,060 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/79789ec3-146b-48f0-98bb-ffb0fb0a116c 2026-11-02 18:50:22,080 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06223709:ctest-vn4-97617047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06223709', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9525103811726495320', 'uuid-lslong': '10131430957634651477'}, 'enable': 'true', 'created': '2026-11-02T18:50:20', 'last-modified': '2026-11-02T18:50:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.790058'} 2026-11-02 18:50:22,088 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 18:50:22,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97617047 passed 2026-11-02 18:50:22,088 - DEBUG - ====Verifying policy data for ctest-vn4-97617047 in API_Server ====== 2026-11-02 18:50:22,089 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-02 18:50:22,097 - DEBUG - Requesting: http://10.0.0.251:8082/domain/b1f9e354-6ab3-42f3-baae-bbcc43c36aa6 2026-11-02 18:50:22,107 - DEBUG - Requesting: http://10.0.0.251:8082/project/b818cdd0-a724-4e23-8a66-e1caedc9268e 2026-11-02 18:50:22,190 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/842ff773-5aad-4e58-8c9a-12c700358555 2026-11-02 18:50:22,201 - DEBUG - ==>Verifying data for policy with id: 64cad626-d6d7-4310-ab6d-88386e020032, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06223709', 'ctest-policy1-74378569'] 2026-11-02 18:50:22,201 - INFO - VN ctest-vn4-97617047 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-02 18:50:22,201 - DEBUG - Verifying the vn in opserver 2026-11-02 18:50:22,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06223709:ctest-vn4-97617047 virtual network link through opserver 10.0.0.251 2026-11-02 18:50:22,201 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-11-02 18:50:22,531 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-11-02 18:50:22,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06223709:ctest-vn4-97617047', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06223709:ctest-vn4-97617047?flat'} 2026-11-02 18:50:22,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06223709:ctest-vn4-97617047 is found in opserver 2026-11-02 18:50:22,604 - DEBUG - Do not have enough data to verify VN in agent 2026-11-02 18:50:22,609 - DEBUG - VRF ids for VN ctest-vn4-97617047: {} 2026-11-02 18:50:22,610 - DEBUG - ====Verifying data for ctest-policy1-74378569 in API_Server ====== 2026-11-02 18:50:22,610 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-02 18:50:22,617 - DEBUG - Requesting: http://10.0.0.251:8082/domain/b1f9e354-6ab3-42f3-baae-bbcc43c36aa6 2026-11-02 18:50:22,630 - DEBUG - Requesting: http://10.0.0.251:8082/project/b818cdd0-a724-4e23-8a66-e1caedc9268e 2026-11-02 18:50:22,704 - DEBUG - Requesting: http://10.0.0.251:8082/network-policy/64cad626-d6d7-4310-ab6d-88386e020032 2026-11-02 18:50:22,715 - INFO - Verified policy ctest-policy1-74378569 in API Server, Result: True 2026-11-02 18:50:22,715 - INFO - Done with setup and verification, moving onto test .. 2026-11-02 18:50:22,725 - INFO - Deleting VN ctest-vn4-97617047 2026-11-02 18:50:22,869 - DEBUG - Response for deleting network () 2026-11-02 18:50:22,869 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/8c766fe0-2a5f-49ca-9595-b62109e0fe46 2026-11-02 18:50:22,876 - DEBUG - Response Code: 404 2026-11-02 18:50:22,876 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-02 18:50:22,882 - DEBUG - Requesting: http://10.0.0.251:8082/domain/b1f9e354-6ab3-42f3-baae-bbcc43c36aa6 2026-11-02 18:50:22,938 - DEBUG - Requesting: http://10.0.0.251:8082/project/b818cdd0-a724-4e23-8a66-e1caedc9268e 2026-11-02 18:50:23,020 - INFO - Validated that VN ctest-vn4-97617047 is not found in API Server 2026-11-02 18:50:23,032 - DEBUG - VN ctest-vn4-97617047 is not present in Agent 10.0.0.251 2026-11-02 18:50:23,032 - INFO - Validated that VN ctest-vn4-97617047 is not in any agent 2026-11-02 18:50:23,049 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97617047 info 2026-11-02 18:50:23,085 - INFO - Deleted policy ctest-policy1-74378569 2026-11-02 18:50:23,256 - DEBUG - policy ctest-policy1-74378569 is not found in API Server 2026-11-02 18:50:23,515 - DEBUG - No XMPP flaps were noticed during the test 2026-11-02 18:50:23,515 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-02 18:50:23,515 - INFO - -------------------------------------------------------------------------------- 2026-11-02 18:50:23,825 - DEBUG - No XMPP flaps were noticed during the test 2026-11-02 18:50:23,825 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-02 18:50:23,825 - INFO - -------------------------------------------------------------------------------- 2026-11-02 18:50:24,617 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06223709, ID : b818cdd0-a724-4e23-8a66-e1caedc9268e