2025-10-27 02:26:34,933 - INFO - Domain Default found not creating 2025-10-27 02:26:35,087 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02823727 not found, creating it 2025-10-27 02:26:35,533 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02823727, ID : 7183597f-ca9d-4219-ace5-9889ddeeabb0 2025-10-27 02:26:37,422 - INFO - ================================================================================ 2025-10-27 02:26:37,422 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 02:26:37,684 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with 2025-10-27 02:26:37,684 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:26:37,684 - INFO - 2025-10-27 02:26:37,684 - INFO - ================================================================================ 2025-10-27 02:26:37,684 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 02:26:37,684 - 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 02:26:37,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with 2025-10-27 02:26:37,972 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:26:37,972 - INFO - 2025-10-27 02:26:38,329 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02823727:ctest-vn4-92391374, 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-02823727:ctest-vn4-92391374, 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-02823727:ctest-vn4-92391374, 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-02823727:ctest-vn4-92391374, 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 02:26:38,861 - DEBUG - Response for create_network : {'network': {'id': '795cf870-9c02-4b23-be65-3e72ed5efc28', 'name': 'ctest-vn4-92391374', 'tenant_id': '7183597fca9d4219ace59889ddeeabb0', 'project_id': '7183597fca9d4219ace59889ddeeabb0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02823727', 'ctest-vn4-92391374'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:26:39,053 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f144e744-3b85-4db2-a01c-5de2fcfef6c6', 'name': '', 'tenant_id': '7183597fca9d4219ace59889ddeeabb0', 'network_id': '795cf870-9c02-4b23-be65-3e72ed5efc28', 'ip_version': 4, 'cidr': '222.245.137.64/26', 'allocation_pools': [{'start': '222.245.137.66', 'end': '222.245.137.126'}], 'gateway_ip': '222.245.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.245.137.66', 'tags': [], 'project_id': '7183597fca9d4219ace59889ddeeabb0'}} 2025-10-27 02:26:39,256 - DEBUG - Response for create_subnet : {'subnet': {'id': '19ad3906-570f-49a5-ba40-e6856eee4e15', 'name': '', 'tenant_id': '7183597fca9d4219ace59889ddeeabb0', 'network_id': '795cf870-9c02-4b23-be65-3e72ed5efc28', 'ip_version': 6, 'cidr': '32f4:16df:c44:f704:4d41:430::/96', 'allocation_pools': [{'start': '32f4:16df:c44:f704:4d41:430:0:2', 'end': '32f4:16df:c44:f704:4d41:430:ffff:fffe'}], 'gateway_ip': '32f4:16df:c44:f704:4d41:430:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32f4:16df:c44:f704:4d41:430:0:2', 'tags': [], 'project_id': '7183597fca9d4219ace59889ddeeabb0'}} 2025-10-27 02:26:39,276 - INFO - Created VN ctest-vn4-92391374 2025-10-27 02:26:39,331 - DEBUG - VN ctest-vn4-92391374 UUID is 795cf870-9c02-4b23-be65-3e72ed5efc28 2025-10-27 02:26:39,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '795cf870-9c02-4b23-be65-3e72ed5efc28', 'name': 'ctest-vn4-92391374', 'tenant_id': '7183597fca9d4219ace59889ddeeabb0', 'project_id': '7183597fca9d4219ace59889ddeeabb0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f144e744-3b85-4db2-a01c-5de2fcfef6c6', '19ad3906-570f-49a5-ba40-e6856eee4e15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02823727', 'ctest-vn4-92391374'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02823727', 'ctest-policy1-11969077']], 'subnet_ipam': [{'subnet_cidr': '222.245.137.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32f4:16df:c44:f704:4d41:430::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:26:39,763 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 02:26:40,100 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 02:26:40,131 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c99b2c44-ad08-473a-b2cd-7c69aec9f90b 2025-10-27 02:26:40,144 - DEBUG - Requesting: http://10.0.0.22:8082/project/7183597f-ca9d-4219-ace5-9889ddeeabb0 2025-10-27 02:26:40,219 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/795cf870-9c02-4b23-be65-3e72ed5efc28 2025-10-27 02:26:40,231 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/795cf870-9c02-4b23-be65-3e72ed5efc28 2025-10-27 02:26:40,240 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4f8ee567-42d6-44dc-b7e2-5cde26537a0d 2025-10-27 02:26:40,246 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4f8ee567-42d6-44dc-b7e2-5cde26537a0d 2025-10-27 02:26:40,252 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/29977c41-1b35-4c24-84db-d0ee2d8ef674 2025-10-27 02:26:40,258 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:26:40,258 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/795cf870-9c02-4b23-be65-3e72ed5efc28 2025-10-27 02:26:40,267 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4f8ee567-42d6-44dc-b7e2-5cde26537a0d 2025-10-27 02:26:40,282 - INFO - Verified VN network id 11 for VN 795cf870-9c02-4b23-be65-3e72ed5efc28 2025-10-27 02:26:40,282 - INFO - Verifications in API Server for VN ctest-vn4-92391374 passed 2025-10-27 02:26:40,282 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/795cf870-9c02-4b23-be65-3e72ed5efc28 2025-10-27 02:26:40,291 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4f8ee567-42d6-44dc-b7e2-5cde26537a0d 2025-10-27 02:26:40,297 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4f8ee567-42d6-44dc-b7e2-5cde26537a0d 2025-10-27 02:26:40,303 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/29977c41-1b35-4c24-84db-d0ee2d8ef674 2025-10-27 02:26:40,317 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02823727:ctest-vn4-92391374', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02823727', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8745137738984082211', 'uuid-lslong': '13719440503183703080'}, 'enable': 'true', 'created': '2025-10-27T02:26:38', 'last-modified': '2025-10-27T02:26:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.815073'} 2025-10-27 02:26:40,323 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:26:40,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92391374 passed 2025-10-27 02:26:40,323 - DEBUG - ====Verifying policy data for ctest-vn4-92391374 in API_Server ====== 2025-10-27 02:26:40,323 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 02:26:40,330 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c99b2c44-ad08-473a-b2cd-7c69aec9f90b 2025-10-27 02:26:40,339 - DEBUG - Requesting: http://10.0.0.22:8082/project/7183597f-ca9d-4219-ace5-9889ddeeabb0 2025-10-27 02:26:40,409 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/795cf870-9c02-4b23-be65-3e72ed5efc28 2025-10-27 02:26:40,418 - DEBUG - ==>Verifying data for policy with id: 776bc085-5026-4698-81d6-fe6df56c4d03, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02823727', 'ctest-policy1-11969077'] 2025-10-27 02:26:40,418 - INFO - VN ctest-vn4-92391374 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 02:26:40,418 - DEBUG - Verifying the vn in opserver 2025-10-27 02:26:40,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02823727:ctest-vn4-92391374 virtual network link through opserver 10.0.0.22 2025-10-27 02:26:40,418 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-27 02:26:40,752 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-27 02:26:40,804 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02823727:ctest-vn4-92391374', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02823727:ctest-vn4-92391374?flat'} 2025-10-27 02:26:40,804 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02823727:ctest-vn4-92391374 is found in opserver 2025-10-27 02:26:40,815 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 02:26:40,819 - DEBUG - VRF ids for VN ctest-vn4-92391374: {} 2025-10-27 02:26:40,820 - DEBUG - ====Verifying data for ctest-policy1-11969077 in API_Server ====== 2025-10-27 02:26:40,820 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 02:26:40,825 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c99b2c44-ad08-473a-b2cd-7c69aec9f90b 2025-10-27 02:26:40,835 - DEBUG - Requesting: http://10.0.0.22:8082/project/7183597f-ca9d-4219-ace5-9889ddeeabb0 2025-10-27 02:26:40,904 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/776bc085-5026-4698-81d6-fe6df56c4d03 2025-10-27 02:26:40,914 - INFO - Verified policy ctest-policy1-11969077 in API Server, Result: True 2025-10-27 02:26:40,914 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 02:26:40,922 - INFO - Deleting VN ctest-vn4-92391374 2025-10-27 02:26:41,051 - DEBUG - Response for deleting network () 2025-10-27 02:26:41,052 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4f8ee567-42d6-44dc-b7e2-5cde26537a0d 2025-10-27 02:26:41,056 - DEBUG - Response Code: 404 2025-10-27 02:26:41,057 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-27 02:26:41,061 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c99b2c44-ad08-473a-b2cd-7c69aec9f90b 2025-10-27 02:26:41,113 - DEBUG - Requesting: http://10.0.0.22:8082/project/7183597f-ca9d-4219-ace5-9889ddeeabb0 2025-10-27 02:26:41,189 - INFO - Validated that VN ctest-vn4-92391374 is not found in API Server 2025-10-27 02:26:41,198 - DEBUG - VN ctest-vn4-92391374 is not present in Agent 10.0.0.22 2025-10-27 02:26:41,198 - INFO - Validated that VN ctest-vn4-92391374 is not in any agent 2025-10-27 02:26:41,211 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92391374 info 2025-10-27 02:26:41,240 - INFO - Deleted policy ctest-policy1-11969077 2025-10-27 02:26:41,411 - DEBUG - policy ctest-policy1-11969077 is not found in API Server 2025-10-27 02:26:41,665 - DEBUG - No XMPP flaps were noticed during the test