2026-04-20 02:21:28,122 - INFO - Domain Default found not creating 2026-04-20 02:21:28,275 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21312307 not found, creating it 2026-04-20 02:21:28,732 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21312307, ID : 388f468b-56cb-4130-9b05-2aa1b67c33c2 2026-04-20 02:21:30,209 - INFO - ================================================================================ 2026-04-20 02:21:30,209 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 02:21:30,463 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.201': '0'}} with 2026-04-20 02:21:30,463 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:21:30,463 - INFO - 2026-04-20 02:21:30,463 - INFO - ================================================================================ 2026-04-20 02:21:30,463 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 02:21:30,463 - 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-04-20 02:21:30,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.201': '0'}} with 2026-04-20 02:21:30,750 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:21:30,751 - INFO - 2026-04-20 02:21:31,105 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21312307:ctest-vn4-21731025, 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-21312307:ctest-vn4-21731025, 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-21312307:ctest-vn4-21731025, 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-21312307:ctest-vn4-21731025, 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-04-20 02:21:31,618 - DEBUG - Response for create_network : {'network': {'id': '74664a7e-5147-410a-9eaa-3544cac1de70', 'name': 'ctest-vn4-21731025', 'tenant_id': '388f468b56cb41309b052aa1b67c33c2', 'project_id': '388f468b56cb41309b052aa1b67c33c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21312307', 'ctest-vn4-21731025'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:21:31,825 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab569be0-aaf5-49c3-833d-c3aa908a932a', 'name': '', 'tenant_id': '388f468b56cb41309b052aa1b67c33c2', 'network_id': '74664a7e-5147-410a-9eaa-3544cac1de70', 'ip_version': 4, 'cidr': '68.173.225.192/26', 'allocation_pools': [{'start': '68.173.225.194', 'end': '68.173.225.254'}], 'gateway_ip': '68.173.225.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.173.225.194', 'tags': [], 'project_id': '388f468b56cb41309b052aa1b67c33c2'}} 2026-04-20 02:21:31,952 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd8c5e70-3258-4fc9-ac67-d6b3da5611e0', 'name': '', 'tenant_id': '388f468b56cb41309b052aa1b67c33c2', 'network_id': '74664a7e-5147-410a-9eaa-3544cac1de70', 'ip_version': 6, 'cidr': '34e8:421f:315c:ced0:f334:b173::/96', 'allocation_pools': [{'start': '34e8:421f:315c:ced0:f334:b173:0:2', 'end': '34e8:421f:315c:ced0:f334:b173:ffff:fffe'}], 'gateway_ip': '34e8:421f:315c:ced0:f334:b173:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34e8:421f:315c:ced0:f334:b173:0:2', 'tags': [], 'project_id': '388f468b56cb41309b052aa1b67c33c2'}} 2026-04-20 02:21:31,975 - INFO - Created VN ctest-vn4-21731025 2026-04-20 02:21:32,026 - DEBUG - VN ctest-vn4-21731025 UUID is 74664a7e-5147-410a-9eaa-3544cac1de70 2026-04-20 02:21:32,206 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74664a7e-5147-410a-9eaa-3544cac1de70', 'name': 'ctest-vn4-21731025', 'tenant_id': '388f468b56cb41309b052aa1b67c33c2', 'project_id': '388f468b56cb41309b052aa1b67c33c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab569be0-aaf5-49c3-833d-c3aa908a932a', 'cd8c5e70-3258-4fc9-ac67-d6b3da5611e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21312307', 'ctest-vn4-21731025'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21312307', 'ctest-policy1-93636485']], 'subnet_ipam': [{'subnet_cidr': '68.173.225.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34e8:421f:315c:ced0:f334:b173::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:21:32,362 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-20 02:21:32,655 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-20 02:21:32,685 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f6843e1a-967f-4fab-9869-33658bd37986 2026-04-20 02:21:32,696 - DEBUG - Requesting: http://10.0.0.50:8082/project/388f468b-56cb-4130-9b05-2aa1b67c33c2 2026-04-20 02:21:32,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74664a7e-5147-410a-9eaa-3544cac1de70 2026-04-20 02:21:32,780 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74664a7e-5147-410a-9eaa-3544cac1de70 2026-04-20 02:21:32,787 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e4b443-a924-40f6-821c-14e23153f57f 2026-04-20 02:21:32,794 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e4b443-a924-40f6-821c-14e23153f57f 2026-04-20 02:21:32,799 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/72bb7f44-0500-47ad-a274-1b12003ce5c7 2026-04-20 02:21:32,804 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:21:32,804 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74664a7e-5147-410a-9eaa-3544cac1de70 2026-04-20 02:21:32,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e4b443-a924-40f6-821c-14e23153f57f 2026-04-20 02:21:32,824 - INFO - Verified VN network id 11 for VN 74664a7e-5147-410a-9eaa-3544cac1de70 2026-04-20 02:21:32,824 - INFO - Verifications in API Server for VN ctest-vn4-21731025 passed 2026-04-20 02:21:32,824 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74664a7e-5147-410a-9eaa-3544cac1de70 2026-04-20 02:21:32,832 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e4b443-a924-40f6-821c-14e23153f57f 2026-04-20 02:21:32,837 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e4b443-a924-40f6-821c-14e23153f57f 2026-04-20 02:21:32,842 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/72bb7f44-0500-47ad-a274-1b12003ce5c7 2026-04-20 02:21:32,852 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21312307:ctest-vn4-21731025', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21312307', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8387473262414086410', 'uuid-lslong': '11433009173609176688'}, 'enable': 'true', 'created': '2026-04-20T02:21:31', 'last-modified': '2026-04-20T02:21:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667229'} 2026-04-20 02:21:32,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:21:32,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21731025 passed 2026-04-20 02:21:32,857 - DEBUG - ====Verifying policy data for ctest-vn4-21731025 in API_Server ====== 2026-04-20 02:21:32,857 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-20 02:21:32,862 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f6843e1a-967f-4fab-9869-33658bd37986 2026-04-20 02:21:32,871 - DEBUG - Requesting: http://10.0.0.50:8082/project/388f468b-56cb-4130-9b05-2aa1b67c33c2 2026-04-20 02:21:32,937 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74664a7e-5147-410a-9eaa-3544cac1de70 2026-04-20 02:21:32,946 - DEBUG - ==>Verifying data for policy with id: e233b9f9-0e82-4fc5-ba14-1f577bb05c16, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21312307', 'ctest-policy1-93636485'] 2026-04-20 02:21:32,946 - INFO - VN ctest-vn4-21731025 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 02:21:32,946 - DEBUG - Verifying the vn in opserver 2026-04-20 02:21:32,946 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21312307:ctest-vn4-21731025 virtual network link through opserver 10.0.0.50 2026-04-20 02:21:32,946 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-20 02:21:33,236 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-20 02:21:33,296 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21312307:ctest-vn4-21731025', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21312307:ctest-vn4-21731025?flat'} 2026-04-20 02:21:33,296 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21312307:ctest-vn4-21731025 is found in opserver 2026-04-20 02:21:33,305 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 02:21:33,309 - DEBUG - VRF ids for VN ctest-vn4-21731025: {} 2026-04-20 02:21:33,309 - DEBUG - ====Verifying data for ctest-policy1-93636485 in API_Server ====== 2026-04-20 02:21:33,309 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-20 02:21:33,315 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f6843e1a-967f-4fab-9869-33658bd37986 2026-04-20 02:21:33,324 - DEBUG - Requesting: http://10.0.0.50:8082/project/388f468b-56cb-4130-9b05-2aa1b67c33c2 2026-04-20 02:21:33,390 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/e233b9f9-0e82-4fc5-ba14-1f577bb05c16 2026-04-20 02:21:33,398 - INFO - Verified policy ctest-policy1-93636485 in API Server, Result: True 2026-04-20 02:21:33,398 - INFO - Done with setup and verification, moving onto test .. 2026-04-20 02:21:33,404 - INFO - Deleting VN ctest-vn4-21731025 2026-04-20 02:21:33,509 - DEBUG - Response for deleting network () 2026-04-20 02:21:33,509 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e4b443-a924-40f6-821c-14e23153f57f 2026-04-20 02:21:33,513 - DEBUG - Response Code: 404 2026-04-20 02:21:33,513 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-20 02:21:33,518 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f6843e1a-967f-4fab-9869-33658bd37986 2026-04-20 02:21:33,575 - DEBUG - Requesting: http://10.0.0.50:8082/project/388f468b-56cb-4130-9b05-2aa1b67c33c2 2026-04-20 02:21:33,644 - INFO - Validated that VN ctest-vn4-21731025 is not found in API Server 2026-04-20 02:21:33,653 - DEBUG - VN ctest-vn4-21731025 is not present in Agent 10.0.0.50 2026-04-20 02:21:33,653 - INFO - Validated that VN ctest-vn4-21731025 is not in any agent 2026-04-20 02:21:33,665 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21731025 info 2026-04-20 02:21:33,688 - INFO - Deleted policy ctest-policy1-93636485 2026-04-20 02:21:33,846 - DEBUG - policy ctest-policy1-93636485 is not found in API Server 2026-04-20 02:21:34,099 - DEBUG - No XMPP flaps were noticed during the test