2025-10-23 18:28:36,590 - INFO - Domain Default found not creating 2025-10-23 18:28:36,734 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66838498 not found, creating it 2025-10-23 18:28:37,171 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66838498, ID : 86355c82-f49c-4e0b-843c-844495ecc626 2025-10-23 18:28:38,549 - INFO - ================================================================================ 2025-10-23 18:28:38,549 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 18:28:38,803 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-23 18:28:38,803 - INFO - Initial checks done. Running the testcase now 2025-10-23 18:28:38,803 - INFO - 2025-10-23 18:28:38,803 - INFO - ================================================================================ 2025-10-23 18:28:38,803 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 18:28:38,803 - 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-23 18:28:39,094 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-23 18:28:39,094 - INFO - Initial checks done. Running the testcase now 2025-10-23 18:28:39,094 - INFO - 2025-10-23 18:28:39,453 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66838498:ctest-vn4-39718440, 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-66838498:ctest-vn4-39718440, 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-66838498:ctest-vn4-39718440, 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-66838498:ctest-vn4-39718440, 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-23 18:28:39,940 - DEBUG - Response for create_network : {'network': {'id': '780d0038-7e8f-481e-b864-bb8449b8348f', 'name': 'ctest-vn4-39718440', 'tenant_id': '86355c82f49c4e0b843c844495ecc626', 'project_id': '86355c82f49c4e0b843c844495ecc626', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66838498', 'ctest-vn4-39718440'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 18:28:40,154 - DEBUG - Response for create_subnet : {'subnet': {'id': '02b0b981-966b-456d-aca6-1dc65b0054a1', 'name': '', 'tenant_id': '86355c82f49c4e0b843c844495ecc626', 'network_id': '780d0038-7e8f-481e-b864-bb8449b8348f', 'ip_version': 4, 'cidr': '134.99.255.128/26', 'allocation_pools': [{'start': '134.99.255.130', 'end': '134.99.255.190'}], 'gateway_ip': '134.99.255.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.99.255.130', 'tags': [], 'project_id': '86355c82f49c4e0b843c844495ecc626'}} 2025-10-23 18:28:40,304 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea9d45e0-8e9b-4f77-bf62-c9bc348676c7', 'name': '', 'tenant_id': '86355c82f49c4e0b843c844495ecc626', 'network_id': '780d0038-7e8f-481e-b864-bb8449b8348f', 'ip_version': 6, 'cidr': '2bea:8164:7800:eabb:e722:82b9::/96', 'allocation_pools': [{'start': '2bea:8164:7800:eabb:e722:82b9:0:2', 'end': '2bea:8164:7800:eabb:e722:82b9:ffff:fffe'}], 'gateway_ip': '2bea:8164:7800:eabb:e722:82b9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bea:8164:7800:eabb:e722:82b9:0:2', 'tags': [], 'project_id': '86355c82f49c4e0b843c844495ecc626'}} 2025-10-23 18:28:40,323 - INFO - Created VN ctest-vn4-39718440 2025-10-23 18:28:40,374 - DEBUG - VN ctest-vn4-39718440 UUID is 780d0038-7e8f-481e-b864-bb8449b8348f 2025-10-23 18:28:40,577 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '780d0038-7e8f-481e-b864-bb8449b8348f', 'name': 'ctest-vn4-39718440', 'tenant_id': '86355c82f49c4e0b843c844495ecc626', 'project_id': '86355c82f49c4e0b843c844495ecc626', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02b0b981-966b-456d-aca6-1dc65b0054a1', 'ea9d45e0-8e9b-4f77-bf62-c9bc348676c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66838498', 'ctest-vn4-39718440'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66838498', 'ctest-policy1-57473051']], 'subnet_ipam': [{'subnet_cidr': '134.99.255.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bea:8164:7800:eabb:e722:82b9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 18:28:40,746 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 18:28:41,040 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 18:28:41,065 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5b2b3185-1ae2-4126-81a5-4799e1ab4b6e 2025-10-23 18:28:41,076 - DEBUG - Requesting: http://10.0.0.27:8082/project/86355c82-f49c-4e0b-843c-844495ecc626 2025-10-23 18:28:41,148 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/780d0038-7e8f-481e-b864-bb8449b8348f 2025-10-23 18:28:41,158 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/780d0038-7e8f-481e-b864-bb8449b8348f 2025-10-23 18:28:41,167 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5690f6aa-532f-49fa-a990-980ac541db20 2025-10-23 18:28:41,173 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5690f6aa-532f-49fa-a990-980ac541db20 2025-10-23 18:28:41,179 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/6506d352-826c-4cd8-89d4-bfe30a4cfb3d 2025-10-23 18:28:41,184 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 18:28:41,184 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/780d0038-7e8f-481e-b864-bb8449b8348f 2025-10-23 18:28:41,192 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5690f6aa-532f-49fa-a990-980ac541db20 2025-10-23 18:28:41,209 - INFO - Verified VN network id 9 for VN 780d0038-7e8f-481e-b864-bb8449b8348f 2025-10-23 18:28:41,209 - INFO - Verifications in API Server for VN ctest-vn4-39718440 passed 2025-10-23 18:28:41,209 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/780d0038-7e8f-481e-b864-bb8449b8348f 2025-10-23 18:28:41,219 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5690f6aa-532f-49fa-a990-980ac541db20 2025-10-23 18:28:41,225 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5690f6aa-532f-49fa-a990-980ac541db20 2025-10-23 18:28:41,232 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/6506d352-826c-4cd8-89d4-bfe30a4cfb3d 2025-10-23 18:28:41,248 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66838498:ctest-vn4-39718440', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66838498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8650570701890078750', 'uuid-lslong': '13286950977496691855'}, 'enable': 'true', 'created': '2025-10-23T18:28:39', 'last-modified': '2025-10-23T18:28:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697904'} 2025-10-23 18:28:41,254 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 18:28:41,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39718440 passed 2025-10-23 18:28:41,255 - DEBUG - ====Verifying policy data for ctest-vn4-39718440 in API_Server ====== 2025-10-23 18:28:41,255 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 18:28:41,260 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5b2b3185-1ae2-4126-81a5-4799e1ab4b6e 2025-10-23 18:28:41,272 - DEBUG - Requesting: http://10.0.0.27:8082/project/86355c82-f49c-4e0b-843c-844495ecc626 2025-10-23 18:28:41,341 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/780d0038-7e8f-481e-b864-bb8449b8348f 2025-10-23 18:28:41,349 - DEBUG - ==>Verifying data for policy with id: 28ba1751-04ff-4405-a6ea-1a9abf0136bb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66838498', 'ctest-policy1-57473051'] 2025-10-23 18:28:41,349 - INFO - VN ctest-vn4-39718440 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 18:28:41,349 - DEBUG - Verifying the vn in opserver 2025-10-23 18:28:41,349 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66838498:ctest-vn4-39718440 virtual network link through opserver 10.0.0.27 2025-10-23 18:28:41,349 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-23 18:28:41,640 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-23 18:28:41,695 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66838498:ctest-vn4-39718440', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66838498:ctest-vn4-39718440?flat'} 2025-10-23 18:28:41,695 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66838498:ctest-vn4-39718440 is found in opserver 2025-10-23 18:28:41,703 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 18:28:41,707 - DEBUG - VRF ids for VN ctest-vn4-39718440: {} 2025-10-23 18:28:41,708 - DEBUG - ====Verifying data for ctest-policy1-57473051 in API_Server ====== 2025-10-23 18:28:41,708 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 18:28:41,713 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5b2b3185-1ae2-4126-81a5-4799e1ab4b6e 2025-10-23 18:28:41,723 - DEBUG - Requesting: http://10.0.0.27:8082/project/86355c82-f49c-4e0b-843c-844495ecc626 2025-10-23 18:28:41,790 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/28ba1751-04ff-4405-a6ea-1a9abf0136bb 2025-10-23 18:28:41,798 - INFO - Verified policy ctest-policy1-57473051 in API Server, Result: True 2025-10-23 18:28:41,798 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 18:28:41,806 - INFO - Deleting VN ctest-vn4-39718440 2025-10-23 18:28:41,924 - DEBUG - Response for deleting network () 2025-10-23 18:28:41,924 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5690f6aa-532f-49fa-a990-980ac541db20 2025-10-23 18:28:41,928 - DEBUG - Response Code: 404 2025-10-23 18:28:41,928 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 18:28:41,933 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5b2b3185-1ae2-4126-81a5-4799e1ab4b6e 2025-10-23 18:28:41,986 - DEBUG - Requesting: http://10.0.0.27:8082/project/86355c82-f49c-4e0b-843c-844495ecc626 2025-10-23 18:28:42,056 - INFO - Validated that VN ctest-vn4-39718440 is not found in API Server 2025-10-23 18:28:42,066 - DEBUG - VN ctest-vn4-39718440 is not present in Agent 10.0.0.27 2025-10-23 18:28:42,066 - INFO - Validated that VN ctest-vn4-39718440 is not in any agent 2025-10-23 18:28:42,078 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39718440 info 2025-10-23 18:28:42,099 - INFO - Deleted policy ctest-policy1-57473051 2025-10-23 18:28:42,261 - DEBUG - policy ctest-policy1-57473051 is not found in API Server 2025-10-23 18:28:42,514 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 18:28:42,514 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 18:28:42,514 - INFO - -------------------------------------------------------------------------------- 2025-10-23 18:28:42,806 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 18:28:42,806 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 18:28:42,806 - INFO - -------------------------------------------------------------------------------- 2025-10-23 18:28:43,465 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-66838498, ID : 86355c82-f49c-4e0b-843c-844495ecc626