2026-06-15 01:42:46,259 - INFO - Reading existing Domain with UUID 21359ce1-50e9-4d69-b64c-799df2e42682 2026-06-15 01:42:46,269 - INFO - Using existing domain ['admin_domain'](21359ce1-50e9-4d69-b64c-799df2e42682) 2026-06-15 01:42:46,471 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48559182 not found, creating it 2026-06-15 01:42:46,998 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48559182, ID : 55af477c-ab62-4247-8109-2bb72a56a912 2026-06-15 01:42:48,691 - INFO - ================================================================================ 2026-06-15 01:42:48,691 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 01:42:49,091 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.0.0.19': '0'}} with 2026-06-15 01:42:49,091 - INFO - Initial checks done. Running the testcase now 2026-06-15 01:42:49,091 - INFO - 2026-06-15 01:42:49,091 - INFO - ================================================================================ 2026-06-15 01:42:49,091 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 01:42:49,091 - 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-06-15 01:42:49,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.0.0.19': '0'}} with 2026-06-15 01:42:49,486 - INFO - Initial checks done. Running the testcase now 2026-06-15 01:42:49,486 - INFO - 2026-06-15 01:42:49,859 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839, 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-06-15 01:42:50,562 - DEBUG - Response for create_network : {'network': {'id': 'da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c', 'name': 'ctest-vn4-49004839', 'tenant_id': '55af477cab62424781092bb72a56a912', 'project_id': '55af477cab62424781092bb72a56a912', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48559182', 'ctest-vn4-49004839'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-06-15 01:42:50,805 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c23aed9-fe09-41b5-8e0d-1612db785577', 'name': '', 'tenant_id': '55af477cab62424781092bb72a56a912', 'network_id': 'da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c', 'ip_version': 4, 'cidr': '14.136.164.0/26', 'allocation_pools': [{'start': '14.136.164.2', 'end': '14.136.164.62'}], 'gateway_ip': '14.136.164.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-06-15T01:42:50.709233', 'updated_at': '2026-06-15T01:42:50.709233', 'dns_server_address': '14.136.164.2', 'tags': [], 'project_id': '55af477cab62424781092bb72a56a912'}} 2026-06-15 01:42:51,074 - DEBUG - Response for create_subnet : {'subnet': {'id': '75470386-65a6-4201-86f7-04b4f65995d5', 'name': '', 'tenant_id': '55af477cab62424781092bb72a56a912', 'network_id': 'da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c', 'ip_version': 6, 'cidr': '26e0:10d6:8cbb:3ea8:89f6:8037::/96', 'allocation_pools': [{'start': '26e0:10d6:8cbb:3ea8:89f6:8037:0:2', 'end': '26e0:10d6:8cbb:3ea8:89f6:8037:ffff:fffe'}], 'gateway_ip': '26e0:10d6:8cbb:3ea8:89f6:8037:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-06-15T01:42:50.969257', 'updated_at': '2026-06-15T01:42:50.969257', 'dns_server_address': '26e0:10d6:8cbb:3ea8:89f6:8037:0:2', 'tags': [], 'project_id': '55af477cab62424781092bb72a56a912'}} 2026-06-15 01:42:51,139 - INFO - Created VN ctest-vn4-49004839 2026-06-15 01:42:51,193 - DEBUG - VN ctest-vn4-49004839 UUID is da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c 2026-06-15 01:42:51,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c', 'name': 'ctest-vn4-49004839', 'tenant_id': '55af477cab62424781092bb72a56a912', 'project_id': '55af477cab62424781092bb72a56a912', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c23aed9-fe09-41b5-8e0d-1612db785577', '75470386-65a6-4201-86f7-04b4f65995d5'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48559182', 'ctest-vn4-49004839'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48559182', 'ctest-policy1-89439644']], 'subnet_ipam': [{'subnet_cidr': '14.136.164.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26e0:10d6:8cbb:3ea8:89f6:8037::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-06-15T01:42:50.492650', 'updated_at': '2026-06-15T01:42:50.985854'}} 2026-06-15 01:42:51,845 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2026-06-15 01:42:52,188 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2026-06-15 01:42:52,278 - DEBUG - Requesting: https://10.0.0.19:8082/domain/21359ce1-50e9-4d69-b64c-799df2e42682 2026-06-15 01:42:52,338 - DEBUG - Requesting: https://10.0.0.19:8082/project/55af477c-ab62-4247-8109-2bb72a56a912 2026-06-15 01:42:52,418 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c 2026-06-15 01:42:52,479 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c 2026-06-15 01:42:52,539 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/2dacfee4-78a6-4798-96e0-158aaf189d88 2026-06-15 01:42:52,594 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/2dacfee4-78a6-4798-96e0-158aaf189d88 2026-06-15 01:42:52,647 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/b6dc8691-d190-4a62-a3fd-4bb8b9642ee1 2026-06-15 01:42:52,702 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 01:42:52,702 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c 2026-06-15 01:42:52,763 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/2dacfee4-78a6-4798-96e0-158aaf189d88 2026-06-15 01:42:52,823 - INFO - Verified VN network id 11 for VN da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c 2026-06-15 01:42:52,823 - INFO - Verifications in API Server for VN ctest-vn4-49004839 passed 2026-06-15 01:42:52,823 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c 2026-06-15 01:42:52,883 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/2dacfee4-78a6-4798-96e0-158aaf189d88 2026-06-15 01:42:52,939 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/2dacfee4-78a6-4798-96e0-158aaf189d88 2026-06-15 01:42:52,994 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/b6dc8691-d190-4a62-a3fd-4bb8b9642ee1 2026-06-15 01:42:53,098 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48559182', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15714793757987524552', 'uuid-lslong': '12027076269193686412'}, 'enable': 'true', 'created': '2026-06-15T01:42:50', 'last-modified': '2026-06-15T01:42:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481559'} 2026-06-15 01:42:53,151 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 01:42:53,151 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49004839 passed 2026-06-15 01:42:53,151 - DEBUG - ====Verifying policy data for ctest-vn4-49004839 in API_Server ====== 2026-06-15 01:42:53,151 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2026-06-15 01:42:53,201 - DEBUG - Requesting: https://10.0.0.19:8082/domain/21359ce1-50e9-4d69-b64c-799df2e42682 2026-06-15 01:42:53,258 - DEBUG - Requesting: https://10.0.0.19:8082/project/55af477c-ab62-4247-8109-2bb72a56a912 2026-06-15 01:42:53,338 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/da1629a9-8f5f-4fc8-a6e8-c22507d1ed8c 2026-06-15 01:42:53,399 - DEBUG - ==>Verifying data for policy with id: e947b9ba-e2dd-481f-8ada-37ed7bf78771, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48559182', 'ctest-policy1-89439644'] 2026-06-15 01:42:53,399 - INFO - VN ctest-vn4-49004839 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 01:42:53,399 - DEBUG - Verifying the vn in opserver 2026-06-15 01:42:53,399 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839 virtual network link through opserver 10.0.0.19 2026-06-15 01:42:53,399 - DEBUG - Requesting: https://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-15 01:42:53,759 - DEBUG - Requesting: https://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-15 01:42:53,890 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839', 'href': 'https://10.0.0.19:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839?flat'} 2026-06-15 01:42:53,890 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-48559182:ctest-vn4-49004839 is found in opserver 2026-06-15 01:42:53,994 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 01:42:54,045 - DEBUG - VRF ids for VN ctest-vn4-49004839: {} 2026-06-15 01:42:54,046 - DEBUG - ====Verifying data for ctest-policy1-89439644 in API_Server ====== 2026-06-15 01:42:54,046 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2026-06-15 01:42:54,101 - DEBUG - Requesting: https://10.0.0.19:8082/domain/21359ce1-50e9-4d69-b64c-799df2e42682 2026-06-15 01:42:54,158 - DEBUG - Requesting: https://10.0.0.19:8082/project/55af477c-ab62-4247-8109-2bb72a56a912 2026-06-15 01:42:54,247 - DEBUG - Requesting: https://10.0.0.19:8082/network-policy/e947b9ba-e2dd-481f-8ada-37ed7bf78771 2026-06-15 01:42:54,305 - INFO - Verified policy ctest-policy1-89439644 in API Server, Result: True 2026-06-15 01:42:54,305 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 01:42:54,314 - INFO - Deleting VN ctest-vn4-49004839 2026-06-15 01:42:54,488 - DEBUG - Response for deleting network () 2026-06-15 01:42:54,488 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/2dacfee4-78a6-4798-96e0-158aaf189d88 2026-06-15 01:42:54,537 - DEBUG - Response Code: 404 2026-06-15 01:42:54,537 - DEBUG - Requesting: https://10.0.0.19:8082/domains 2026-06-15 01:42:54,590 - DEBUG - Requesting: https://10.0.0.19:8082/domain/21359ce1-50e9-4d69-b64c-799df2e42682 2026-06-15 01:42:54,646 - DEBUG - Requesting: https://10.0.0.19:8082/project/55af477c-ab62-4247-8109-2bb72a56a912 2026-06-15 01:42:54,722 - INFO - Validated that VN ctest-vn4-49004839 is not found in API Server 2026-06-15 01:42:54,817 - DEBUG - VN ctest-vn4-49004839 is not present in Agent 10.0.0.19 2026-06-15 01:42:54,817 - INFO - Validated that VN ctest-vn4-49004839 is not in any agent 2026-06-15 01:42:54,966 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49004839 info 2026-06-15 01:42:54,990 - INFO - Deleted policy ctest-policy1-89439644 2026-06-15 01:42:55,153 - DEBUG - policy ctest-policy1-89439644 is not found in API Server 2026-06-15 01:42:55,538 - DEBUG - No XMPP flaps were noticed during the test
2026-06-15 01:42:55,538 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-06-15 01:42:55,538 - INFO - -------------------------------------------------------------------------------- 2026-06-15 01:42:55,914 - DEBUG - No XMPP flaps were noticed during the test
2026-06-15 01:42:55,914 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-06-15 01:42:55,914 - INFO - -------------------------------------------------------------------------------- 2026-06-15 01:42:56,631 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48559182, ID : 55af477c-ab62-4247-8109-2bb72a56a912