2026-02-26 01:49:48,738 - INFO - Reading existing Domain with UUID f6868889-8458-4392-b4ae-21dc8466dc91 2026-02-26 01:49:48,752 - INFO - Using existing domain ['admin_domain'](f6868889-8458-4392-b4ae-21dc8466dc91) 2026-02-26 01:49:48,991 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83596459 not found, creating it 2026-02-26 01:49:49,561 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83596459, ID : dca199f7-0216-46da-bfbf-9484b669fd1f 2026-02-26 01:49:51,476 - INFO - ================================================================================ 2026-02-26 01:49:51,476 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 01:49:51,881 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.0.0.141': '0'}} with 2026-02-26 01:49:51,881 - INFO - Initial checks done. Running the testcase now 2026-02-26 01:49:51,881 - INFO - 2026-02-26 01:49:51,881 - INFO - ================================================================================ 2026-02-26 01:49:51,881 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 01:49:51,881 - 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-26 01:49:52,316 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.0.0.141': '0'}} with 2026-02-26 01:49:52,316 - INFO - Initial checks done. Running the testcase now 2026-02-26 01:49:52,316 - INFO - 2026-02-26 01:49:52,712 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-83596459:ctest-vn4-64071382, 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-83596459:ctest-vn4-64071382, 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-83596459:ctest-vn4-64071382, 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-83596459:ctest-vn4-64071382, 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-26 01:49:53,471 - DEBUG - Response for create_network : {'network': {'id': 'db07c725-e267-487d-a138-4199c47bc4f8', 'name': 'ctest-vn4-64071382', 'tenant_id': 'dca199f7021646dabfbf9484b669fd1f', 'project_id': 'dca199f7021646dabfbf9484b669fd1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83596459', 'ctest-vn4-64071382'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-02-26 01:49:53,791 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9de27e0-ce22-42ec-babe-ecaafdb1658b', 'name': '', 'tenant_id': 'dca199f7021646dabfbf9484b669fd1f', 'network_id': 'db07c725-e267-487d-a138-4199c47bc4f8', 'ip_version': 4, 'cidr': '51.191.111.128/26', 'allocation_pools': [{'start': '51.191.111.130', 'end': '51.191.111.190'}], 'gateway_ip': '51.191.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-26T01:49:53.643616', 'updated_at': '2026-02-26T01:49:53.643616', 'dns_server_address': '51.191.111.130', 'tags': [], 'project_id': 'dca199f7021646dabfbf9484b669fd1f'}} 2026-02-26 01:49:54,071 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e75c95c1-e858-4631-a84b-9db0fc7064ff', 'name': '', 'tenant_id': 'dca199f7021646dabfbf9484b669fd1f', 'network_id': 'db07c725-e267-487d-a138-4199c47bc4f8', 'ip_version': 6, 'cidr': '23c5:54a2:3cc3:c1ea:8282:4a26::/96', 'allocation_pools': [{'start': '23c5:54a2:3cc3:c1ea:8282:4a26:0:2', 'end': '23c5:54a2:3cc3:c1ea:8282:4a26:ffff:fffe'}], 'gateway_ip': '23c5:54a2:3cc3:c1ea:8282:4a26:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-26T01:49:53.966144', 'updated_at': '2026-02-26T01:49:53.966144', 'dns_server_address': '23c5:54a2:3cc3:c1ea:8282:4a26:0:2', 'tags': [], 'project_id': 'dca199f7021646dabfbf9484b669fd1f'}} 2026-02-26 01:49:54,140 - INFO - Created VN ctest-vn4-64071382 2026-02-26 01:49:54,194 - DEBUG - VN ctest-vn4-64071382 UUID is db07c725-e267-487d-a138-4199c47bc4f8 2026-02-26 01:49:54,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db07c725-e267-487d-a138-4199c47bc4f8', 'name': 'ctest-vn4-64071382', 'tenant_id': 'dca199f7021646dabfbf9484b669fd1f', 'project_id': 'dca199f7021646dabfbf9484b669fd1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9de27e0-ce22-42ec-babe-ecaafdb1658b', 'e75c95c1-e858-4631-a84b-9db0fc7064ff'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83596459', 'ctest-vn4-64071382'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83596459', 'ctest-policy1-29990647']], 'subnet_ipam': [{'subnet_cidr': '51.191.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23c5:54a2:3cc3:c1ea:8282:4a26::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-26T01:49:53.388528', 'updated_at': '2026-02-26T01:49:53.984968'}} 2026-02-26 01:49:54,866 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2026-02-26 01:49:55,220 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2026-02-26 01:49:55,310 - DEBUG - Requesting: https://10.0.0.141:8082/domain/f6868889-8458-4392-b4ae-21dc8466dc91 2026-02-26 01:49:55,371 - DEBUG - Requesting: https://10.0.0.141:8082/project/dca199f7-0216-46da-bfbf-9484b669fd1f 2026-02-26 01:49:55,468 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/db07c725-e267-487d-a138-4199c47bc4f8 2026-02-26 01:49:55,528 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/db07c725-e267-487d-a138-4199c47bc4f8 2026-02-26 01:49:55,589 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/ad52bd9c-ed82-46f9-816d-45516af73b2d 2026-02-26 01:49:55,647 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/ad52bd9c-ed82-46f9-816d-45516af73b2d 2026-02-26 01:49:55,703 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/dd032cf2-cfeb-4dfe-8dea-5864e3241e5e 2026-02-26 01:49:55,763 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 01:49:55,763 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/db07c725-e267-487d-a138-4199c47bc4f8 2026-02-26 01:49:55,826 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/ad52bd9c-ed82-46f9-816d-45516af73b2d 2026-02-26 01:49:55,894 - INFO - Verified VN network id 11 for VN db07c725-e267-487d-a138-4199c47bc4f8 2026-02-26 01:49:55,894 - INFO - Verifications in API Server for VN ctest-vn4-64071382 passed 2026-02-26 01:49:55,894 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/db07c725-e267-487d-a138-4199c47bc4f8 2026-02-26 01:49:55,952 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/ad52bd9c-ed82-46f9-816d-45516af73b2d 2026-02-26 01:49:56,007 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/ad52bd9c-ed82-46f9-816d-45516af73b2d 2026-02-26 01:49:56,063 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/dd032cf2-cfeb-4dfe-8dea-5864e3241e5e 2026-02-26 01:49:56,171 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-83596459:ctest-vn4-64071382', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83596459', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15782802384669329533', 'uuid-lslong': '11617107367484441848'}, 'enable': 'true', 'created': '2026-02-26T01:49:53', 'last-modified': '2026-02-26T01:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.522720'} 2026-02-26 01:49:56,224 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 01:49:56,224 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64071382 passed 2026-02-26 01:49:56,225 - DEBUG - ====Verifying policy data for ctest-vn4-64071382 in API_Server ====== 2026-02-26 01:49:56,225 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2026-02-26 01:49:56,278 - DEBUG - Requesting: https://10.0.0.141:8082/domain/f6868889-8458-4392-b4ae-21dc8466dc91 2026-02-26 01:49:56,339 - DEBUG - Requesting: https://10.0.0.141:8082/project/dca199f7-0216-46da-bfbf-9484b669fd1f 2026-02-26 01:49:56,431 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/db07c725-e267-487d-a138-4199c47bc4f8 2026-02-26 01:49:56,492 - DEBUG - ==>Verifying data for policy with id: 974b7ff1-3028-40ed-ab2c-bba73857bd58, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83596459', 'ctest-policy1-29990647'] 2026-02-26 01:49:56,492 - INFO - VN ctest-vn4-64071382 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-26 01:49:56,493 - DEBUG - Verifying the vn in opserver 2026-02-26 01:49:56,493 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-83596459:ctest-vn4-64071382 virtual network link through opserver 10.0.0.141 2026-02-26 01:49:56,493 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-26 01:49:56,846 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-26 01:49:56,971 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-83596459:ctest-vn4-64071382', 'href': 'https://10.0.0.141:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-83596459:ctest-vn4-64071382?flat'} 2026-02-26 01:49:56,971 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-83596459:ctest-vn4-64071382 is found in opserver 2026-02-26 01:49:57,075 - DEBUG - Do not have enough data to verify VN in agent 2026-02-26 01:49:57,127 - DEBUG - VRF ids for VN ctest-vn4-64071382: {} 2026-02-26 01:49:57,127 - DEBUG - ====Verifying data for ctest-policy1-29990647 in API_Server ====== 2026-02-26 01:49:57,127 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2026-02-26 01:49:57,182 - DEBUG - Requesting: https://10.0.0.141:8082/domain/f6868889-8458-4392-b4ae-21dc8466dc91 2026-02-26 01:49:57,243 - DEBUG - Requesting: https://10.0.0.141:8082/project/dca199f7-0216-46da-bfbf-9484b669fd1f 2026-02-26 01:49:57,319 - DEBUG - Requesting: https://10.0.0.141:8082/network-policy/974b7ff1-3028-40ed-ab2c-bba73857bd58 2026-02-26 01:49:57,376 - INFO - Verified policy ctest-policy1-29990647 in API Server, Result: True 2026-02-26 01:49:57,377 - INFO - Done with setup and verification, moving onto test .. 2026-02-26 01:49:57,387 - INFO - Deleting VN ctest-vn4-64071382 2026-02-26 01:49:57,603 - DEBUG - Response for deleting network () 2026-02-26 01:49:57,603 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/ad52bd9c-ed82-46f9-816d-45516af73b2d 2026-02-26 01:49:57,658 - DEBUG - Response Code: 404 2026-02-26 01:49:57,658 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2026-02-26 01:49:57,714 - DEBUG - Requesting: https://10.0.0.141:8082/domain/f6868889-8458-4392-b4ae-21dc8466dc91 2026-02-26 01:49:57,775 - DEBUG - Requesting: https://10.0.0.141:8082/project/dca199f7-0216-46da-bfbf-9484b669fd1f 2026-02-26 01:49:57,940 - INFO - Validated that VN ctest-vn4-64071382 is not found in API Server 2026-02-26 01:49:58,054 - DEBUG - VN ctest-vn4-64071382 is not present in Agent 10.0.0.141 2026-02-26 01:49:58,054 - INFO - Validated that VN ctest-vn4-64071382 is not in any agent 2026-02-26 01:49:58,223 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64071382 info 2026-02-26 01:49:58,251 - INFO - Deleted policy ctest-policy1-29990647 2026-02-26 01:49:58,426 - DEBUG - policy ctest-policy1-29990647 is not found in API Server 2026-02-26 01:49:58,823 - DEBUG - No XMPP flaps were noticed during the test