2026-03-24 08:44:56,683 - INFO - Domain Default found not creating 2026-03-24 08:44:56,878 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06762791 not found, creating it 2026-03-24 08:44:57,390 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06762791, ID : 77da6a92-2d8f-4387-99a5-a5055a4b488c 2026-03-24 08:44:58,941 - INFO - ================================================================================ 2026-03-24 08:44:58,941 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 08:44:59,197 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-03-24 08:44:59,197 - INFO - Initial checks done. Running the testcase now 2026-03-24 08:44:59,198 - INFO - 2026-03-24 08:44:59,198 - INFO - ================================================================================ 2026-03-24 08:44:59,198 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 08:44:59,198 - 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-03-24 08:44:59,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-03-24 08:44:59,484 - INFO - Initial checks done. Running the testcase now 2026-03-24 08:44:59,484 - INFO - 2026-03-24 08:44:59,870 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06762791:ctest-vn4-78650167, 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-06762791:ctest-vn4-78650167, 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-06762791:ctest-vn4-78650167, 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-06762791:ctest-vn4-78650167, 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-03-24 08:45:00,387 - DEBUG - Response for create_network : {'network': {'id': '7737877e-b1a6-465c-97b3-e6660ad4de8f', 'name': 'ctest-vn4-78650167', 'tenant_id': '77da6a922d8f438799a5a5055a4b488c', 'project_id': '77da6a922d8f438799a5a5055a4b488c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06762791', 'ctest-vn4-78650167'], 'port_security_enabled': True, 'description': ''}} 2026-03-24 08:45:00,562 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b27da65-89de-4f27-9955-01fc9ac7a6a3', 'name': '', 'tenant_id': '77da6a922d8f438799a5a5055a4b488c', 'network_id': '7737877e-b1a6-465c-97b3-e6660ad4de8f', 'ip_version': 4, 'cidr': '46.148.204.64/26', 'allocation_pools': [{'start': '46.148.204.66', 'end': '46.148.204.126'}], 'gateway_ip': '46.148.204.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.148.204.66', 'tags': [], 'project_id': '77da6a922d8f438799a5a5055a4b488c'}} 2026-03-24 08:45:00,707 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8557aa8-b40c-48ad-90e8-96b390adf802', 'name': '', 'tenant_id': '77da6a922d8f438799a5a5055a4b488c', 'network_id': '7737877e-b1a6-465c-97b3-e6660ad4de8f', 'ip_version': 6, 'cidr': '32a6:12ef:61b8:315a:8b42:bd9::/96', 'allocation_pools': [{'start': '32a6:12ef:61b8:315a:8b42:bd9:0:2', 'end': '32a6:12ef:61b8:315a:8b42:bd9:ffff:fffe'}], 'gateway_ip': '32a6:12ef:61b8:315a:8b42:bd9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32a6:12ef:61b8:315a:8b42:bd9:0:2', 'tags': [], 'project_id': '77da6a922d8f438799a5a5055a4b488c'}} 2026-03-24 08:45:00,726 - INFO - Created VN ctest-vn4-78650167 2026-03-24 08:45:00,780 - DEBUG - VN ctest-vn4-78650167 UUID is 7737877e-b1a6-465c-97b3-e6660ad4de8f 2026-03-24 08:45:00,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7737877e-b1a6-465c-97b3-e6660ad4de8f', 'name': 'ctest-vn4-78650167', 'tenant_id': '77da6a922d8f438799a5a5055a4b488c', 'project_id': '77da6a922d8f438799a5a5055a4b488c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b27da65-89de-4f27-9955-01fc9ac7a6a3', 'a8557aa8-b40c-48ad-90e8-96b390adf802'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06762791', 'ctest-vn4-78650167'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06762791', 'ctest-policy1-26236642']], 'subnet_ipam': [{'subnet_cidr': '46.148.204.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32a6:12ef:61b8:315a:8b42:bd9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-24 08:45:01,148 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 08:45:01,471 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 08:45:01,499 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1088446a-f7aa-449c-a847-8424b8763d3b 2026-03-24 08:45:01,513 - DEBUG - Requesting: http://10.0.0.50:8082/project/77da6a92-2d8f-4387-99a5-a5055a4b488c 2026-03-24 08:45:01,586 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7737877e-b1a6-465c-97b3-e6660ad4de8f 2026-03-24 08:45:01,598 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7737877e-b1a6-465c-97b3-e6660ad4de8f 2026-03-24 08:45:01,608 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5d9947-6282-4ac7-b266-cc1c50a5c3c4 2026-03-24 08:45:01,618 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5d9947-6282-4ac7-b266-cc1c50a5c3c4 2026-03-24 08:45:01,626 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/26f0ba46-031c-4150-ae39-6a1fe66498af 2026-03-24 08:45:01,633 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 08:45:01,633 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7737877e-b1a6-465c-97b3-e6660ad4de8f 2026-03-24 08:45:01,644 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5d9947-6282-4ac7-b266-cc1c50a5c3c4 2026-03-24 08:45:01,659 - INFO - Verified VN network id 11 for VN 7737877e-b1a6-465c-97b3-e6660ad4de8f 2026-03-24 08:45:01,660 - INFO - Verifications in API Server for VN ctest-vn4-78650167 passed 2026-03-24 08:45:01,660 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7737877e-b1a6-465c-97b3-e6660ad4de8f 2026-03-24 08:45:01,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5d9947-6282-4ac7-b266-cc1c50a5c3c4 2026-03-24 08:45:01,678 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5d9947-6282-4ac7-b266-cc1c50a5c3c4 2026-03-24 08:45:01,686 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/26f0ba46-031c-4150-ae39-6a1fe66498af 2026-03-24 08:45:01,701 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06762791:ctest-vn4-78650167', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06762791', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8590483792448603740', 'uuid-lslong': '10931334046501101199'}, 'enable': 'true', 'created': '2026-03-24T08:45:00', 'last-modified': '2026-03-24T08:45:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743409'} 2026-03-24 08:45:01,709 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 08:45:01,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78650167 passed 2026-03-24 08:45:01,709 - DEBUG - ====Verifying policy data for ctest-vn4-78650167 in API_Server ====== 2026-03-24 08:45:01,709 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 08:45:01,717 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1088446a-f7aa-449c-a847-8424b8763d3b 2026-03-24 08:45:01,731 - DEBUG - Requesting: http://10.0.0.50:8082/project/77da6a92-2d8f-4387-99a5-a5055a4b488c 2026-03-24 08:45:01,804 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7737877e-b1a6-465c-97b3-e6660ad4de8f 2026-03-24 08:45:01,818 - DEBUG - ==>Verifying data for policy with id: 64581656-ae5d-4782-9726-c4ac4d8e9c2c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06762791', 'ctest-policy1-26236642'] 2026-03-24 08:45:01,818 - INFO - VN ctest-vn4-78650167 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-24 08:45:01,818 - DEBUG - Verifying the vn in opserver 2026-03-24 08:45:01,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06762791:ctest-vn4-78650167 virtual network link through opserver 10.0.0.50 2026-03-24 08:45:01,818 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-24 08:45:02,149 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-24 08:45:02,205 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06762791:ctest-vn4-78650167', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06762791:ctest-vn4-78650167?flat'} 2026-03-24 08:45:02,205 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06762791:ctest-vn4-78650167 is found in opserver 2026-03-24 08:45:02,216 - DEBUG - Do not have enough data to verify VN in agent 2026-03-24 08:45:02,221 - DEBUG - VRF ids for VN ctest-vn4-78650167: {} 2026-03-24 08:45:02,221 - DEBUG - ====Verifying data for ctest-policy1-26236642 in API_Server ====== 2026-03-24 08:45:02,221 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 08:45:02,229 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1088446a-f7aa-449c-a847-8424b8763d3b 2026-03-24 08:45:02,241 - DEBUG - Requesting: http://10.0.0.50:8082/project/77da6a92-2d8f-4387-99a5-a5055a4b488c 2026-03-24 08:45:02,317 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/64581656-ae5d-4782-9726-c4ac4d8e9c2c 2026-03-24 08:45:02,329 - INFO - Verified policy ctest-policy1-26236642 in API Server, Result: True 2026-03-24 08:45:02,329 - INFO - Done with setup and verification, moving onto test .. 2026-03-24 08:45:02,339 - INFO - Deleting VN ctest-vn4-78650167 2026-03-24 08:45:02,465 - DEBUG - Response for deleting network () 2026-03-24 08:45:02,465 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5d9947-6282-4ac7-b266-cc1c50a5c3c4 2026-03-24 08:45:02,471 - DEBUG - Response Code: 404 2026-03-24 08:45:02,471 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-24 08:45:02,477 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1088446a-f7aa-449c-a847-8424b8763d3b 2026-03-24 08:45:02,537 - DEBUG - Requesting: http://10.0.0.50:8082/project/77da6a92-2d8f-4387-99a5-a5055a4b488c 2026-03-24 08:45:02,617 - INFO - Validated that VN ctest-vn4-78650167 is not found in API Server 2026-03-24 08:45:02,626 - DEBUG - VN ctest-vn4-78650167 is not present in Agent 10.0.0.50 2026-03-24 08:45:02,626 - INFO - Validated that VN ctest-vn4-78650167 is not in any agent 2026-03-24 08:45:02,643 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78650167 info 2026-03-24 08:45:02,668 - INFO - Deleted policy ctest-policy1-26236642 2026-03-24 08:45:02,843 - DEBUG - policy ctest-policy1-26236642 is not found in API Server 2026-03-24 08:45:03,097 - DEBUG - No XMPP flaps were noticed during the test
2026-03-24 08:45:03,098 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-24 08:45:03,098 - INFO - -------------------------------------------------------------------------------- 2026-03-24 08:45:03,404 - DEBUG - No XMPP flaps were noticed during the test
2026-03-24 08:45:03,404 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-24 08:45:03,404 - INFO - -------------------------------------------------------------------------------- 2026-03-24 08:45:04,157 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06762791, ID : 77da6a92-2d8f-4387-99a5-a5055a4b488c