2025-10-14 18:15:35,199 - INFO - Domain Default found not creating 2025-10-14 18:15:35,341 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67456145 not found, creating it 2025-10-14 18:15:35,815 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67456145, ID : 1cf1f3df-d509-4b57-93af-117c507339e4 2025-10-14 18:15:37,281 - INFO - ================================================================================ 2025-10-14 18:15:37,281 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-14 18:15:37,542 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-10-14 18:15:37,542 - INFO - Initial checks done. Running the testcase now 2025-10-14 18:15:37,542 - INFO - 2025-10-14 18:15:37,542 - INFO - ================================================================================ 2025-10-14 18:15:37,542 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-14 18:15:37,542 - 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-14 18:15:37,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-10-14 18:15:37,829 - INFO - Initial checks done. Running the testcase now 2025-10-14 18:15:37,829 - INFO - 2025-10-14 18:15:38,184 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67456145:ctest-vn4-44294037, 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-67456145:ctest-vn4-44294037, 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-67456145:ctest-vn4-44294037, 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-67456145:ctest-vn4-44294037, 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-14 18:15:38,676 - DEBUG - Response for create_network : {'network': {'id': '807e21f8-7f18-4d7b-9547-8752a5026881', 'name': 'ctest-vn4-44294037', 'tenant_id': '1cf1f3dfd5094b5793af117c507339e4', 'project_id': '1cf1f3dfd5094b5793af117c507339e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67456145', 'ctest-vn4-44294037'], 'port_security_enabled': True, 'description': ''}} 2025-10-14 18:15:38,829 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc4cec86-f9ac-4e89-af59-e7027ac9aea1', 'name': '', 'tenant_id': '1cf1f3dfd5094b5793af117c507339e4', 'network_id': '807e21f8-7f18-4d7b-9547-8752a5026881', 'ip_version': 4, 'cidr': '196.112.212.192/26', 'allocation_pools': [{'start': '196.112.212.194', 'end': '196.112.212.254'}], 'gateway_ip': '196.112.212.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.112.212.194', 'tags': [], 'project_id': '1cf1f3dfd5094b5793af117c507339e4'}} 2025-10-14 18:15:38,999 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec139b4d-8d72-4f6d-b11a-e1594ac079ef', 'name': '', 'tenant_id': '1cf1f3dfd5094b5793af117c507339e4', 'network_id': '807e21f8-7f18-4d7b-9547-8752a5026881', 'ip_version': 6, 'cidr': '299a:140f:ff66:54a5:177:26ee::/96', 'allocation_pools': [{'start': '299a:140f:ff66:54a5:177:26ee:0:2', 'end': '299a:140f:ff66:54a5:177:26ee:ffff:fffe'}], 'gateway_ip': '299a:140f:ff66:54a5:177:26ee:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '299a:140f:ff66:54a5:177:26ee:0:2', 'tags': [], 'project_id': '1cf1f3dfd5094b5793af117c507339e4'}} 2025-10-14 18:15:39,018 - INFO - Created VN ctest-vn4-44294037 2025-10-14 18:15:39,068 - DEBUG - VN ctest-vn4-44294037 UUID is 807e21f8-7f18-4d7b-9547-8752a5026881 2025-10-14 18:15:39,330 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '807e21f8-7f18-4d7b-9547-8752a5026881', 'name': 'ctest-vn4-44294037', 'tenant_id': '1cf1f3dfd5094b5793af117c507339e4', 'project_id': '1cf1f3dfd5094b5793af117c507339e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc4cec86-f9ac-4e89-af59-e7027ac9aea1', 'ec139b4d-8d72-4f6d-b11a-e1594ac079ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67456145', 'ctest-vn4-44294037'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67456145', 'ctest-policy1-95095761']], 'subnet_ipam': [{'subnet_cidr': '196.112.212.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '299a:140f:ff66:54a5:177:26ee::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-14 18:15:39,489 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-14 18:15:39,777 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-14 18:15:39,805 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ca03870-1883-4af4-a992-1e6a9d75f549 2025-10-14 18:15:39,816 - DEBUG - Requesting: http://10.0.0.50:8082/project/1cf1f3df-d509-4b57-93af-117c507339e4 2025-10-14 18:15:39,884 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/807e21f8-7f18-4d7b-9547-8752a5026881 2025-10-14 18:15:39,895 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/807e21f8-7f18-4d7b-9547-8752a5026881 2025-10-14 18:15:39,903 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0743a56-93ba-45b1-a2f5-15c9092ccb99 2025-10-14 18:15:39,910 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0743a56-93ba-45b1-a2f5-15c9092ccb99 2025-10-14 18:15:39,916 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22007355-3a38-43d9-9190-7a05fea15878 2025-10-14 18:15:39,921 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 18:15:39,922 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/807e21f8-7f18-4d7b-9547-8752a5026881 2025-10-14 18:15:39,930 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0743a56-93ba-45b1-a2f5-15c9092ccb99 2025-10-14 18:15:39,943 - INFO - Verified VN network id 11 for VN 807e21f8-7f18-4d7b-9547-8752a5026881 2025-10-14 18:15:39,943 - INFO - Verifications in API Server for VN ctest-vn4-44294037 passed 2025-10-14 18:15:39,943 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/807e21f8-7f18-4d7b-9547-8752a5026881 2025-10-14 18:15:39,953 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0743a56-93ba-45b1-a2f5-15c9092ccb99 2025-10-14 18:15:39,960 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0743a56-93ba-45b1-a2f5-15c9092ccb99 2025-10-14 18:15:39,967 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22007355-3a38-43d9-9190-7a05fea15878 2025-10-14 18:15:39,978 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67456145:ctest-vn4-44294037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67456145', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9258875235088223611', 'uuid-lslong': '10756715024023185537'}, 'enable': 'true', 'created': '2025-10-14T18:15:38', 'last-modified': '2025-10-14T18:15:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677343'} 2025-10-14 18:15:39,986 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 18:15:39,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44294037 passed 2025-10-14 18:15:39,986 - DEBUG - ====Verifying policy data for ctest-vn4-44294037 in API_Server ====== 2025-10-14 18:15:39,986 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-14 18:15:39,992 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ca03870-1883-4af4-a992-1e6a9d75f549 2025-10-14 18:15:40,002 - DEBUG - Requesting: http://10.0.0.50:8082/project/1cf1f3df-d509-4b57-93af-117c507339e4 2025-10-14 18:15:40,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/807e21f8-7f18-4d7b-9547-8752a5026881 2025-10-14 18:15:40,077 - DEBUG - ==>Verifying data for policy with id: 938558a8-5dca-4b47-b23c-c20926d3cb26, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67456145', 'ctest-policy1-95095761'] 2025-10-14 18:15:40,077 - INFO - VN ctest-vn4-44294037 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-14 18:15:40,077 - DEBUG - Verifying the vn in opserver 2025-10-14 18:15:40,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67456145:ctest-vn4-44294037 virtual network link through opserver 10.0.0.50 2025-10-14 18:15:40,077 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-14 18:15:40,368 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-14 18:15:40,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67456145:ctest-vn4-44294037', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67456145:ctest-vn4-44294037?flat'} 2025-10-14 18:15:40,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67456145:ctest-vn4-44294037 is found in opserver 2025-10-14 18:15:40,428 - DEBUG - Do not have enough data to verify VN in agent 2025-10-14 18:15:40,432 - DEBUG - VRF ids for VN ctest-vn4-44294037: {} 2025-10-14 18:15:40,433 - DEBUG - ====Verifying data for ctest-policy1-95095761 in API_Server ====== 2025-10-14 18:15:40,433 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-14 18:15:40,437 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ca03870-1883-4af4-a992-1e6a9d75f549 2025-10-14 18:15:40,447 - DEBUG - Requesting: http://10.0.0.50:8082/project/1cf1f3df-d509-4b57-93af-117c507339e4 2025-10-14 18:15:40,511 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/938558a8-5dca-4b47-b23c-c20926d3cb26 2025-10-14 18:15:40,520 - INFO - Verified policy ctest-policy1-95095761 in API Server, Result: True 2025-10-14 18:15:40,521 - INFO - Done with setup and verification, moving onto test .. 2025-10-14 18:15:40,528 - INFO - Deleting VN ctest-vn4-44294037 2025-10-14 18:15:40,637 - DEBUG - Response for deleting network () 2025-10-14 18:15:40,638 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0743a56-93ba-45b1-a2f5-15c9092ccb99 2025-10-14 18:15:40,642 - DEBUG - Response Code: 404 2025-10-14 18:15:40,642 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-14 18:15:40,646 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ca03870-1883-4af4-a992-1e6a9d75f549 2025-10-14 18:15:40,696 - DEBUG - Requesting: http://10.0.0.50:8082/project/1cf1f3df-d509-4b57-93af-117c507339e4 2025-10-14 18:15:40,775 - INFO - Validated that VN ctest-vn4-44294037 is not found in API Server 2025-10-14 18:15:40,784 - DEBUG - VN ctest-vn4-44294037 is not present in Agent 10.0.0.50 2025-10-14 18:15:40,785 - INFO - Validated that VN ctest-vn4-44294037 is not in any agent 2025-10-14 18:15:40,798 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44294037 info 2025-10-14 18:15:40,821 - INFO - Deleted policy ctest-policy1-95095761 2025-10-14 18:15:40,988 - DEBUG - policy ctest-policy1-95095761 is not found in API Server 2025-10-14 18:15:41,241 - DEBUG - No XMPP flaps were noticed during the test