2026-02-11 21:57:07,838 - INFO - Domain Default found not creating 2026-02-11 21:57:07,973 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67473282 not found, creating it 2026-02-11 21:57:08,383 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67473282, ID : ce78bf0a-949a-49dd-9479-573a38f810be 2026-02-11 21:57:09,751 - INFO - ================================================================================ 2026-02-11 21:57:09,751 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 21:57:10,005 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-11 21:57:10,005 - INFO - Initial checks done. Running the testcase now 2026-02-11 21:57:10,005 - INFO - 2026-02-11 21:57:10,006 - INFO - ================================================================================ 2026-02-11 21:57:10,006 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 21:57:10,006 - 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-11 21:57:10,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-11 21:57:10,297 - INFO - Initial checks done. Running the testcase now 2026-02-11 21:57:10,297 - INFO - 2026-02-11 21:57:10,640 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67473282:ctest-vn4-52272070, 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-67473282:ctest-vn4-52272070, 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-67473282:ctest-vn4-52272070, 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-67473282:ctest-vn4-52272070, 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-11 21:57:11,136 - DEBUG - Response for create_network : {'network': {'id': 'd98bc80a-0ccc-4d90-9579-f8cc4efff16e', 'name': 'ctest-vn4-52272070', 'tenant_id': 'ce78bf0a949a49dd9479573a38f810be', 'project_id': 'ce78bf0a949a49dd9479573a38f810be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67473282', 'ctest-vn4-52272070'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 21:57:11,275 - DEBUG - Response for create_subnet : {'subnet': {'id': '18df6088-f231-4822-9e26-99510b736525', 'name': '', 'tenant_id': 'ce78bf0a949a49dd9479573a38f810be', 'network_id': 'd98bc80a-0ccc-4d90-9579-f8cc4efff16e', 'ip_version': 4, 'cidr': '163.108.103.64/26', 'allocation_pools': [{'start': '163.108.103.66', 'end': '163.108.103.126'}], 'gateway_ip': '163.108.103.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.108.103.66', 'tags': [], 'project_id': 'ce78bf0a949a49dd9479573a38f810be'}} 2026-02-11 21:57:11,407 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1fde5bc-0f7b-42b3-9435-7095e178f7ac', 'name': '', 'tenant_id': 'ce78bf0a949a49dd9479573a38f810be', 'network_id': 'd98bc80a-0ccc-4d90-9579-f8cc4efff16e', 'ip_version': 6, 'cidr': '3e1e:21bf:3c66:18be:21d1:7f4e::/96', 'allocation_pools': [{'start': '3e1e:21bf:3c66:18be:21d1:7f4e:0:2', 'end': '3e1e:21bf:3c66:18be:21d1:7f4e:ffff:fffe'}], 'gateway_ip': '3e1e:21bf:3c66:18be:21d1:7f4e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e1e:21bf:3c66:18be:21d1:7f4e:0:2', 'tags': [], 'project_id': 'ce78bf0a949a49dd9479573a38f810be'}} 2026-02-11 21:57:11,423 - INFO - Created VN ctest-vn4-52272070 2026-02-11 21:57:11,473 - DEBUG - VN ctest-vn4-52272070 UUID is d98bc80a-0ccc-4d90-9579-f8cc4efff16e 2026-02-11 21:57:11,648 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd98bc80a-0ccc-4d90-9579-f8cc4efff16e', 'name': 'ctest-vn4-52272070', 'tenant_id': 'ce78bf0a949a49dd9479573a38f810be', 'project_id': 'ce78bf0a949a49dd9479573a38f810be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18df6088-f231-4822-9e26-99510b736525', 'b1fde5bc-0f7b-42b3-9435-7095e178f7ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67473282', 'ctest-vn4-52272070'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67473282', 'ctest-policy1-30278295']], 'subnet_ipam': [{'subnet_cidr': '163.108.103.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e1e:21bf:3c66:18be:21d1:7f4e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 21:57:11,805 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 21:57:12,098 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 21:57:12,125 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dc1d3e2f-a077-4893-a6eb-b6c3a4a90435 2026-02-11 21:57:12,135 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce78bf0a-949a-49dd-9479-573a38f810be 2026-02-11 21:57:12,205 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d98bc80a-0ccc-4d90-9579-f8cc4efff16e 2026-02-11 21:57:12,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d98bc80a-0ccc-4d90-9579-f8cc4efff16e 2026-02-11 21:57:12,225 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7708083-1d2d-47a8-832f-43e6fef49fc0 2026-02-11 21:57:12,231 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7708083-1d2d-47a8-832f-43e6fef49fc0 2026-02-11 21:57:12,236 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6d0e37f1-f059-4ff3-8d0f-0b542fff927e 2026-02-11 21:57:12,241 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 21:57:12,241 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d98bc80a-0ccc-4d90-9579-f8cc4efff16e 2026-02-11 21:57:12,248 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7708083-1d2d-47a8-832f-43e6fef49fc0 2026-02-11 21:57:12,258 - INFO - Verified VN network id 11 for VN d98bc80a-0ccc-4d90-9579-f8cc4efff16e 2026-02-11 21:57:12,258 - INFO - Verifications in API Server for VN ctest-vn4-52272070 passed 2026-02-11 21:57:12,258 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d98bc80a-0ccc-4d90-9579-f8cc4efff16e 2026-02-11 21:57:12,265 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7708083-1d2d-47a8-832f-43e6fef49fc0 2026-02-11 21:57:12,270 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7708083-1d2d-47a8-832f-43e6fef49fc0 2026-02-11 21:57:12,275 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6d0e37f1-f059-4ff3-8d0f-0b542fff927e 2026-02-11 21:57:12,284 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67473282:ctest-vn4-52272070', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67473282', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15675842873483087248', 'uuid-lslong': '10770913540215665006'}, 'enable': 'true', 'created': '2026-02-11T21:57:11', 'last-modified': '2026-02-11T21:57:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.660028'} 2026-02-11 21:57:12,289 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 21:57:12,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52272070 passed 2026-02-11 21:57:12,289 - DEBUG - ====Verifying policy data for ctest-vn4-52272070 in API_Server ====== 2026-02-11 21:57:12,290 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 21:57:12,294 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dc1d3e2f-a077-4893-a6eb-b6c3a4a90435 2026-02-11 21:57:12,303 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce78bf0a-949a-49dd-9479-573a38f810be 2026-02-11 21:57:12,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d98bc80a-0ccc-4d90-9579-f8cc4efff16e 2026-02-11 21:57:12,375 - DEBUG - ==>Verifying data for policy with id: c634e38d-16eb-4421-ab20-3ba160504777, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67473282', 'ctest-policy1-30278295'] 2026-02-11 21:57:12,375 - INFO - VN ctest-vn4-52272070 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 21:57:12,375 - DEBUG - Verifying the vn in opserver 2026-02-11 21:57:12,376 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67473282:ctest-vn4-52272070 virtual network link through opserver 10.0.0.38 2026-02-11 21:57:12,376 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-11 21:57:12,664 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-11 21:57:12,726 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67473282:ctest-vn4-52272070', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67473282:ctest-vn4-52272070?flat'} 2026-02-11 21:57:12,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67473282:ctest-vn4-52272070 is found in opserver 2026-02-11 21:57:12,734 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 21:57:12,739 - DEBUG - VRF ids for VN ctest-vn4-52272070: {} 2026-02-11 21:57:12,739 - DEBUG - ====Verifying data for ctest-policy1-30278295 in API_Server ====== 2026-02-11 21:57:12,739 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 21:57:12,744 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dc1d3e2f-a077-4893-a6eb-b6c3a4a90435 2026-02-11 21:57:12,754 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce78bf0a-949a-49dd-9479-573a38f810be 2026-02-11 21:57:12,821 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c634e38d-16eb-4421-ab20-3ba160504777 2026-02-11 21:57:12,830 - INFO - Verified policy ctest-policy1-30278295 in API Server, Result: True 2026-02-11 21:57:12,831 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 21:57:12,837 - INFO - Deleting VN ctest-vn4-52272070 2026-02-11 21:57:12,931 - DEBUG - Response for deleting network () 2026-02-11 21:57:12,931 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b7708083-1d2d-47a8-832f-43e6fef49fc0 2026-02-11 21:57:12,935 - DEBUG - Response Code: 404 2026-02-11 21:57:12,936 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 21:57:12,939 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dc1d3e2f-a077-4893-a6eb-b6c3a4a90435 2026-02-11 21:57:12,989 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce78bf0a-949a-49dd-9479-573a38f810be 2026-02-11 21:57:13,057 - INFO - Validated that VN ctest-vn4-52272070 is not found in API Server 2026-02-11 21:57:13,065 - DEBUG - VN ctest-vn4-52272070 is not present in Agent 10.0.0.38 2026-02-11 21:57:13,065 - INFO - Validated that VN ctest-vn4-52272070 is not in any agent 2026-02-11 21:57:13,076 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52272070 info 2026-02-11 21:57:13,097 - INFO - Deleted policy ctest-policy1-30278295 2026-02-11 21:57:13,257 - DEBUG - policy ctest-policy1-30278295 is not found in API Server 2026-02-11 21:57:13,510 - DEBUG - No XMPP flaps were noticed during the test 2026-02-11 21:57:13,510 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-11 21:57:13,510 - INFO - -------------------------------------------------------------------------------- 2026-02-11 21:57:13,809 - DEBUG - No XMPP flaps were noticed during the test 2026-02-11 21:57:13,809 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-11 21:57:13,810 - INFO - -------------------------------------------------------------------------------- 2026-02-11 21:57:14,546 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-67473282, ID : ce78bf0a-949a-49dd-9479-573a38f810be