2025-08-13 16:19:36,386 - INFO - Domain Default found not creating 2025-08-13 16:19:36,513 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11174768 not found, creating it 2025-08-13 16:19:36,940 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11174768, ID : 52e13639-3967-4db2-aa3f-947e07726425 2025-08-13 16:19:38,253 - INFO - ================================================================================ 2025-08-13 16:19:38,253 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 16:19:38,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-08-13 16:19:38,502 - INFO - Initial checks done. Running the testcase now 2025-08-13 16:19:38,502 - INFO - 2025-08-13 16:19:38,502 - INFO - ================================================================================ 2025-08-13 16:19:38,503 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 16:19:38,503 - 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-13 16:19:38,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-08-13 16:19:38,789 - INFO - Initial checks done. Running the testcase now 2025-08-13 16:19:38,789 - INFO - 2025-08-13 16:19:39,128 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11174768:ctest-vn4-21271439, 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-11174768:ctest-vn4-21271439, 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-11174768:ctest-vn4-21271439, 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-11174768:ctest-vn4-21271439, 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-13 16:19:39,631 - DEBUG - Response for create_network : {'network': {'id': 'fcc7efe2-c3c2-40ee-89f5-62110596b739', 'name': 'ctest-vn4-21271439', 'tenant_id': '52e1363939674db2aa3f947e07726425', 'project_id': '52e1363939674db2aa3f947e07726425', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11174768', 'ctest-vn4-21271439'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 16:19:39,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '37d6753e-2eee-4d46-b09a-9d3a46cbf591', 'name': '', 'tenant_id': '52e1363939674db2aa3f947e07726425', 'network_id': 'fcc7efe2-c3c2-40ee-89f5-62110596b739', 'ip_version': 4, 'cidr': '189.130.9.128/26', 'allocation_pools': [{'start': '189.130.9.130', 'end': '189.130.9.190'}], 'gateway_ip': '189.130.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.130.9.130', 'tags': [], 'project_id': '52e1363939674db2aa3f947e07726425'}} 2025-08-13 16:19:40,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '5053eb3a-6b8f-459f-a845-8a6fe745a549', 'name': '', 'tenant_id': '52e1363939674db2aa3f947e07726425', 'network_id': 'fcc7efe2-c3c2-40ee-89f5-62110596b739', 'ip_version': 6, 'cidr': '327f:8924:f31a:82d5:5f70:94d7::/96', 'allocation_pools': [{'start': '327f:8924:f31a:82d5:5f70:94d7:0:2', 'end': '327f:8924:f31a:82d5:5f70:94d7:ffff:fffe'}], 'gateway_ip': '327f:8924:f31a:82d5:5f70:94d7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '327f:8924:f31a:82d5:5f70:94d7:0:2', 'tags': [], 'project_id': '52e1363939674db2aa3f947e07726425'}} 2025-08-13 16:19:40,020 - INFO - Created VN ctest-vn4-21271439 2025-08-13 16:19:40,072 - DEBUG - VN ctest-vn4-21271439 UUID is fcc7efe2-c3c2-40ee-89f5-62110596b739 2025-08-13 16:19:40,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcc7efe2-c3c2-40ee-89f5-62110596b739', 'name': 'ctest-vn4-21271439', 'tenant_id': '52e1363939674db2aa3f947e07726425', 'project_id': '52e1363939674db2aa3f947e07726425', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37d6753e-2eee-4d46-b09a-9d3a46cbf591', '5053eb3a-6b8f-459f-a845-8a6fe745a549'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11174768', 'ctest-vn4-21271439'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11174768', 'ctest-policy1-98268131']], 'subnet_ipam': [{'subnet_cidr': '189.130.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '327f:8924:f31a:82d5:5f70:94d7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-13 16:19:40,420 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-13 16:19:40,706 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-13 16:19:40,731 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ac08d4ca-91b8-46c5-9155-78fa4210b49f 2025-08-13 16:19:40,744 - DEBUG - Requesting: http://10.0.0.27:8082/project/52e13639-3967-4db2-aa3f-947e07726425 2025-08-13 16:19:40,815 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc7efe2-c3c2-40ee-89f5-62110596b739 2025-08-13 16:19:40,827 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc7efe2-c3c2-40ee-89f5-62110596b739 2025-08-13 16:19:40,836 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c64a6096-8033-4cef-bbd1-4ead78b0b3e1 2025-08-13 16:19:40,842 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c64a6096-8033-4cef-bbd1-4ead78b0b3e1 2025-08-13 16:19:40,848 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8dcea70d-4168-48b9-8d6e-29a5f38dbcd2 2025-08-13 16:19:40,854 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 16:19:40,854 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc7efe2-c3c2-40ee-89f5-62110596b739 2025-08-13 16:19:40,863 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c64a6096-8033-4cef-bbd1-4ead78b0b3e1 2025-08-13 16:19:40,874 - INFO - Verified VN network id 12 for VN fcc7efe2-c3c2-40ee-89f5-62110596b739 2025-08-13 16:19:40,875 - INFO - Verifications in API Server for VN ctest-vn4-21271439 passed 2025-08-13 16:19:40,875 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc7efe2-c3c2-40ee-89f5-62110596b739 2025-08-13 16:19:40,884 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c64a6096-8033-4cef-bbd1-4ead78b0b3e1 2025-08-13 16:19:40,892 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c64a6096-8033-4cef-bbd1-4ead78b0b3e1 2025-08-13 16:19:40,897 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8dcea70d-4168-48b9-8d6e-29a5f38dbcd2 2025-08-13 16:19:40,908 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11174768:ctest-vn4-21271439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11174768', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18214790975149195502', 'uuid-lslong': '9940959577737967417'}, 'enable': 'true', 'created': '2025-08-13T16:19:39', 'last-modified': '2025-08-13T16:19:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676775'} 2025-08-13 16:19:40,914 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 16:19:40,914 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21271439 passed 2025-08-13 16:19:40,915 - DEBUG - ====Verifying policy data for ctest-vn4-21271439 in API_Server ====== 2025-08-13 16:19:40,915 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-13 16:19:40,919 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ac08d4ca-91b8-46c5-9155-78fa4210b49f 2025-08-13 16:19:40,929 - DEBUG - Requesting: http://10.0.0.27:8082/project/52e13639-3967-4db2-aa3f-947e07726425 2025-08-13 16:19:41,001 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc7efe2-c3c2-40ee-89f5-62110596b739 2025-08-13 16:19:41,011 - DEBUG - ==>Verifying data for policy with id: ce3f6aac-203e-4f39-ad88-37732f34d6a4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11174768', 'ctest-policy1-98268131'] 2025-08-13 16:19:41,011 - INFO - VN ctest-vn4-21271439 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-13 16:19:41,011 - DEBUG - Verifying the vn in opserver 2025-08-13 16:19:41,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11174768:ctest-vn4-21271439 virtual network link through opserver 10.0.0.27 2025-08-13 16:19:41,011 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-13 16:19:41,296 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-13 16:19:41,343 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11174768:ctest-vn4-21271439', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11174768:ctest-vn4-21271439?flat'} 2025-08-13 16:19:41,343 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11174768:ctest-vn4-21271439 is found in opserver 2025-08-13 16:19:41,353 - DEBUG - Do not have enough data to verify VN in agent 2025-08-13 16:19:41,358 - DEBUG - VRF ids for VN ctest-vn4-21271439: {} 2025-08-13 16:19:41,359 - DEBUG - ====Verifying data for ctest-policy1-98268131 in API_Server ====== 2025-08-13 16:19:41,359 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-13 16:19:41,364 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ac08d4ca-91b8-46c5-9155-78fa4210b49f 2025-08-13 16:19:41,374 - DEBUG - Requesting: http://10.0.0.27:8082/project/52e13639-3967-4db2-aa3f-947e07726425 2025-08-13 16:19:41,443 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/ce3f6aac-203e-4f39-ad88-37732f34d6a4 2025-08-13 16:19:41,453 - INFO - Verified policy ctest-policy1-98268131 in API Server, Result: True 2025-08-13 16:19:41,453 - INFO - Done with setup and verification, moving onto test .. 2025-08-13 16:19:41,461 - INFO - Deleting VN ctest-vn4-21271439 2025-08-13 16:19:41,561 - DEBUG - Response for deleting network () 2025-08-13 16:19:41,562 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c64a6096-8033-4cef-bbd1-4ead78b0b3e1 2025-08-13 16:19:41,566 - DEBUG - Response Code: 404 2025-08-13 16:19:41,566 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-13 16:19:41,570 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ac08d4ca-91b8-46c5-9155-78fa4210b49f 2025-08-13 16:19:41,621 - DEBUG - Requesting: http://10.0.0.27:8082/project/52e13639-3967-4db2-aa3f-947e07726425 2025-08-13 16:19:41,688 - INFO - Validated that VN ctest-vn4-21271439 is not found in API Server 2025-08-13 16:19:41,698 - DEBUG - VN ctest-vn4-21271439 is not present in Agent 10.0.0.27 2025-08-13 16:19:41,699 - INFO - Validated that VN ctest-vn4-21271439 is not in any agent 2025-08-13 16:19:41,712 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21271439 info 2025-08-13 16:19:41,735 - INFO - Deleted policy ctest-policy1-98268131 2025-08-13 16:19:41,896 - DEBUG - policy ctest-policy1-98268131 is not found in API Server 2025-08-13 16:19:42,150 - DEBUG - No XMPP flaps were noticed during the test 2025-08-13 16:19:42,150 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-13 16:19:42,150 - INFO - -------------------------------------------------------------------------------- 2025-08-13 16:19:42,437 - DEBUG - No XMPP flaps were noticed during the test 2025-08-13 16:19:42,437 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-13 16:19:42,437 - INFO - -------------------------------------------------------------------------------- 2025-08-13 16:19:43,101 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11174768, ID : 52e13639-3967-4db2-aa3f-947e07726425