2026-09-16 13:10:11,120 - INFO - Domain Default found not creating 2026-09-16 13:10:11,319 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95776102 not found, creating it 2026-09-16 13:10:11,845 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95776102, ID : a5081c85-bfd3-414c-9c25-eac651bec891 2026-09-16 13:10:13,660 - INFO - ================================================================================ 2026-09-16 13:10:13,660 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 13:10:13,922 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.30': '0'}} with 2026-09-16 13:10:13,922 - INFO - Initial checks done. Running the testcase now 2026-09-16 13:10:13,922 - INFO - 2026-09-16 13:10:13,922 - INFO - ================================================================================ 2026-09-16 13:10:13,922 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 13:10:13,922 - 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-09-16 13:10:14,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.30': '0'}} with 2026-09-16 13:10:14,225 - INFO - Initial checks done. Running the testcase now 2026-09-16 13:10:14,225 - INFO - 2026-09-16 13:10:14,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95776102:ctest-vn4-63773383, 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-95776102:ctest-vn4-63773383, 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-95776102:ctest-vn4-63773383, 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-95776102:ctest-vn4-63773383, 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-09-16 13:10:15,194 - DEBUG - Response for create_network : {'network': {'id': 'b908aed4-5c6b-4f72-abdc-67cc58a54617', 'name': 'ctest-vn4-63773383', 'tenant_id': 'a5081c85bfd3414c9c25eac651bec891', 'project_id': 'a5081c85bfd3414c9c25eac651bec891', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95776102', 'ctest-vn4-63773383'], 'port_security_enabled': True, 'description': ''}} 2026-09-16 13:10:15,389 - DEBUG - Response for create_subnet : {'subnet': {'id': '03de2db6-372d-4cd9-83fb-e7090adb9e79', 'name': '', 'tenant_id': 'a5081c85bfd3414c9c25eac651bec891', 'network_id': 'b908aed4-5c6b-4f72-abdc-67cc58a54617', 'ip_version': 4, 'cidr': '147.49.225.64/26', 'allocation_pools': [{'start': '147.49.225.66', 'end': '147.49.225.126'}], 'gateway_ip': '147.49.225.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.49.225.66', 'tags': [], 'project_id': 'a5081c85bfd3414c9c25eac651bec891'}} 2026-09-16 13:10:15,581 - DEBUG - Response for create_subnet : {'subnet': {'id': '4323a775-2216-4b66-b070-156f829620e6', 'name': '', 'tenant_id': 'a5081c85bfd3414c9c25eac651bec891', 'network_id': 'b908aed4-5c6b-4f72-abdc-67cc58a54617', 'ip_version': 6, 'cidr': '3c98:aea9:f7e:96a3:4854:e022::/96', 'allocation_pools': [{'start': '3c98:aea9:f7e:96a3:4854:e022:0:2', 'end': '3c98:aea9:f7e:96a3:4854:e022:ffff:fffe'}], 'gateway_ip': '3c98:aea9:f7e:96a3:4854:e022:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c98:aea9:f7e:96a3:4854:e022:0:2', 'tags': [], 'project_id': 'a5081c85bfd3414c9c25eac651bec891'}} 2026-09-16 13:10:15,603 - INFO - Created VN ctest-vn4-63773383 2026-09-16 13:10:15,656 - DEBUG - VN ctest-vn4-63773383 UUID is b908aed4-5c6b-4f72-abdc-67cc58a54617 2026-09-16 13:10:15,872 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b908aed4-5c6b-4f72-abdc-67cc58a54617', 'name': 'ctest-vn4-63773383', 'tenant_id': 'a5081c85bfd3414c9c25eac651bec891', 'project_id': 'a5081c85bfd3414c9c25eac651bec891', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['03de2db6-372d-4cd9-83fb-e7090adb9e79', '4323a775-2216-4b66-b070-156f829620e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95776102', 'ctest-vn4-63773383'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95776102', 'ctest-policy1-94370386']], 'subnet_ipam': [{'subnet_cidr': '147.49.225.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c98:aea9:f7e:96a3:4854:e022::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-16 13:10:16,043 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-16 13:10:16,371 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-16 13:10:16,398 - DEBUG - Requesting: http://10.0.0.188:8082/domain/89086857-95df-4850-b380-2d06c87d4cbe 2026-09-16 13:10:16,411 - DEBUG - Requesting: http://10.0.0.188:8082/project/a5081c85-bfd3-414c-9c25-eac651bec891 2026-09-16 13:10:16,486 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/b908aed4-5c6b-4f72-abdc-67cc58a54617 2026-09-16 13:10:16,502 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/b908aed4-5c6b-4f72-abdc-67cc58a54617 2026-09-16 13:10:16,512 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/8bb967a0-4e7b-49e7-b02a-b89a78ee4a36 2026-09-16 13:10:16,519 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/8bb967a0-4e7b-49e7-b02a-b89a78ee4a36 2026-09-16 13:10:16,527 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/e6e1bd79-26ab-4c3f-9b6e-3c4cf8ee02c2 2026-09-16 13:10:16,534 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 13:10:16,534 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/b908aed4-5c6b-4f72-abdc-67cc58a54617 2026-09-16 13:10:16,543 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/8bb967a0-4e7b-49e7-b02a-b89a78ee4a36 2026-09-16 13:10:16,558 - INFO - Verified VN network id 12 for VN b908aed4-5c6b-4f72-abdc-67cc58a54617 2026-09-16 13:10:16,558 - INFO - Verifications in API Server for VN ctest-vn4-63773383 passed 2026-09-16 13:10:16,558 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/b908aed4-5c6b-4f72-abdc-67cc58a54617 2026-09-16 13:10:16,569 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/8bb967a0-4e7b-49e7-b02a-b89a78ee4a36 2026-09-16 13:10:16,576 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/8bb967a0-4e7b-49e7-b02a-b89a78ee4a36 2026-09-16 13:10:16,583 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/e6e1bd79-26ab-4c3f-9b6e-3c4cf8ee02c2 2026-09-16 13:10:16,596 - DEBUG - Control-node 10.0.0.188 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95776102:ctest-vn4-63773383', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95776102', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13333098923937189746', 'uuid-lslong': '12383887202720237079'}, 'enable': 'true', 'created': '2026-09-16T13:10:15', 'last-modified': '2026-09-16T13:10:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755498'} 2026-09-16 13:10:16,603 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 13:10:16,603 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63773383 passed 2026-09-16 13:10:16,604 - DEBUG - ====Verifying policy data for ctest-vn4-63773383 in API_Server ====== 2026-09-16 13:10:16,604 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-16 13:10:16,609 - DEBUG - Requesting: http://10.0.0.188:8082/domain/89086857-95df-4850-b380-2d06c87d4cbe 2026-09-16 13:10:16,619 - DEBUG - Requesting: http://10.0.0.188:8082/project/a5081c85-bfd3-414c-9c25-eac651bec891 2026-09-16 13:10:16,692 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/b908aed4-5c6b-4f72-abdc-67cc58a54617 2026-09-16 13:10:16,702 - DEBUG - ==>Verifying data for policy with id: ca07a7b4-fa75-40f4-b026-1ab3e87609ea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95776102', 'ctest-policy1-94370386'] 2026-09-16 13:10:16,702 - INFO - VN ctest-vn4-63773383 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-16 13:10:16,702 - DEBUG - Verifying the vn in opserver 2026-09-16 13:10:16,703 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95776102:ctest-vn4-63773383 virtual network link through opserver 10.0.0.188 2026-09-16 13:10:16,703 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-09-16 13:10:17,034 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-09-16 13:10:17,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95776102:ctest-vn4-63773383', 'href': 'http://10.0.0.188:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95776102:ctest-vn4-63773383?flat'} 2026-09-16 13:10:17,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95776102:ctest-vn4-63773383 is found in opserver 2026-09-16 13:10:17,102 - DEBUG - Do not have enough data to verify VN in agent 2026-09-16 13:10:17,109 - DEBUG - VRF ids for VN ctest-vn4-63773383: {} 2026-09-16 13:10:17,109 - DEBUG - ====Verifying data for ctest-policy1-94370386 in API_Server ====== 2026-09-16 13:10:17,110 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-16 13:10:17,116 - DEBUG - Requesting: http://10.0.0.188:8082/domain/89086857-95df-4850-b380-2d06c87d4cbe 2026-09-16 13:10:17,127 - DEBUG - Requesting: http://10.0.0.188:8082/project/a5081c85-bfd3-414c-9c25-eac651bec891 2026-09-16 13:10:17,206 - DEBUG - Requesting: http://10.0.0.188:8082/network-policy/ca07a7b4-fa75-40f4-b026-1ab3e87609ea 2026-09-16 13:10:17,218 - INFO - Verified policy ctest-policy1-94370386 in API Server, Result: True 2026-09-16 13:10:17,218 - INFO - Done with setup and verification, moving onto test .. 2026-09-16 13:10:17,229 - INFO - Deleting VN ctest-vn4-63773383 2026-09-16 13:10:17,357 - DEBUG - Response for deleting network () 2026-09-16 13:10:17,357 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/8bb967a0-4e7b-49e7-b02a-b89a78ee4a36 2026-09-16 13:10:17,363 - DEBUG - Response Code: 404 2026-09-16 13:10:17,363 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-16 13:10:17,371 - DEBUG - Requesting: http://10.0.0.188:8082/domain/89086857-95df-4850-b380-2d06c87d4cbe 2026-09-16 13:10:17,425 - DEBUG - Requesting: http://10.0.0.188:8082/project/a5081c85-bfd3-414c-9c25-eac651bec891 2026-09-16 13:10:17,502 - INFO - Validated that VN ctest-vn4-63773383 is not found in API Server 2026-09-16 13:10:17,514 - DEBUG - VN ctest-vn4-63773383 is not present in Agent 10.0.0.188 2026-09-16 13:10:17,514 - INFO - Validated that VN ctest-vn4-63773383 is not in any agent 2026-09-16 13:10:17,530 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63773383 info 2026-09-16 13:10:17,554 - INFO - Deleted policy ctest-policy1-94370386 2026-09-16 13:10:17,727 - DEBUG - policy ctest-policy1-94370386 is not found in API Server 2026-09-16 13:10:17,981 - DEBUG - No XMPP flaps were noticed during the test