2025-10-12 19:09:27,077 - INFO - Domain Default found not creating 2025-10-12 19:09:27,210 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11488958 not found, creating it 2025-10-12 19:09:27,644 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11488958, ID : 3ea0f263-3979-4fb7-ad05-2ce02cc36dc5 2025-10-12 19:09:29,018 - INFO - ================================================================================ 2025-10-12 19:09:29,018 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-12 19:09:29,273 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-10-12 19:09:29,273 - INFO - Initial checks done. Running the testcase now 2025-10-12 19:09:29,273 - INFO - 2025-10-12 19:09:29,273 - INFO - ================================================================================ 2025-10-12 19:09:29,273 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-12 19:09:29,273 - 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-12 19:09:29,561 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-10-12 19:09:29,561 - INFO - Initial checks done. Running the testcase now 2025-10-12 19:09:29,561 - INFO - 2025-10-12 19:09:29,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11488958:ctest-vn4-08542645, 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-11488958:ctest-vn4-08542645, 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-11488958:ctest-vn4-08542645, 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-11488958:ctest-vn4-08542645, 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-12 19:09:30,387 - DEBUG - Response for create_network : {'network': {'id': '8ebe92d4-3f90-4b0d-9c44-945251c947bb', 'name': 'ctest-vn4-08542645', 'tenant_id': '3ea0f26339794fb7ad052ce02cc36dc5', 'project_id': '3ea0f26339794fb7ad052ce02cc36dc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11488958', 'ctest-vn4-08542645'], 'port_security_enabled': True, 'description': ''}} 2025-10-12 19:09:30,569 - DEBUG - Response for create_subnet : {'subnet': {'id': '76827b80-6ecd-4855-b051-bb227b315ded', 'name': '', 'tenant_id': '3ea0f26339794fb7ad052ce02cc36dc5', 'network_id': '8ebe92d4-3f90-4b0d-9c44-945251c947bb', 'ip_version': 4, 'cidr': '129.96.169.128/26', 'allocation_pools': [{'start': '129.96.169.130', 'end': '129.96.169.190'}], 'gateway_ip': '129.96.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.96.169.130', 'tags': [], 'project_id': '3ea0f26339794fb7ad052ce02cc36dc5'}} 2025-10-12 19:09:30,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b318e9af-022f-4cf3-9121-0f5e484fdf59', 'name': '', 'tenant_id': '3ea0f26339794fb7ad052ce02cc36dc5', 'network_id': '8ebe92d4-3f90-4b0d-9c44-945251c947bb', 'ip_version': 6, 'cidr': '3713:3768:c04a:9966:a55c:9990::/96', 'allocation_pools': [{'start': '3713:3768:c04a:9966:a55c:9990:0:2', 'end': '3713:3768:c04a:9966:a55c:9990:ffff:fffe'}], 'gateway_ip': '3713:3768:c04a:9966:a55c:9990:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3713:3768:c04a:9966:a55c:9990:0:2', 'tags': [], 'project_id': '3ea0f26339794fb7ad052ce02cc36dc5'}} 2025-10-12 19:09:30,763 - INFO - Created VN ctest-vn4-08542645 2025-10-12 19:09:30,815 - DEBUG - VN ctest-vn4-08542645 UUID is 8ebe92d4-3f90-4b0d-9c44-945251c947bb 2025-10-12 19:09:31,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ebe92d4-3f90-4b0d-9c44-945251c947bb', 'name': 'ctest-vn4-08542645', 'tenant_id': '3ea0f26339794fb7ad052ce02cc36dc5', 'project_id': '3ea0f26339794fb7ad052ce02cc36dc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76827b80-6ecd-4855-b051-bb227b315ded', 'b318e9af-022f-4cf3-9121-0f5e484fdf59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11488958', 'ctest-vn4-08542645'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11488958', 'ctest-policy1-25670140']], 'subnet_ipam': [{'subnet_cidr': '129.96.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3713:3768:c04a:9966:a55c:9990::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-12 19:09:31,235 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 19:09:31,525 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 19:09:31,551 - DEBUG - Requesting: http://10.0.0.48:8082/domain/62d0a32e-052e-4a9b-b6a4-4f9a2f507701 2025-10-12 19:09:31,562 - DEBUG - Requesting: http://10.0.0.48:8082/project/3ea0f263-3979-4fb7-ad05-2ce02cc36dc5 2025-10-12 19:09:31,633 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebe92d4-3f90-4b0d-9c44-945251c947bb 2025-10-12 19:09:31,644 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebe92d4-3f90-4b0d-9c44-945251c947bb 2025-10-12 19:09:31,652 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ffe5d12d-db46-4d52-a535-85378ae602bd 2025-10-12 19:09:31,659 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ffe5d12d-db46-4d52-a535-85378ae602bd 2025-10-12 19:09:31,665 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/bd14e599-5a18-4193-9111-27fa98bee2b6 2025-10-12 19:09:31,671 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-12 19:09:31,671 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebe92d4-3f90-4b0d-9c44-945251c947bb 2025-10-12 19:09:31,680 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ffe5d12d-db46-4d52-a535-85378ae602bd 2025-10-12 19:09:31,693 - INFO - Verified VN network id 12 for VN 8ebe92d4-3f90-4b0d-9c44-945251c947bb 2025-10-12 19:09:31,693 - INFO - Verifications in API Server for VN ctest-vn4-08542645 passed 2025-10-12 19:09:31,693 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebe92d4-3f90-4b0d-9c44-945251c947bb 2025-10-12 19:09:31,701 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ffe5d12d-db46-4d52-a535-85378ae602bd 2025-10-12 19:09:31,707 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ffe5d12d-db46-4d52-a535-85378ae602bd 2025-10-12 19:09:31,713 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/bd14e599-5a18-4193-9111-27fa98bee2b6 2025-10-12 19:09:31,723 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11488958:ctest-vn4-08542645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11488958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10285820039257934605', 'uuid-lslong': '11260288049613457339'}, 'enable': 'true', 'created': '2025-10-12T19:09:30', 'last-modified': '2025-10-12T19:09:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667585'} 2025-10-12 19:09:31,729 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-12 19:09:31,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08542645 passed 2025-10-12 19:09:31,729 - DEBUG - ====Verifying policy data for ctest-vn4-08542645 in API_Server ====== 2025-10-12 19:09:31,729 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 19:09:31,735 - DEBUG - Requesting: http://10.0.0.48:8082/domain/62d0a32e-052e-4a9b-b6a4-4f9a2f507701 2025-10-12 19:09:31,746 - DEBUG - Requesting: http://10.0.0.48:8082/project/3ea0f263-3979-4fb7-ad05-2ce02cc36dc5 2025-10-12 19:09:31,813 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebe92d4-3f90-4b0d-9c44-945251c947bb 2025-10-12 19:09:31,822 - DEBUG - ==>Verifying data for policy with id: e78c10b2-1cdd-4917-8685-b5e738031a28, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11488958', 'ctest-policy1-25670140'] 2025-10-12 19:09:31,822 - INFO - VN ctest-vn4-08542645 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-12 19:09:31,822 - DEBUG - Verifying the vn in opserver 2025-10-12 19:09:31,822 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11488958:ctest-vn4-08542645 virtual network link through opserver 10.0.0.48 2025-10-12 19:09:31,822 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-12 19:09:32,110 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-12 19:09:32,162 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11488958:ctest-vn4-08542645', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11488958:ctest-vn4-08542645?flat'} 2025-10-12 19:09:32,162 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11488958:ctest-vn4-08542645 is found in opserver 2025-10-12 19:09:32,171 - DEBUG - Do not have enough data to verify VN in agent 2025-10-12 19:09:32,175 - DEBUG - VRF ids for VN ctest-vn4-08542645: {} 2025-10-12 19:09:32,175 - DEBUG - ====Verifying data for ctest-policy1-25670140 in API_Server ====== 2025-10-12 19:09:32,175 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 19:09:32,180 - DEBUG - Requesting: http://10.0.0.48:8082/domain/62d0a32e-052e-4a9b-b6a4-4f9a2f507701 2025-10-12 19:09:32,190 - DEBUG - Requesting: http://10.0.0.48:8082/project/3ea0f263-3979-4fb7-ad05-2ce02cc36dc5 2025-10-12 19:09:32,258 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/e78c10b2-1cdd-4917-8685-b5e738031a28 2025-10-12 19:09:32,267 - INFO - Verified policy ctest-policy1-25670140 in API Server, Result: True 2025-10-12 19:09:32,267 - INFO - Done with setup and verification, moving onto test .. 2025-10-12 19:09:32,275 - INFO - Deleting VN ctest-vn4-08542645 2025-10-12 19:09:32,374 - DEBUG - Response for deleting network () 2025-10-12 19:09:32,374 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ffe5d12d-db46-4d52-a535-85378ae602bd 2025-10-12 19:09:32,378 - DEBUG - Response Code: 404 2025-10-12 19:09:32,378 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 19:09:32,382 - DEBUG - Requesting: http://10.0.0.48:8082/domain/62d0a32e-052e-4a9b-b6a4-4f9a2f507701 2025-10-12 19:09:32,431 - DEBUG - Requesting: http://10.0.0.48:8082/project/3ea0f263-3979-4fb7-ad05-2ce02cc36dc5 2025-10-12 19:09:32,498 - INFO - Validated that VN ctest-vn4-08542645 is not found in API Server 2025-10-12 19:09:32,506 - DEBUG - VN ctest-vn4-08542645 is not present in Agent 10.0.0.48 2025-10-12 19:09:32,506 - INFO - Validated that VN ctest-vn4-08542645 is not in any agent 2025-10-12 19:09:32,517 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08542645 info 2025-10-12 19:09:32,546 - INFO - Deleted policy ctest-policy1-25670140 2025-10-12 19:09:32,711 - DEBUG - policy ctest-policy1-25670140 is not found in API Server 2025-10-12 19:09:32,964 - DEBUG - No XMPP flaps were noticed during the test
2025-10-12 19:09:32,964 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-12 19:09:32,964 - INFO - -------------------------------------------------------------------------------- 2025-10-12 19:09:33,256 - DEBUG - No XMPP flaps were noticed during the test
2025-10-12 19:09:33,256 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-12 19:09:33,256 - INFO - -------------------------------------------------------------------------------- 2025-10-12 19:09:33,903 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11488958, ID : 3ea0f263-3979-4fb7-ad05-2ce02cc36dc5