2026-01-29 18:48:07,854 - INFO - Domain Default found not creating 2026-01-29 18:48:08,250 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98302407 not found, creating it 2026-01-29 18:48:08,943 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98302407, ID : 9c33d12f-86b3-4054-90ca-97c97cbd6f10 2026-01-29 18:48:11,141 - INFO - ================================================================================ 2026-01-29 18:48:11,141 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 18:48:11,440 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-01-29 18:48:11,440 - INFO - Initial checks done. Running the testcase now 2026-01-29 18:48:11,440 - INFO - 2026-01-29 18:48:11,440 - INFO - ================================================================================ 2026-01-29 18:48:11,440 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 18:48:11,440 - 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-01-29 18:48:11,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-01-29 18:48:11,754 - INFO - Initial checks done. Running the testcase now 2026-01-29 18:48:11,754 - INFO - 2026-01-29 18:48:12,230 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98302407:ctest-vn4-82344900, 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-98302407:ctest-vn4-82344900, 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-98302407:ctest-vn4-82344900, 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-98302407:ctest-vn4-82344900, 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-01-29 18:48:12,912 - DEBUG - Response for create_network : {'network': {'id': '511f8934-cd35-48e7-90a1-109c6358b5a5', 'name': 'ctest-vn4-82344900', 'tenant_id': '9c33d12f86b3405490ca97c97cbd6f10', 'project_id': '9c33d12f86b3405490ca97c97cbd6f10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98302407', 'ctest-vn4-82344900'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 18:48:13,114 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b567a381-096a-4a2d-a210-9def0f19f124', 'name': '', 'tenant_id': '9c33d12f86b3405490ca97c97cbd6f10', 'network_id': '511f8934-cd35-48e7-90a1-109c6358b5a5', 'ip_version': 4, 'cidr': '14.66.172.192/26', 'allocation_pools': [{'start': '14.66.172.194', 'end': '14.66.172.254'}], 'gateway_ip': '14.66.172.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.66.172.194', 'tags': [], 'project_id': '9c33d12f86b3405490ca97c97cbd6f10'}} 2026-01-29 18:48:13,322 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4024bd4-afa7-4f5b-b59e-dd16fd3ce013', 'name': '', 'tenant_id': '9c33d12f86b3405490ca97c97cbd6f10', 'network_id': '511f8934-cd35-48e7-90a1-109c6358b5a5', 'ip_version': 6, 'cidr': '2eff:dbac:9609:42b7:bbe9:91df::/96', 'allocation_pools': [{'start': '2eff:dbac:9609:42b7:bbe9:91df:0:2', 'end': '2eff:dbac:9609:42b7:bbe9:91df:ffff:fffe'}], 'gateway_ip': '2eff:dbac:9609:42b7:bbe9:91df:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2eff:dbac:9609:42b7:bbe9:91df:0:2', 'tags': [], 'project_id': '9c33d12f86b3405490ca97c97cbd6f10'}} 2026-01-29 18:48:13,350 - INFO - Created VN ctest-vn4-82344900 2026-01-29 18:48:13,406 - DEBUG - VN ctest-vn4-82344900 UUID is 511f8934-cd35-48e7-90a1-109c6358b5a5 2026-01-29 18:48:13,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '511f8934-cd35-48e7-90a1-109c6358b5a5', 'name': 'ctest-vn4-82344900', 'tenant_id': '9c33d12f86b3405490ca97c97cbd6f10', 'project_id': '9c33d12f86b3405490ca97c97cbd6f10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b567a381-096a-4a2d-a210-9def0f19f124', 'e4024bd4-afa7-4f5b-b59e-dd16fd3ce013'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98302407', 'ctest-vn4-82344900'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98302407', 'ctest-policy1-85424489']], 'subnet_ipam': [{'subnet_cidr': '14.66.172.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2eff:dbac:9609:42b7:bbe9:91df::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 18:48:13,851 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-29 18:48:14,207 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-29 18:48:14,258 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0e2b9175-8307-4231-973e-cdccdfafbf23 2026-01-29 18:48:14,276 - DEBUG - Requesting: http://10.0.0.129:8082/project/9c33d12f-86b3-4054-90ca-97c97cbd6f10 2026-01-29 18:48:14,386 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/511f8934-cd35-48e7-90a1-109c6358b5a5 2026-01-29 18:48:14,407 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/511f8934-cd35-48e7-90a1-109c6358b5a5 2026-01-29 18:48:14,426 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9bea8ad5-6b5a-467e-89c6-68a4ff98c989 2026-01-29 18:48:14,440 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9bea8ad5-6b5a-467e-89c6-68a4ff98c989 2026-01-29 18:48:14,453 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/0abd0e32-e25b-436e-81e9-3ee692fae108 2026-01-29 18:48:14,466 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 18:48:14,467 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/511f8934-cd35-48e7-90a1-109c6358b5a5 2026-01-29 18:48:14,488 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9bea8ad5-6b5a-467e-89c6-68a4ff98c989 2026-01-29 18:48:14,518 - INFO - Verified VN network id 11 for VN 511f8934-cd35-48e7-90a1-109c6358b5a5 2026-01-29 18:48:14,519 - INFO - Verifications in API Server for VN ctest-vn4-82344900 passed 2026-01-29 18:48:14,519 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/511f8934-cd35-48e7-90a1-109c6358b5a5 2026-01-29 18:48:14,536 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9bea8ad5-6b5a-467e-89c6-68a4ff98c989 2026-01-29 18:48:14,546 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9bea8ad5-6b5a-467e-89c6-68a4ff98c989 2026-01-29 18:48:14,558 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/0abd0e32-e25b-436e-81e9-3ee692fae108 2026-01-29 18:48:14,576 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98302407:ctest-vn4-82344900', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98302407', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5845541701224319207', 'uuid-lslong': '10421629276579739045'}, 'enable': 'true', 'created': '2026-01-29T18:48:12', 'last-modified': '2026-01-29T18:48:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947877'} 2026-01-29 18:48:14,584 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 18:48:14,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82344900 passed 2026-01-29 18:48:14,584 - DEBUG - ====Verifying policy data for ctest-vn4-82344900 in API_Server ====== 2026-01-29 18:48:14,585 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-29 18:48:14,591 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0e2b9175-8307-4231-973e-cdccdfafbf23 2026-01-29 18:48:14,610 - DEBUG - Requesting: http://10.0.0.129:8082/project/9c33d12f-86b3-4054-90ca-97c97cbd6f10 2026-01-29 18:48:14,704 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/511f8934-cd35-48e7-90a1-109c6358b5a5 2026-01-29 18:48:14,720 - DEBUG - ==>Verifying data for policy with id: 5db5aa6e-fc6c-4881-bfd0-0f9e58393d4a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98302407', 'ctest-policy1-85424489'] 2026-01-29 18:48:14,720 - INFO - VN ctest-vn4-82344900 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 18:48:14,720 - DEBUG - Verifying the vn in opserver 2026-01-29 18:48:14,720 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98302407:ctest-vn4-82344900 virtual network link through opserver 10.0.0.129 2026-01-29 18:48:14,721 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-01-29 18:48:15,042 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-01-29 18:48:15,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98302407:ctest-vn4-82344900', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98302407:ctest-vn4-82344900?flat'} 2026-01-29 18:48:15,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98302407:ctest-vn4-82344900 is found in opserver 2026-01-29 18:48:15,173 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 18:48:15,186 - DEBUG - VRF ids for VN ctest-vn4-82344900: {} 2026-01-29 18:48:15,187 - DEBUG - ====Verifying data for ctest-policy1-85424489 in API_Server ====== 2026-01-29 18:48:15,187 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-29 18:48:15,200 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0e2b9175-8307-4231-973e-cdccdfafbf23 2026-01-29 18:48:15,225 - DEBUG - Requesting: http://10.0.0.129:8082/project/9c33d12f-86b3-4054-90ca-97c97cbd6f10 2026-01-29 18:48:15,330 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/5db5aa6e-fc6c-4881-bfd0-0f9e58393d4a 2026-01-29 18:48:15,352 - INFO - Verified policy ctest-policy1-85424489 in API Server, Result: True 2026-01-29 18:48:15,352 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 18:48:15,366 - INFO - Deleting VN ctest-vn4-82344900 2026-01-29 18:48:15,543 - DEBUG - Response for deleting network () 2026-01-29 18:48:15,543 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9bea8ad5-6b5a-467e-89c6-68a4ff98c989 2026-01-29 18:48:15,549 - DEBUG - Response Code: 404 2026-01-29 18:48:15,549 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-29 18:48:15,555 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0e2b9175-8307-4231-973e-cdccdfafbf23 2026-01-29 18:48:15,611 - DEBUG - Requesting: http://10.0.0.129:8082/project/9c33d12f-86b3-4054-90ca-97c97cbd6f10 2026-01-29 18:48:15,706 - INFO - Validated that VN ctest-vn4-82344900 is not found in API Server 2026-01-29 18:48:15,723 - DEBUG - VN ctest-vn4-82344900 is not present in Agent 10.0.0.129 2026-01-29 18:48:15,723 - INFO - Validated that VN ctest-vn4-82344900 is not in any agent 2026-01-29 18:48:15,743 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82344900 info 2026-01-29 18:48:15,786 - INFO - Deleted policy ctest-policy1-85424489 2026-01-29 18:48:15,982 - DEBUG - policy ctest-policy1-85424489 is not found in API Server 2026-01-29 18:48:16,274 - DEBUG - No XMPP flaps were noticed during the test