2025-10-27 06:31:44,834 - INFO - Domain Default found not creating 2025-10-27 06:31:45,048 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38278173 not found, creating it 2025-10-27 06:31:45,577 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38278173, ID : de5a837a-5c50-4e44-8c91-b42fc463d783 2025-10-27 06:31:47,201 - INFO - ================================================================================ 2025-10-27 06:31:47,201 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 06:31:47,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-10-27 06:31:47,462 - INFO - Initial checks done. Running the testcase now 2025-10-27 06:31:47,463 - INFO - 2025-10-27 06:31:47,463 - INFO - ================================================================================ 2025-10-27 06:31:47,463 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 06:31:47,463 - 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-27 06:31:47,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-10-27 06:31:47,754 - INFO - Initial checks done. Running the testcase now 2025-10-27 06:31:47,754 - INFO - 2025-10-27 06:31:48,141 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38278173:ctest-vn4-12117424, 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-38278173:ctest-vn4-12117424, 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-38278173:ctest-vn4-12117424, 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-38278173:ctest-vn4-12117424, 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-27 06:31:48,759 - DEBUG - Response for create_network : {'network': {'id': '9cc455b5-7431-4bb6-8d32-8c98395ab6cf', 'name': 'ctest-vn4-12117424', 'tenant_id': 'de5a837a5c504e448c91b42fc463d783', 'project_id': 'de5a837a5c504e448c91b42fc463d783', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38278173', 'ctest-vn4-12117424'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 06:31:48,991 - DEBUG - Response for create_subnet : {'subnet': {'id': '893baba4-e39d-4017-b4fa-3a362134c64a', 'name': '', 'tenant_id': 'de5a837a5c504e448c91b42fc463d783', 'network_id': '9cc455b5-7431-4bb6-8d32-8c98395ab6cf', 'ip_version': 4, 'cidr': '196.199.69.192/26', 'allocation_pools': [{'start': '196.199.69.194', 'end': '196.199.69.254'}], 'gateway_ip': '196.199.69.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.199.69.194', 'tags': [], 'project_id': 'de5a837a5c504e448c91b42fc463d783'}} 2025-10-27 06:31:49,191 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf5831f4-ebb6-40d6-9e8c-79a7a4756661', 'name': '', 'tenant_id': 'de5a837a5c504e448c91b42fc463d783', 'network_id': '9cc455b5-7431-4bb6-8d32-8c98395ab6cf', 'ip_version': 6, 'cidr': '3f0e:8b01:8321:f72c:ab7a:8f71::/96', 'allocation_pools': [{'start': '3f0e:8b01:8321:f72c:ab7a:8f71:0:2', 'end': '3f0e:8b01:8321:f72c:ab7a:8f71:ffff:fffe'}], 'gateway_ip': '3f0e:8b01:8321:f72c:ab7a:8f71:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f0e:8b01:8321:f72c:ab7a:8f71:0:2', 'tags': [], 'project_id': 'de5a837a5c504e448c91b42fc463d783'}} 2025-10-27 06:31:49,217 - INFO - Created VN ctest-vn4-12117424 2025-10-27 06:31:49,277 - DEBUG - VN ctest-vn4-12117424 UUID is 9cc455b5-7431-4bb6-8d32-8c98395ab6cf 2025-10-27 06:31:49,526 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cc455b5-7431-4bb6-8d32-8c98395ab6cf', 'name': 'ctest-vn4-12117424', 'tenant_id': 'de5a837a5c504e448c91b42fc463d783', 'project_id': 'de5a837a5c504e448c91b42fc463d783', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['893baba4-e39d-4017-b4fa-3a362134c64a', 'cf5831f4-ebb6-40d6-9e8c-79a7a4756661'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38278173', 'ctest-vn4-12117424'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38278173', 'ctest-policy1-97853403']], 'subnet_ipam': [{'subnet_cidr': '196.199.69.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f0e:8b01:8321:f72c:ab7a:8f71::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 06:31:49,718 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 06:31:50,025 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 06:31:50,064 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4845a3a4-43c4-4e3e-bb30-7f2ade919bb3 2025-10-27 06:31:50,083 - DEBUG - Requesting: http://10.0.0.22:8082/project/de5a837a-5c50-4e44-8c91-b42fc463d783 2025-10-27 06:31:50,167 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9cc455b5-7431-4bb6-8d32-8c98395ab6cf 2025-10-27 06:31:50,184 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9cc455b5-7431-4bb6-8d32-8c98395ab6cf 2025-10-27 06:31:50,197 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35689df1-56ee-4ea5-be2e-106f24c14301 2025-10-27 06:31:50,207 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35689df1-56ee-4ea5-be2e-106f24c14301 2025-10-27 06:31:50,217 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cc94ca3b-829d-47c6-8a93-983445016709 2025-10-27 06:31:50,226 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 06:31:50,226 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9cc455b5-7431-4bb6-8d32-8c98395ab6cf 2025-10-27 06:31:50,239 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35689df1-56ee-4ea5-be2e-106f24c14301 2025-10-27 06:31:50,261 - INFO - Verified VN network id 11 for VN 9cc455b5-7431-4bb6-8d32-8c98395ab6cf 2025-10-27 06:31:50,262 - INFO - Verifications in API Server for VN ctest-vn4-12117424 passed 2025-10-27 06:31:50,262 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9cc455b5-7431-4bb6-8d32-8c98395ab6cf 2025-10-27 06:31:50,283 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35689df1-56ee-4ea5-be2e-106f24c14301 2025-10-27 06:31:50,294 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35689df1-56ee-4ea5-be2e-106f24c14301 2025-10-27 06:31:50,305 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cc94ca3b-829d-47c6-8a93-983445016709 2025-10-27 06:31:50,323 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38278173:ctest-vn4-12117424', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38278173', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11296248003178875830', 'uuid-lslong': '10174349093608535759'}, 'enable': 'true', 'created': '2025-10-27T06:31:48', 'last-modified': '2025-10-27T06:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.833161'} 2025-10-27 06:31:50,332 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 06:31:50,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12117424 passed 2025-10-27 06:31:50,332 - DEBUG - ====Verifying policy data for ctest-vn4-12117424 in API_Server ====== 2025-10-27 06:31:50,332 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 06:31:50,341 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4845a3a4-43c4-4e3e-bb30-7f2ade919bb3 2025-10-27 06:31:50,359 - DEBUG - Requesting: http://10.0.0.22:8082/project/de5a837a-5c50-4e44-8c91-b42fc463d783 2025-10-27 06:31:50,447 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9cc455b5-7431-4bb6-8d32-8c98395ab6cf 2025-10-27 06:31:50,461 - DEBUG - ==>Verifying data for policy with id: 0658b23a-566a-40b1-999b-aadc78858679, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38278173', 'ctest-policy1-97853403'] 2025-10-27 06:31:50,461 - INFO - VN ctest-vn4-12117424 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 06:31:50,462 - DEBUG - Verifying the vn in opserver 2025-10-27 06:31:50,462 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38278173:ctest-vn4-12117424 virtual network link through opserver 10.0.0.22 2025-10-27 06:31:50,462 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-27 06:31:50,770 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-27 06:31:50,846 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38278173:ctest-vn4-12117424', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38278173:ctest-vn4-12117424?flat'} 2025-10-27 06:31:50,846 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38278173:ctest-vn4-12117424 is found in opserver 2025-10-27 06:31:50,858 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 06:31:50,863 - DEBUG - VRF ids for VN ctest-vn4-12117424: {} 2025-10-27 06:31:50,864 - DEBUG - ====Verifying data for ctest-policy1-97853403 in API_Server ====== 2025-10-27 06:31:50,864 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 06:31:50,872 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4845a3a4-43c4-4e3e-bb30-7f2ade919bb3 2025-10-27 06:31:50,889 - DEBUG - Requesting: http://10.0.0.22:8082/project/de5a837a-5c50-4e44-8c91-b42fc463d783 2025-10-27 06:31:50,984 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/0658b23a-566a-40b1-999b-aadc78858679 2025-10-27 06:31:50,998 - INFO - Verified policy ctest-policy1-97853403 in API Server, Result: True 2025-10-27 06:31:50,999 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 06:31:51,012 - INFO - Deleting VN ctest-vn4-12117424 2025-10-27 06:31:51,165 - DEBUG - Response for deleting network () 2025-10-27 06:31:51,165 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35689df1-56ee-4ea5-be2e-106f24c14301 2025-10-27 06:31:51,174 - DEBUG - Response Code: 404 2025-10-27 06:31:51,174 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 06:31:51,185 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4845a3a4-43c4-4e3e-bb30-7f2ade919bb3 2025-10-27 06:31:51,243 - DEBUG - Requesting: http://10.0.0.22:8082/project/de5a837a-5c50-4e44-8c91-b42fc463d783 2025-10-27 06:31:51,427 - INFO - Validated that VN ctest-vn4-12117424 is not found in API Server 2025-10-27 06:31:51,439 - DEBUG - VN ctest-vn4-12117424 is not present in Agent 10.0.0.22 2025-10-27 06:31:51,439 - INFO - Validated that VN ctest-vn4-12117424 is not in any agent 2025-10-27 06:31:51,455 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12117424 info 2025-10-27 06:31:51,483 - INFO - Deleted policy ctest-policy1-97853403 2025-10-27 06:31:51,673 - DEBUG - policy ctest-policy1-97853403 is not found in API Server 2025-10-27 06:31:51,936 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 06:31:51,936 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-27 06:31:51,936 - INFO - -------------------------------------------------------------------------------- 2025-10-27 06:31:52,242 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 06:31:52,242 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-27 06:31:52,242 - INFO - -------------------------------------------------------------------------------- 2025-10-27 06:31:53,002 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38278173, ID : de5a837a-5c50-4e44-8c91-b42fc463d783