2025-08-22 22:24:30,230 - INFO - Domain Default found not creating 2025-08-22 22:24:30,528 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96139401 not found, creating it 2025-08-22 22:24:31,188 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96139401, ID : 3ae7b467-3491-4ee2-8582-10a56b117dba 2025-08-22 22:24:33,005 - INFO - ================================================================================ 2025-08-22 22:24:33,005 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-22 22:24:33,331 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-22 22:24:33,331 - INFO - Initial checks done. Running the testcase now 2025-08-22 22:24:33,331 - INFO - 2025-08-22 22:24:33,332 - INFO - ================================================================================ 2025-08-22 22:24:33,332 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-22 22:24:33,332 - 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-08-22 22:24:33,665 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-22 22:24:33,665 - INFO - Initial checks done. Running the testcase now 2025-08-22 22:24:33,666 - INFO - 2025-08-22 22:24:34,145 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96139401:ctest-vn4-63736261, 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-96139401:ctest-vn4-63736261, 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-96139401:ctest-vn4-63736261, 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-96139401:ctest-vn4-63736261, 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-08-22 22:24:34,868 - DEBUG - Response for create_network : {'network': {'id': '6d5c6a0f-61bd-4fb1-b3bc-0fc454864189', 'name': 'ctest-vn4-63736261', 'tenant_id': '3ae7b46734914ee2858210a56b117dba', 'project_id': '3ae7b46734914ee2858210a56b117dba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96139401', 'ctest-vn4-63736261'], 'port_security_enabled': True, 'description': ''}} 2025-08-22 22:24:35,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d00b910-50ee-4b70-8311-1226ca3204f4', 'name': '', 'tenant_id': '3ae7b46734914ee2858210a56b117dba', 'network_id': '6d5c6a0f-61bd-4fb1-b3bc-0fc454864189', 'ip_version': 4, 'cidr': '215.115.102.0/26', 'allocation_pools': [{'start': '215.115.102.2', 'end': '215.115.102.62'}], 'gateway_ip': '215.115.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.115.102.2', 'tags': [], 'project_id': '3ae7b46734914ee2858210a56b117dba'}} 2025-08-22 22:24:35,349 - DEBUG - Response for create_subnet : {'subnet': {'id': '68ace23d-adf0-430c-b2d7-7cd0057a369a', 'name': '', 'tenant_id': '3ae7b46734914ee2858210a56b117dba', 'network_id': '6d5c6a0f-61bd-4fb1-b3bc-0fc454864189', 'ip_version': 6, 'cidr': '2998:4f6f:f42a:7ea4:1094:5d51::/96', 'allocation_pools': [{'start': '2998:4f6f:f42a:7ea4:1094:5d51:0:2', 'end': '2998:4f6f:f42a:7ea4:1094:5d51:ffff:fffe'}], 'gateway_ip': '2998:4f6f:f42a:7ea4:1094:5d51:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2998:4f6f:f42a:7ea4:1094:5d51:0:2', 'tags': [], 'project_id': '3ae7b46734914ee2858210a56b117dba'}} 2025-08-22 22:24:35,376 - INFO - Created VN ctest-vn4-63736261 2025-08-22 22:24:35,432 - DEBUG - VN ctest-vn4-63736261 UUID is 6d5c6a0f-61bd-4fb1-b3bc-0fc454864189 2025-08-22 22:24:35,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d5c6a0f-61bd-4fb1-b3bc-0fc454864189', 'name': 'ctest-vn4-63736261', 'tenant_id': '3ae7b46734914ee2858210a56b117dba', 'project_id': '3ae7b46734914ee2858210a56b117dba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d00b910-50ee-4b70-8311-1226ca3204f4', '68ace23d-adf0-430c-b2d7-7cd0057a369a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96139401', 'ctest-vn4-63736261'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96139401', 'ctest-policy1-42637981']], 'subnet_ipam': [{'subnet_cidr': '215.115.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2998:4f6f:f42a:7ea4:1094:5d51::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-22 22:24:35,864 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 22:24:36,158 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 22:24:36,196 - DEBUG - Requesting: http://10.0.0.254:8082/domain/753e6ff0-4d1a-4e49-ab0e-251036bab123 2025-08-22 22:24:36,222 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ae7b467-3491-4ee2-8582-10a56b117dba 2025-08-22 22:24:36,304 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d5c6a0f-61bd-4fb1-b3bc-0fc454864189 2025-08-22 22:24:36,317 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d5c6a0f-61bd-4fb1-b3bc-0fc454864189 2025-08-22 22:24:36,329 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/64f384f7-f11b-4ab6-bb20-7d1070f88fb0 2025-08-22 22:24:36,336 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/64f384f7-f11b-4ab6-bb20-7d1070f88fb0 2025-08-22 22:24:36,343 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8d0c18a-7c5e-40a2-aeeb-6e97c495a777 2025-08-22 22:24:36,350 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-22 22:24:36,350 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d5c6a0f-61bd-4fb1-b3bc-0fc454864189 2025-08-22 22:24:36,359 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/64f384f7-f11b-4ab6-bb20-7d1070f88fb0 2025-08-22 22:24:36,373 - INFO - Verified VN network id 11 for VN 6d5c6a0f-61bd-4fb1-b3bc-0fc454864189 2025-08-22 22:24:36,373 - INFO - Verifications in API Server for VN ctest-vn4-63736261 passed 2025-08-22 22:24:36,373 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d5c6a0f-61bd-4fb1-b3bc-0fc454864189 2025-08-22 22:24:36,382 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/64f384f7-f11b-4ab6-bb20-7d1070f88fb0 2025-08-22 22:24:36,388 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/64f384f7-f11b-4ab6-bb20-7d1070f88fb0 2025-08-22 22:24:36,395 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8d0c18a-7c5e-40a2-aeeb-6e97c495a777 2025-08-22 22:24:36,406 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96139401:ctest-vn4-63736261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96139401', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7880290062288375729', 'uuid-lslong': '12951243964316795273'}, 'enable': 'true', 'created': '2025-08-22T22:24:34', 'last-modified': '2025-08-22T22:24:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.772940'} 2025-08-22 22:24:36,413 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-22 22:24:36,413 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63736261 passed 2025-08-22 22:24:36,413 - DEBUG - ====Verifying policy data for ctest-vn4-63736261 in API_Server ====== 2025-08-22 22:24:36,413 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 22:24:36,418 - DEBUG - Requesting: http://10.0.0.254:8082/domain/753e6ff0-4d1a-4e49-ab0e-251036bab123 2025-08-22 22:24:36,430 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ae7b467-3491-4ee2-8582-10a56b117dba 2025-08-22 22:24:36,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6d5c6a0f-61bd-4fb1-b3bc-0fc454864189 2025-08-22 22:24:36,534 - DEBUG - ==>Verifying data for policy with id: 00d55cd7-7f58-4ed7-8e1b-7c7917c94608, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96139401', 'ctest-policy1-42637981'] 2025-08-22 22:24:36,534 - INFO - VN ctest-vn4-63736261 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-22 22:24:36,534 - DEBUG - Verifying the vn in opserver 2025-08-22 22:24:36,534 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96139401:ctest-vn4-63736261 virtual network link through opserver 10.0.0.254 2025-08-22 22:24:36,535 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-22 22:24:36,828 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-22 22:24:36,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96139401:ctest-vn4-63736261', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96139401:ctest-vn4-63736261?flat'} 2025-08-22 22:24:36,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96139401:ctest-vn4-63736261 is found in opserver 2025-08-22 22:24:37,028 - DEBUG - Do not have enough data to verify VN in agent 2025-08-22 22:24:37,050 - DEBUG - VRF ids for VN ctest-vn4-63736261: {} 2025-08-22 22:24:37,052 - DEBUG - ====Verifying data for ctest-policy1-42637981 in API_Server ====== 2025-08-22 22:24:37,052 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 22:24:37,063 - DEBUG - Requesting: http://10.0.0.254:8082/domain/753e6ff0-4d1a-4e49-ab0e-251036bab123 2025-08-22 22:24:37,083 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ae7b467-3491-4ee2-8582-10a56b117dba 2025-08-22 22:24:37,171 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/00d55cd7-7f58-4ed7-8e1b-7c7917c94608 2025-08-22 22:24:37,197 - INFO - Verified policy ctest-policy1-42637981 in API Server, Result: True 2025-08-22 22:24:37,198 - INFO - Done with setup and verification, moving onto test .. 2025-08-22 22:24:37,213 - INFO - Deleting VN ctest-vn4-63736261 2025-08-22 22:24:37,392 - DEBUG - Response for deleting network () 2025-08-22 22:24:37,392 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/64f384f7-f11b-4ab6-bb20-7d1070f88fb0 2025-08-22 22:24:37,397 - DEBUG - Response Code: 404 2025-08-22 22:24:37,397 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 22:24:37,402 - DEBUG - Requesting: http://10.0.0.254:8082/domain/753e6ff0-4d1a-4e49-ab0e-251036bab123 2025-08-22 22:24:37,468 - DEBUG - Requesting: http://10.0.0.254:8082/project/3ae7b467-3491-4ee2-8582-10a56b117dba 2025-08-22 22:24:37,551 - INFO - Validated that VN ctest-vn4-63736261 is not found in API Server 2025-08-22 22:24:37,573 - DEBUG - VN ctest-vn4-63736261 is not present in Agent 10.0.0.254 2025-08-22 22:24:37,573 - INFO - Validated that VN ctest-vn4-63736261 is not in any agent 2025-08-22 22:24:37,604 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63736261 info 2025-08-22 22:24:37,639 - INFO - Deleted policy ctest-policy1-42637981 2025-08-22 22:24:37,835 - DEBUG - policy ctest-policy1-42637981 is not found in API Server 2025-08-22 22:24:38,149 - DEBUG - No XMPP flaps were noticed during the test