2025-10-21 14:21:55,244 - INFO - Domain Default found not creating 2025-10-21 14:21:55,376 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28753562 not found, creating it 2025-10-21 14:21:55,803 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28753562, ID : 7db94e38-cb73-4caf-83f3-8dd8586936e8 2025-10-21 14:21:57,155 - INFO - ================================================================================ 2025-10-21 14:21:57,155 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 14:21:57,407 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-21 14:21:57,407 - INFO - Initial checks done. Running the testcase now 2025-10-21 14:21:57,407 - INFO - 2025-10-21 14:21:57,407 - INFO - ================================================================================ 2025-10-21 14:21:57,407 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 14:21:57,407 - 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-21 14:21:57,699 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-21 14:21:57,699 - INFO - Initial checks done. Running the testcase now 2025-10-21 14:21:57,699 - INFO - 2025-10-21 14:21:58,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28753562:ctest-vn4-77698166, 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-28753562:ctest-vn4-77698166, 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-28753562:ctest-vn4-77698166, 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-28753562:ctest-vn4-77698166, 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-21 14:21:58,528 - DEBUG - Response for create_network : {'network': {'id': 'a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2', 'name': 'ctest-vn4-77698166', 'tenant_id': '7db94e38cb734caf83f38dd8586936e8', 'project_id': '7db94e38cb734caf83f38dd8586936e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28753562', 'ctest-vn4-77698166'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 14:21:58,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2acc165-fbba-4f03-88b3-de1375afa087', 'name': '', 'tenant_id': '7db94e38cb734caf83f38dd8586936e8', 'network_id': 'a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2', 'ip_version': 4, 'cidr': '12.64.137.192/26', 'allocation_pools': [{'start': '12.64.137.194', 'end': '12.64.137.254'}], 'gateway_ip': '12.64.137.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.64.137.194', 'tags': [], 'project_id': '7db94e38cb734caf83f38dd8586936e8'}} 2025-10-21 14:21:58,887 - DEBUG - Response for create_subnet : {'subnet': {'id': '33889a13-bc03-46be-98d7-5fe01d230794', 'name': '', 'tenant_id': '7db94e38cb734caf83f38dd8586936e8', 'network_id': 'a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2', 'ip_version': 6, 'cidr': '3c6b:b9e1:c72d:55e4:5d13:95ac::/96', 'allocation_pools': [{'start': '3c6b:b9e1:c72d:55e4:5d13:95ac:0:2', 'end': '3c6b:b9e1:c72d:55e4:5d13:95ac:ffff:fffe'}], 'gateway_ip': '3c6b:b9e1:c72d:55e4:5d13:95ac:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c6b:b9e1:c72d:55e4:5d13:95ac:0:2', 'tags': [], 'project_id': '7db94e38cb734caf83f38dd8586936e8'}} 2025-10-21 14:21:58,904 - INFO - Created VN ctest-vn4-77698166 2025-10-21 14:21:58,954 - DEBUG - VN ctest-vn4-77698166 UUID is a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2 2025-10-21 14:21:59,137 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2', 'name': 'ctest-vn4-77698166', 'tenant_id': '7db94e38cb734caf83f38dd8586936e8', 'project_id': '7db94e38cb734caf83f38dd8586936e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2acc165-fbba-4f03-88b3-de1375afa087', '33889a13-bc03-46be-98d7-5fe01d230794'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28753562', 'ctest-vn4-77698166'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28753562', 'ctest-policy1-35326529']], 'subnet_ipam': [{'subnet_cidr': '12.64.137.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c6b:b9e1:c72d:55e4:5d13:95ac::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 14:21:59,294 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 14:21:59,582 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 14:21:59,609 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e65a2689-200b-4ab1-9484-7bbaef4275de 2025-10-21 14:21:59,620 - DEBUG - Requesting: http://10.0.0.38:8082/project/7db94e38-cb73-4caf-83f3-8dd8586936e8 2025-10-21 14:21:59,704 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2 2025-10-21 14:21:59,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2 2025-10-21 14:21:59,723 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f57d2f1-67a5-472c-8b1e-9b6b12711c4b 2025-10-21 14:21:59,728 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f57d2f1-67a5-472c-8b1e-9b6b12711c4b 2025-10-21 14:21:59,734 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1d213912-f6c4-42ad-bbd3-8de4df5097d9 2025-10-21 14:21:59,739 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 14:21:59,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2 2025-10-21 14:21:59,746 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f57d2f1-67a5-472c-8b1e-9b6b12711c4b 2025-10-21 14:21:59,757 - INFO - Verified VN network id 11 for VN a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2 2025-10-21 14:21:59,757 - INFO - Verifications in API Server for VN ctest-vn4-77698166 passed 2025-10-21 14:21:59,757 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2 2025-10-21 14:21:59,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f57d2f1-67a5-472c-8b1e-9b6b12711c4b 2025-10-21 14:21:59,770 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f57d2f1-67a5-472c-8b1e-9b6b12711c4b 2025-10-21 14:21:59,775 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1d213912-f6c4-42ad-bbd3-8de4df5097d9 2025-10-21 14:21:59,786 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28753562:ctest-vn4-77698166', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28753562', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11862375086602210801', 'uuid-lslong': '12232167950187912930'}, 'enable': 'true', 'created': '2025-10-21T14:21:58', 'last-modified': '2025-10-21T14:21:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.670322'} 2025-10-21 14:21:59,792 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 14:21:59,792 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77698166 passed 2025-10-21 14:21:59,792 - DEBUG - ====Verifying policy data for ctest-vn4-77698166 in API_Server ====== 2025-10-21 14:21:59,792 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 14:21:59,796 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e65a2689-200b-4ab1-9484-7bbaef4275de 2025-10-21 14:21:59,806 - DEBUG - Requesting: http://10.0.0.38:8082/project/7db94e38-cb73-4caf-83f3-8dd8586936e8 2025-10-21 14:21:59,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a49f9f4a-ad5e-4df1-a9c1-63f11fde5ee2 2025-10-21 14:21:59,883 - DEBUG - ==>Verifying data for policy with id: 74dbb137-46a2-496a-9c08-fd781480fddf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28753562', 'ctest-policy1-35326529'] 2025-10-21 14:21:59,883 - INFO - VN ctest-vn4-77698166 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 14:21:59,883 - DEBUG - Verifying the vn in opserver 2025-10-21 14:21:59,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28753562:ctest-vn4-77698166 virtual network link through opserver 10.0.0.38 2025-10-21 14:21:59,883 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-21 14:22:00,171 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-21 14:22:00,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28753562:ctest-vn4-77698166', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28753562:ctest-vn4-77698166?flat'} 2025-10-21 14:22:00,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28753562:ctest-vn4-77698166 is found in opserver 2025-10-21 14:22:00,228 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 14:22:00,231 - DEBUG - VRF ids for VN ctest-vn4-77698166: {} 2025-10-21 14:22:00,232 - DEBUG - ====Verifying data for ctest-policy1-35326529 in API_Server ====== 2025-10-21 14:22:00,232 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 14:22:00,236 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e65a2689-200b-4ab1-9484-7bbaef4275de 2025-10-21 14:22:00,245 - DEBUG - Requesting: http://10.0.0.38:8082/project/7db94e38-cb73-4caf-83f3-8dd8586936e8 2025-10-21 14:22:00,309 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/74dbb137-46a2-496a-9c08-fd781480fddf 2025-10-21 14:22:00,317 - INFO - Verified policy ctest-policy1-35326529 in API Server, Result: True 2025-10-21 14:22:00,317 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 14:22:00,323 - INFO - Deleting VN ctest-vn4-77698166 2025-10-21 14:22:00,417 - DEBUG - Response for deleting network () 2025-10-21 14:22:00,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f57d2f1-67a5-472c-8b1e-9b6b12711c4b 2025-10-21 14:22:00,421 - DEBUG - Response Code: 404 2025-10-21 14:22:00,421 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 14:22:00,426 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e65a2689-200b-4ab1-9484-7bbaef4275de 2025-10-21 14:22:00,479 - DEBUG - Requesting: http://10.0.0.38:8082/project/7db94e38-cb73-4caf-83f3-8dd8586936e8 2025-10-21 14:22:00,547 - INFO - Validated that VN ctest-vn4-77698166 is not found in API Server 2025-10-21 14:22:00,556 - DEBUG - VN ctest-vn4-77698166 is not present in Agent 10.0.0.38 2025-10-21 14:22:00,556 - INFO - Validated that VN ctest-vn4-77698166 is not in any agent 2025-10-21 14:22:00,567 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77698166 info 2025-10-21 14:22:00,592 - INFO - Deleted policy ctest-policy1-35326529 2025-10-21 14:22:00,750 - DEBUG - policy ctest-policy1-35326529 is not found in API Server 2025-10-21 14:22:00,999 - DEBUG - No XMPP flaps were noticed during the test