2026-09-29 20:57:45,898 - INFO - Domain Default found not creating 2026-09-29 20:57:46,076 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93884297 not found, creating it 2026-09-29 20:57:46,581 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93884297, ID : db78c4a6-38f6-450b-840d-2b3bf143c216 2026-09-29 20:57:48,390 - INFO - ================================================================================ 2026-09-29 20:57:48,390 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-29 20:57:48,665 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-29 20:57:48,665 - INFO - Initial checks done. Running the testcase now 2026-09-29 20:57:48,665 - INFO - 2026-09-29 20:57:48,665 - INFO - ================================================================================ 2026-09-29 20:57:48,665 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-29 20:57:48,665 - 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-29 20:57:48,964 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-29 20:57:48,964 - INFO - Initial checks done. Running the testcase now 2026-09-29 20:57:48,964 - INFO - 2026-09-29 20:57:49,392 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93884297:ctest-vn4-53216546, 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-93884297:ctest-vn4-53216546, 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-93884297:ctest-vn4-53216546, 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-93884297:ctest-vn4-53216546, 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-29 20:57:49,958 - DEBUG - Response for create_network : {'network': {'id': '5391cb55-dc81-4b55-a88d-9d37770990b2', 'name': 'ctest-vn4-53216546', 'tenant_id': 'db78c4a638f6450b840d2b3bf143c216', 'project_id': 'db78c4a638f6450b840d2b3bf143c216', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93884297', 'ctest-vn4-53216546'], 'port_security_enabled': True, 'description': ''}} 2026-09-29 20:57:50,157 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c05fa17f-3c1c-4d71-8071-fe5ffaba87b4', 'name': '', 'tenant_id': 'db78c4a638f6450b840d2b3bf143c216', 'network_id': '5391cb55-dc81-4b55-a88d-9d37770990b2', 'ip_version': 4, 'cidr': '152.32.18.64/26', 'allocation_pools': [{'start': '152.32.18.66', 'end': '152.32.18.126'}], 'gateway_ip': '152.32.18.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.32.18.66', 'tags': [], 'project_id': 'db78c4a638f6450b840d2b3bf143c216'}} 2026-09-29 20:57:50,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '659a753d-f45f-444a-831e-4bb7c9f1253d', 'name': '', 'tenant_id': 'db78c4a638f6450b840d2b3bf143c216', 'network_id': '5391cb55-dc81-4b55-a88d-9d37770990b2', 'ip_version': 6, 'cidr': '2c2a:70f8:f0ea:ecde:fc71:87a0::/96', 'allocation_pools': [{'start': '2c2a:70f8:f0ea:ecde:fc71:87a0:0:2', 'end': '2c2a:70f8:f0ea:ecde:fc71:87a0:ffff:fffe'}], 'gateway_ip': '2c2a:70f8:f0ea:ecde:fc71:87a0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c2a:70f8:f0ea:ecde:fc71:87a0:0:2', 'tags': [], 'project_id': 'db78c4a638f6450b840d2b3bf143c216'}} 2026-09-29 20:57:50,410 - INFO - Created VN ctest-vn4-53216546 2026-09-29 20:57:50,467 - DEBUG - VN ctest-vn4-53216546 UUID is 5391cb55-dc81-4b55-a88d-9d37770990b2 2026-09-29 20:57:50,693 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5391cb55-dc81-4b55-a88d-9d37770990b2', 'name': 'ctest-vn4-53216546', 'tenant_id': 'db78c4a638f6450b840d2b3bf143c216', 'project_id': 'db78c4a638f6450b840d2b3bf143c216', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c05fa17f-3c1c-4d71-8071-fe5ffaba87b4', '659a753d-f45f-444a-831e-4bb7c9f1253d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93884297', 'ctest-vn4-53216546'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93884297', 'ctest-policy1-85834038']], 'subnet_ipam': [{'subnet_cidr': '152.32.18.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c2a:70f8:f0ea:ecde:fc71:87a0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-29 20:57:50,863 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 20:57:51,263 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 20:57:51,293 - DEBUG - Requesting: http://10.0.0.189:8082/domain/8c231197-5be0-4015-8248-1a4b3ef18244 2026-09-29 20:57:51,307 - DEBUG - Requesting: http://10.0.0.189:8082/project/db78c4a6-38f6-450b-840d-2b3bf143c216 2026-09-29 20:57:51,389 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5391cb55-dc81-4b55-a88d-9d37770990b2 2026-09-29 20:57:51,403 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5391cb55-dc81-4b55-a88d-9d37770990b2 2026-09-29 20:57:51,413 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/c7cbb5a0-e37f-46d2-90ad-5cff94a12b0e 2026-09-29 20:57:51,422 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/c7cbb5a0-e37f-46d2-90ad-5cff94a12b0e 2026-09-29 20:57:51,429 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/2a894c5e-7a1d-4d58-b940-5c93d6d5c823 2026-09-29 20:57:51,438 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-29 20:57:51,438 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5391cb55-dc81-4b55-a88d-9d37770990b2 2026-09-29 20:57:51,449 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/c7cbb5a0-e37f-46d2-90ad-5cff94a12b0e 2026-09-29 20:57:51,466 - INFO - Verified VN network id 12 for VN 5391cb55-dc81-4b55-a88d-9d37770990b2 2026-09-29 20:57:51,466 - INFO - Verifications in API Server for VN ctest-vn4-53216546 passed 2026-09-29 20:57:51,466 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5391cb55-dc81-4b55-a88d-9d37770990b2 2026-09-29 20:57:51,477 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/c7cbb5a0-e37f-46d2-90ad-5cff94a12b0e 2026-09-29 20:57:51,486 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/c7cbb5a0-e37f-46d2-90ad-5cff94a12b0e 2026-09-29 20:57:51,493 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/2a894c5e-7a1d-4d58-b940-5c93d6d5c823 2026-09-29 20:57:51,509 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93884297:ctest-vn4-53216546', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93884297', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6021817746403183445', 'uuid-lslong': '12145536631633973426'}, 'enable': 'true', 'created': '2026-09-29T20:57:49', 'last-modified': '2026-09-29T20:57:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.847901'} 2026-09-29 20:57:51,519 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-29 20:57:51,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53216546 passed 2026-09-29 20:57:51,519 - DEBUG - ====Verifying policy data for ctest-vn4-53216546 in API_Server ====== 2026-09-29 20:57:51,519 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 20:57:51,526 - DEBUG - Requesting: http://10.0.0.189:8082/domain/8c231197-5be0-4015-8248-1a4b3ef18244 2026-09-29 20:57:51,538 - DEBUG - Requesting: http://10.0.0.189:8082/project/db78c4a6-38f6-450b-840d-2b3bf143c216 2026-09-29 20:57:51,614 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5391cb55-dc81-4b55-a88d-9d37770990b2 2026-09-29 20:57:51,625 - DEBUG - ==>Verifying data for policy with id: a94d4e81-1b26-4d63-b9c5-f5dbf89220cb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93884297', 'ctest-policy1-85834038'] 2026-09-29 20:57:51,625 - INFO - VN ctest-vn4-53216546 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-29 20:57:51,625 - DEBUG - Verifying the vn in opserver 2026-09-29 20:57:51,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93884297:ctest-vn4-53216546 virtual network link through opserver 10.0.0.189 2026-09-29 20:57:51,625 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-29 20:57:52,005 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-29 20:57:52,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93884297:ctest-vn4-53216546', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93884297:ctest-vn4-53216546?flat'} 2026-09-29 20:57:52,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93884297:ctest-vn4-53216546 is found in opserver 2026-09-29 20:57:52,078 - DEBUG - Do not have enough data to verify VN in agent 2026-09-29 20:57:52,084 - DEBUG - VRF ids for VN ctest-vn4-53216546: {} 2026-09-29 20:57:52,085 - DEBUG - ====Verifying data for ctest-policy1-85834038 in API_Server ====== 2026-09-29 20:57:52,085 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 20:57:52,091 - DEBUG - Requesting: http://10.0.0.189:8082/domain/8c231197-5be0-4015-8248-1a4b3ef18244 2026-09-29 20:57:52,105 - DEBUG - Requesting: http://10.0.0.189:8082/project/db78c4a6-38f6-450b-840d-2b3bf143c216 2026-09-29 20:57:52,190 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/a94d4e81-1b26-4d63-b9c5-f5dbf89220cb 2026-09-29 20:57:52,202 - INFO - Verified policy ctest-policy1-85834038 in API Server, Result: True 2026-09-29 20:57:52,202 - INFO - Done with setup and verification, moving onto test .. 2026-09-29 20:57:52,212 - INFO - Deleting VN ctest-vn4-53216546 2026-09-29 20:57:52,355 - DEBUG - Response for deleting network () 2026-09-29 20:57:52,355 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/c7cbb5a0-e37f-46d2-90ad-5cff94a12b0e 2026-09-29 20:57:52,361 - DEBUG - Response Code: 404 2026-09-29 20:57:52,362 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 20:57:52,370 - DEBUG - Requesting: http://10.0.0.189:8082/domain/8c231197-5be0-4015-8248-1a4b3ef18244 2026-09-29 20:57:52,429 - DEBUG - Requesting: http://10.0.0.189:8082/project/db78c4a6-38f6-450b-840d-2b3bf143c216 2026-09-29 20:57:52,509 - INFO - Validated that VN ctest-vn4-53216546 is not found in API Server 2026-09-29 20:57:52,522 - DEBUG - VN ctest-vn4-53216546 is not present in Agent 10.0.0.189 2026-09-29 20:57:52,522 - INFO - Validated that VN ctest-vn4-53216546 is not in any agent 2026-09-29 20:57:52,542 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53216546 info 2026-09-29 20:57:52,572 - INFO - Deleted policy ctest-policy1-85834038 2026-09-29 20:57:52,759 - DEBUG - policy ctest-policy1-85834038 is not found in API Server 2026-09-29 20:57:53,027 - DEBUG - No XMPP flaps were noticed during the test 2026-09-29 20:57:53,027 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-29 20:57:53,027 - INFO - -------------------------------------------------------------------------------- 2026-09-29 20:57:53,328 - DEBUG - No XMPP flaps were noticed during the test 2026-09-29 20:57:53,328 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-29 20:57:53,328 - INFO - -------------------------------------------------------------------------------- 2026-09-29 20:57:54,126 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93884297, ID : db78c4a6-38f6-450b-840d-2b3bf143c216