2026-07-10 16:05:02,813 - INFO - Domain Default found not creating 2026-07-10 16:05:02,964 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36934211 not found, creating it 2026-07-10 16:05:03,403 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36934211, ID : 8ba27af1-a129-43f4-9572-ff76f9d42576 2026-07-10 16:05:04,927 - INFO - ================================================================================ 2026-07-10 16:05:04,927 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-10 16:05:05,184 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-10 16:05:05,184 - INFO - Initial checks done. Running the testcase now 2026-07-10 16:05:05,184 - INFO - 2026-07-10 16:05:05,184 - INFO - ================================================================================ 2026-07-10 16:05:05,184 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-10 16:05:05,184 - 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-07-10 16:05:05,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-10 16:05:05,474 - INFO - Initial checks done. Running the testcase now 2026-07-10 16:05:05,474 - INFO - 2026-07-10 16:05:05,849 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36934211:ctest-vn4-34262977, 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-36934211:ctest-vn4-34262977, 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-36934211:ctest-vn4-34262977, 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-36934211:ctest-vn4-34262977, 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-07-10 16:05:06,349 - DEBUG - Response for create_network : {'network': {'id': 'fa2c0a83-cebd-47cb-aee1-f91c737f5321', 'name': 'ctest-vn4-34262977', 'tenant_id': '8ba27af1a12943f49572ff76f9d42576', 'project_id': '8ba27af1a12943f49572ff76f9d42576', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36934211', 'ctest-vn4-34262977'], 'port_security_enabled': True, 'description': ''}} 2026-07-10 16:05:06,533 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6769342-d0dc-4d67-8d3e-0e22a21fee1e', 'name': '', 'tenant_id': '8ba27af1a12943f49572ff76f9d42576', 'network_id': 'fa2c0a83-cebd-47cb-aee1-f91c737f5321', 'ip_version': 4, 'cidr': '89.19.148.64/26', 'allocation_pools': [{'start': '89.19.148.66', 'end': '89.19.148.126'}], 'gateway_ip': '89.19.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.19.148.66', 'tags': [], 'project_id': '8ba27af1a12943f49572ff76f9d42576'}} 2026-07-10 16:05:06,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '77d7fe5b-4568-4be4-b83f-3a675df312be', 'name': '', 'tenant_id': '8ba27af1a12943f49572ff76f9d42576', 'network_id': 'fa2c0a83-cebd-47cb-aee1-f91c737f5321', 'ip_version': 6, 'cidr': '2f00:425f:72e5:5057:2e47:1fc9::/96', 'allocation_pools': [{'start': '2f00:425f:72e5:5057:2e47:1fc9:0:2', 'end': '2f00:425f:72e5:5057:2e47:1fc9:ffff:fffe'}], 'gateway_ip': '2f00:425f:72e5:5057:2e47:1fc9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f00:425f:72e5:5057:2e47:1fc9:0:2', 'tags': [], 'project_id': '8ba27af1a12943f49572ff76f9d42576'}} 2026-07-10 16:05:06,755 - INFO - Created VN ctest-vn4-34262977 2026-07-10 16:05:06,806 - DEBUG - VN ctest-vn4-34262977 UUID is fa2c0a83-cebd-47cb-aee1-f91c737f5321 2026-07-10 16:05:06,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa2c0a83-cebd-47cb-aee1-f91c737f5321', 'name': 'ctest-vn4-34262977', 'tenant_id': '8ba27af1a12943f49572ff76f9d42576', 'project_id': '8ba27af1a12943f49572ff76f9d42576', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6769342-d0dc-4d67-8d3e-0e22a21fee1e', '77d7fe5b-4568-4be4-b83f-3a675df312be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36934211', 'ctest-vn4-34262977'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36934211', 'ctest-policy1-83106189']], 'subnet_ipam': [{'subnet_cidr': '89.19.148.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f00:425f:72e5:5057:2e47:1fc9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-10 16:05:07,158 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-10 16:05:07,484 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-10 16:05:07,513 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7455f88-ab5f-44f9-982d-d33a90eba710 2026-07-10 16:05:07,525 - DEBUG - Requesting: http://10.0.0.38:8082/project/8ba27af1-a129-43f4-9572-ff76f9d42576 2026-07-10 16:05:07,596 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa2c0a83-cebd-47cb-aee1-f91c737f5321 2026-07-10 16:05:07,607 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa2c0a83-cebd-47cb-aee1-f91c737f5321 2026-07-10 16:05:07,617 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2c2e384-efb4-45ca-a765-4a4e07b31592 2026-07-10 16:05:07,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2c2e384-efb4-45ca-a765-4a4e07b31592 2026-07-10 16:05:07,631 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4c4a066b-04a3-4f4e-b6a7-fa6daf75cce7 2026-07-10 16:05:07,640 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-10 16:05:07,640 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa2c0a83-cebd-47cb-aee1-f91c737f5321 2026-07-10 16:05:07,649 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2c2e384-efb4-45ca-a765-4a4e07b31592 2026-07-10 16:05:07,664 - INFO - Verified VN network id 10 for VN fa2c0a83-cebd-47cb-aee1-f91c737f5321 2026-07-10 16:05:07,664 - INFO - Verifications in API Server for VN ctest-vn4-34262977 passed 2026-07-10 16:05:07,664 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa2c0a83-cebd-47cb-aee1-f91c737f5321 2026-07-10 16:05:07,675 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2c2e384-efb4-45ca-a765-4a4e07b31592 2026-07-10 16:05:07,682 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2c2e384-efb4-45ca-a765-4a4e07b31592 2026-07-10 16:05:07,688 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4c4a066b-04a3-4f4e-b6a7-fa6daf75cce7 2026-07-10 16:05:07,701 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36934211:ctest-vn4-34262977', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36934211', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18026794969682757579', 'uuid-lslong': '12601627132951483169'}, 'enable': 'true', 'created': '2026-07-10T16:05:06', 'last-modified': '2026-07-10T16:05:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742917'} 2026-07-10 16:05:07,707 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-10 16:05:07,707 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34262977 passed 2026-07-10 16:05:07,707 - DEBUG - ====Verifying policy data for ctest-vn4-34262977 in API_Server ====== 2026-07-10 16:05:07,707 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-10 16:05:07,712 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7455f88-ab5f-44f9-982d-d33a90eba710 2026-07-10 16:05:07,724 - DEBUG - Requesting: http://10.0.0.38:8082/project/8ba27af1-a129-43f4-9572-ff76f9d42576 2026-07-10 16:05:07,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa2c0a83-cebd-47cb-aee1-f91c737f5321 2026-07-10 16:05:07,808 - DEBUG - ==>Verifying data for policy with id: 68aebbfe-8bf2-4dca-9336-526b578b6683, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36934211', 'ctest-policy1-83106189'] 2026-07-10 16:05:07,808 - INFO - VN ctest-vn4-34262977 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-10 16:05:07,808 - DEBUG - Verifying the vn in opserver 2026-07-10 16:05:07,808 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36934211:ctest-vn4-34262977 virtual network link through opserver 10.0.0.38 2026-07-10 16:05:07,809 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-10 16:05:08,134 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-10 16:05:08,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36934211:ctest-vn4-34262977', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36934211:ctest-vn4-34262977?flat'} 2026-07-10 16:05:08,188 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36934211:ctest-vn4-34262977 is found in opserver 2026-07-10 16:05:08,199 - DEBUG - Do not have enough data to verify VN in agent 2026-07-10 16:05:08,205 - DEBUG - VRF ids for VN ctest-vn4-34262977: {} 2026-07-10 16:05:08,206 - DEBUG - ====Verifying data for ctest-policy1-83106189 in API_Server ====== 2026-07-10 16:05:08,206 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-10 16:05:08,211 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7455f88-ab5f-44f9-982d-d33a90eba710 2026-07-10 16:05:08,222 - DEBUG - Requesting: http://10.0.0.38:8082/project/8ba27af1-a129-43f4-9572-ff76f9d42576 2026-07-10 16:05:08,296 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/68aebbfe-8bf2-4dca-9336-526b578b6683 2026-07-10 16:05:08,308 - INFO - Verified policy ctest-policy1-83106189 in API Server, Result: True 2026-07-10 16:05:08,309 - INFO - Done with setup and verification, moving onto test .. 2026-07-10 16:05:08,320 - INFO - Deleting VN ctest-vn4-34262977 2026-07-10 16:05:08,453 - DEBUG - Response for deleting network () 2026-07-10 16:05:08,453 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2c2e384-efb4-45ca-a765-4a4e07b31592 2026-07-10 16:05:08,457 - DEBUG - Response Code: 404 2026-07-10 16:05:08,458 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-10 16:05:08,463 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b7455f88-ab5f-44f9-982d-d33a90eba710 2026-07-10 16:05:08,515 - DEBUG - Requesting: http://10.0.0.38:8082/project/8ba27af1-a129-43f4-9572-ff76f9d42576 2026-07-10 16:05:08,583 - INFO - Validated that VN ctest-vn4-34262977 is not found in API Server 2026-07-10 16:05:08,592 - DEBUG - VN ctest-vn4-34262977 is not present in Agent 10.0.0.38 2026-07-10 16:05:08,592 - INFO - Validated that VN ctest-vn4-34262977 is not in any agent 2026-07-10 16:05:08,604 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34262977 info 2026-07-10 16:05:08,625 - INFO - Deleted policy ctest-policy1-83106189 2026-07-10 16:05:08,786 - DEBUG - policy ctest-policy1-83106189 is not found in API Server 2026-07-10 16:05:09,040 - DEBUG - No XMPP flaps were noticed during the test