2026-02-19 14:40:20,927 - INFO - Domain Default found not creating 2026-02-19 14:40:21,090 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93302757 not found, creating it 2026-02-19 14:40:21,534 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93302757, ID : 1e3ea3ef-047c-4523-93eb-711178083cc1 2026-02-19 14:40:22,944 - INFO - ================================================================================ 2026-02-19 14:40:22,944 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 14:40:23,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-02-19 14:40:23,200 - INFO - Initial checks done. Running the testcase now 2026-02-19 14:40:23,200 - INFO - 2026-02-19 14:40:23,200 - INFO - ================================================================================ 2026-02-19 14:40:23,200 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 14:40:23,200 - 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-19 14:40:23,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-02-19 14:40:23,487 - INFO - Initial checks done. Running the testcase now 2026-02-19 14:40:23,487 - INFO - 2026-02-19 14:40:23,839 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93302757:ctest-vn4-34060744, 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-93302757:ctest-vn4-34060744, 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-93302757:ctest-vn4-34060744, 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-93302757:ctest-vn4-34060744, 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-19 14:40:24,326 - DEBUG - Response for create_network : {'network': {'id': 'de77834d-832d-490a-a076-b8e80e51b9f3', 'name': 'ctest-vn4-34060744', 'tenant_id': '1e3ea3ef047c452393eb711178083cc1', 'project_id': '1e3ea3ef047c452393eb711178083cc1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93302757', 'ctest-vn4-34060744'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 14:40:24,514 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a1dcaf0-ebd8-481f-ac6e-08ddb6dc3774', 'name': '', 'tenant_id': '1e3ea3ef047c452393eb711178083cc1', 'network_id': 'de77834d-832d-490a-a076-b8e80e51b9f3', 'ip_version': 4, 'cidr': '46.34.178.192/26', 'allocation_pools': [{'start': '46.34.178.194', 'end': '46.34.178.254'}], 'gateway_ip': '46.34.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.34.178.194', 'tags': [], 'project_id': '1e3ea3ef047c452393eb711178083cc1'}} 2026-02-19 14:40:24,690 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c049485-165c-4f6f-830c-5b11510a4a71', 'name': '', 'tenant_id': '1e3ea3ef047c452393eb711178083cc1', 'network_id': 'de77834d-832d-490a-a076-b8e80e51b9f3', 'ip_version': 6, 'cidr': '2844:4c57:a634:ff60:afe9:620e::/96', 'allocation_pools': [{'start': '2844:4c57:a634:ff60:afe9:620e:0:2', 'end': '2844:4c57:a634:ff60:afe9:620e:ffff:fffe'}], 'gateway_ip': '2844:4c57:a634:ff60:afe9:620e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2844:4c57:a634:ff60:afe9:620e:0:2', 'tags': [], 'project_id': '1e3ea3ef047c452393eb711178083cc1'}} 2026-02-19 14:40:24,710 - INFO - Created VN ctest-vn4-34060744 2026-02-19 14:40:24,763 - DEBUG - VN ctest-vn4-34060744 UUID is de77834d-832d-490a-a076-b8e80e51b9f3 2026-02-19 14:40:24,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de77834d-832d-490a-a076-b8e80e51b9f3', 'name': 'ctest-vn4-34060744', 'tenant_id': '1e3ea3ef047c452393eb711178083cc1', 'project_id': '1e3ea3ef047c452393eb711178083cc1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a1dcaf0-ebd8-481f-ac6e-08ddb6dc3774', '9c049485-165c-4f6f-830c-5b11510a4a71'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93302757', 'ctest-vn4-34060744'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93302757', 'ctest-policy1-42956350']], 'subnet_ipam': [{'subnet_cidr': '46.34.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2844:4c57:a634:ff60:afe9:620e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 14:40:25,107 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 14:40:25,400 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 14:40:25,431 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e5e5e02-1ab1-4db3-8275-4b5847366930 2026-02-19 14:40:25,447 - DEBUG - Requesting: http://10.0.0.50:8082/project/1e3ea3ef-047c-4523-93eb-711178083cc1 2026-02-19 14:40:25,522 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de77834d-832d-490a-a076-b8e80e51b9f3 2026-02-19 14:40:25,532 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de77834d-832d-490a-a076-b8e80e51b9f3 2026-02-19 14:40:25,542 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2a653b9-2e48-49c5-a4d2-410af72aec9c 2026-02-19 14:40:25,547 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2a653b9-2e48-49c5-a4d2-410af72aec9c 2026-02-19 14:40:25,552 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/18044751-3cc4-46c4-9be5-964e5bb2ec9a 2026-02-19 14:40:25,557 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 14:40:25,557 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de77834d-832d-490a-a076-b8e80e51b9f3 2026-02-19 14:40:25,564 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2a653b9-2e48-49c5-a4d2-410af72aec9c 2026-02-19 14:40:25,575 - INFO - Verified VN network id 11 for VN de77834d-832d-490a-a076-b8e80e51b9f3 2026-02-19 14:40:25,575 - INFO - Verifications in API Server for VN ctest-vn4-34060744 passed 2026-02-19 14:40:25,575 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de77834d-832d-490a-a076-b8e80e51b9f3 2026-02-19 14:40:25,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2a653b9-2e48-49c5-a4d2-410af72aec9c 2026-02-19 14:40:25,588 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2a653b9-2e48-49c5-a4d2-410af72aec9c 2026-02-19 14:40:25,593 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/18044751-3cc4-46c4-9be5-964e5bb2ec9a 2026-02-19 14:40:25,602 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93302757:ctest-vn4-34060744', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93302757', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16030425767585073418', 'uuid-lslong': '11562632400132487667'}, 'enable': 'true', 'created': '2026-02-19T14:40:24', 'last-modified': '2026-02-19T14:40:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684930'} 2026-02-19 14:40:25,607 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 14:40:25,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34060744 passed 2026-02-19 14:40:25,607 - DEBUG - ====Verifying policy data for ctest-vn4-34060744 in API_Server ====== 2026-02-19 14:40:25,607 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 14:40:25,612 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e5e5e02-1ab1-4db3-8275-4b5847366930 2026-02-19 14:40:25,620 - DEBUG - Requesting: http://10.0.0.50:8082/project/1e3ea3ef-047c-4523-93eb-711178083cc1 2026-02-19 14:40:25,693 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de77834d-832d-490a-a076-b8e80e51b9f3 2026-02-19 14:40:25,701 - DEBUG - ==>Verifying data for policy with id: 2f5196e4-6a7d-4d53-8f85-571bdc924ace, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93302757', 'ctest-policy1-42956350'] 2026-02-19 14:40:25,701 - INFO - VN ctest-vn4-34060744 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 14:40:25,702 - DEBUG - Verifying the vn in opserver 2026-02-19 14:40:25,702 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93302757:ctest-vn4-34060744 virtual network link through opserver 10.0.0.50 2026-02-19 14:40:25,702 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-19 14:40:25,992 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-19 14:40:26,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93302757:ctest-vn4-34060744', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93302757:ctest-vn4-34060744?flat'} 2026-02-19 14:40:26,050 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93302757:ctest-vn4-34060744 is found in opserver 2026-02-19 14:40:26,058 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 14:40:26,061 - DEBUG - VRF ids for VN ctest-vn4-34060744: {} 2026-02-19 14:40:26,062 - DEBUG - ====Verifying data for ctest-policy1-42956350 in API_Server ====== 2026-02-19 14:40:26,062 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 14:40:26,067 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e5e5e02-1ab1-4db3-8275-4b5847366930 2026-02-19 14:40:26,076 - DEBUG - Requesting: http://10.0.0.50:8082/project/1e3ea3ef-047c-4523-93eb-711178083cc1 2026-02-19 14:40:26,143 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/2f5196e4-6a7d-4d53-8f85-571bdc924ace 2026-02-19 14:40:26,151 - INFO - Verified policy ctest-policy1-42956350 in API Server, Result: True 2026-02-19 14:40:26,151 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 14:40:26,157 - INFO - Deleting VN ctest-vn4-34060744 2026-02-19 14:40:26,256 - DEBUG - Response for deleting network () 2026-02-19 14:40:26,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2a653b9-2e48-49c5-a4d2-410af72aec9c 2026-02-19 14:40:26,260 - DEBUG - Response Code: 404 2026-02-19 14:40:26,260 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-19 14:40:26,265 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e5e5e02-1ab1-4db3-8275-4b5847366930 2026-02-19 14:40:26,316 - DEBUG - Requesting: http://10.0.0.50:8082/project/1e3ea3ef-047c-4523-93eb-711178083cc1 2026-02-19 14:40:26,383 - INFO - Validated that VN ctest-vn4-34060744 is not found in API Server 2026-02-19 14:40:26,392 - DEBUG - VN ctest-vn4-34060744 is not present in Agent 10.0.0.50 2026-02-19 14:40:26,392 - INFO - Validated that VN ctest-vn4-34060744 is not in any agent 2026-02-19 14:40:26,404 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34060744 info 2026-02-19 14:40:26,424 - INFO - Deleted policy ctest-policy1-42956350 2026-02-19 14:40:26,587 - DEBUG - policy ctest-policy1-42956350 is not found in API Server 2026-02-19 14:40:26,839 - DEBUG - No XMPP flaps were noticed during the test 2026-02-19 14:40:26,839 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-19 14:40:26,839 - INFO - -------------------------------------------------------------------------------- 2026-02-19 14:40:27,128 - DEBUG - No XMPP flaps were noticed during the test 2026-02-19 14:40:27,128 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-19 14:40:27,128 - INFO - -------------------------------------------------------------------------------- 2026-02-19 14:40:27,819 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93302757, ID : 1e3ea3ef-047c-4523-93eb-711178083cc1