2025-12-10 13:38:47,126 - INFO - Domain Default found not creating 2025-12-10 13:38:47,307 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74864510 not found, creating it 2025-12-10 13:38:47,780 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74864510, ID : c0016f20-caa2-47e3-abd8-1537b83c03a1 2025-12-10 13:38:49,249 - INFO - ================================================================================ 2025-12-10 13:38:49,250 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 13:38:49,504 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-12-10 13:38:49,504 - INFO - Initial checks done. Running the testcase now 2025-12-10 13:38:49,504 - INFO - 2025-12-10 13:38:49,504 - INFO - ================================================================================ 2025-12-10 13:38:49,504 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 13:38:49,504 - 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-10 13:38:49,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-12-10 13:38:49,797 - INFO - Initial checks done. Running the testcase now 2025-12-10 13:38:49,797 - INFO - 2025-12-10 13:38:50,159 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74864510:ctest-vn4-98674997, 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-74864510:ctest-vn4-98674997, 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-74864510:ctest-vn4-98674997, 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-74864510:ctest-vn4-98674997, 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-10 13:38:50,698 - DEBUG - Response for create_network : {'network': {'id': '79c91908-39be-490b-a4ed-798c9e9ecb40', 'name': 'ctest-vn4-98674997', 'tenant_id': 'c0016f20caa247e3abd81537b83c03a1', 'project_id': 'c0016f20caa247e3abd81537b83c03a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74864510', 'ctest-vn4-98674997'], 'port_security_enabled': True, 'description': ''}} 2025-12-10 13:38:50,871 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abf3e966-ecd1-4668-8d82-eb97bafe2176', 'name': '', 'tenant_id': 'c0016f20caa247e3abd81537b83c03a1', 'network_id': '79c91908-39be-490b-a4ed-798c9e9ecb40', 'ip_version': 4, 'cidr': '50.57.70.128/26', 'allocation_pools': [{'start': '50.57.70.130', 'end': '50.57.70.190'}], 'gateway_ip': '50.57.70.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.57.70.130', 'tags': [], 'project_id': 'c0016f20caa247e3abd81537b83c03a1'}} 2025-12-10 13:38:51,042 - DEBUG - Response for create_subnet : {'subnet': {'id': '0806048d-3180-4016-9392-a4c038ae94bf', 'name': '', 'tenant_id': 'c0016f20caa247e3abd81537b83c03a1', 'network_id': '79c91908-39be-490b-a4ed-798c9e9ecb40', 'ip_version': 6, 'cidr': '2482:f55a:f7c7:3f7a:75b4:9582::/96', 'allocation_pools': [{'start': '2482:f55a:f7c7:3f7a:75b4:9582:0:2', 'end': '2482:f55a:f7c7:3f7a:75b4:9582:ffff:fffe'}], 'gateway_ip': '2482:f55a:f7c7:3f7a:75b4:9582:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2482:f55a:f7c7:3f7a:75b4:9582:0:2', 'tags': [], 'project_id': 'c0016f20caa247e3abd81537b83c03a1'}} 2025-12-10 13:38:51,062 - INFO - Created VN ctest-vn4-98674997 2025-12-10 13:38:51,114 - DEBUG - VN ctest-vn4-98674997 UUID is 79c91908-39be-490b-a4ed-798c9e9ecb40 2025-12-10 13:38:51,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79c91908-39be-490b-a4ed-798c9e9ecb40', 'name': 'ctest-vn4-98674997', 'tenant_id': 'c0016f20caa247e3abd81537b83c03a1', 'project_id': 'c0016f20caa247e3abd81537b83c03a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abf3e966-ecd1-4668-8d82-eb97bafe2176', '0806048d-3180-4016-9392-a4c038ae94bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74864510', 'ctest-vn4-98674997'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74864510', 'ctest-policy1-48873523']], 'subnet_ipam': [{'subnet_cidr': '50.57.70.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2482:f55a:f7c7:3f7a:75b4:9582::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-10 13:38:51,486 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-10 13:38:51,782 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-10 13:38:51,819 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56ae90ce-a7b7-4de8-9da1-c2a15132e861 2025-12-10 13:38:51,831 - DEBUG - Requesting: http://10.0.0.33:8082/project/c0016f20-caa2-47e3-abd8-1537b83c03a1 2025-12-10 13:38:51,904 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/79c91908-39be-490b-a4ed-798c9e9ecb40 2025-12-10 13:38:51,916 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/79c91908-39be-490b-a4ed-798c9e9ecb40 2025-12-10 13:38:51,926 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/705dca8f-ec94-410b-a94a-1e5f31934742 2025-12-10 13:38:51,934 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/705dca8f-ec94-410b-a94a-1e5f31934742 2025-12-10 13:38:51,941 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1e8b4e4c-6d42-405f-b47f-73f521920d60 2025-12-10 13:38:51,948 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 13:38:51,949 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/79c91908-39be-490b-a4ed-798c9e9ecb40 2025-12-10 13:38:51,960 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/705dca8f-ec94-410b-a94a-1e5f31934742 2025-12-10 13:38:51,975 - INFO - Verified VN network id 11 for VN 79c91908-39be-490b-a4ed-798c9e9ecb40 2025-12-10 13:38:51,975 - INFO - Verifications in API Server for VN ctest-vn4-98674997 passed 2025-12-10 13:38:51,975 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/79c91908-39be-490b-a4ed-798c9e9ecb40 2025-12-10 13:38:51,985 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/705dca8f-ec94-410b-a94a-1e5f31934742 2025-12-10 13:38:51,992 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/705dca8f-ec94-410b-a94a-1e5f31934742 2025-12-10 13:38:52,003 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1e8b4e4c-6d42-405f-b47f-73f521920d60 2025-12-10 13:38:52,018 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74864510:ctest-vn4-98674997', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74864510', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8775572872027326731', 'uuid-lslong': '11884288636564196160'}, 'enable': 'true', 'created': '2025-12-10T13:38:50', 'last-modified': '2025-12-10T13:38:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.723177'} 2025-12-10 13:38:52,025 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 13:38:52,025 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98674997 passed 2025-12-10 13:38:52,025 - DEBUG - ====Verifying policy data for ctest-vn4-98674997 in API_Server ====== 2025-12-10 13:38:52,025 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-10 13:38:52,031 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56ae90ce-a7b7-4de8-9da1-c2a15132e861 2025-12-10 13:38:52,042 - DEBUG - Requesting: http://10.0.0.33:8082/project/c0016f20-caa2-47e3-abd8-1537b83c03a1 2025-12-10 13:38:52,114 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/79c91908-39be-490b-a4ed-798c9e9ecb40 2025-12-10 13:38:52,124 - DEBUG - ==>Verifying data for policy with id: ebabdcf0-d9b6-41ae-b7be-ec3f6eb68afb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74864510', 'ctest-policy1-48873523'] 2025-12-10 13:38:52,125 - INFO - VN ctest-vn4-98674997 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-10 13:38:52,125 - DEBUG - Verifying the vn in opserver 2025-12-10 13:38:52,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74864510:ctest-vn4-98674997 virtual network link through opserver 10.0.0.33 2025-12-10 13:38:52,125 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-10 13:38:52,421 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-10 13:38:52,490 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74864510:ctest-vn4-98674997', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74864510:ctest-vn4-98674997?flat'} 2025-12-10 13:38:52,490 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74864510:ctest-vn4-98674997 is found in opserver 2025-12-10 13:38:52,500 - DEBUG - Do not have enough data to verify VN in agent 2025-12-10 13:38:52,505 - DEBUG - VRF ids for VN ctest-vn4-98674997: {} 2025-12-10 13:38:52,505 - DEBUG - ====Verifying data for ctest-policy1-48873523 in API_Server ====== 2025-12-10 13:38:52,505 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-10 13:38:52,512 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56ae90ce-a7b7-4de8-9da1-c2a15132e861 2025-12-10 13:38:52,524 - DEBUG - Requesting: http://10.0.0.33:8082/project/c0016f20-caa2-47e3-abd8-1537b83c03a1 2025-12-10 13:38:52,597 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/ebabdcf0-d9b6-41ae-b7be-ec3f6eb68afb 2025-12-10 13:38:52,606 - INFO - Verified policy ctest-policy1-48873523 in API Server, Result: True 2025-12-10 13:38:52,606 - INFO - Done with setup and verification, moving onto test .. 2025-12-10 13:38:52,613 - INFO - Deleting VN ctest-vn4-98674997 2025-12-10 13:38:52,729 - DEBUG - Response for deleting network () 2025-12-10 13:38:52,729 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/705dca8f-ec94-410b-a94a-1e5f31934742 2025-12-10 13:38:52,735 - DEBUG - Response Code: 404 2025-12-10 13:38:52,735 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-10 13:38:52,741 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56ae90ce-a7b7-4de8-9da1-c2a15132e861 2025-12-10 13:38:52,799 - DEBUG - Requesting: http://10.0.0.33:8082/project/c0016f20-caa2-47e3-abd8-1537b83c03a1 2025-12-10 13:38:52,867 - INFO - Validated that VN ctest-vn4-98674997 is not found in API Server 2025-12-10 13:38:52,876 - DEBUG - VN ctest-vn4-98674997 is not present in Agent 10.0.0.33 2025-12-10 13:38:52,877 - INFO - Validated that VN ctest-vn4-98674997 is not in any agent 2025-12-10 13:38:52,889 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98674997 info 2025-12-10 13:38:52,919 - INFO - Deleted policy ctest-policy1-48873523 2025-12-10 13:38:53,082 - DEBUG - policy ctest-policy1-48873523 is not found in API Server 2025-12-10 13:38:53,336 - DEBUG - No XMPP flaps were noticed during the test 2025-12-10 13:38:53,336 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-10 13:38:53,337 - INFO - -------------------------------------------------------------------------------- 2025-12-10 13:38:53,624 - DEBUG - No XMPP flaps were noticed during the test 2025-12-10 13:38:53,624 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-10 13:38:53,624 - INFO - -------------------------------------------------------------------------------- 2025-12-10 13:38:54,307 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74864510, ID : c0016f20-caa2-47e3-abd8-1537b83c03a1