2026-02-26 14:38:24,311 - INFO - Domain Default found not creating 2026-02-26 14:38:24,472 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02311707 not found, creating it 2026-02-26 14:38:24,945 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02311707, ID : 2c84a77b-188d-45b0-85d2-66d9657ed82b 2026-02-26 14:38:26,440 - INFO - ================================================================================ 2026-02-26 14:38:26,440 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 14:38:26,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-02-26 14:38:26,694 - INFO - Initial checks done. Running the testcase now 2026-02-26 14:38:26,694 - INFO - 2026-02-26 14:38:26,694 - INFO - ================================================================================ 2026-02-26 14:38:26,694 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 14:38:26,694 - 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-02-26 14:38:26,982 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-02-26 14:38:26,982 - INFO - Initial checks done. Running the testcase now 2026-02-26 14:38:26,982 - INFO - 2026-02-26 14:38:27,335 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02311707:ctest-vn4-20956450, 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-02311707:ctest-vn4-20956450, 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-02311707:ctest-vn4-20956450, 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-02311707:ctest-vn4-20956450, 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-02-26 14:38:27,836 - DEBUG - Response for create_network : {'network': {'id': 'd30b1afc-9e67-4265-b952-5c4b499e9215', 'name': 'ctest-vn4-20956450', 'tenant_id': '2c84a77b188d45b085d266d9657ed82b', 'project_id': '2c84a77b188d45b085d266d9657ed82b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02311707', 'ctest-vn4-20956450'], 'port_security_enabled': True, 'description': ''}} 2026-02-26 14:38:28,043 - DEBUG - Response for create_subnet : {'subnet': {'id': '1aa923b6-24ce-4c17-9094-2249b004118f', 'name': '', 'tenant_id': '2c84a77b188d45b085d266d9657ed82b', 'network_id': 'd30b1afc-9e67-4265-b952-5c4b499e9215', 'ip_version': 4, 'cidr': '120.157.84.0/26', 'allocation_pools': [{'start': '120.157.84.2', 'end': '120.157.84.62'}], 'gateway_ip': '120.157.84.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.157.84.2', 'tags': [], 'project_id': '2c84a77b188d45b085d266d9657ed82b'}} 2026-02-26 14:38:28,245 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c5f3bc4-58cd-4652-b790-2bad28bd405a', 'name': '', 'tenant_id': '2c84a77b188d45b085d266d9657ed82b', 'network_id': 'd30b1afc-9e67-4265-b952-5c4b499e9215', 'ip_version': 6, 'cidr': '3f22:1a9:719d:8c87:df4d:2a10::/96', 'allocation_pools': [{'start': '3f22:1a9:719d:8c87:df4d:2a10:0:2', 'end': '3f22:1a9:719d:8c87:df4d:2a10:ffff:fffe'}], 'gateway_ip': '3f22:1a9:719d:8c87:df4d:2a10:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f22:1a9:719d:8c87:df4d:2a10:0:2', 'tags': [], 'project_id': '2c84a77b188d45b085d266d9657ed82b'}} 2026-02-26 14:38:28,268 - INFO - Created VN ctest-vn4-20956450 2026-02-26 14:38:28,324 - DEBUG - VN ctest-vn4-20956450 UUID is d30b1afc-9e67-4265-b952-5c4b499e9215 2026-02-26 14:38:28,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd30b1afc-9e67-4265-b952-5c4b499e9215', 'name': 'ctest-vn4-20956450', 'tenant_id': '2c84a77b188d45b085d266d9657ed82b', 'project_id': '2c84a77b188d45b085d266d9657ed82b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1aa923b6-24ce-4c17-9094-2249b004118f', '6c5f3bc4-58cd-4652-b790-2bad28bd405a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02311707', 'ctest-vn4-20956450'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02311707', 'ctest-policy1-63637433']], 'subnet_ipam': [{'subnet_cidr': '120.157.84.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f22:1a9:719d:8c87:df4d:2a10::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-26 14:38:28,700 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-26 14:38:29,011 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-26 14:38:29,041 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5d35a907-0330-4661-a81a-23ce6b8fdd68 2026-02-26 14:38:29,056 - DEBUG - Requesting: http://10.0.0.141:8082/project/2c84a77b-188d-45b0-85d2-66d9657ed82b 2026-02-26 14:38:29,133 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d30b1afc-9e67-4265-b952-5c4b499e9215 2026-02-26 14:38:29,149 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d30b1afc-9e67-4265-b952-5c4b499e9215 2026-02-26 14:38:29,162 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5a99fba1-8ef6-49fb-977a-37f13e5c6ff0 2026-02-26 14:38:29,172 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5a99fba1-8ef6-49fb-977a-37f13e5c6ff0 2026-02-26 14:38:29,181 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5d29e41f-18f3-48a5-a59a-811cc1ea7958 2026-02-26 14:38:29,189 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 14:38:29,189 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d30b1afc-9e67-4265-b952-5c4b499e9215 2026-02-26 14:38:29,202 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5a99fba1-8ef6-49fb-977a-37f13e5c6ff0 2026-02-26 14:38:29,220 - INFO - Verified VN network id 11 for VN d30b1afc-9e67-4265-b952-5c4b499e9215 2026-02-26 14:38:29,220 - INFO - Verifications in API Server for VN ctest-vn4-20956450 passed 2026-02-26 14:38:29,220 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d30b1afc-9e67-4265-b952-5c4b499e9215 2026-02-26 14:38:29,233 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5a99fba1-8ef6-49fb-977a-37f13e5c6ff0 2026-02-26 14:38:29,242 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5a99fba1-8ef6-49fb-977a-37f13e5c6ff0 2026-02-26 14:38:29,253 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5d29e41f-18f3-48a5-a59a-811cc1ea7958 2026-02-26 14:38:29,269 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02311707:ctest-vn4-20956450', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02311707', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15207278239038259813', 'uuid-lslong': '13353837323534373397'}, 'enable': 'true', 'created': '2026-02-26T14:38:27', 'last-modified': '2026-02-26T14:38:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.763881'} 2026-02-26 14:38:29,277 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 14:38:29,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20956450 passed 2026-02-26 14:38:29,278 - DEBUG - ====Verifying policy data for ctest-vn4-20956450 in API_Server ====== 2026-02-26 14:38:29,278 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-26 14:38:29,285 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5d35a907-0330-4661-a81a-23ce6b8fdd68 2026-02-26 14:38:29,299 - DEBUG - Requesting: http://10.0.0.141:8082/project/2c84a77b-188d-45b0-85d2-66d9657ed82b 2026-02-26 14:38:29,376 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d30b1afc-9e67-4265-b952-5c4b499e9215 2026-02-26 14:38:29,388 - DEBUG - ==>Verifying data for policy with id: ce7188b0-7ccf-4d85-9adb-5e6af09e2b05, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02311707', 'ctest-policy1-63637433'] 2026-02-26 14:38:29,388 - INFO - VN ctest-vn4-20956450 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-26 14:38:29,388 - DEBUG - Verifying the vn in opserver 2026-02-26 14:38:29,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02311707:ctest-vn4-20956450 virtual network link through opserver 10.0.0.141 2026-02-26 14:38:29,388 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-26 14:38:29,686 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-26 14:38:29,753 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02311707:ctest-vn4-20956450', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02311707:ctest-vn4-20956450?flat'} 2026-02-26 14:38:29,753 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02311707:ctest-vn4-20956450 is found in opserver 2026-02-26 14:38:29,761 - DEBUG - Do not have enough data to verify VN in agent 2026-02-26 14:38:29,766 - DEBUG - VRF ids for VN ctest-vn4-20956450: {} 2026-02-26 14:38:29,766 - DEBUG - ====Verifying data for ctest-policy1-63637433 in API_Server ====== 2026-02-26 14:38:29,767 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-26 14:38:29,772 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5d35a907-0330-4661-a81a-23ce6b8fdd68 2026-02-26 14:38:29,783 - DEBUG - Requesting: http://10.0.0.141:8082/project/2c84a77b-188d-45b0-85d2-66d9657ed82b 2026-02-26 14:38:29,868 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/ce7188b0-7ccf-4d85-9adb-5e6af09e2b05 2026-02-26 14:38:29,880 - INFO - Verified policy ctest-policy1-63637433 in API Server, Result: True 2026-02-26 14:38:29,881 - INFO - Done with setup and verification, moving onto test .. 2026-02-26 14:38:29,890 - INFO - Deleting VN ctest-vn4-20956450 2026-02-26 14:38:30,015 - DEBUG - Response for deleting network () 2026-02-26 14:38:30,015 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5a99fba1-8ef6-49fb-977a-37f13e5c6ff0 2026-02-26 14:38:30,020 - DEBUG - Response Code: 404 2026-02-26 14:38:30,020 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-26 14:38:30,026 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5d35a907-0330-4661-a81a-23ce6b8fdd68 2026-02-26 14:38:30,081 - DEBUG - Requesting: http://10.0.0.141:8082/project/2c84a77b-188d-45b0-85d2-66d9657ed82b 2026-02-26 14:38:30,155 - INFO - Validated that VN ctest-vn4-20956450 is not found in API Server 2026-02-26 14:38:30,166 - DEBUG - VN ctest-vn4-20956450 is not present in Agent 10.0.0.141 2026-02-26 14:38:30,166 - INFO - Validated that VN ctest-vn4-20956450 is not in any agent 2026-02-26 14:38:30,181 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20956450 info 2026-02-26 14:38:30,206 - INFO - Deleted policy ctest-policy1-63637433 2026-02-26 14:38:30,368 - DEBUG - policy ctest-policy1-63637433 is not found in API Server 2026-02-26 14:38:30,625 - DEBUG - No XMPP flaps were noticed during the test
2026-02-26 14:38:30,625 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-26 14:38:30,625 - INFO - -------------------------------------------------------------------------------- 2026-02-26 14:38:30,915 - DEBUG - No XMPP flaps were noticed during the test
2026-02-26 14:38:30,915 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-26 14:38:30,915 - INFO - -------------------------------------------------------------------------------- 2026-02-26 14:38:31,595 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02311707, ID : 2c84a77b-188d-45b0-85d2-66d9657ed82b