2025-09-19 01:57:16,872 - INFO - Domain Default found not creating 2025-09-19 01:57:17,008 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42442178 not found, creating it 2025-09-19 01:57:17,440 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42442178, ID : d190c0af-97e6-4bd7-8ba9-ddd247aa1bb2 2025-09-19 01:57:18,800 - INFO - ================================================================================ 2025-09-19 01:57:18,800 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 01:57:19,054 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-09-19 01:57:19,055 - INFO - Initial checks done. Running the testcase now 2025-09-19 01:57:19,055 - INFO - 2025-09-19 01:57:19,055 - INFO - ================================================================================ 2025-09-19 01:57:19,055 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 01:57:19,055 - 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. 2025-09-19 01:57:19,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-09-19 01:57:19,342 - INFO - Initial checks done. Running the testcase now 2025-09-19 01:57:19,342 - INFO - 2025-09-19 01:57:19,682 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42442178:ctest-vn4-78236188, 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-42442178:ctest-vn4-78236188, 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-42442178:ctest-vn4-78236188, 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-42442178:ctest-vn4-78236188, 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] 2025-09-19 01:57:20,189 - DEBUG - Response for create_network : {'network': {'id': '50ab8173-333e-4dac-b10d-4aab590ccb23', 'name': 'ctest-vn4-78236188', 'tenant_id': 'd190c0af97e64bd78ba9ddd247aa1bb2', 'project_id': 'd190c0af97e64bd78ba9ddd247aa1bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42442178', 'ctest-vn4-78236188'], 'port_security_enabled': True, 'description': ''}} 2025-09-19 01:57:20,353 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e671a1da-167f-4421-9c34-caa8ef3fd8a2', 'name': '', 'tenant_id': 'd190c0af97e64bd78ba9ddd247aa1bb2', 'network_id': '50ab8173-333e-4dac-b10d-4aab590ccb23', 'ip_version': 4, 'cidr': '14.110.244.0/26', 'allocation_pools': [{'start': '14.110.244.2', 'end': '14.110.244.62'}], 'gateway_ip': '14.110.244.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.110.244.2', 'tags': [], 'project_id': 'd190c0af97e64bd78ba9ddd247aa1bb2'}} 2025-09-19 01:57:20,513 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da27b936-3886-4225-b56c-93a198ed3c2b', 'name': '', 'tenant_id': 'd190c0af97e64bd78ba9ddd247aa1bb2', 'network_id': '50ab8173-333e-4dac-b10d-4aab590ccb23', 'ip_version': 6, 'cidr': '3b1c:212c:4d2:4936:bfdc:4d87::/96', 'allocation_pools': [{'start': '3b1c:212c:4d2:4936:bfdc:4d87:0:2', 'end': '3b1c:212c:4d2:4936:bfdc:4d87:ffff:fffe'}], 'gateway_ip': '3b1c:212c:4d2:4936:bfdc:4d87:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b1c:212c:4d2:4936:bfdc:4d87:0:2', 'tags': [], 'project_id': 'd190c0af97e64bd78ba9ddd247aa1bb2'}} 2025-09-19 01:57:20,531 - INFO - Created VN ctest-vn4-78236188 2025-09-19 01:57:20,585 - DEBUG - VN ctest-vn4-78236188 UUID is 50ab8173-333e-4dac-b10d-4aab590ccb23 2025-09-19 01:57:20,787 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50ab8173-333e-4dac-b10d-4aab590ccb23', 'name': 'ctest-vn4-78236188', 'tenant_id': 'd190c0af97e64bd78ba9ddd247aa1bb2', 'project_id': 'd190c0af97e64bd78ba9ddd247aa1bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e671a1da-167f-4421-9c34-caa8ef3fd8a2', 'da27b936-3886-4225-b56c-93a198ed3c2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42442178', 'ctest-vn4-78236188'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42442178', 'ctest-policy1-18269300']], 'subnet_ipam': [{'subnet_cidr': '14.110.244.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b1c:212c:4d2:4936:bfdc:4d87::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-19 01:57:20,953 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 01:57:21,244 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 01:57:21,269 - DEBUG - Requesting: http://10.0.0.65:8082/domain/9c2d5c5e-40ee-45b2-ab09-97603bfe1094 2025-09-19 01:57:21,280 - DEBUG - Requesting: http://10.0.0.65:8082/project/d190c0af-97e6-4bd7-8ba9-ddd247aa1bb2 2025-09-19 01:57:21,350 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/50ab8173-333e-4dac-b10d-4aab590ccb23 2025-09-19 01:57:21,361 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/50ab8173-333e-4dac-b10d-4aab590ccb23 2025-09-19 01:57:21,370 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d0ce2d56-ff51-4501-b7f7-e56503be5708 2025-09-19 01:57:21,377 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d0ce2d56-ff51-4501-b7f7-e56503be5708 2025-09-19 01:57:21,383 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/e18e60c3-a7af-4e34-b41f-ad600de2f3f1 2025-09-19 01:57:21,390 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 01:57:21,390 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/50ab8173-333e-4dac-b10d-4aab590ccb23 2025-09-19 01:57:21,400 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d0ce2d56-ff51-4501-b7f7-e56503be5708 2025-09-19 01:57:21,415 - INFO - Verified VN network id 12 for VN 50ab8173-333e-4dac-b10d-4aab590ccb23 2025-09-19 01:57:21,416 - INFO - Verifications in API Server for VN ctest-vn4-78236188 passed 2025-09-19 01:57:21,416 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/50ab8173-333e-4dac-b10d-4aab590ccb23 2025-09-19 01:57:21,427 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d0ce2d56-ff51-4501-b7f7-e56503be5708 2025-09-19 01:57:21,436 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d0ce2d56-ff51-4501-b7f7-e56503be5708 2025-09-19 01:57:21,443 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/e18e60c3-a7af-4e34-b41f-ad600de2f3f1 2025-09-19 01:57:21,457 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42442178:ctest-vn4-78236188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42442178', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5812882075832700332', 'uuid-lslong': '12757935419204356899'}, 'enable': 'true', 'created': '2025-09-19T01:57:20', 'last-modified': '2025-09-19T01:57:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693299'} 2025-09-19 01:57:21,462 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 01:57:21,462 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78236188 passed 2025-09-19 01:57:21,463 - DEBUG - ====Verifying policy data for ctest-vn4-78236188 in API_Server ====== 2025-09-19 01:57:21,463 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 01:57:21,468 - DEBUG - Requesting: http://10.0.0.65:8082/domain/9c2d5c5e-40ee-45b2-ab09-97603bfe1094 2025-09-19 01:57:21,482 - DEBUG - Requesting: http://10.0.0.65:8082/project/d190c0af-97e6-4bd7-8ba9-ddd247aa1bb2 2025-09-19 01:57:21,552 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/50ab8173-333e-4dac-b10d-4aab590ccb23 2025-09-19 01:57:21,562 - DEBUG - ==>Verifying data for policy with id: 92f17c5f-8d47-4bc4-8b2b-14e23485f20b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42442178', 'ctest-policy1-18269300'] 2025-09-19 01:57:21,562 - INFO - VN ctest-vn4-78236188 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-19 01:57:21,563 - DEBUG - Verifying the vn in opserver 2025-09-19 01:57:21,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42442178:ctest-vn4-78236188 virtual network link through opserver 10.0.0.65 2025-09-19 01:57:21,563 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-09-19 01:57:21,852 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-09-19 01:57:21,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42442178:ctest-vn4-78236188', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42442178:ctest-vn4-78236188?flat'} 2025-09-19 01:57:21,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42442178:ctest-vn4-78236188 is found in opserver 2025-09-19 01:57:21,912 - DEBUG - Do not have enough data to verify VN in agent 2025-09-19 01:57:21,917 - DEBUG - VRF ids for VN ctest-vn4-78236188: {} 2025-09-19 01:57:21,917 - DEBUG - ====Verifying data for ctest-policy1-18269300 in API_Server ====== 2025-09-19 01:57:21,917 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 01:57:21,922 - DEBUG - Requesting: http://10.0.0.65:8082/domain/9c2d5c5e-40ee-45b2-ab09-97603bfe1094 2025-09-19 01:57:21,932 - DEBUG - Requesting: http://10.0.0.65:8082/project/d190c0af-97e6-4bd7-8ba9-ddd247aa1bb2 2025-09-19 01:57:22,002 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/92f17c5f-8d47-4bc4-8b2b-14e23485f20b 2025-09-19 01:57:22,012 - INFO - Verified policy ctest-policy1-18269300 in API Server, Result: True 2025-09-19 01:57:22,013 - INFO - Done with setup and verification, moving onto test .. 2025-09-19 01:57:22,021 - INFO - Deleting VN ctest-vn4-78236188 2025-09-19 01:57:22,142 - DEBUG - Response for deleting network () 2025-09-19 01:57:22,142 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d0ce2d56-ff51-4501-b7f7-e56503be5708 2025-09-19 01:57:22,147 - DEBUG - Response Code: 404 2025-09-19 01:57:22,147 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-09-19 01:57:22,153 - DEBUG - Requesting: http://10.0.0.65:8082/domain/9c2d5c5e-40ee-45b2-ab09-97603bfe1094 2025-09-19 01:57:22,205 - DEBUG - Requesting: http://10.0.0.65:8082/project/d190c0af-97e6-4bd7-8ba9-ddd247aa1bb2 2025-09-19 01:57:22,273 - INFO - Validated that VN ctest-vn4-78236188 is not found in API Server 2025-09-19 01:57:22,282 - DEBUG - VN ctest-vn4-78236188 is not present in Agent 10.0.0.65 2025-09-19 01:57:22,282 - INFO - Validated that VN ctest-vn4-78236188 is not in any agent 2025-09-19 01:57:22,298 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78236188 info 2025-09-19 01:57:22,321 - INFO - Deleted policy ctest-policy1-18269300 2025-09-19 01:57:22,485 - DEBUG - policy ctest-policy1-18269300 is not found in API Server 2025-09-19 01:57:22,742 - DEBUG - No XMPP flaps were noticed during the test