2025-08-28 18:40:16,481 - INFO - Domain Default found not creating 2025-08-28 18:40:16,652 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44918211 not found, creating it 2025-08-28 18:40:17,116 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44918211, ID : d91f02bb-7d45-4517-94b7-95b8391461db 2025-08-28 18:40:18,661 - INFO - ================================================================================ 2025-08-28 18:40:18,661 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 18:40:18,920 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-28 18:40:18,920 - INFO - Initial checks done. Running the testcase now 2025-08-28 18:40:18,920 - INFO - 2025-08-28 18:40:18,920 - INFO - ================================================================================ 2025-08-28 18:40:18,921 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 18:40:18,921 - 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-28 18:40:19,217 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-28 18:40:19,217 - INFO - Initial checks done. Running the testcase now 2025-08-28 18:40:19,217 - INFO - 2025-08-28 18:40:19,625 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44918211:ctest-vn4-55243741, 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-44918211:ctest-vn4-55243741, 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-44918211:ctest-vn4-55243741, 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-44918211:ctest-vn4-55243741, 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-28 18:40:20,158 - DEBUG - Response for create_network : {'network': {'id': '2e0f15b7-59c4-46ab-8bda-70ccf9717e8e', 'name': 'ctest-vn4-55243741', 'tenant_id': 'd91f02bb7d45451794b795b8391461db', 'project_id': 'd91f02bb7d45451794b795b8391461db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44918211', 'ctest-vn4-55243741'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 18:40:20,332 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a37b774-a9eb-4898-9c9b-22a8206bf4b1', 'name': '', 'tenant_id': 'd91f02bb7d45451794b795b8391461db', 'network_id': '2e0f15b7-59c4-46ab-8bda-70ccf9717e8e', 'ip_version': 4, 'cidr': '125.9.140.0/26', 'allocation_pools': [{'start': '125.9.140.2', 'end': '125.9.140.62'}], 'gateway_ip': '125.9.140.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.9.140.2', 'tags': [], 'project_id': 'd91f02bb7d45451794b795b8391461db'}} 2025-08-28 18:40:20,477 - DEBUG - Response for create_subnet : {'subnet': {'id': '426b2667-34f5-47a9-9437-61c106e36c67', 'name': '', 'tenant_id': 'd91f02bb7d45451794b795b8391461db', 'network_id': '2e0f15b7-59c4-46ab-8bda-70ccf9717e8e', 'ip_version': 6, 'cidr': '34be:5f6a:5839:bd60:ca76:ca03::/96', 'allocation_pools': [{'start': '34be:5f6a:5839:bd60:ca76:ca03:0:2', 'end': '34be:5f6a:5839:bd60:ca76:ca03:ffff:fffe'}], 'gateway_ip': '34be:5f6a:5839:bd60:ca76:ca03:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34be:5f6a:5839:bd60:ca76:ca03:0:2', 'tags': [], 'project_id': 'd91f02bb7d45451794b795b8391461db'}} 2025-08-28 18:40:20,499 - INFO - Created VN ctest-vn4-55243741 2025-08-28 18:40:20,553 - DEBUG - VN ctest-vn4-55243741 UUID is 2e0f15b7-59c4-46ab-8bda-70ccf9717e8e 2025-08-28 18:40:20,769 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e0f15b7-59c4-46ab-8bda-70ccf9717e8e', 'name': 'ctest-vn4-55243741', 'tenant_id': 'd91f02bb7d45451794b795b8391461db', 'project_id': 'd91f02bb7d45451794b795b8391461db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a37b774-a9eb-4898-9c9b-22a8206bf4b1', '426b2667-34f5-47a9-9437-61c106e36c67'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44918211', 'ctest-vn4-55243741'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44918211', 'ctest-policy1-67354743']], 'subnet_ipam': [{'subnet_cidr': '125.9.140.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34be:5f6a:5839:bd60:ca76:ca03::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 18:40:20,933 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 18:40:21,237 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 18:40:21,269 - DEBUG - Requesting: http://10.0.0.254:8082/domain/eb4e0600-9558-4345-8dba-38d7c5747ae8 2025-08-28 18:40:21,281 - DEBUG - Requesting: http://10.0.0.254:8082/project/d91f02bb-7d45-4517-94b7-95b8391461db 2025-08-28 18:40:21,359 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e0f15b7-59c4-46ab-8bda-70ccf9717e8e 2025-08-28 18:40:21,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e0f15b7-59c4-46ab-8bda-70ccf9717e8e 2025-08-28 18:40:21,395 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7dce7eee-27f6-4748-a5bd-0b2da880e5d4 2025-08-28 18:40:21,405 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7dce7eee-27f6-4748-a5bd-0b2da880e5d4 2025-08-28 18:40:21,413 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c4be2ba6-0e93-4a38-9bad-54caedf94fcc 2025-08-28 18:40:21,422 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 18:40:21,423 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e0f15b7-59c4-46ab-8bda-70ccf9717e8e 2025-08-28 18:40:21,434 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7dce7eee-27f6-4748-a5bd-0b2da880e5d4 2025-08-28 18:40:21,452 - INFO - Verified VN network id 11 for VN 2e0f15b7-59c4-46ab-8bda-70ccf9717e8e 2025-08-28 18:40:21,453 - INFO - Verifications in API Server for VN ctest-vn4-55243741 passed 2025-08-28 18:40:21,453 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e0f15b7-59c4-46ab-8bda-70ccf9717e8e 2025-08-28 18:40:21,466 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7dce7eee-27f6-4748-a5bd-0b2da880e5d4 2025-08-28 18:40:21,473 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7dce7eee-27f6-4748-a5bd-0b2da880e5d4 2025-08-28 18:40:21,480 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c4be2ba6-0e93-4a38-9bad-54caedf94fcc 2025-08-28 18:40:21,495 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44918211:ctest-vn4-55243741', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44918211', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3318895327624578731', 'uuid-lslong': '10077491141855510158'}, 'enable': 'true', 'created': '2025-08-28T18:40:20', 'last-modified': '2025-08-28T18:40:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753437'} 2025-08-28 18:40:21,503 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 18:40:21,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55243741 passed 2025-08-28 18:40:21,503 - DEBUG - ====Verifying policy data for ctest-vn4-55243741 in API_Server ====== 2025-08-28 18:40:21,503 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 18:40:21,510 - DEBUG - Requesting: http://10.0.0.254:8082/domain/eb4e0600-9558-4345-8dba-38d7c5747ae8 2025-08-28 18:40:21,522 - DEBUG - Requesting: http://10.0.0.254:8082/project/d91f02bb-7d45-4517-94b7-95b8391461db 2025-08-28 18:40:21,597 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e0f15b7-59c4-46ab-8bda-70ccf9717e8e 2025-08-28 18:40:21,606 - DEBUG - ==>Verifying data for policy with id: 063bbb91-917c-4100-adbc-2987ea7cb20a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44918211', 'ctest-policy1-67354743'] 2025-08-28 18:40:21,606 - INFO - VN ctest-vn4-55243741 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 18:40:21,606 - DEBUG - Verifying the vn in opserver 2025-08-28 18:40:21,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44918211:ctest-vn4-55243741 virtual network link through opserver 10.0.0.254 2025-08-28 18:40:21,607 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-28 18:40:21,915 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-28 18:40:21,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44918211:ctest-vn4-55243741', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44918211:ctest-vn4-55243741?flat'} 2025-08-28 18:40:21,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44918211:ctest-vn4-55243741 is found in opserver 2025-08-28 18:40:21,998 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 18:40:22,003 - DEBUG - VRF ids for VN ctest-vn4-55243741: {} 2025-08-28 18:40:22,003 - DEBUG - ====Verifying data for ctest-policy1-67354743 in API_Server ====== 2025-08-28 18:40:22,003 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 18:40:22,009 - DEBUG - Requesting: http://10.0.0.254:8082/domain/eb4e0600-9558-4345-8dba-38d7c5747ae8 2025-08-28 18:40:22,021 - DEBUG - Requesting: http://10.0.0.254:8082/project/d91f02bb-7d45-4517-94b7-95b8391461db 2025-08-28 18:40:22,098 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/063bbb91-917c-4100-adbc-2987ea7cb20a 2025-08-28 18:40:22,108 - INFO - Verified policy ctest-policy1-67354743 in API Server, Result: True 2025-08-28 18:40:22,109 - INFO - Done with setup and verification, moving onto test .. 2025-08-28 18:40:22,119 - INFO - Deleting VN ctest-vn4-55243741 2025-08-28 18:40:22,277 - DEBUG - Response for deleting network () 2025-08-28 18:40:22,277 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7dce7eee-27f6-4748-a5bd-0b2da880e5d4 2025-08-28 18:40:22,284 - DEBUG - Response Code: 404 2025-08-28 18:40:22,284 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 18:40:22,291 - DEBUG - Requesting: http://10.0.0.254:8082/domain/eb4e0600-9558-4345-8dba-38d7c5747ae8 2025-08-28 18:40:22,347 - DEBUG - Requesting: http://10.0.0.254:8082/project/d91f02bb-7d45-4517-94b7-95b8391461db 2025-08-28 18:40:22,421 - INFO - Validated that VN ctest-vn4-55243741 is not found in API Server 2025-08-28 18:40:22,431 - DEBUG - VN ctest-vn4-55243741 is not present in Agent 10.0.0.254 2025-08-28 18:40:22,431 - INFO - Validated that VN ctest-vn4-55243741 is not in any agent 2025-08-28 18:40:22,448 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55243741 info 2025-08-28 18:40:22,475 - INFO - Deleted policy ctest-policy1-67354743 2025-08-28 18:40:22,641 - DEBUG - policy ctest-policy1-67354743 is not found in API Server 2025-08-28 18:40:22,913 - DEBUG - No XMPP flaps were noticed during the test