2026-01-30 15:05:42,803 - INFO - Domain Default found not creating 2026-01-30 15:05:42,986 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71256216 not found, creating it 2026-01-30 15:05:43,508 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71256216, ID : ed103454-abf3-43f1-95ae-a8f2c924d9f3 2026-01-30 15:05:44,980 - INFO - ================================================================================ 2026-01-30 15:05:44,980 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 15:05:45,241 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-01-30 15:05:45,241 - INFO - Initial checks done. Running the testcase now 2026-01-30 15:05:45,241 - INFO - 2026-01-30 15:05:45,241 - INFO - ================================================================================ 2026-01-30 15:05:45,241 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 15:05:45,241 - 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-01-30 15:05:45,526 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-01-30 15:05:45,526 - INFO - Initial checks done. Running the testcase now 2026-01-30 15:05:45,526 - INFO - 2026-01-30 15:05:45,875 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71256216:ctest-vn4-69479489, 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-71256216:ctest-vn4-69479489, 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-71256216:ctest-vn4-69479489, 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-71256216:ctest-vn4-69479489, 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-01-30 15:05:46,382 - DEBUG - Response for create_network : {'network': {'id': '16b7bd6e-6bab-45e7-94e9-29cdbebb9950', 'name': 'ctest-vn4-69479489', 'tenant_id': 'ed103454abf343f195aea8f2c924d9f3', 'project_id': 'ed103454abf343f195aea8f2c924d9f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71256216', 'ctest-vn4-69479489'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 15:05:46,586 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d4f2be6-9702-463f-a1ca-d37fbda73d2d', 'name': '', 'tenant_id': 'ed103454abf343f195aea8f2c924d9f3', 'network_id': '16b7bd6e-6bab-45e7-94e9-29cdbebb9950', 'ip_version': 4, 'cidr': '130.14.53.128/26', 'allocation_pools': [{'start': '130.14.53.130', 'end': '130.14.53.190'}], 'gateway_ip': '130.14.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.14.53.130', 'tags': [], 'project_id': 'ed103454abf343f195aea8f2c924d9f3'}} 2026-01-30 15:05:46,747 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bb6a0ec-9d7f-42ed-a122-9168bbd025aa', 'name': '', 'tenant_id': 'ed103454abf343f195aea8f2c924d9f3', 'network_id': '16b7bd6e-6bab-45e7-94e9-29cdbebb9950', 'ip_version': 6, 'cidr': '291c:caaf:17c2:7d69:e44a:16c6::/96', 'allocation_pools': [{'start': '291c:caaf:17c2:7d69:e44a:16c6:0:2', 'end': '291c:caaf:17c2:7d69:e44a:16c6:ffff:fffe'}], 'gateway_ip': '291c:caaf:17c2:7d69:e44a:16c6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '291c:caaf:17c2:7d69:e44a:16c6:0:2', 'tags': [], 'project_id': 'ed103454abf343f195aea8f2c924d9f3'}} 2026-01-30 15:05:46,766 - INFO - Created VN ctest-vn4-69479489 2026-01-30 15:05:46,818 - DEBUG - VN ctest-vn4-69479489 UUID is 16b7bd6e-6bab-45e7-94e9-29cdbebb9950 2026-01-30 15:05:47,027 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16b7bd6e-6bab-45e7-94e9-29cdbebb9950', 'name': 'ctest-vn4-69479489', 'tenant_id': 'ed103454abf343f195aea8f2c924d9f3', 'project_id': 'ed103454abf343f195aea8f2c924d9f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d4f2be6-9702-463f-a1ca-d37fbda73d2d', '7bb6a0ec-9d7f-42ed-a122-9168bbd025aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71256216', 'ctest-vn4-69479489'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71256216', 'ctest-policy1-76729233']], 'subnet_ipam': [{'subnet_cidr': '130.14.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '291c:caaf:17c2:7d69:e44a:16c6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 15:05:47,190 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-30 15:05:47,493 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-30 15:05:47,522 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bbc504d4-203c-4b91-a245-a0c50a55b2e5 2026-01-30 15:05:47,533 - DEBUG - Requesting: http://10.0.0.41:8082/project/ed103454-abf3-43f1-95ae-a8f2c924d9f3 2026-01-30 15:05:47,608 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16b7bd6e-6bab-45e7-94e9-29cdbebb9950 2026-01-30 15:05:47,621 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16b7bd6e-6bab-45e7-94e9-29cdbebb9950 2026-01-30 15:05:47,630 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7a4ab94c-5303-422f-a22d-7d8224c49263 2026-01-30 15:05:47,638 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7a4ab94c-5303-422f-a22d-7d8224c49263 2026-01-30 15:05:47,644 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/23141b68-4961-46bc-b127-8a4346992662 2026-01-30 15:05:47,651 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 15:05:47,651 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16b7bd6e-6bab-45e7-94e9-29cdbebb9950 2026-01-30 15:05:47,660 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7a4ab94c-5303-422f-a22d-7d8224c49263 2026-01-30 15:05:47,674 - INFO - Verified VN network id 12 for VN 16b7bd6e-6bab-45e7-94e9-29cdbebb9950 2026-01-30 15:05:47,674 - INFO - Verifications in API Server for VN ctest-vn4-69479489 passed 2026-01-30 15:05:47,674 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16b7bd6e-6bab-45e7-94e9-29cdbebb9950 2026-01-30 15:05:47,683 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7a4ab94c-5303-422f-a22d-7d8224c49263 2026-01-30 15:05:47,691 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7a4ab94c-5303-422f-a22d-7d8224c49263 2026-01-30 15:05:47,699 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/23141b68-4961-46bc-b127-8a4346992662 2026-01-30 15:05:47,711 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71256216:ctest-vn4-69479489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71256216', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1636985271522903527', 'uuid-lslong': '10730153550831917392'}, 'enable': 'true', 'created': '2026-01-30T15:05:46', 'last-modified': '2026-01-30T15:05:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710616'} 2026-01-30 15:05:47,717 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 15:05:47,718 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69479489 passed 2026-01-30 15:05:47,718 - DEBUG - ====Verifying policy data for ctest-vn4-69479489 in API_Server ====== 2026-01-30 15:05:47,718 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-30 15:05:47,723 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bbc504d4-203c-4b91-a245-a0c50a55b2e5 2026-01-30 15:05:47,734 - DEBUG - Requesting: http://10.0.0.41:8082/project/ed103454-abf3-43f1-95ae-a8f2c924d9f3 2026-01-30 15:05:47,804 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/16b7bd6e-6bab-45e7-94e9-29cdbebb9950 2026-01-30 15:05:47,814 - DEBUG - ==>Verifying data for policy with id: 8e74d686-4497-4b24-9f0a-bb6459a25364, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71256216', 'ctest-policy1-76729233'] 2026-01-30 15:05:47,814 - INFO - VN ctest-vn4-69479489 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 15:05:47,814 - DEBUG - Verifying the vn in opserver 2026-01-30 15:05:47,814 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71256216:ctest-vn4-69479489 virtual network link through opserver 10.0.0.41 2026-01-30 15:05:47,814 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-01-30 15:05:48,106 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-01-30 15:05:48,169 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71256216:ctest-vn4-69479489', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71256216:ctest-vn4-69479489?flat'} 2026-01-30 15:05:48,169 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71256216:ctest-vn4-69479489 is found in opserver 2026-01-30 15:05:48,180 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 15:05:48,185 - DEBUG - VRF ids for VN ctest-vn4-69479489: {} 2026-01-30 15:05:48,185 - DEBUG - ====Verifying data for ctest-policy1-76729233 in API_Server ====== 2026-01-30 15:05:48,185 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-30 15:05:48,190 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bbc504d4-203c-4b91-a245-a0c50a55b2e5 2026-01-30 15:05:48,199 - DEBUG - Requesting: http://10.0.0.41:8082/project/ed103454-abf3-43f1-95ae-a8f2c924d9f3 2026-01-30 15:05:48,269 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/8e74d686-4497-4b24-9f0a-bb6459a25364 2026-01-30 15:05:48,279 - INFO - Verified policy ctest-policy1-76729233 in API Server, Result: True 2026-01-30 15:05:48,279 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 15:05:48,286 - INFO - Deleting VN ctest-vn4-69479489 2026-01-30 15:05:48,412 - DEBUG - Response for deleting network () 2026-01-30 15:05:48,412 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7a4ab94c-5303-422f-a22d-7d8224c49263 2026-01-30 15:05:48,418 - DEBUG - Response Code: 404 2026-01-30 15:05:48,418 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-30 15:05:48,424 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bbc504d4-203c-4b91-a245-a0c50a55b2e5 2026-01-30 15:05:48,480 - DEBUG - Requesting: http://10.0.0.41:8082/project/ed103454-abf3-43f1-95ae-a8f2c924d9f3 2026-01-30 15:05:48,556 - INFO - Validated that VN ctest-vn4-69479489 is not found in API Server 2026-01-30 15:05:48,565 - DEBUG - VN ctest-vn4-69479489 is not present in Agent 10.0.0.41 2026-01-30 15:05:48,565 - INFO - Validated that VN ctest-vn4-69479489 is not in any agent 2026-01-30 15:05:48,578 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69479489 info 2026-01-30 15:05:48,602 - INFO - Deleted policy ctest-policy1-76729233 2026-01-30 15:05:48,766 - DEBUG - policy ctest-policy1-76729233 is not found in API Server 2026-01-30 15:05:49,023 - DEBUG - No XMPP flaps were noticed during the test 2026-01-30 15:05:49,023 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-30 15:05:49,023 - INFO - -------------------------------------------------------------------------------- 2026-01-30 15:05:49,315 - DEBUG - No XMPP flaps were noticed during the test 2026-01-30 15:05:49,315 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-30 15:05:49,315 - INFO - -------------------------------------------------------------------------------- 2026-01-30 15:05:50,007 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71256216, ID : ed103454-abf3-43f1-95ae-a8f2c924d9f3