2025-08-06 14:17:36,271 - INFO - Domain Default found not creating 2025-08-06 14:17:36,470 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55059230 not found, creating it 2025-08-06 14:17:36,958 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55059230, ID : 847cdd1d-3d14-40c8-b5ff-6f02c3e1477c 2025-08-06 14:17:38,712 - INFO - ================================================================================ 2025-08-06 14:17:38,712 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-06 14:17:38,984 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-06 14:17:38,984 - INFO - Initial checks done. Running the testcase now 2025-08-06 14:17:38,984 - INFO - 2025-08-06 14:17:38,984 - INFO - ================================================================================ 2025-08-06 14:17:38,984 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-06 14:17:38,985 - 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-06 14:17:39,271 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-06 14:17:39,271 - INFO - Initial checks done. Running the testcase now 2025-08-06 14:17:39,271 - INFO - 2025-08-06 14:17:39,670 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059230:ctest-vn4-25745558, 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-55059230:ctest-vn4-25745558, 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-55059230:ctest-vn4-25745558, 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-55059230:ctest-vn4-25745558, 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-06 14:17:40,263 - DEBUG - Response for create_network : {'network': {'id': 'f5a7b745-6b3d-437b-bd98-374c32f739ca', 'name': 'ctest-vn4-25745558', 'tenant_id': '847cdd1d3d1440c8b5ff6f02c3e1477c', 'project_id': '847cdd1d3d1440c8b5ff6f02c3e1477c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55059230', 'ctest-vn4-25745558'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 14:17:40,473 - DEBUG - Response for create_subnet : {'subnet': {'id': '82c3935e-9518-4510-abb9-2eb8f18dfa8e', 'name': '', 'tenant_id': '847cdd1d3d1440c8b5ff6f02c3e1477c', 'network_id': 'f5a7b745-6b3d-437b-bd98-374c32f739ca', 'ip_version': 4, 'cidr': '133.175.249.192/26', 'allocation_pools': [{'start': '133.175.249.194', 'end': '133.175.249.254'}], 'gateway_ip': '133.175.249.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.175.249.194', 'tags': [], 'project_id': '847cdd1d3d1440c8b5ff6f02c3e1477c'}} 2025-08-06 14:17:40,711 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc1fc842-05de-4ed2-b2aa-0c6f91380725', 'name': '', 'tenant_id': '847cdd1d3d1440c8b5ff6f02c3e1477c', 'network_id': 'f5a7b745-6b3d-437b-bd98-374c32f739ca', 'ip_version': 6, 'cidr': '33a6:269c:7f10:2de0:8bda:c3f5::/96', 'allocation_pools': [{'start': '33a6:269c:7f10:2de0:8bda:c3f5:0:2', 'end': '33a6:269c:7f10:2de0:8bda:c3f5:ffff:fffe'}], 'gateway_ip': '33a6:269c:7f10:2de0:8bda:c3f5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33a6:269c:7f10:2de0:8bda:c3f5:0:2', 'tags': [], 'project_id': '847cdd1d3d1440c8b5ff6f02c3e1477c'}} 2025-08-06 14:17:40,733 - INFO - Created VN ctest-vn4-25745558 2025-08-06 14:17:40,788 - DEBUG - VN ctest-vn4-25745558 UUID is f5a7b745-6b3d-437b-bd98-374c32f739ca 2025-08-06 14:17:41,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5a7b745-6b3d-437b-bd98-374c32f739ca', 'name': 'ctest-vn4-25745558', 'tenant_id': '847cdd1d3d1440c8b5ff6f02c3e1477c', 'project_id': '847cdd1d3d1440c8b5ff6f02c3e1477c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82c3935e-9518-4510-abb9-2eb8f18dfa8e', 'cc1fc842-05de-4ed2-b2aa-0c6f91380725'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55059230', 'ctest-vn4-25745558'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55059230', 'ctest-policy1-11820639']], 'subnet_ipam': [{'subnet_cidr': '133.175.249.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33a6:269c:7f10:2de0:8bda:c3f5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-06 14:17:41,216 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:41,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:41,608 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:17:41,624 - DEBUG - Requesting: http://10.0.0.50:8082/project/847cdd1d-3d14-40c8-b5ff-6f02c3e1477c 2025-08-06 14:17:41,709 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a7b745-6b3d-437b-bd98-374c32f739ca 2025-08-06 14:17:41,725 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a7b745-6b3d-437b-bd98-374c32f739ca 2025-08-06 14:17:41,738 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/733898e2-7369-4fe0-b150-805514a6beb0 2025-08-06 14:17:41,750 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/733898e2-7369-4fe0-b150-805514a6beb0 2025-08-06 14:17:41,760 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ed2bf492-351e-44e9-9151-4ee502448152 2025-08-06 14:17:41,770 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 14:17:41,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a7b745-6b3d-437b-bd98-374c32f739ca 2025-08-06 14:17:41,782 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/733898e2-7369-4fe0-b150-805514a6beb0 2025-08-06 14:17:41,805 - INFO - Verified VN network id 11 for VN f5a7b745-6b3d-437b-bd98-374c32f739ca 2025-08-06 14:17:41,805 - INFO - Verifications in API Server for VN ctest-vn4-25745558 passed 2025-08-06 14:17:41,806 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a7b745-6b3d-437b-bd98-374c32f739ca 2025-08-06 14:17:41,822 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/733898e2-7369-4fe0-b150-805514a6beb0 2025-08-06 14:17:41,831 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/733898e2-7369-4fe0-b150-805514a6beb0 2025-08-06 14:17:41,842 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ed2bf492-351e-44e9-9151-4ee502448152 2025-08-06 14:17:41,859 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059230:ctest-vn4-25745558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55059230', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17701318369182827387', 'uuid-lslong': '13661730270040504778'}, 'enable': 'true', 'created': '2025-08-06T14:17:40', 'last-modified': '2025-08-06T14:17:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.862485'} 2025-08-06 14:17:41,867 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 14:17:41,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25745558 passed 2025-08-06 14:17:41,868 - DEBUG - ====Verifying policy data for ctest-vn4-25745558 in API_Server ====== 2025-08-06 14:17:41,868 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:41,877 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:17:41,891 - DEBUG - Requesting: http://10.0.0.50:8082/project/847cdd1d-3d14-40c8-b5ff-6f02c3e1477c 2025-08-06 14:17:41,963 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a7b745-6b3d-437b-bd98-374c32f739ca 2025-08-06 14:17:41,976 - DEBUG - ==>Verifying data for policy with id: 5600da73-acb6-4e52-92c4-ab99f3321245, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55059230', 'ctest-policy1-11820639'] 2025-08-06 14:17:41,976 - INFO - VN ctest-vn4-25745558 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-06 14:17:41,976 - DEBUG - Verifying the vn in opserver 2025-08-06 14:17:41,976 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059230:ctest-vn4-25745558 virtual network link through opserver 10.0.0.50 2025-08-06 14:17:41,976 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-06 14:17:42,315 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-06 14:17:42,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059230:ctest-vn4-25745558', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059230:ctest-vn4-25745558?flat'} 2025-08-06 14:17:42,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059230:ctest-vn4-25745558 is found in opserver 2025-08-06 14:17:42,399 - DEBUG - Do not have enough data to verify VN in agent 2025-08-06 14:17:42,406 - DEBUG - VRF ids for VN ctest-vn4-25745558: {} 2025-08-06 14:17:42,407 - DEBUG - ====Verifying data for ctest-policy1-11820639 in API_Server ====== 2025-08-06 14:17:42,407 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:42,414 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:17:42,428 - DEBUG - Requesting: http://10.0.0.50:8082/project/847cdd1d-3d14-40c8-b5ff-6f02c3e1477c 2025-08-06 14:17:42,503 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5600da73-acb6-4e52-92c4-ab99f3321245 2025-08-06 14:17:42,516 - INFO - Verified policy ctest-policy1-11820639 in API Server, Result: True 2025-08-06 14:17:42,516 - INFO - Done with setup and verification, moving onto test .. 2025-08-06 14:17:42,525 - INFO - Deleting VN ctest-vn4-25745558 2025-08-06 14:17:42,668 - DEBUG - Response for deleting network () 2025-08-06 14:17:42,668 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/733898e2-7369-4fe0-b150-805514a6beb0 2025-08-06 14:17:42,675 - DEBUG - Response Code: 404 2025-08-06 14:17:42,675 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 14:17:42,681 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b 2025-08-06 14:17:42,739 - DEBUG - Requesting: http://10.0.0.50:8082/project/847cdd1d-3d14-40c8-b5ff-6f02c3e1477c 2025-08-06 14:17:42,817 - INFO - Validated that VN ctest-vn4-25745558 is not found in API Server 2025-08-06 14:17:42,830 - DEBUG - VN ctest-vn4-25745558 is not present in Agent 10.0.0.50 2025-08-06 14:17:42,830 - INFO - Validated that VN ctest-vn4-25745558 is not in any agent 2025-08-06 14:17:42,851 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25745558 info 2025-08-06 14:17:42,884 - INFO - Deleted policy ctest-policy1-11820639 2025-08-06 14:17:43,056 - DEBUG - policy ctest-policy1-11820639 is not found in API Server 2025-08-06 14:17:43,316 - DEBUG - No XMPP flaps were noticed during the test 2025-08-06 14:17:43,316 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-06 14:17:43,316 - INFO - -------------------------------------------------------------------------------- 2025-08-06 14:17:43,623 - DEBUG - No XMPP flaps were noticed during the test 2025-08-06 14:17:43,623 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-06 14:17:43,623 - INFO - -------------------------------------------------------------------------------- 2025-08-06 14:17:44,371 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-55059230, ID : 847cdd1d-3d14-40c8-b5ff-6f02c3e1477c