2026-04-30 17:49:12,170 - INFO - Domain Default found not creating 2026-04-30 17:49:12,367 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82268139 not found, creating it 2026-04-30 17:49:12,845 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82268139, ID : d4bdcc5c-c077-4185-adaa-4259c64f1ca8 2026-04-30 17:49:14,432 - INFO - ================================================================================ 2026-04-30 17:49:14,432 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 17:49:14,689 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-30 17:49:14,689 - INFO - Initial checks done. Running the testcase now 2026-04-30 17:49:14,689 - INFO - 2026-04-30 17:49:14,689 - INFO - ================================================================================ 2026-04-30 17:49:14,689 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 17:49:14,689 - 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-30 17:49:14,985 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-30 17:49:14,985 - INFO - Initial checks done. Running the testcase now 2026-04-30 17:49:14,985 - INFO - 2026-04-30 17:49:15,371 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82268139:ctest-vn4-01275955, 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-82268139:ctest-vn4-01275955, 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-82268139:ctest-vn4-01275955, 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-82268139:ctest-vn4-01275955, 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-30 17:49:15,905 - DEBUG - Response for create_network : {'network': {'id': 'aa437025-024e-4f8a-a399-63958fb61257', 'name': 'ctest-vn4-01275955', 'tenant_id': 'd4bdcc5cc0774185adaa4259c64f1ca8', 'project_id': 'd4bdcc5cc0774185adaa4259c64f1ca8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82268139', 'ctest-vn4-01275955'], 'port_security_enabled': True, 'description': ''}} 2026-04-30 17:49:16,124 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f60a3752-8383-43f8-9fa2-ab68113e2cd2', 'name': '', 'tenant_id': 'd4bdcc5cc0774185adaa4259c64f1ca8', 'network_id': 'aa437025-024e-4f8a-a399-63958fb61257', 'ip_version': 4, 'cidr': '63.129.255.192/26', 'allocation_pools': [{'start': '63.129.255.194', 'end': '63.129.255.254'}], 'gateway_ip': '63.129.255.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.129.255.194', 'tags': [], 'project_id': 'd4bdcc5cc0774185adaa4259c64f1ca8'}} 2026-04-30 17:49:16,316 - DEBUG - Response for create_subnet : {'subnet': {'id': '45314467-d9c3-49f9-8015-8b7ed91eda48', 'name': '', 'tenant_id': 'd4bdcc5cc0774185adaa4259c64f1ca8', 'network_id': 'aa437025-024e-4f8a-a399-63958fb61257', 'ip_version': 6, 'cidr': '225a:338a:f5d4:403b:eb9a:cadd::/96', 'allocation_pools': [{'start': '225a:338a:f5d4:403b:eb9a:cadd:0:2', 'end': '225a:338a:f5d4:403b:eb9a:cadd:ffff:fffe'}], 'gateway_ip': '225a:338a:f5d4:403b:eb9a:cadd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '225a:338a:f5d4:403b:eb9a:cadd:0:2', 'tags': [], 'project_id': 'd4bdcc5cc0774185adaa4259c64f1ca8'}} 2026-04-30 17:49:16,345 - INFO - Created VN ctest-vn4-01275955 2026-04-30 17:49:16,402 - DEBUG - VN ctest-vn4-01275955 UUID is aa437025-024e-4f8a-a399-63958fb61257 2026-04-30 17:49:16,624 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa437025-024e-4f8a-a399-63958fb61257', 'name': 'ctest-vn4-01275955', 'tenant_id': 'd4bdcc5cc0774185adaa4259c64f1ca8', 'project_id': 'd4bdcc5cc0774185adaa4259c64f1ca8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f60a3752-8383-43f8-9fa2-ab68113e2cd2', '45314467-d9c3-49f9-8015-8b7ed91eda48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82268139', 'ctest-vn4-01275955'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82268139', 'ctest-policy1-22148517']], 'subnet_ipam': [{'subnet_cidr': '63.129.255.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '225a:338a:f5d4:403b:eb9a:cadd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-30 17:49:16,786 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-30 17:49:17,084 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-30 17:49:17,120 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0a8e4bde-f3cc-4bb2-ad2b-01e6d2c2f390 2026-04-30 17:49:17,136 - DEBUG - Requesting: http://10.0.0.33:8082/project/d4bdcc5c-c077-4185-adaa-4259c64f1ca8 2026-04-30 17:49:17,215 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aa437025-024e-4f8a-a399-63958fb61257 2026-04-30 17:49:17,231 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aa437025-024e-4f8a-a399-63958fb61257 2026-04-30 17:49:17,244 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/993286e8-2720-46b6-9db5-76c54390ed17 2026-04-30 17:49:17,253 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/993286e8-2720-46b6-9db5-76c54390ed17 2026-04-30 17:49:17,263 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/72f1ae41-189b-419b-bdb4-0b87e76e1f09 2026-04-30 17:49:17,271 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 17:49:17,271 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aa437025-024e-4f8a-a399-63958fb61257 2026-04-30 17:49:17,281 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/993286e8-2720-46b6-9db5-76c54390ed17 2026-04-30 17:49:17,297 - INFO - Verified VN network id 11 for VN aa437025-024e-4f8a-a399-63958fb61257 2026-04-30 17:49:17,297 - INFO - Verifications in API Server for VN ctest-vn4-01275955 passed 2026-04-30 17:49:17,297 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aa437025-024e-4f8a-a399-63958fb61257 2026-04-30 17:49:17,308 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/993286e8-2720-46b6-9db5-76c54390ed17 2026-04-30 17:49:17,317 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/993286e8-2720-46b6-9db5-76c54390ed17 2026-04-30 17:49:17,325 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/72f1ae41-189b-419b-bdb4-0b87e76e1f09 2026-04-30 17:49:17,339 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82268139:ctest-vn4-01275955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82268139', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12268773114142150538', 'uuid-lslong': '11788562993631334999'}, 'enable': 'true', 'created': '2026-04-30T17:49:15', 'last-modified': '2026-04-30T17:49:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743686'} 2026-04-30 17:49:17,347 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 17:49:17,347 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01275955 passed 2026-04-30 17:49:17,347 - DEBUG - ====Verifying policy data for ctest-vn4-01275955 in API_Server ====== 2026-04-30 17:49:17,347 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-30 17:49:17,356 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0a8e4bde-f3cc-4bb2-ad2b-01e6d2c2f390 2026-04-30 17:49:17,371 - DEBUG - Requesting: http://10.0.0.33:8082/project/d4bdcc5c-c077-4185-adaa-4259c64f1ca8 2026-04-30 17:49:17,443 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/aa437025-024e-4f8a-a399-63958fb61257 2026-04-30 17:49:17,453 - DEBUG - ==>Verifying data for policy with id: 490b22e1-7029-4de1-a3cc-6fff076b3df7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82268139', 'ctest-policy1-22148517'] 2026-04-30 17:49:17,453 - INFO - VN ctest-vn4-01275955 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-30 17:49:17,453 - DEBUG - Verifying the vn in opserver 2026-04-30 17:49:17,453 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82268139:ctest-vn4-01275955 virtual network link through opserver 10.0.0.33 2026-04-30 17:49:17,453 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-30 17:49:17,751 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-30 17:49:17,823 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82268139:ctest-vn4-01275955', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82268139:ctest-vn4-01275955?flat'} 2026-04-30 17:49:17,823 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82268139:ctest-vn4-01275955 is found in opserver 2026-04-30 17:49:17,833 - DEBUG - Do not have enough data to verify VN in agent 2026-04-30 17:49:17,839 - DEBUG - VRF ids for VN ctest-vn4-01275955: {} 2026-04-30 17:49:17,840 - DEBUG - ====Verifying data for ctest-policy1-22148517 in API_Server ====== 2026-04-30 17:49:17,840 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-30 17:49:17,845 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0a8e4bde-f3cc-4bb2-ad2b-01e6d2c2f390 2026-04-30 17:49:17,856 - DEBUG - Requesting: http://10.0.0.33:8082/project/d4bdcc5c-c077-4185-adaa-4259c64f1ca8 2026-04-30 17:49:17,925 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/490b22e1-7029-4de1-a3cc-6fff076b3df7 2026-04-30 17:49:17,935 - INFO - Verified policy ctest-policy1-22148517 in API Server, Result: True 2026-04-30 17:49:17,935 - INFO - Done with setup and verification, moving onto test .. 2026-04-30 17:49:17,945 - INFO - Deleting VN ctest-vn4-01275955 2026-04-30 17:49:18,089 - DEBUG - Response for deleting network () 2026-04-30 17:49:18,089 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/993286e8-2720-46b6-9db5-76c54390ed17 2026-04-30 17:49:18,097 - DEBUG - Response Code: 404 2026-04-30 17:49:18,097 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-30 17:49:18,103 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0a8e4bde-f3cc-4bb2-ad2b-01e6d2c2f390 2026-04-30 17:49:18,156 - DEBUG - Requesting: http://10.0.0.33:8082/project/d4bdcc5c-c077-4185-adaa-4259c64f1ca8 2026-04-30 17:49:18,232 - INFO - Validated that VN ctest-vn4-01275955 is not found in API Server 2026-04-30 17:49:18,244 - DEBUG - VN ctest-vn4-01275955 is not present in Agent 10.0.0.33 2026-04-30 17:49:18,244 - INFO - Validated that VN ctest-vn4-01275955 is not in any agent 2026-04-30 17:49:18,262 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01275955 info 2026-04-30 17:49:18,290 - INFO - Deleted policy ctest-policy1-22148517 2026-04-30 17:49:18,458 - DEBUG - policy ctest-policy1-22148517 is not found in API Server 2026-04-30 17:49:18,716 - DEBUG - No XMPP flaps were noticed during the test