2025-10-22 14:13:27,652 - INFO - Domain Default found not creating 2025-10-22 14:13:27,831 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68823709 not found, creating it 2025-10-22 14:13:28,330 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68823709, ID : 68c97b17-74c2-4334-a0a2-063f123a97b4 2025-10-22 14:13:30,104 - INFO - ================================================================================ 2025-10-22 14:13:30,104 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 14:13:30,358 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0'}} with 2025-10-22 14:13:30,358 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:13:30,358 - INFO - 2025-10-22 14:13:30,358 - INFO - ================================================================================ 2025-10-22 14:13:30,358 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 14:13:30,358 - 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-10-22 14:13:30,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0'}} with 2025-10-22 14:13:30,653 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:13:30,653 - INFO - 2025-10-22 14:13:30,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68823709:ctest-vn4-51746997, 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-68823709:ctest-vn4-51746997, 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-68823709:ctest-vn4-51746997, 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-68823709:ctest-vn4-51746997, 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-10-22 14:13:31,469 - DEBUG - Response for create_network : {'network': {'id': '70ff20c5-0eb8-45ab-88f7-af7ee1b829fa', 'name': 'ctest-vn4-51746997', 'tenant_id': '68c97b1774c24334a0a2063f123a97b4', 'project_id': '68c97b1774c24334a0a2063f123a97b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68823709', 'ctest-vn4-51746997'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:13:31,624 - DEBUG - Response for create_subnet : {'subnet': {'id': '4cd124c6-1c90-4c07-aec9-2f87332f1a64', 'name': '', 'tenant_id': '68c97b1774c24334a0a2063f123a97b4', 'network_id': '70ff20c5-0eb8-45ab-88f7-af7ee1b829fa', 'ip_version': 4, 'cidr': '9.28.87.64/26', 'allocation_pools': [{'start': '9.28.87.66', 'end': '9.28.87.126'}], 'gateway_ip': '9.28.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.28.87.66', 'tags': [], 'project_id': '68c97b1774c24334a0a2063f123a97b4'}} 2025-10-22 14:13:31,760 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e088a65c-6dfa-4379-abdb-a3bd4edc7486', 'name': '', 'tenant_id': '68c97b1774c24334a0a2063f123a97b4', 'network_id': '70ff20c5-0eb8-45ab-88f7-af7ee1b829fa', 'ip_version': 6, 'cidr': '3320:262d:25f8:8e8a:768f:4c58::/96', 'allocation_pools': [{'start': '3320:262d:25f8:8e8a:768f:4c58:0:2', 'end': '3320:262d:25f8:8e8a:768f:4c58:ffff:fffe'}], 'gateway_ip': '3320:262d:25f8:8e8a:768f:4c58:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3320:262d:25f8:8e8a:768f:4c58:0:2', 'tags': [], 'project_id': '68c97b1774c24334a0a2063f123a97b4'}} 2025-10-22 14:13:31,779 - INFO - Created VN ctest-vn4-51746997 2025-10-22 14:13:31,828 - DEBUG - VN ctest-vn4-51746997 UUID is 70ff20c5-0eb8-45ab-88f7-af7ee1b829fa 2025-10-22 14:13:32,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70ff20c5-0eb8-45ab-88f7-af7ee1b829fa', 'name': 'ctest-vn4-51746997', 'tenant_id': '68c97b1774c24334a0a2063f123a97b4', 'project_id': '68c97b1774c24334a0a2063f123a97b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4cd124c6-1c90-4c07-aec9-2f87332f1a64', 'e088a65c-6dfa-4379-abdb-a3bd4edc7486'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68823709', 'ctest-vn4-51746997'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68823709', 'ctest-policy1-68249064']], 'subnet_ipam': [{'subnet_cidr': '9.28.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3320:262d:25f8:8e8a:768f:4c58::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:13:32,188 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-22 14:13:32,478 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-22 14:13:32,505 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cb7a9fa9-9290-4e39-899a-230e0e4468c3 2025-10-22 14:13:32,517 - DEBUG - Requesting: http://10.0.0.49:8082/project/68c97b17-74c2-4334-a0a2-063f123a97b4 2025-10-22 14:13:32,589 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/70ff20c5-0eb8-45ab-88f7-af7ee1b829fa 2025-10-22 14:13:32,601 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/70ff20c5-0eb8-45ab-88f7-af7ee1b829fa 2025-10-22 14:13:32,609 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/832146aa-282e-467f-836f-ece9366026a1 2025-10-22 14:13:32,615 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/832146aa-282e-467f-836f-ece9366026a1 2025-10-22 14:13:32,621 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/0fda557e-cdef-426a-bf39-12fc6008ece5 2025-10-22 14:13:32,628 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 14:13:32,628 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/70ff20c5-0eb8-45ab-88f7-af7ee1b829fa 2025-10-22 14:13:32,637 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/832146aa-282e-467f-836f-ece9366026a1 2025-10-22 14:13:32,650 - INFO - Verified VN network id 11 for VN 70ff20c5-0eb8-45ab-88f7-af7ee1b829fa 2025-10-22 14:13:32,650 - INFO - Verifications in API Server for VN ctest-vn4-51746997 passed 2025-10-22 14:13:32,650 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/70ff20c5-0eb8-45ab-88f7-af7ee1b829fa 2025-10-22 14:13:32,659 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/832146aa-282e-467f-836f-ece9366026a1 2025-10-22 14:13:32,665 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/832146aa-282e-467f-836f-ece9366026a1 2025-10-22 14:13:32,672 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/0fda557e-cdef-426a-bf39-12fc6008ece5 2025-10-22 14:13:32,683 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68823709:ctest-vn4-51746997', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68823709', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8142262682036749739', 'uuid-lslong': '9869550067893414394'}, 'enable': 'true', 'created': '2025-10-22T14:13:31', 'last-modified': '2025-10-22T14:13:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678927'} 2025-10-22 14:13:32,689 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 14:13:32,689 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51746997 passed 2025-10-22 14:13:32,689 - DEBUG - ====Verifying policy data for ctest-vn4-51746997 in API_Server ====== 2025-10-22 14:13:32,689 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-22 14:13:32,694 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cb7a9fa9-9290-4e39-899a-230e0e4468c3 2025-10-22 14:13:32,704 - DEBUG - Requesting: http://10.0.0.49:8082/project/68c97b17-74c2-4334-a0a2-063f123a97b4 2025-10-22 14:13:32,778 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/70ff20c5-0eb8-45ab-88f7-af7ee1b829fa 2025-10-22 14:13:32,788 - DEBUG - ==>Verifying data for policy with id: e31d3a8a-a24a-4f53-9368-e89994b3b47f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68823709', 'ctest-policy1-68249064'] 2025-10-22 14:13:32,788 - INFO - VN ctest-vn4-51746997 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 14:13:32,788 - DEBUG - Verifying the vn in opserver 2025-10-22 14:13:32,788 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68823709:ctest-vn4-51746997 virtual network link through opserver 10.0.0.49 2025-10-22 14:13:32,789 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-22 14:13:33,082 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-22 14:13:33,132 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68823709:ctest-vn4-51746997', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68823709:ctest-vn4-51746997?flat'} 2025-10-22 14:13:33,132 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68823709:ctest-vn4-51746997 is found in opserver 2025-10-22 14:13:33,142 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 14:13:33,148 - DEBUG - VRF ids for VN ctest-vn4-51746997: {} 2025-10-22 14:13:33,149 - DEBUG - ====Verifying data for ctest-policy1-68249064 in API_Server ====== 2025-10-22 14:13:33,149 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-22 14:13:33,155 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cb7a9fa9-9290-4e39-899a-230e0e4468c3 2025-10-22 14:13:33,167 - DEBUG - Requesting: http://10.0.0.49:8082/project/68c97b17-74c2-4334-a0a2-063f123a97b4 2025-10-22 14:13:33,238 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/e31d3a8a-a24a-4f53-9368-e89994b3b47f 2025-10-22 14:13:33,248 - INFO - Verified policy ctest-policy1-68249064 in API Server, Result: True 2025-10-22 14:13:33,248 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 14:13:33,257 - INFO - Deleting VN ctest-vn4-51746997 2025-10-22 14:13:33,372 - DEBUG - Response for deleting network () 2025-10-22 14:13:33,372 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/832146aa-282e-467f-836f-ece9366026a1 2025-10-22 14:13:33,377 - DEBUG - Response Code: 404 2025-10-22 14:13:33,377 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-10-22 14:13:33,382 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cb7a9fa9-9290-4e39-899a-230e0e4468c3 2025-10-22 14:13:33,433 - DEBUG - Requesting: http://10.0.0.49:8082/project/68c97b17-74c2-4334-a0a2-063f123a97b4 2025-10-22 14:13:33,506 - INFO - Validated that VN ctest-vn4-51746997 is not found in API Server 2025-10-22 14:13:33,514 - DEBUG - VN ctest-vn4-51746997 is not present in Agent 10.0.0.49 2025-10-22 14:13:33,514 - INFO - Validated that VN ctest-vn4-51746997 is not in any agent 2025-10-22 14:13:33,527 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51746997 info 2025-10-22 14:13:33,553 - INFO - Deleted policy ctest-policy1-68249064 2025-10-22 14:13:33,720 - DEBUG - policy ctest-policy1-68249064 is not found in API Server 2025-10-22 14:13:33,975 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 14:13:33,975 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-10-22 14:13:33,976 - INFO - -------------------------------------------------------------------------------- 2025-10-22 14:13:34,263 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 14:13:34,263 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 14:13:34,263 - INFO - -------------------------------------------------------------------------------- 2025-10-22 14:13:34,901 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-68823709, ID : 68c97b17-74c2-4334-a0a2-063f123a97b4