2025-12-29 02:36:29,002 - INFO - Domain Default found not creating 2025-12-29 02:36:29,172 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80789391 not found, creating it 2025-12-29 02:36:29,731 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80789391, ID : 078d0f79-ed30-46a8-9f60-d67e35b35616 2025-12-29 02:36:31,224 - INFO - ================================================================================ 2025-12-29 02:36:31,224 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 02:36:32,520 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.145': '0', '10.20.0.18': '0'}, '10.0.0.240': {'10.20.0.252': '0', '10.20.0.18': '0'}} with 2025-12-29 02:36:32,520 - INFO - Initial checks done. Running the testcase now 2025-12-29 02:36:32,520 - INFO - 2025-12-29 02:36:32,520 - INFO - ================================================================================ 2025-12-29 02:36:32,521 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 02:36:32,521 - 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-12-29 02:36:33,787 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.145': '0', '10.20.0.18': '0'}, '10.0.0.240': {'10.20.0.252': '0', '10.20.0.18': '0'}} with 2025-12-29 02:36:33,787 - INFO - Initial checks done. Running the testcase now 2025-12-29 02:36:33,787 - INFO - 2025-12-29 02:36:34,142 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151, 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-80789391:ctest-vn4-47201151, 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-80789391:ctest-vn4-47201151, 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-80789391:ctest-vn4-47201151, 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-12-29 02:36:34,722 - DEBUG - Response for create_network : {'network': {'id': 'e3233950-382f-4d3c-94f1-9d6abae18808', 'name': 'ctest-vn4-47201151', 'tenant_id': '078d0f79ed3046a89f60d67e35b35616', 'project_id': '078d0f79ed3046a89f60d67e35b35616', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80789391', 'ctest-vn4-47201151'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:36:34,967 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f18b0d6-5d5e-4cce-8e78-fb685e593f47', 'name': '', 'tenant_id': '078d0f79ed3046a89f60d67e35b35616', 'network_id': 'e3233950-382f-4d3c-94f1-9d6abae18808', 'ip_version': 4, 'cidr': '103.216.176.64/26', 'allocation_pools': [{'start': '103.216.176.66', 'end': '103.216.176.126'}], 'gateway_ip': '103.216.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.216.176.66', 'tags': [], 'project_id': '078d0f79ed3046a89f60d67e35b35616'}} 2025-12-29 02:36:35,169 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf34862c-82db-4f7a-96e6-cff107bd94cb', 'name': '', 'tenant_id': '078d0f79ed3046a89f60d67e35b35616', 'network_id': 'e3233950-382f-4d3c-94f1-9d6abae18808', 'ip_version': 6, 'cidr': '2091:eba8:f375:6674:d405:2c66::/96', 'allocation_pools': [{'start': '2091:eba8:f375:6674:d405:2c66:0:2', 'end': '2091:eba8:f375:6674:d405:2c66:ffff:fffe'}], 'gateway_ip': '2091:eba8:f375:6674:d405:2c66:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2091:eba8:f375:6674:d405:2c66:0:2', 'tags': [], 'project_id': '078d0f79ed3046a89f60d67e35b35616'}} 2025-12-29 02:36:35,190 - INFO - Created VN ctest-vn4-47201151 2025-12-29 02:36:35,200 - DEBUG - VN ctest-vn4-47201151 UUID is e3233950-382f-4d3c-94f1-9d6abae18808 2025-12-29 02:36:35,405 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3233950-382f-4d3c-94f1-9d6abae18808', 'name': 'ctest-vn4-47201151', 'tenant_id': '078d0f79ed3046a89f60d67e35b35616', 'project_id': '078d0f79ed3046a89f60d67e35b35616', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f18b0d6-5d5e-4cce-8e78-fb685e593f47', 'cf34862c-82db-4f7a-96e6-cff107bd94cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80789391', 'ctest-vn4-47201151'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80789391', 'ctest-policy1-40216687']], 'subnet_ipam': [{'subnet_cidr': '103.216.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2091:eba8:f375:6674:d405:2c66::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:36:35,498 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:36:35,793 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:36:35,828 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:36:35,842 - DEBUG - Requesting: http://10.0.0.61:8082/project/078d0f79-ed30-46a8-9f60-d67e35b35616 2025-12-29 02:36:35,939 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/e3233950-382f-4d3c-94f1-9d6abae18808 2025-12-29 02:36:35,950 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/e3233950-382f-4d3c-94f1-9d6abae18808 2025-12-29 02:36:35,959 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6b8d6666-dc06-411e-8349-3590c8aeafac 2025-12-29 02:36:35,966 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6b8d6666-dc06-411e-8349-3590c8aeafac 2025-12-29 02:36:35,972 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/9d54886a-2819-4331-ba2a-136177297b45 2025-12-29 02:36:35,978 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:36:35,978 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/e3233950-382f-4d3c-94f1-9d6abae18808 2025-12-29 02:36:35,986 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6b8d6666-dc06-411e-8349-3590c8aeafac 2025-12-29 02:36:36,000 - INFO - Verified VN network id 11 for VN e3233950-382f-4d3c-94f1-9d6abae18808 2025-12-29 02:36:36,001 - INFO - Verifications in API Server for VN ctest-vn4-47201151 passed 2025-12-29 02:36:36,001 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/e3233950-382f-4d3c-94f1-9d6abae18808 2025-12-29 02:36:36,010 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6b8d6666-dc06-411e-8349-3590c8aeafac 2025-12-29 02:36:36,018 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6b8d6666-dc06-411e-8349-3590c8aeafac 2025-12-29 02:36:36,026 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/9d54886a-2819-4331-ba2a-136177297b45 2025-12-29 02:36:36,039 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80789391', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16366988487497305404', 'uuid-lslong': '10732532468728039432'}, 'enable': 'true', 'created': '2025-12-29T02:36:34', 'last-modified': '2025-12-29T02:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678019'} 2025-12-29 02:36:36,045 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:36:36,052 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80789391', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16366988487497305404', 'uuid-lslong': '10732532468728039432'}, 'enable': 'true', 'created': '2025-12-29T02:36:34', 'last-modified': '2025-12-29T02:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.691100'} 2025-12-29 02:36:36,059 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:36:36,064 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80789391', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16366988487497305404', 'uuid-lslong': '10732532468728039432'}, 'enable': 'true', 'created': '2025-12-29T02:36:34', 'last-modified': '2025-12-29T02:36:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715775'} 2025-12-29 02:36:36,070 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:36:36,070 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47201151 passed 2025-12-29 02:36:36,070 - DEBUG - ====Verifying policy data for ctest-vn4-47201151 in API_Server ====== 2025-12-29 02:36:36,070 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:36:36,076 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:36:36,088 - DEBUG - Requesting: http://10.0.0.61:8082/project/078d0f79-ed30-46a8-9f60-d67e35b35616 2025-12-29 02:36:36,180 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/e3233950-382f-4d3c-94f1-9d6abae18808 2025-12-29 02:36:36,191 - DEBUG - ==>Verifying data for policy with id: 547efd32-7676-46b6-8e5f-1ffe3726a542, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80789391', 'ctest-policy1-40216687'] 2025-12-29 02:36:36,191 - INFO - VN ctest-vn4-47201151 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-29 02:36:36,191 - DEBUG - Verifying the vn in opserver 2025-12-29 02:36:36,192 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151 virtual network link through opserver 10.0.0.61 2025-12-29 02:36:36,192 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-29 02:36:36,487 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-29 02:36:36,544 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151?flat'} 2025-12-29 02:36:36,544 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151 virtual network link through opserver 10.0.0.22 2025-12-29 02:36:36,545 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-29 02:36:36,845 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-29 02:36:36,919 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151?flat'} 2025-12-29 02:36:36,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151 virtual network link through opserver 10.0.0.27 2025-12-29 02:36:36,919 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-29 02:36:37,216 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-29 02:36:37,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151?flat'} 2025-12-29 02:36:37,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80789391:ctest-vn4-47201151 is found in opserver 2025-12-29 02:36:37,296 - DEBUG - Do not have enough data to verify VN in agent 2025-12-29 02:36:37,306 - DEBUG - VRF ids for VN ctest-vn4-47201151: {} 2025-12-29 02:36:37,306 - DEBUG - ====Verifying data for ctest-policy1-40216687 in API_Server ====== 2025-12-29 02:36:37,306 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:36:37,312 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:36:37,323 - DEBUG - Requesting: http://10.0.0.61:8082/project/078d0f79-ed30-46a8-9f60-d67e35b35616 2025-12-29 02:36:37,432 - DEBUG - Requesting: http://10.0.0.61:8082/network-policy/547efd32-7676-46b6-8e5f-1ffe3726a542 2025-12-29 02:36:37,442 - INFO - Verified policy ctest-policy1-40216687 in API Server, Result: True 2025-12-29 02:36:37,442 - INFO - Done with setup and verification, moving onto test .. 2025-12-29 02:36:37,453 - INFO - Deleting VN ctest-vn4-47201151 2025-12-29 02:36:37,646 - DEBUG - Response for deleting network () 2025-12-29 02:36:37,646 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6b8d6666-dc06-411e-8349-3590c8aeafac 2025-12-29 02:36:37,653 - DEBUG - Response Code: 404 2025-12-29 02:36:37,653 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:36:37,671 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:36:37,691 - DEBUG - Requesting: http://10.0.0.61:8082/project/078d0f79-ed30-46a8-9f60-d67e35b35616 2025-12-29 02:36:37,777 - INFO - Validated that VN ctest-vn4-47201151 is not found in API Server 2025-12-29 02:36:37,791 - DEBUG - VN ctest-vn4-47201151 is not present in Agent 10.0.0.56 2025-12-29 02:36:37,800 - DEBUG - VN ctest-vn4-47201151 is not present in Agent 10.0.0.240 2025-12-29 02:36:37,800 - INFO - Validated that VN ctest-vn4-47201151 is not in any agent 2025-12-29 02:36:37,832 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47201151 info 2025-12-29 02:36:37,880 - INFO - Deleted policy ctest-policy1-40216687 2025-12-29 02:36:38,068 - DEBUG - policy ctest-policy1-40216687 is not found in API Server 2025-12-29 02:36:39,351 - DEBUG - No XMPP flaps were noticed during the test 2025-12-29 02:36:39,351 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-12-29 02:36:39,351 - INFO - -------------------------------------------------------------------------------- 2025-12-29 02:36:40,628 - DEBUG - No XMPP flaps were noticed during the test 2025-12-29 02:36:40,628 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2025-12-29 02:36:40,628 - INFO - -------------------------------------------------------------------------------- 2025-12-29 02:36:41,347 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80789391, ID : 078d0f79-ed30-46a8-9f60-d67e35b35616