2025-10-15 12:44:43,729 - INFO - Domain Default found not creating 2025-10-15 12:44:43,857 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66506211 not found, creating it 2025-10-15 12:44:44,276 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66506211, ID : 0f800fc3-93ea-4010-8d8a-9d0b3970419b 2025-10-15 12:44:45,639 - INFO - ================================================================================ 2025-10-15 12:44:45,639 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-15 12:44:45,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.145': '0'}} with 2025-10-15 12:44:45,892 - INFO - Initial checks done. Running the testcase now 2025-10-15 12:44:45,892 - INFO - 2025-10-15 12:44:45,892 - INFO - ================================================================================ 2025-10-15 12:44:45,892 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-15 12:44:45,892 - 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-10-15 12:44:46,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.145': '0'}} with 2025-10-15 12:44:46,183 - INFO - Initial checks done. Running the testcase now 2025-10-15 12:44:46,183 - INFO - 2025-10-15 12:44:46,530 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66506211:ctest-vn4-88564181, 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-66506211:ctest-vn4-88564181, 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-66506211:ctest-vn4-88564181, 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-66506211:ctest-vn4-88564181, 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-10-15 12:44:47,011 - DEBUG - Response for create_network : {'network': {'id': '1fbb12ee-ab09-4e77-bbf2-242f2beaebc2', 'name': 'ctest-vn4-88564181', 'tenant_id': '0f800fc393ea40108d8a9d0b3970419b', 'project_id': '0f800fc393ea40108d8a9d0b3970419b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66506211', 'ctest-vn4-88564181'], 'port_security_enabled': True, 'description': ''}} 2025-10-15 12:44:47,208 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0ba39ed-3e38-450e-98ea-01d31878e1c1', 'name': '', 'tenant_id': '0f800fc393ea40108d8a9d0b3970419b', 'network_id': '1fbb12ee-ab09-4e77-bbf2-242f2beaebc2', 'ip_version': 4, 'cidr': '170.93.231.192/26', 'allocation_pools': [{'start': '170.93.231.194', 'end': '170.93.231.254'}], 'gateway_ip': '170.93.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.93.231.194', 'tags': [], 'project_id': '0f800fc393ea40108d8a9d0b3970419b'}} 2025-10-15 12:44:47,412 - DEBUG - Response for create_subnet : {'subnet': {'id': '4500d55a-0e8a-4748-9d0a-0cdb5255541a', 'name': '', 'tenant_id': '0f800fc393ea40108d8a9d0b3970419b', 'network_id': '1fbb12ee-ab09-4e77-bbf2-242f2beaebc2', 'ip_version': 6, 'cidr': '3705:1eb6:524b:13a:e630:21e2::/96', 'allocation_pools': [{'start': '3705:1eb6:524b:13a:e630:21e2:0:2', 'end': '3705:1eb6:524b:13a:e630:21e2:ffff:fffe'}], 'gateway_ip': '3705:1eb6:524b:13a:e630:21e2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3705:1eb6:524b:13a:e630:21e2:0:2', 'tags': [], 'project_id': '0f800fc393ea40108d8a9d0b3970419b'}} 2025-10-15 12:44:47,437 - INFO - Created VN ctest-vn4-88564181 2025-10-15 12:44:47,487 - DEBUG - VN ctest-vn4-88564181 UUID is 1fbb12ee-ab09-4e77-bbf2-242f2beaebc2 2025-10-15 12:44:47,667 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fbb12ee-ab09-4e77-bbf2-242f2beaebc2', 'name': 'ctest-vn4-88564181', 'tenant_id': '0f800fc393ea40108d8a9d0b3970419b', 'project_id': '0f800fc393ea40108d8a9d0b3970419b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0ba39ed-3e38-450e-98ea-01d31878e1c1', '4500d55a-0e8a-4748-9d0a-0cdb5255541a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66506211', 'ctest-vn4-88564181'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66506211', 'ctest-policy1-49098885']], 'subnet_ipam': [{'subnet_cidr': '170.93.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3705:1eb6:524b:13a:e630:21e2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-15 12:44:47,839 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-15 12:44:48,146 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-15 12:44:48,172 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2dbc06a8-a315-4d0f-8b78-a4c5f1f9b3b0 2025-10-15 12:44:48,185 - DEBUG - Requesting: http://10.0.0.38:8082/project/0f800fc3-93ea-4010-8d8a-9d0b3970419b 2025-10-15 12:44:48,262 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fbb12ee-ab09-4e77-bbf2-242f2beaebc2 2025-10-15 12:44:48,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fbb12ee-ab09-4e77-bbf2-242f2beaebc2 2025-10-15 12:44:48,282 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b50bed93-f05c-4622-8620-f73f18f9fae2 2025-10-15 12:44:48,288 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b50bed93-f05c-4622-8620-f73f18f9fae2 2025-10-15 12:44:48,293 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/88df8b7f-3d7b-4b83-aca1-222f62e1ab52 2025-10-15 12:44:48,298 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 12:44:48,298 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fbb12ee-ab09-4e77-bbf2-242f2beaebc2 2025-10-15 12:44:48,306 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b50bed93-f05c-4622-8620-f73f18f9fae2 2025-10-15 12:44:48,317 - INFO - Verified VN network id 12 for VN 1fbb12ee-ab09-4e77-bbf2-242f2beaebc2 2025-10-15 12:44:48,317 - INFO - Verifications in API Server for VN ctest-vn4-88564181 passed 2025-10-15 12:44:48,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fbb12ee-ab09-4e77-bbf2-242f2beaebc2 2025-10-15 12:44:48,325 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b50bed93-f05c-4622-8620-f73f18f9fae2 2025-10-15 12:44:48,330 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b50bed93-f05c-4622-8620-f73f18f9fae2 2025-10-15 12:44:48,336 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/88df8b7f-3d7b-4b83-aca1-222f62e1ab52 2025-10-15 12:44:48,347 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66506211:ctest-vn4-88564181', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66506211', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2286442052101688951', 'uuid-lslong': '13542926814475381698'}, 'enable': 'true', 'created': '2025-10-15T12:44:46', 'last-modified': '2025-10-15T12:44:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704261'} 2025-10-15 12:44:48,352 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 12:44:48,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88564181 passed 2025-10-15 12:44:48,353 - DEBUG - ====Verifying policy data for ctest-vn4-88564181 in API_Server ====== 2025-10-15 12:44:48,353 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-15 12:44:48,357 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2dbc06a8-a315-4d0f-8b78-a4c5f1f9b3b0 2025-10-15 12:44:48,366 - DEBUG - Requesting: http://10.0.0.38:8082/project/0f800fc3-93ea-4010-8d8a-9d0b3970419b 2025-10-15 12:44:48,437 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fbb12ee-ab09-4e77-bbf2-242f2beaebc2 2025-10-15 12:44:48,445 - DEBUG - ==>Verifying data for policy with id: 5966fad9-0217-4338-b881-8506a673268d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66506211', 'ctest-policy1-49098885'] 2025-10-15 12:44:48,445 - INFO - VN ctest-vn4-88564181 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-15 12:44:48,445 - DEBUG - Verifying the vn in opserver 2025-10-15 12:44:48,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66506211:ctest-vn4-88564181 virtual network link through opserver 10.0.0.38 2025-10-15 12:44:48,445 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-15 12:44:48,736 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-15 12:44:48,792 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66506211:ctest-vn4-88564181', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66506211:ctest-vn4-88564181?flat'} 2025-10-15 12:44:48,792 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66506211:ctest-vn4-88564181 is found in opserver 2025-10-15 12:44:48,801 - DEBUG - Do not have enough data to verify VN in agent 2025-10-15 12:44:48,805 - DEBUG - VRF ids for VN ctest-vn4-88564181: {} 2025-10-15 12:44:48,806 - DEBUG - ====Verifying data for ctest-policy1-49098885 in API_Server ====== 2025-10-15 12:44:48,806 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-15 12:44:48,811 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2dbc06a8-a315-4d0f-8b78-a4c5f1f9b3b0 2025-10-15 12:44:48,821 - DEBUG - Requesting: http://10.0.0.38:8082/project/0f800fc3-93ea-4010-8d8a-9d0b3970419b 2025-10-15 12:44:48,884 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5966fad9-0217-4338-b881-8506a673268d 2025-10-15 12:44:48,892 - INFO - Verified policy ctest-policy1-49098885 in API Server, Result: True 2025-10-15 12:44:48,892 - INFO - Done with setup and verification, moving onto test .. 2025-10-15 12:44:48,898 - INFO - Deleting VN ctest-vn4-88564181 2025-10-15 12:44:49,000 - DEBUG - Response for deleting network () 2025-10-15 12:44:49,000 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b50bed93-f05c-4622-8620-f73f18f9fae2 2025-10-15 12:44:49,004 - DEBUG - Response Code: 404 2025-10-15 12:44:49,004 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-15 12:44:49,008 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2dbc06a8-a315-4d0f-8b78-a4c5f1f9b3b0 2025-10-15 12:44:49,059 - DEBUG - Requesting: http://10.0.0.38:8082/project/0f800fc3-93ea-4010-8d8a-9d0b3970419b 2025-10-15 12:44:49,127 - INFO - Validated that VN ctest-vn4-88564181 is not found in API Server 2025-10-15 12:44:49,135 - DEBUG - VN ctest-vn4-88564181 is not present in Agent 10.0.0.38 2025-10-15 12:44:49,135 - INFO - Validated that VN ctest-vn4-88564181 is not in any agent 2025-10-15 12:44:49,146 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88564181 info 2025-10-15 12:44:49,173 - INFO - Deleted policy ctest-policy1-49098885 2025-10-15 12:44:49,334 - DEBUG - policy ctest-policy1-49098885 is not found in API Server 2025-10-15 12:44:49,591 - DEBUG - No XMPP flaps were noticed during the test