2026-11-07 07:58:08,354 - INFO - Domain Default found not creating 2026-11-07 07:58:08,539 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66881327 not found, creating it 2026-11-07 07:58:09,011 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66881327, ID : fde3df91-afd9-41bd-9c47-fb5220255048 2026-11-07 07:58:10,617 - INFO - ================================================================================ 2026-11-07 07:58:10,617 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-07 07:58:10,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-11-07 07:58:10,870 - INFO - Initial checks done. Running the testcase now 2026-11-07 07:58:10,871 - INFO - 2026-11-07 07:58:10,871 - INFO - ================================================================================ 2026-11-07 07:58:10,871 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-07 07:58:10,871 - 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-11-07 07:58:11,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-11-07 07:58:11,163 - INFO - Initial checks done. Running the testcase now 2026-11-07 07:58:11,163 - INFO - 2026-11-07 07:58:11,552 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66881327:ctest-vn4-09661194, 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-66881327:ctest-vn4-09661194, 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-66881327:ctest-vn4-09661194, 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-66881327:ctest-vn4-09661194, 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-11-07 07:58:12,061 - DEBUG - Response for create_network : {'network': {'id': '79836732-cbef-4881-ac0e-c8f8ec9b96ea', 'name': 'ctest-vn4-09661194', 'tenant_id': 'fde3df91afd941bd9c47fb5220255048', 'project_id': 'fde3df91afd941bd9c47fb5220255048', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66881327', 'ctest-vn4-09661194'], 'port_security_enabled': True, 'description': ''}} 2026-11-07 07:58:12,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e52618a4-27a8-4f28-97fe-7b8f49b50d31', 'name': '', 'tenant_id': 'fde3df91afd941bd9c47fb5220255048', 'network_id': '79836732-cbef-4881-ac0e-c8f8ec9b96ea', 'ip_version': 4, 'cidr': '119.245.94.64/26', 'allocation_pools': [{'start': '119.245.94.66', 'end': '119.245.94.126'}], 'gateway_ip': '119.245.94.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.245.94.66', 'tags': [], 'project_id': 'fde3df91afd941bd9c47fb5220255048'}} 2026-11-07 07:58:12,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '42930807-4ebd-4685-bc89-82beef9b0e21', 'name': '', 'tenant_id': 'fde3df91afd941bd9c47fb5220255048', 'network_id': '79836732-cbef-4881-ac0e-c8f8ec9b96ea', 'ip_version': 6, 'cidr': '2347:2e93:cf78:a31c:4ddb:381::/96', 'allocation_pools': [{'start': '2347:2e93:cf78:a31c:4ddb:381:0:2', 'end': '2347:2e93:cf78:a31c:4ddb:381:ffff:fffe'}], 'gateway_ip': '2347:2e93:cf78:a31c:4ddb:381:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2347:2e93:cf78:a31c:4ddb:381:0:2', 'tags': [], 'project_id': 'fde3df91afd941bd9c47fb5220255048'}} 2026-11-07 07:58:12,490 - INFO - Created VN ctest-vn4-09661194 2026-11-07 07:58:12,545 - DEBUG - VN ctest-vn4-09661194 UUID is 79836732-cbef-4881-ac0e-c8f8ec9b96ea 2026-11-07 07:58:12,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79836732-cbef-4881-ac0e-c8f8ec9b96ea', 'name': 'ctest-vn4-09661194', 'tenant_id': 'fde3df91afd941bd9c47fb5220255048', 'project_id': 'fde3df91afd941bd9c47fb5220255048', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e52618a4-27a8-4f28-97fe-7b8f49b50d31', '42930807-4ebd-4685-bc89-82beef9b0e21'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66881327', 'ctest-vn4-09661194'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66881327', 'ctest-policy1-52272712']], 'subnet_ipam': [{'subnet_cidr': '119.245.94.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2347:2e93:cf78:a31c:4ddb:381::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-07 07:58:12,900 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-07 07:58:13,229 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-07 07:58:13,256 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a4d11c16-de49-4410-9823-ffdd8e9512cd 2026-11-07 07:58:13,267 - DEBUG - Requesting: http://10.0.0.177:8082/project/fde3df91-afd9-41bd-9c47-fb5220255048 2026-11-07 07:58:13,337 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/79836732-cbef-4881-ac0e-c8f8ec9b96ea 2026-11-07 07:58:13,351 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/79836732-cbef-4881-ac0e-c8f8ec9b96ea 2026-11-07 07:58:13,361 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8a52e927-079b-44d5-9f1d-aaedfdce2d83 2026-11-07 07:58:13,369 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8a52e927-079b-44d5-9f1d-aaedfdce2d83 2026-11-07 07:58:13,378 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/d4fcaecc-1222-4424-9b4c-5b083d7a1ba4 2026-11-07 07:58:13,385 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-07 07:58:13,385 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/79836732-cbef-4881-ac0e-c8f8ec9b96ea 2026-11-07 07:58:13,397 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8a52e927-079b-44d5-9f1d-aaedfdce2d83 2026-11-07 07:58:13,413 - INFO - Verified VN network id 12 for VN 79836732-cbef-4881-ac0e-c8f8ec9b96ea 2026-11-07 07:58:13,413 - INFO - Verifications in API Server for VN ctest-vn4-09661194 passed 2026-11-07 07:58:13,413 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/79836732-cbef-4881-ac0e-c8f8ec9b96ea 2026-11-07 07:58:13,425 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8a52e927-079b-44d5-9f1d-aaedfdce2d83 2026-11-07 07:58:13,433 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8a52e927-079b-44d5-9f1d-aaedfdce2d83 2026-11-07 07:58:13,443 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/d4fcaecc-1222-4424-9b4c-5b083d7a1ba4 2026-11-07 07:58:13,456 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66881327:ctest-vn4-09661194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66881327', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8755955568405858433', 'uuid-lslong': '12398067795644618474'}, 'enable': 'true', 'created': '2026-11-07T07:58:12', 'last-modified': '2026-11-07T07:58:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741022'} 2026-11-07 07:58:13,463 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-07 07:58:13,463 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09661194 passed 2026-11-07 07:58:13,463 - DEBUG - ====Verifying policy data for ctest-vn4-09661194 in API_Server ====== 2026-11-07 07:58:13,463 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-07 07:58:13,473 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a4d11c16-de49-4410-9823-ffdd8e9512cd 2026-11-07 07:58:13,485 - DEBUG - Requesting: http://10.0.0.177:8082/project/fde3df91-afd9-41bd-9c47-fb5220255048 2026-11-07 07:58:13,557 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/79836732-cbef-4881-ac0e-c8f8ec9b96ea 2026-11-07 07:58:13,569 - DEBUG - ==>Verifying data for policy with id: 60752e92-8f4d-465f-97b1-26a421094441, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66881327', 'ctest-policy1-52272712'] 2026-11-07 07:58:13,569 - INFO - VN ctest-vn4-09661194 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-07 07:58:13,569 - DEBUG - Verifying the vn in opserver 2026-11-07 07:58:13,569 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66881327:ctest-vn4-09661194 virtual network link through opserver 10.0.0.177 2026-11-07 07:58:13,570 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-07 07:58:13,917 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-07 07:58:13,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66881327:ctest-vn4-09661194', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66881327:ctest-vn4-09661194?flat'} 2026-11-07 07:58:13,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66881327:ctest-vn4-09661194 is found in opserver 2026-11-07 07:58:13,980 - DEBUG - Do not have enough data to verify VN in agent 2026-11-07 07:58:13,985 - DEBUG - VRF ids for VN ctest-vn4-09661194: {} 2026-11-07 07:58:13,985 - DEBUG - ====Verifying data for ctest-policy1-52272712 in API_Server ====== 2026-11-07 07:58:13,985 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-07 07:58:13,992 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a4d11c16-de49-4410-9823-ffdd8e9512cd 2026-11-07 07:58:14,002 - DEBUG - Requesting: http://10.0.0.177:8082/project/fde3df91-afd9-41bd-9c47-fb5220255048 2026-11-07 07:58:14,071 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/60752e92-8f4d-465f-97b1-26a421094441 2026-11-07 07:58:14,081 - INFO - Verified policy ctest-policy1-52272712 in API Server, Result: True 2026-11-07 07:58:14,081 - INFO - Done with setup and verification, moving onto test .. 2026-11-07 07:58:14,091 - INFO - Deleting VN ctest-vn4-09661194 2026-11-07 07:58:14,213 - DEBUG - Response for deleting network () 2026-11-07 07:58:14,213 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8a52e927-079b-44d5-9f1d-aaedfdce2d83 2026-11-07 07:58:14,219 - DEBUG - Response Code: 404 2026-11-07 07:58:14,219 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-07 07:58:14,224 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a4d11c16-de49-4410-9823-ffdd8e9512cd 2026-11-07 07:58:14,281 - DEBUG - Requesting: http://10.0.0.177:8082/project/fde3df91-afd9-41bd-9c47-fb5220255048 2026-11-07 07:58:14,355 - INFO - Validated that VN ctest-vn4-09661194 is not found in API Server 2026-11-07 07:58:14,365 - DEBUG - VN ctest-vn4-09661194 is not present in Agent 10.0.0.177 2026-11-07 07:58:14,365 - INFO - Validated that VN ctest-vn4-09661194 is not in any agent 2026-11-07 07:58:14,382 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09661194 info 2026-11-07 07:58:14,406 - INFO - Deleted policy ctest-policy1-52272712 2026-11-07 07:58:14,572 - DEBUG - policy ctest-policy1-52272712 is not found in API Server 2026-11-07 07:58:14,834 - DEBUG - No XMPP flaps were noticed during the test