2025-11-05 08:21:08,856 - INFO - Domain Default found not creating 2025-11-05 08:21:09,023 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85056445 not found, creating it 2025-11-05 08:21:09,469 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85056445, ID : 61814388-6175-4bda-9a69-bc68bba8874f 2025-11-05 08:21:11,044 - INFO - ================================================================================ 2025-11-05 08:21:11,044 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 08:21:11,311 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-11-05 08:21:11,311 - INFO - Initial checks done. Running the testcase now 2025-11-05 08:21:11,311 - INFO - 2025-11-05 08:21:11,311 - INFO - ================================================================================ 2025-11-05 08:21:11,311 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 08:21:11,311 - 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-11-05 08:21:11,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-11-05 08:21:11,607 - INFO - Initial checks done. Running the testcase now 2025-11-05 08:21:11,607 - INFO - 2025-11-05 08:21:11,970 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85056445:ctest-vn4-79463317, 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-85056445:ctest-vn4-79463317, 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-85056445:ctest-vn4-79463317, 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-85056445:ctest-vn4-79463317, 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-11-05 08:21:12,499 - DEBUG - Response for create_network : {'network': {'id': 'fec6b64b-e62e-49f4-8e60-cd5d0f06df0d', 'name': 'ctest-vn4-79463317', 'tenant_id': '6181438861754bda9a69bc68bba8874f', 'project_id': '6181438861754bda9a69bc68bba8874f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85056445', 'ctest-vn4-79463317'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:21:12,713 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd7e82b0-4800-4f91-8fb7-717addb98fb3', 'name': '', 'tenant_id': '6181438861754bda9a69bc68bba8874f', 'network_id': 'fec6b64b-e62e-49f4-8e60-cd5d0f06df0d', 'ip_version': 4, 'cidr': '68.46.225.0/26', 'allocation_pools': [{'start': '68.46.225.2', 'end': '68.46.225.62'}], 'gateway_ip': '68.46.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.46.225.2', 'tags': [], 'project_id': '6181438861754bda9a69bc68bba8874f'}} 2025-11-05 08:21:12,927 - DEBUG - Response for create_subnet : {'subnet': {'id': '84488bea-1fa2-498c-bd2b-9cf9b9d529fb', 'name': '', 'tenant_id': '6181438861754bda9a69bc68bba8874f', 'network_id': 'fec6b64b-e62e-49f4-8e60-cd5d0f06df0d', 'ip_version': 6, 'cidr': '25f1:69eb:23eb:c6f3:eec8:b542::/96', 'allocation_pools': [{'start': '25f1:69eb:23eb:c6f3:eec8:b542:0:2', 'end': '25f1:69eb:23eb:c6f3:eec8:b542:ffff:fffe'}], 'gateway_ip': '25f1:69eb:23eb:c6f3:eec8:b542:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25f1:69eb:23eb:c6f3:eec8:b542:0:2', 'tags': [], 'project_id': '6181438861754bda9a69bc68bba8874f'}} 2025-11-05 08:21:12,943 - INFO - Created VN ctest-vn4-79463317 2025-11-05 08:21:12,994 - DEBUG - VN ctest-vn4-79463317 UUID is fec6b64b-e62e-49f4-8e60-cd5d0f06df0d 2025-11-05 08:21:13,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fec6b64b-e62e-49f4-8e60-cd5d0f06df0d', 'name': 'ctest-vn4-79463317', 'tenant_id': '6181438861754bda9a69bc68bba8874f', 'project_id': '6181438861754bda9a69bc68bba8874f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd7e82b0-4800-4f91-8fb7-717addb98fb3', '84488bea-1fa2-498c-bd2b-9cf9b9d529fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85056445', 'ctest-vn4-79463317'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85056445', 'ctest-policy1-23334743']], 'subnet_ipam': [{'subnet_cidr': '68.46.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25f1:69eb:23eb:c6f3:eec8:b542::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:21:13,362 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 08:21:13,700 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 08:21:13,729 - DEBUG - Requesting: http://10.0.0.22:8082/domain/450edf14-d25c-496d-8095-cac6e98aa5a6 2025-11-05 08:21:13,742 - DEBUG - Requesting: http://10.0.0.22:8082/project/61814388-6175-4bda-9a69-bc68bba8874f 2025-11-05 08:21:13,814 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fec6b64b-e62e-49f4-8e60-cd5d0f06df0d 2025-11-05 08:21:13,825 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fec6b64b-e62e-49f4-8e60-cd5d0f06df0d 2025-11-05 08:21:13,835 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/045a9fef-25e0-4e69-af8d-d7778e20a29c 2025-11-05 08:21:13,843 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/045a9fef-25e0-4e69-af8d-d7778e20a29c 2025-11-05 08:21:13,849 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ccf888cc-c1b8-43f2-b7df-07ff544ef0c7 2025-11-05 08:21:13,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 08:21:13,857 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fec6b64b-e62e-49f4-8e60-cd5d0f06df0d 2025-11-05 08:21:13,866 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/045a9fef-25e0-4e69-af8d-d7778e20a29c 2025-11-05 08:21:13,880 - INFO - Verified VN network id 11 for VN fec6b64b-e62e-49f4-8e60-cd5d0f06df0d 2025-11-05 08:21:13,881 - INFO - Verifications in API Server for VN ctest-vn4-79463317 passed 2025-11-05 08:21:13,881 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fec6b64b-e62e-49f4-8e60-cd5d0f06df0d 2025-11-05 08:21:13,890 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/045a9fef-25e0-4e69-af8d-d7778e20a29c 2025-11-05 08:21:13,897 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/045a9fef-25e0-4e69-af8d-d7778e20a29c 2025-11-05 08:21:13,903 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ccf888cc-c1b8-43f2-b7df-07ff544ef0c7 2025-11-05 08:21:13,913 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85056445:ctest-vn4-79463317', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85056445', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18358561368123001332', 'uuid-lslong': '10259425750717751053'}, 'enable': 'true', 'created': '2025-11-05T08:21:12', 'last-modified': '2025-11-05T08:21:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750195'} 2025-11-05 08:21:13,918 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 08:21:13,918 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79463317 passed 2025-11-05 08:21:13,919 - DEBUG - ====Verifying policy data for ctest-vn4-79463317 in API_Server ====== 2025-11-05 08:21:13,919 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 08:21:13,923 - DEBUG - Requesting: http://10.0.0.22:8082/domain/450edf14-d25c-496d-8095-cac6e98aa5a6 2025-11-05 08:21:13,933 - DEBUG - Requesting: http://10.0.0.22:8082/project/61814388-6175-4bda-9a69-bc68bba8874f 2025-11-05 08:21:14,002 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fec6b64b-e62e-49f4-8e60-cd5d0f06df0d 2025-11-05 08:21:14,011 - DEBUG - ==>Verifying data for policy with id: 5603fd08-c5a5-4125-bbb2-967ddf1a1015, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85056445', 'ctest-policy1-23334743'] 2025-11-05 08:21:14,011 - INFO - VN ctest-vn4-79463317 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 08:21:14,011 - DEBUG - Verifying the vn in opserver 2025-11-05 08:21:14,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85056445:ctest-vn4-79463317 virtual network link through opserver 10.0.0.22 2025-11-05 08:21:14,012 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-05 08:21:14,324 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-05 08:21:14,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85056445:ctest-vn4-79463317', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85056445:ctest-vn4-79463317?flat'} 2025-11-05 08:21:14,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85056445:ctest-vn4-79463317 is found in opserver 2025-11-05 08:21:14,396 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 08:21:14,400 - DEBUG - VRF ids for VN ctest-vn4-79463317: {} 2025-11-05 08:21:14,400 - DEBUG - ====Verifying data for ctest-policy1-23334743 in API_Server ====== 2025-11-05 08:21:14,400 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 08:21:14,406 - DEBUG - Requesting: http://10.0.0.22:8082/domain/450edf14-d25c-496d-8095-cac6e98aa5a6 2025-11-05 08:21:14,417 - DEBUG - Requesting: http://10.0.0.22:8082/project/61814388-6175-4bda-9a69-bc68bba8874f 2025-11-05 08:21:14,493 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/5603fd08-c5a5-4125-bbb2-967ddf1a1015 2025-11-05 08:21:14,501 - INFO - Verified policy ctest-policy1-23334743 in API Server, Result: True 2025-11-05 08:21:14,501 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 08:21:14,510 - INFO - Deleting VN ctest-vn4-79463317 2025-11-05 08:21:14,623 - DEBUG - Response for deleting network () 2025-11-05 08:21:14,623 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/045a9fef-25e0-4e69-af8d-d7778e20a29c 2025-11-05 08:21:14,627 - DEBUG - Response Code: 404 2025-11-05 08:21:14,628 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 08:21:14,632 - DEBUG - Requesting: http://10.0.0.22:8082/domain/450edf14-d25c-496d-8095-cac6e98aa5a6 2025-11-05 08:21:14,686 - DEBUG - Requesting: http://10.0.0.22:8082/project/61814388-6175-4bda-9a69-bc68bba8874f 2025-11-05 08:21:14,758 - INFO - Validated that VN ctest-vn4-79463317 is not found in API Server 2025-11-05 08:21:14,767 - DEBUG - VN ctest-vn4-79463317 is not present in Agent 10.0.0.22 2025-11-05 08:21:14,767 - INFO - Validated that VN ctest-vn4-79463317 is not in any agent 2025-11-05 08:21:14,781 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79463317 info 2025-11-05 08:21:14,803 - INFO - Deleted policy ctest-policy1-23334743 2025-11-05 08:21:14,970 - DEBUG - policy ctest-policy1-23334743 is not found in API Server 2025-11-05 08:21:15,227 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 08:21:15,227 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-05 08:21:15,227 - INFO - -------------------------------------------------------------------------------- 2025-11-05 08:21:15,527 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 08:21:15,527 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-05 08:21:15,527 - INFO - -------------------------------------------------------------------------------- 2025-11-05 08:21:16,721 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85056445, ID : 61814388-6175-4bda-9a69-bc68bba8874f