2025-12-10 17:12:28,514 - INFO - Domain Default found not creating 2025-12-10 17:12:28,843 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17995065 not found, creating it 2025-12-10 17:12:29,424 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17995065, ID : d5d28654-50d0-474b-a6d8-3ebd9286a252 2025-12-10 17:12:31,502 - INFO - ================================================================================ 2025-12-10 17:12:31,502 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 17:12:31,792 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-12-10 17:12:31,792 - INFO - Initial checks done. Running the testcase now 2025-12-10 17:12:31,792 - INFO - 2025-12-10 17:12:31,792 - INFO - ================================================================================ 2025-12-10 17:12:31,793 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 17:12:31,793 - 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-12-10 17:12:32,147 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-12-10 17:12:32,147 - INFO - Initial checks done. Running the testcase now 2025-12-10 17:12:32,148 - INFO - 2025-12-10 17:12:32,619 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17995065:ctest-vn4-19142255, 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-17995065:ctest-vn4-19142255, 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-17995065:ctest-vn4-19142255, 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-17995065:ctest-vn4-19142255, 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-12-10 17:12:33,230 - DEBUG - Response for create_network : {'network': {'id': '327099e6-7d41-4a2b-9f7d-50315b3364e6', 'name': 'ctest-vn4-19142255', 'tenant_id': 'd5d2865450d0474ba6d83ebd9286a252', 'project_id': 'd5d2865450d0474ba6d83ebd9286a252', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17995065', 'ctest-vn4-19142255'], 'port_security_enabled': True, 'description': ''}} 2025-12-10 17:12:33,459 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f98e9792-07f5-400f-8df4-dab6a75105e7', 'name': '', 'tenant_id': 'd5d2865450d0474ba6d83ebd9286a252', 'network_id': '327099e6-7d41-4a2b-9f7d-50315b3364e6', 'ip_version': 4, 'cidr': '66.184.17.0/26', 'allocation_pools': [{'start': '66.184.17.2', 'end': '66.184.17.62'}], 'gateway_ip': '66.184.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.184.17.2', 'tags': [], 'project_id': 'd5d2865450d0474ba6d83ebd9286a252'}} 2025-12-10 17:12:33,727 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9bc6afc-949a-4262-b2a6-4ba916688a07', 'name': '', 'tenant_id': 'd5d2865450d0474ba6d83ebd9286a252', 'network_id': '327099e6-7d41-4a2b-9f7d-50315b3364e6', 'ip_version': 6, 'cidr': '3957:65a7:9334:c9bc:9c4d:3eed::/96', 'allocation_pools': [{'start': '3957:65a7:9334:c9bc:9c4d:3eed:0:2', 'end': '3957:65a7:9334:c9bc:9c4d:3eed:ffff:fffe'}], 'gateway_ip': '3957:65a7:9334:c9bc:9c4d:3eed:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3957:65a7:9334:c9bc:9c4d:3eed:0:2', 'tags': [], 'project_id': 'd5d2865450d0474ba6d83ebd9286a252'}} 2025-12-10 17:12:33,755 - INFO - Created VN ctest-vn4-19142255 2025-12-10 17:12:33,812 - DEBUG - VN ctest-vn4-19142255 UUID is 327099e6-7d41-4a2b-9f7d-50315b3364e6 2025-12-10 17:12:34,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '327099e6-7d41-4a2b-9f7d-50315b3364e6', 'name': 'ctest-vn4-19142255', 'tenant_id': 'd5d2865450d0474ba6d83ebd9286a252', 'project_id': 'd5d2865450d0474ba6d83ebd9286a252', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f98e9792-07f5-400f-8df4-dab6a75105e7', 'f9bc6afc-949a-4262-b2a6-4ba916688a07'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17995065', 'ctest-vn4-19142255'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17995065', 'ctest-policy1-59613254']], 'subnet_ipam': [{'subnet_cidr': '66.184.17.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3957:65a7:9334:c9bc:9c4d:3eed::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-10 17:12:34,300 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-10 17:12:34,615 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-10 17:12:34,649 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f81f2820-5db2-47cc-829c-ed26c33c1bbd 2025-12-10 17:12:34,672 - DEBUG - Requesting: http://10.0.0.19:8082/project/d5d28654-50d0-474b-a6d8-3ebd9286a252 2025-12-10 17:12:34,757 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/327099e6-7d41-4a2b-9f7d-50315b3364e6 2025-12-10 17:12:34,773 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/327099e6-7d41-4a2b-9f7d-50315b3364e6 2025-12-10 17:12:34,786 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3918f781-f334-4a8a-980a-0aa749d8206e 2025-12-10 17:12:34,794 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3918f781-f334-4a8a-980a-0aa749d8206e 2025-12-10 17:12:34,803 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/83e6e244-c73c-4ac5-b2f4-c4ac29e93812 2025-12-10 17:12:34,810 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 17:12:34,810 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/327099e6-7d41-4a2b-9f7d-50315b3364e6 2025-12-10 17:12:34,823 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3918f781-f334-4a8a-980a-0aa749d8206e 2025-12-10 17:12:34,839 - INFO - Verified VN network id 11 for VN 327099e6-7d41-4a2b-9f7d-50315b3364e6 2025-12-10 17:12:34,839 - INFO - Verifications in API Server for VN ctest-vn4-19142255 passed 2025-12-10 17:12:34,839 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/327099e6-7d41-4a2b-9f7d-50315b3364e6 2025-12-10 17:12:34,851 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3918f781-f334-4a8a-980a-0aa749d8206e 2025-12-10 17:12:34,859 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3918f781-f334-4a8a-980a-0aa749d8206e 2025-12-10 17:12:34,866 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/83e6e244-c73c-4ac5-b2f4-c4ac29e93812 2025-12-10 17:12:34,881 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17995065:ctest-vn4-19142255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17995065', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3634574114510948907', 'uuid-lslong': '11492429997033088230'}, 'enable': 'true', 'created': '2025-12-10T17:12:33', 'last-modified': '2025-12-10T17:12:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796807'} 2025-12-10 17:12:34,889 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 17:12:34,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19142255 passed 2025-12-10 17:12:34,889 - DEBUG - ====Verifying policy data for ctest-vn4-19142255 in API_Server ====== 2025-12-10 17:12:34,889 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-10 17:12:34,896 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f81f2820-5db2-47cc-829c-ed26c33c1bbd 2025-12-10 17:12:34,909 - DEBUG - Requesting: http://10.0.0.19:8082/project/d5d28654-50d0-474b-a6d8-3ebd9286a252 2025-12-10 17:12:34,981 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/327099e6-7d41-4a2b-9f7d-50315b3364e6 2025-12-10 17:12:34,992 - DEBUG - ==>Verifying data for policy with id: e5bfc6af-86d4-48a4-ab75-a3ede6434d82, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17995065', 'ctest-policy1-59613254'] 2025-12-10 17:12:34,992 - INFO - VN ctest-vn4-19142255 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-10 17:12:34,992 - DEBUG - Verifying the vn in opserver 2025-12-10 17:12:34,992 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17995065:ctest-vn4-19142255 virtual network link through opserver 10.0.0.19 2025-12-10 17:12:34,993 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-10 17:12:35,308 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-10 17:12:35,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17995065:ctest-vn4-19142255', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17995065:ctest-vn4-19142255?flat'} 2025-12-10 17:12:35,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17995065:ctest-vn4-19142255 is found in opserver 2025-12-10 17:12:35,463 - DEBUG - Do not have enough data to verify VN in agent 2025-12-10 17:12:35,473 - DEBUG - VRF ids for VN ctest-vn4-19142255: {} 2025-12-10 17:12:35,474 - DEBUG - ====Verifying data for ctest-policy1-59613254 in API_Server ====== 2025-12-10 17:12:35,474 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-10 17:12:35,484 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f81f2820-5db2-47cc-829c-ed26c33c1bbd 2025-12-10 17:12:35,507 - DEBUG - Requesting: http://10.0.0.19:8082/project/d5d28654-50d0-474b-a6d8-3ebd9286a252 2025-12-10 17:12:35,603 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/e5bfc6af-86d4-48a4-ab75-a3ede6434d82 2025-12-10 17:12:35,620 - INFO - Verified policy ctest-policy1-59613254 in API Server, Result: True 2025-12-10 17:12:35,621 - INFO - Done with setup and verification, moving onto test .. 2025-12-10 17:12:35,631 - INFO - Deleting VN ctest-vn4-19142255 2025-12-10 17:12:35,771 - DEBUG - Response for deleting network () 2025-12-10 17:12:35,771 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3918f781-f334-4a8a-980a-0aa749d8206e 2025-12-10 17:12:35,777 - DEBUG - Response Code: 404 2025-12-10 17:12:35,777 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-10 17:12:35,782 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f81f2820-5db2-47cc-829c-ed26c33c1bbd 2025-12-10 17:12:35,832 - DEBUG - Requesting: http://10.0.0.19:8082/project/d5d28654-50d0-474b-a6d8-3ebd9286a252 2025-12-10 17:12:35,915 - INFO - Validated that VN ctest-vn4-19142255 is not found in API Server 2025-12-10 17:12:35,926 - DEBUG - VN ctest-vn4-19142255 is not present in Agent 10.0.0.19 2025-12-10 17:12:35,926 - INFO - Validated that VN ctest-vn4-19142255 is not in any agent 2025-12-10 17:12:35,940 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19142255 info 2025-12-10 17:12:35,967 - INFO - Deleted policy ctest-policy1-59613254 2025-12-10 17:12:36,143 - DEBUG - policy ctest-policy1-59613254 is not found in API Server 2025-12-10 17:12:36,440 - DEBUG - No XMPP flaps were noticed during the test 2025-12-10 17:12:36,441 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-12-10 17:12:36,441 - INFO - -------------------------------------------------------------------------------- 2025-12-10 17:12:36,776 - DEBUG - No XMPP flaps were noticed during the test 2025-12-10 17:12:36,776 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-12-10 17:12:36,776 - INFO - -------------------------------------------------------------------------------- 2025-12-10 17:12:38,239 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17995065, ID : d5d28654-50d0-474b-a6d8-3ebd9286a252