2026-03-26 02:19:47,223 - INFO - Domain Default found not creating 2026-03-26 02:19:47,373 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58779834 not found, creating it 2026-03-26 02:19:47,798 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58779834, ID : 39a12d14-c31c-4271-9a81-f412f59a1cb4 2026-03-26 02:19:49,189 - INFO - ================================================================================ 2026-03-26 02:19:49,189 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 02:19:49,446 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.130': '0'}} with 2026-03-26 02:19:49,446 - INFO - Initial checks done. Running the testcase now 2026-03-26 02:19:49,446 - INFO - 2026-03-26 02:19:49,446 - INFO - ================================================================================ 2026-03-26 02:19:49,446 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 02:19:49,446 - 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-03-26 02:19:49,731 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.130': '0'}} with 2026-03-26 02:19:49,731 - INFO - Initial checks done. Running the testcase now 2026-03-26 02:19:49,731 - INFO - 2026-03-26 02:19:50,073 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58779834:ctest-vn4-37401873, 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-58779834:ctest-vn4-37401873, 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-58779834:ctest-vn4-37401873, 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-58779834:ctest-vn4-37401873, 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-03-26 02:19:50,562 - DEBUG - Response for create_network : {'network': {'id': '6b0bfc84-5fec-4e91-a338-a37faaee1a72', 'name': 'ctest-vn4-37401873', 'tenant_id': '39a12d14c31c42719a81f412f59a1cb4', 'project_id': '39a12d14c31c42719a81f412f59a1cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58779834', 'ctest-vn4-37401873'], 'port_security_enabled': True, 'description': ''}} 2026-03-26 02:19:50,705 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e238f5ac-902d-496b-9078-3c3d7e478827', 'name': '', 'tenant_id': '39a12d14c31c42719a81f412f59a1cb4', 'network_id': '6b0bfc84-5fec-4e91-a338-a37faaee1a72', 'ip_version': 4, 'cidr': '122.19.39.192/26', 'allocation_pools': [{'start': '122.19.39.194', 'end': '122.19.39.254'}], 'gateway_ip': '122.19.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.19.39.194', 'tags': [], 'project_id': '39a12d14c31c42719a81f412f59a1cb4'}} 2026-03-26 02:19:50,839 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9a38c14-1180-44a7-9b1d-b73b21a030a2', 'name': '', 'tenant_id': '39a12d14c31c42719a81f412f59a1cb4', 'network_id': '6b0bfc84-5fec-4e91-a338-a37faaee1a72', 'ip_version': 6, 'cidr': '2471:4dd1:aee4:c4ce:8198:5bc9::/96', 'allocation_pools': [{'start': '2471:4dd1:aee4:c4ce:8198:5bc9:0:2', 'end': '2471:4dd1:aee4:c4ce:8198:5bc9:ffff:fffe'}], 'gateway_ip': '2471:4dd1:aee4:c4ce:8198:5bc9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2471:4dd1:aee4:c4ce:8198:5bc9:0:2', 'tags': [], 'project_id': '39a12d14c31c42719a81f412f59a1cb4'}} 2026-03-26 02:19:50,857 - INFO - Created VN ctest-vn4-37401873 2026-03-26 02:19:50,907 - DEBUG - VN ctest-vn4-37401873 UUID is 6b0bfc84-5fec-4e91-a338-a37faaee1a72 2026-03-26 02:19:51,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b0bfc84-5fec-4e91-a338-a37faaee1a72', 'name': 'ctest-vn4-37401873', 'tenant_id': '39a12d14c31c42719a81f412f59a1cb4', 'project_id': '39a12d14c31c42719a81f412f59a1cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e238f5ac-902d-496b-9078-3c3d7e478827', 'e9a38c14-1180-44a7-9b1d-b73b21a030a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58779834', 'ctest-vn4-37401873'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58779834', 'ctest-policy1-82178661']], 'subnet_ipam': [{'subnet_cidr': '122.19.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2471:4dd1:aee4:c4ce:8198:5bc9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-26 02:19:51,243 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-26 02:19:51,535 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-26 02:19:51,563 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc06428-e729-4c78-adf0-c46b6dad10f2 2026-03-26 02:19:51,573 - DEBUG - Requesting: http://10.0.0.249:8082/project/39a12d14-c31c-4271-9a81-f412f59a1cb4 2026-03-26 02:19:51,644 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b0bfc84-5fec-4e91-a338-a37faaee1a72 2026-03-26 02:19:51,654 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b0bfc84-5fec-4e91-a338-a37faaee1a72 2026-03-26 02:19:51,663 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6d469d36-4a0b-4ca9-8028-091d420edcc0 2026-03-26 02:19:51,668 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6d469d36-4a0b-4ca9-8028-091d420edcc0 2026-03-26 02:19:51,673 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0c012196-d5c4-43b6-871a-689ecaba49fa 2026-03-26 02:19:51,679 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:19:51,679 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b0bfc84-5fec-4e91-a338-a37faaee1a72 2026-03-26 02:19:51,686 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6d469d36-4a0b-4ca9-8028-091d420edcc0 2026-03-26 02:19:51,699 - INFO - Verified VN network id 12 for VN 6b0bfc84-5fec-4e91-a338-a37faaee1a72 2026-03-26 02:19:51,699 - INFO - Verifications in API Server for VN ctest-vn4-37401873 passed 2026-03-26 02:19:51,699 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b0bfc84-5fec-4e91-a338-a37faaee1a72 2026-03-26 02:19:51,707 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6d469d36-4a0b-4ca9-8028-091d420edcc0 2026-03-26 02:19:51,713 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6d469d36-4a0b-4ca9-8028-091d420edcc0 2026-03-26 02:19:51,718 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0c012196-d5c4-43b6-871a-689ecaba49fa 2026-03-26 02:19:51,727 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58779834:ctest-vn4-37401873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58779834', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7713536432277311121', 'uuid-lslong': '11761330195601955442'}, 'enable': 'true', 'created': '2026-03-26T02:19:50', 'last-modified': '2026-03-26T02:19:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.660658'} 2026-03-26 02:19:51,732 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:19:51,732 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37401873 passed 2026-03-26 02:19:51,732 - DEBUG - ====Verifying policy data for ctest-vn4-37401873 in API_Server ====== 2026-03-26 02:19:51,732 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-26 02:19:51,736 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc06428-e729-4c78-adf0-c46b6dad10f2 2026-03-26 02:19:51,744 - DEBUG - Requesting: http://10.0.0.249:8082/project/39a12d14-c31c-4271-9a81-f412f59a1cb4 2026-03-26 02:19:51,809 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6b0bfc84-5fec-4e91-a338-a37faaee1a72 2026-03-26 02:19:51,818 - DEBUG - ==>Verifying data for policy with id: caa739b7-2a90-450b-8bc0-df19b37f7fde, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58779834', 'ctest-policy1-82178661'] 2026-03-26 02:19:51,818 - INFO - VN ctest-vn4-37401873 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-26 02:19:51,818 - DEBUG - Verifying the vn in opserver 2026-03-26 02:19:51,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58779834:ctest-vn4-37401873 virtual network link through opserver 10.0.0.249 2026-03-26 02:19:51,818 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-26 02:19:52,113 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-26 02:19:52,173 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58779834:ctest-vn4-37401873', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58779834:ctest-vn4-37401873?flat'} 2026-03-26 02:19:52,173 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58779834:ctest-vn4-37401873 is found in opserver 2026-03-26 02:19:52,182 - DEBUG - Do not have enough data to verify VN in agent 2026-03-26 02:19:52,186 - DEBUG - VRF ids for VN ctest-vn4-37401873: {} 2026-03-26 02:19:52,186 - DEBUG - ====Verifying data for ctest-policy1-82178661 in API_Server ====== 2026-03-26 02:19:52,186 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-26 02:19:52,192 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc06428-e729-4c78-adf0-c46b6dad10f2 2026-03-26 02:19:52,202 - DEBUG - Requesting: http://10.0.0.249:8082/project/39a12d14-c31c-4271-9a81-f412f59a1cb4 2026-03-26 02:19:52,268 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/caa739b7-2a90-450b-8bc0-df19b37f7fde 2026-03-26 02:19:52,276 - INFO - Verified policy ctest-policy1-82178661 in API Server, Result: True 2026-03-26 02:19:52,276 - INFO - Done with setup and verification, moving onto test .. 2026-03-26 02:19:52,283 - INFO - Deleting VN ctest-vn4-37401873 2026-03-26 02:19:52,384 - DEBUG - Response for deleting network () 2026-03-26 02:19:52,384 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6d469d36-4a0b-4ca9-8028-091d420edcc0 2026-03-26 02:19:52,389 - DEBUG - Response Code: 404 2026-03-26 02:19:52,389 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-26 02:19:52,393 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc06428-e729-4c78-adf0-c46b6dad10f2 2026-03-26 02:19:52,448 - DEBUG - Requesting: http://10.0.0.249:8082/project/39a12d14-c31c-4271-9a81-f412f59a1cb4 2026-03-26 02:19:52,514 - INFO - Validated that VN ctest-vn4-37401873 is not found in API Server 2026-03-26 02:19:52,523 - DEBUG - VN ctest-vn4-37401873 is not present in Agent 10.0.0.249 2026-03-26 02:19:52,523 - INFO - Validated that VN ctest-vn4-37401873 is not in any agent 2026-03-26 02:19:52,535 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37401873 info 2026-03-26 02:19:52,564 - INFO - Deleted policy ctest-policy1-82178661 2026-03-26 02:19:52,723 - DEBUG - policy ctest-policy1-82178661 is not found in API Server 2026-03-26 02:19:52,980 - DEBUG - No XMPP flaps were noticed during the test
2026-03-26 02:19:52,980 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-03-26 02:19:52,980 - INFO - -------------------------------------------------------------------------------- 2026-03-26 02:19:53,272 - DEBUG - No XMPP flaps were noticed during the test
2026-03-26 02:19:53,272 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-26 02:19:53,272 - INFO - -------------------------------------------------------------------------------- 2026-03-26 02:19:53,935 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-58779834, ID : 39a12d14-c31c-4271-9a81-f412f59a1cb4