2026-01-30 06:45:39,911 - INFO - Domain Default found not creating 2026-01-30 06:45:40,087 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70357148 not found, creating it 2026-01-30 06:45:40,541 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70357148, ID : 46921b57-b7a3-42c2-905d-63196bdaa3ec 2026-01-30 06:45:42,061 - INFO - ================================================================================ 2026-01-30 06:45:42,061 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 06:45:42,321 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-30 06:45:42,321 - INFO - Initial checks done. Running the testcase now 2026-01-30 06:45:42,321 - INFO - 2026-01-30 06:45:42,321 - INFO - ================================================================================ 2026-01-30 06:45:42,321 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 06:45:42,321 - 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-01-30 06:45:42,610 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-30 06:45:42,610 - INFO - Initial checks done. Running the testcase now 2026-01-30 06:45:42,610 - INFO - 2026-01-30 06:45:43,017 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70357148:ctest-vn4-89839887, 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-70357148:ctest-vn4-89839887, 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-70357148:ctest-vn4-89839887, 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-70357148:ctest-vn4-89839887, 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-01-30 06:45:43,521 - DEBUG - Response for create_network : {'network': {'id': '96cc149d-6121-4b53-95b2-d8e8c261e390', 'name': 'ctest-vn4-89839887', 'tenant_id': '46921b57b7a342c2905d63196bdaa3ec', 'project_id': '46921b57b7a342c2905d63196bdaa3ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70357148', 'ctest-vn4-89839887'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 06:45:43,744 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e1a1a44-05c0-40f7-aca0-f4e9a167de35', 'name': '', 'tenant_id': '46921b57b7a342c2905d63196bdaa3ec', 'network_id': '96cc149d-6121-4b53-95b2-d8e8c261e390', 'ip_version': 4, 'cidr': '57.52.11.192/26', 'allocation_pools': [{'start': '57.52.11.194', 'end': '57.52.11.254'}], 'gateway_ip': '57.52.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.52.11.194', 'tags': [], 'project_id': '46921b57b7a342c2905d63196bdaa3ec'}} 2026-01-30 06:45:43,903 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ec8de07-29ff-47c8-a7b3-0760579bf524', 'name': '', 'tenant_id': '46921b57b7a342c2905d63196bdaa3ec', 'network_id': '96cc149d-6121-4b53-95b2-d8e8c261e390', 'ip_version': 6, 'cidr': '22ee:11f9:b6af:749b:8cc5:42ab::/96', 'allocation_pools': [{'start': '22ee:11f9:b6af:749b:8cc5:42ab:0:2', 'end': '22ee:11f9:b6af:749b:8cc5:42ab:ffff:fffe'}], 'gateway_ip': '22ee:11f9:b6af:749b:8cc5:42ab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22ee:11f9:b6af:749b:8cc5:42ab:0:2', 'tags': [], 'project_id': '46921b57b7a342c2905d63196bdaa3ec'}} 2026-01-30 06:45:43,922 - INFO - Created VN ctest-vn4-89839887 2026-01-30 06:45:43,973 - DEBUG - VN ctest-vn4-89839887 UUID is 96cc149d-6121-4b53-95b2-d8e8c261e390 2026-01-30 06:45:44,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96cc149d-6121-4b53-95b2-d8e8c261e390', 'name': 'ctest-vn4-89839887', 'tenant_id': '46921b57b7a342c2905d63196bdaa3ec', 'project_id': '46921b57b7a342c2905d63196bdaa3ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e1a1a44-05c0-40f7-aca0-f4e9a167de35', '8ec8de07-29ff-47c8-a7b3-0760579bf524'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70357148', 'ctest-vn4-89839887'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70357148', 'ctest-policy1-34108234']], 'subnet_ipam': [{'subnet_cidr': '57.52.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22ee:11f9:b6af:749b:8cc5:42ab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 06:45:44,321 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 06:45:44,643 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 06:45:44,674 - DEBUG - Requesting: http://10.0.0.22:8082/domain/410b0672-cb5c-48f2-9b4b-2b88d101ef88 2026-01-30 06:45:44,687 - DEBUG - Requesting: http://10.0.0.22:8082/project/46921b57-b7a3-42c2-905d-63196bdaa3ec 2026-01-30 06:45:44,759 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/96cc149d-6121-4b53-95b2-d8e8c261e390 2026-01-30 06:45:44,770 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/96cc149d-6121-4b53-95b2-d8e8c261e390 2026-01-30 06:45:44,778 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/595987ef-967a-44ec-9d07-05324ee76dab 2026-01-30 06:45:44,784 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/595987ef-967a-44ec-9d07-05324ee76dab 2026-01-30 06:45:44,790 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/37084d3b-e849-4ef8-ab7c-966070d1ad15 2026-01-30 06:45:44,796 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 06:45:44,796 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/96cc149d-6121-4b53-95b2-d8e8c261e390 2026-01-30 06:45:44,805 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/595987ef-967a-44ec-9d07-05324ee76dab 2026-01-30 06:45:44,818 - INFO - Verified VN network id 12 for VN 96cc149d-6121-4b53-95b2-d8e8c261e390 2026-01-30 06:45:44,818 - INFO - Verifications in API Server for VN ctest-vn4-89839887 passed 2026-01-30 06:45:44,818 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/96cc149d-6121-4b53-95b2-d8e8c261e390 2026-01-30 06:45:44,827 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/595987ef-967a-44ec-9d07-05324ee76dab 2026-01-30 06:45:44,833 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/595987ef-967a-44ec-9d07-05324ee76dab 2026-01-30 06:45:44,838 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/37084d3b-e849-4ef8-ab7c-966070d1ad15 2026-01-30 06:45:44,849 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70357148:ctest-vn4-89839887', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70357148', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10866082667110157139', 'uuid-lslong': '10786922551710966672'}, 'enable': 'true', 'created': '2026-01-30T06:45:43', 'last-modified': '2026-01-30T06:45:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713459'} 2026-01-30 06:45:44,854 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 06:45:44,854 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89839887 passed 2026-01-30 06:45:44,854 - DEBUG - ====Verifying policy data for ctest-vn4-89839887 in API_Server ====== 2026-01-30 06:45:44,854 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 06:45:44,859 - DEBUG - Requesting: http://10.0.0.22:8082/domain/410b0672-cb5c-48f2-9b4b-2b88d101ef88 2026-01-30 06:45:44,873 - DEBUG - Requesting: http://10.0.0.22:8082/project/46921b57-b7a3-42c2-905d-63196bdaa3ec 2026-01-30 06:45:44,942 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/96cc149d-6121-4b53-95b2-d8e8c261e390 2026-01-30 06:45:44,953 - DEBUG - ==>Verifying data for policy with id: ed220628-203d-4ad1-a448-518853c0a5a5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70357148', 'ctest-policy1-34108234'] 2026-01-30 06:45:44,953 - INFO - VN ctest-vn4-89839887 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 06:45:44,953 - DEBUG - Verifying the vn in opserver 2026-01-30 06:45:44,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70357148:ctest-vn4-89839887 virtual network link through opserver 10.0.0.22 2026-01-30 06:45:44,953 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-30 06:45:45,245 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-30 06:45:45,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70357148:ctest-vn4-89839887', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70357148:ctest-vn4-89839887?flat'} 2026-01-30 06:45:45,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70357148:ctest-vn4-89839887 is found in opserver 2026-01-30 06:45:45,310 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 06:45:45,314 - DEBUG - VRF ids for VN ctest-vn4-89839887: {} 2026-01-30 06:45:45,315 - DEBUG - ====Verifying data for ctest-policy1-34108234 in API_Server ====== 2026-01-30 06:45:45,315 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 06:45:45,320 - DEBUG - Requesting: http://10.0.0.22:8082/domain/410b0672-cb5c-48f2-9b4b-2b88d101ef88 2026-01-30 06:45:45,330 - DEBUG - Requesting: http://10.0.0.22:8082/project/46921b57-b7a3-42c2-905d-63196bdaa3ec 2026-01-30 06:45:45,400 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/ed220628-203d-4ad1-a448-518853c0a5a5 2026-01-30 06:45:45,409 - INFO - Verified policy ctest-policy1-34108234 in API Server, Result: True 2026-01-30 06:45:45,409 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 06:45:45,415 - INFO - Deleting VN ctest-vn4-89839887 2026-01-30 06:45:45,521 - DEBUG - Response for deleting network () 2026-01-30 06:45:45,521 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/595987ef-967a-44ec-9d07-05324ee76dab 2026-01-30 06:45:45,526 - DEBUG - Response Code: 404 2026-01-30 06:45:45,526 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-30 06:45:45,531 - DEBUG - Requesting: http://10.0.0.22:8082/domain/410b0672-cb5c-48f2-9b4b-2b88d101ef88 2026-01-30 06:45:45,586 - DEBUG - Requesting: http://10.0.0.22:8082/project/46921b57-b7a3-42c2-905d-63196bdaa3ec 2026-01-30 06:45:45,653 - INFO - Validated that VN ctest-vn4-89839887 is not found in API Server 2026-01-30 06:45:45,662 - DEBUG - VN ctest-vn4-89839887 is not present in Agent 10.0.0.22 2026-01-30 06:45:45,663 - INFO - Validated that VN ctest-vn4-89839887 is not in any agent 2026-01-30 06:45:45,677 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89839887 info 2026-01-30 06:45:45,699 - INFO - Deleted policy ctest-policy1-34108234 2026-01-30 06:45:45,861 - DEBUG - policy ctest-policy1-34108234 is not found in API Server 2026-01-30 06:45:46,116 - DEBUG - No XMPP flaps were noticed during the test