2026-11-29 11:42:26,894 - INFO - Domain Default found not creating 2026-11-29 11:42:27,082 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80545691 not found, creating it 2026-11-29 11:42:27,564 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80545691, ID : b2f6a5a6-87e4-45e0-b3bf-c306b9073505 2026-11-29 11:42:29,328 - INFO - ================================================================================ 2026-11-29 11:42:29,329 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-29 11:42:29,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-11-29 11:42:29,599 - INFO - Initial checks done. Running the testcase now 2026-11-29 11:42:29,599 - INFO - 2026-11-29 11:42:29,599 - INFO - ================================================================================ 2026-11-29 11:42:29,599 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-29 11:42:29,599 - 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-29 11:42:29,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-11-29 11:42:29,887 - INFO - Initial checks done. Running the testcase now 2026-11-29 11:42:29,887 - INFO - 2026-11-29 11:42:30,315 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80545691:ctest-vn4-16559157, 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-80545691:ctest-vn4-16559157, 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-80545691:ctest-vn4-16559157, 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-80545691:ctest-vn4-16559157, 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-29 11:42:30,836 - DEBUG - Response for create_network : {'network': {'id': '78062f66-5da5-45ac-a482-9a373c5f0459', 'name': 'ctest-vn4-16559157', 'tenant_id': 'b2f6a5a687e445e0b3bfc306b9073505', 'project_id': 'b2f6a5a687e445e0b3bfc306b9073505', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80545691', 'ctest-vn4-16559157'], 'port_security_enabled': True, 'description': ''}} 2026-11-29 11:42:31,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '15d82c09-c61a-4fff-98c3-6934e3e94880', 'name': '', 'tenant_id': 'b2f6a5a687e445e0b3bfc306b9073505', 'network_id': '78062f66-5da5-45ac-a482-9a373c5f0459', 'ip_version': 4, 'cidr': '165.178.157.64/26', 'allocation_pools': [{'start': '165.178.157.66', 'end': '165.178.157.126'}], 'gateway_ip': '165.178.157.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.178.157.66', 'tags': [], 'project_id': 'b2f6a5a687e445e0b3bfc306b9073505'}} 2026-11-29 11:42:31,255 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc4ad9fe-d6e2-4156-8f48-ecb573763dff', 'name': '', 'tenant_id': 'b2f6a5a687e445e0b3bfc306b9073505', 'network_id': '78062f66-5da5-45ac-a482-9a373c5f0459', 'ip_version': 6, 'cidr': '2987:9f0f:16e2:4c5a:126c:cb1e::/96', 'allocation_pools': [{'start': '2987:9f0f:16e2:4c5a:126c:cb1e:0:2', 'end': '2987:9f0f:16e2:4c5a:126c:cb1e:ffff:fffe'}], 'gateway_ip': '2987:9f0f:16e2:4c5a:126c:cb1e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2987:9f0f:16e2:4c5a:126c:cb1e:0:2', 'tags': [], 'project_id': 'b2f6a5a687e445e0b3bfc306b9073505'}} 2026-11-29 11:42:31,274 - INFO - Created VN ctest-vn4-16559157 2026-11-29 11:42:31,326 - DEBUG - VN ctest-vn4-16559157 UUID is 78062f66-5da5-45ac-a482-9a373c5f0459 2026-11-29 11:42:31,550 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78062f66-5da5-45ac-a482-9a373c5f0459', 'name': 'ctest-vn4-16559157', 'tenant_id': 'b2f6a5a687e445e0b3bfc306b9073505', 'project_id': 'b2f6a5a687e445e0b3bfc306b9073505', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['15d82c09-c61a-4fff-98c3-6934e3e94880', 'bc4ad9fe-d6e2-4156-8f48-ecb573763dff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80545691', 'ctest-vn4-16559157'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80545691', 'ctest-policy1-99575186']], 'subnet_ipam': [{'subnet_cidr': '165.178.157.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2987:9f0f:16e2:4c5a:126c:cb1e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-29 11:42:31,722 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-29 11:42:32,089 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-29 11:42:32,125 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a86b2a40-de9e-4131-80d1-bb612881caf7 2026-11-29 11:42:32,139 - DEBUG - Requesting: http://10.0.0.161:8082/project/b2f6a5a6-87e4-45e0-b3bf-c306b9073505 2026-11-29 11:42:32,211 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/78062f66-5da5-45ac-a482-9a373c5f0459 2026-11-29 11:42:32,223 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/78062f66-5da5-45ac-a482-9a373c5f0459 2026-11-29 11:42:32,233 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b6bd4694-2a0c-4496-aef0-8217793d06c4 2026-11-29 11:42:32,240 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b6bd4694-2a0c-4496-aef0-8217793d06c4 2026-11-29 11:42:32,246 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/5b1f564c-897c-4949-a89a-98ee8e250090 2026-11-29 11:42:32,252 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-29 11:42:32,252 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/78062f66-5da5-45ac-a482-9a373c5f0459 2026-11-29 11:42:32,262 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b6bd4694-2a0c-4496-aef0-8217793d06c4 2026-11-29 11:42:32,278 - INFO - Verified VN network id 12 for VN 78062f66-5da5-45ac-a482-9a373c5f0459 2026-11-29 11:42:32,279 - INFO - Verifications in API Server for VN ctest-vn4-16559157 passed 2026-11-29 11:42:32,279 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/78062f66-5da5-45ac-a482-9a373c5f0459 2026-11-29 11:42:32,288 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b6bd4694-2a0c-4496-aef0-8217793d06c4 2026-11-29 11:42:32,296 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b6bd4694-2a0c-4496-aef0-8217793d06c4 2026-11-29 11:42:32,304 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/5b1f564c-897c-4949-a89a-98ee8e250090 2026-11-29 11:42:32,318 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80545691:ctest-vn4-16559157', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80545691', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8648652251115898284', 'uuid-lslong': '11854206731219305561'}, 'enable': 'true', 'created': '2026-11-29T11:42:30', 'last-modified': '2026-11-29T11:42:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.797395'} 2026-11-29 11:42:32,325 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-29 11:42:32,325 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16559157 passed 2026-11-29 11:42:32,325 - DEBUG - ====Verifying policy data for ctest-vn4-16559157 in API_Server ====== 2026-11-29 11:42:32,325 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-29 11:42:32,331 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a86b2a40-de9e-4131-80d1-bb612881caf7 2026-11-29 11:42:32,342 - DEBUG - Requesting: http://10.0.0.161:8082/project/b2f6a5a6-87e4-45e0-b3bf-c306b9073505 2026-11-29 11:42:32,416 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/78062f66-5da5-45ac-a482-9a373c5f0459 2026-11-29 11:42:32,426 - DEBUG - ==>Verifying data for policy with id: 395663c9-aa3d-4325-8622-7ec713a09e69, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80545691', 'ctest-policy1-99575186'] 2026-11-29 11:42:32,426 - INFO - VN ctest-vn4-16559157 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-29 11:42:32,426 - DEBUG - Verifying the vn in opserver 2026-11-29 11:42:32,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80545691:ctest-vn4-16559157 virtual network link through opserver 10.0.0.161 2026-11-29 11:42:32,426 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-29 11:42:32,794 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-29 11:42:32,850 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80545691:ctest-vn4-16559157', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80545691:ctest-vn4-16559157?flat'} 2026-11-29 11:42:32,850 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80545691:ctest-vn4-16559157 is found in opserver 2026-11-29 11:42:32,860 - DEBUG - Do not have enough data to verify VN in agent 2026-11-29 11:42:32,865 - DEBUG - VRF ids for VN ctest-vn4-16559157: {} 2026-11-29 11:42:32,865 - DEBUG - ====Verifying data for ctest-policy1-99575186 in API_Server ====== 2026-11-29 11:42:32,865 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-29 11:42:32,871 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a86b2a40-de9e-4131-80d1-bb612881caf7 2026-11-29 11:42:32,883 - DEBUG - Requesting: http://10.0.0.161:8082/project/b2f6a5a6-87e4-45e0-b3bf-c306b9073505 2026-11-29 11:42:32,954 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/395663c9-aa3d-4325-8622-7ec713a09e69 2026-11-29 11:42:32,964 - INFO - Verified policy ctest-policy1-99575186 in API Server, Result: True 2026-11-29 11:42:32,964 - INFO - Done with setup and verification, moving onto test .. 2026-11-29 11:42:32,974 - INFO - Deleting VN ctest-vn4-16559157 2026-11-29 11:42:33,124 - DEBUG - Response for deleting network () 2026-11-29 11:42:33,124 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b6bd4694-2a0c-4496-aef0-8217793d06c4 2026-11-29 11:42:33,129 - DEBUG - Response Code: 404 2026-11-29 11:42:33,129 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-29 11:42:33,134 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a86b2a40-de9e-4131-80d1-bb612881caf7 2026-11-29 11:42:33,187 - DEBUG - Requesting: http://10.0.0.161:8082/project/b2f6a5a6-87e4-45e0-b3bf-c306b9073505 2026-11-29 11:42:33,257 - INFO - Validated that VN ctest-vn4-16559157 is not found in API Server 2026-11-29 11:42:33,268 - DEBUG - VN ctest-vn4-16559157 is not present in Agent 10.0.0.161 2026-11-29 11:42:33,268 - INFO - Validated that VN ctest-vn4-16559157 is not in any agent 2026-11-29 11:42:33,283 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16559157 info 2026-11-29 11:42:33,316 - INFO - Deleted policy ctest-policy1-99575186 2026-11-29 11:42:33,478 - DEBUG - policy ctest-policy1-99575186 is not found in API Server 2026-11-29 11:42:33,736 - DEBUG - No XMPP flaps were noticed during the test