2026-02-10 18:13:07,746 - INFO - Domain Default found not creating 2026-02-10 18:13:07,922 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66682313 not found, creating it 2026-02-10 18:13:08,388 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66682313, ID : b7aab3f6-9629-4f33-a8cf-f76572f2ed99 2026-02-10 18:13:09,861 - INFO - ================================================================================ 2026-02-10 18:13:09,861 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:13:10,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-02-10 18:13:10,122 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:13:10,122 - INFO - 2026-02-10 18:13:10,122 - INFO - ================================================================================ 2026-02-10 18:13:10,122 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:13:10,122 - 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-10 18:13:10,409 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-02-10 18:13:10,409 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:13:10,409 - INFO - 2026-02-10 18:13:10,770 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66682313:ctest-vn4-81568942, 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-66682313:ctest-vn4-81568942, 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-66682313:ctest-vn4-81568942, 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-66682313:ctest-vn4-81568942, 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-10 18:13:11,280 - DEBUG - Response for create_network : {'network': {'id': '88a51061-c413-44e9-a006-f6561a3f8865', 'name': 'ctest-vn4-81568942', 'tenant_id': 'b7aab3f696294f33a8cff76572f2ed99', 'project_id': 'b7aab3f696294f33a8cff76572f2ed99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66682313', 'ctest-vn4-81568942'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:13:11,432 - DEBUG - Response for create_subnet : {'subnet': {'id': '57541a13-ad21-4979-94ab-e726bfb1df3e', 'name': '', 'tenant_id': 'b7aab3f696294f33a8cff76572f2ed99', 'network_id': '88a51061-c413-44e9-a006-f6561a3f8865', 'ip_version': 4, 'cidr': '206.157.28.64/26', 'allocation_pools': [{'start': '206.157.28.66', 'end': '206.157.28.126'}], 'gateway_ip': '206.157.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.157.28.66', 'tags': [], 'project_id': 'b7aab3f696294f33a8cff76572f2ed99'}} 2026-02-10 18:13:11,582 - DEBUG - Response for create_subnet : {'subnet': {'id': '18a196a0-3000-4f90-8835-10dbd2e0b8e6', 'name': '', 'tenant_id': 'b7aab3f696294f33a8cff76572f2ed99', 'network_id': '88a51061-c413-44e9-a006-f6561a3f8865', 'ip_version': 6, 'cidr': '3f45:e367:37ed:cb6:7b29:cb6d::/96', 'allocation_pools': [{'start': '3f45:e367:37ed:cb6:7b29:cb6d:0:2', 'end': '3f45:e367:37ed:cb6:7b29:cb6d:ffff:fffe'}], 'gateway_ip': '3f45:e367:37ed:cb6:7b29:cb6d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f45:e367:37ed:cb6:7b29:cb6d:0:2', 'tags': [], 'project_id': 'b7aab3f696294f33a8cff76572f2ed99'}} 2026-02-10 18:13:11,603 - INFO - Created VN ctest-vn4-81568942 2026-02-10 18:13:11,656 - DEBUG - VN ctest-vn4-81568942 UUID is 88a51061-c413-44e9-a006-f6561a3f8865 2026-02-10 18:13:11,874 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88a51061-c413-44e9-a006-f6561a3f8865', 'name': 'ctest-vn4-81568942', 'tenant_id': 'b7aab3f696294f33a8cff76572f2ed99', 'project_id': 'b7aab3f696294f33a8cff76572f2ed99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57541a13-ad21-4979-94ab-e726bfb1df3e', '18a196a0-3000-4f90-8835-10dbd2e0b8e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66682313', 'ctest-vn4-81568942'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66682313', 'ctest-policy1-14146219']], 'subnet_ipam': [{'subnet_cidr': '206.157.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f45:e367:37ed:cb6:7b29:cb6d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:13:12,036 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 18:13:12,336 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 18:13:12,369 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35bea7d-cfed-4258-b811-148103eb539f 2026-02-10 18:13:12,382 - DEBUG - Requesting: http://10.0.0.50:8082/project/b7aab3f6-9629-4f33-a8cf-f76572f2ed99 2026-02-10 18:13:12,459 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/88a51061-c413-44e9-a006-f6561a3f8865 2026-02-10 18:13:12,471 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/88a51061-c413-44e9-a006-f6561a3f8865 2026-02-10 18:13:12,483 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a925b0c8-b95e-48f1-ba15-dbab4dfe93e7 2026-02-10 18:13:12,491 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a925b0c8-b95e-48f1-ba15-dbab4dfe93e7 2026-02-10 18:13:12,499 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2f6b050c-a6ea-42ce-85f9-d64f8808679a 2026-02-10 18:13:12,505 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:13:12,506 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/88a51061-c413-44e9-a006-f6561a3f8865 2026-02-10 18:13:12,515 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a925b0c8-b95e-48f1-ba15-dbab4dfe93e7 2026-02-10 18:13:12,531 - INFO - Verified VN network id 12 for VN 88a51061-c413-44e9-a006-f6561a3f8865 2026-02-10 18:13:12,531 - INFO - Verifications in API Server for VN ctest-vn4-81568942 passed 2026-02-10 18:13:12,531 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/88a51061-c413-44e9-a006-f6561a3f8865 2026-02-10 18:13:12,541 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a925b0c8-b95e-48f1-ba15-dbab4dfe93e7 2026-02-10 18:13:12,548 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a925b0c8-b95e-48f1-ba15-dbab4dfe93e7 2026-02-10 18:13:12,555 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2f6b050c-a6ea-42ce-85f9-d64f8808679a 2026-02-10 18:13:12,567 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66682313:ctest-vn4-81568942', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66682313', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9846294172402926825', 'uuid-lslong': '11531174745596725349'}, 'enable': 'true', 'created': '2026-02-10T18:13:11', 'last-modified': '2026-02-10T18:13:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729204'} 2026-02-10 18:13:12,573 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:13:12,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81568942 passed 2026-02-10 18:13:12,573 - DEBUG - ====Verifying policy data for ctest-vn4-81568942 in API_Server ====== 2026-02-10 18:13:12,573 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 18:13:12,579 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35bea7d-cfed-4258-b811-148103eb539f 2026-02-10 18:13:12,591 - DEBUG - Requesting: http://10.0.0.50:8082/project/b7aab3f6-9629-4f33-a8cf-f76572f2ed99 2026-02-10 18:13:12,663 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/88a51061-c413-44e9-a006-f6561a3f8865 2026-02-10 18:13:12,672 - DEBUG - ==>Verifying data for policy with id: cf3e989a-b89e-4a2b-ab84-dec27d28a896, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66682313', 'ctest-policy1-14146219'] 2026-02-10 18:13:12,672 - INFO - VN ctest-vn4-81568942 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 18:13:12,672 - DEBUG - Verifying the vn in opserver 2026-02-10 18:13:12,672 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66682313:ctest-vn4-81568942 virtual network link through opserver 10.0.0.50 2026-02-10 18:13:12,673 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-10 18:13:12,964 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-10 18:13:13,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66682313:ctest-vn4-81568942', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66682313:ctest-vn4-81568942?flat'} 2026-02-10 18:13:13,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66682313:ctest-vn4-81568942 is found in opserver 2026-02-10 18:13:13,043 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 18:13:13,048 - DEBUG - VRF ids for VN ctest-vn4-81568942: {} 2026-02-10 18:13:13,048 - DEBUG - ====Verifying data for ctest-policy1-14146219 in API_Server ====== 2026-02-10 18:13:13,048 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 18:13:13,054 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35bea7d-cfed-4258-b811-148103eb539f 2026-02-10 18:13:13,066 - DEBUG - Requesting: http://10.0.0.50:8082/project/b7aab3f6-9629-4f33-a8cf-f76572f2ed99 2026-02-10 18:13:13,137 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/cf3e989a-b89e-4a2b-ab84-dec27d28a896 2026-02-10 18:13:13,150 - INFO - Verified policy ctest-policy1-14146219 in API Server, Result: True 2026-02-10 18:13:13,150 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 18:13:13,178 - INFO - Deleting VN ctest-vn4-81568942 2026-02-10 18:13:13,302 - DEBUG - Response for deleting network () 2026-02-10 18:13:13,302 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a925b0c8-b95e-48f1-ba15-dbab4dfe93e7 2026-02-10 18:13:13,307 - DEBUG - Response Code: 404 2026-02-10 18:13:13,307 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 18:13:13,314 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35bea7d-cfed-4258-b811-148103eb539f 2026-02-10 18:13:13,370 - DEBUG - Requesting: http://10.0.0.50:8082/project/b7aab3f6-9629-4f33-a8cf-f76572f2ed99 2026-02-10 18:13:13,443 - INFO - Validated that VN ctest-vn4-81568942 is not found in API Server 2026-02-10 18:13:13,453 - DEBUG - VN ctest-vn4-81568942 is not present in Agent 10.0.0.50 2026-02-10 18:13:13,453 - INFO - Validated that VN ctest-vn4-81568942 is not in any agent 2026-02-10 18:13:13,468 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81568942 info 2026-02-10 18:13:13,495 - INFO - Deleted policy ctest-policy1-14146219 2026-02-10 18:13:13,664 - DEBUG - policy ctest-policy1-14146219 is not found in API Server 2026-02-10 18:13:13,934 - DEBUG - No XMPP flaps were noticed during the test