2025-12-01 13:21:55,808 - INFO - Domain Default found not creating 2025-12-01 13:21:55,982 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16059143 not found, creating it 2025-12-01 13:21:56,473 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16059143, ID : 35eaaab8-f435-4c0a-a4fa-616045bdebf4 2025-12-01 13:21:57,963 - INFO - ================================================================================ 2025-12-01 13:21:57,963 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-01 13:21:58,224 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-01 13:21:58,224 - INFO - Initial checks done. Running the testcase now 2025-12-01 13:21:58,224 - INFO - 2025-12-01 13:21:58,224 - INFO - ================================================================================ 2025-12-01 13:21:58,224 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-01 13:21:58,225 - 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-01 13:21:58,515 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-01 13:21:58,516 - INFO - Initial checks done. Running the testcase now 2025-12-01 13:21:58,516 - INFO - 2025-12-01 13:21:58,872 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16059143:ctest-vn4-20344454, 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-16059143:ctest-vn4-20344454, 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-16059143:ctest-vn4-20344454, 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-16059143:ctest-vn4-20344454, 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-01 13:21:59,393 - DEBUG - Response for create_network : {'network': {'id': '3ec19391-62f2-4d35-9e23-f8f9f39568bd', 'name': 'ctest-vn4-20344454', 'tenant_id': '35eaaab8f4354c0aa4fa616045bdebf4', 'project_id': '35eaaab8f4354c0aa4fa616045bdebf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16059143', 'ctest-vn4-20344454'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 13:21:59,574 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd74a3f3-87ab-488a-99f7-eb3f8b9adeb0', 'name': '', 'tenant_id': '35eaaab8f4354c0aa4fa616045bdebf4', 'network_id': '3ec19391-62f2-4d35-9e23-f8f9f39568bd', 'ip_version': 4, 'cidr': '161.194.8.128/26', 'allocation_pools': [{'start': '161.194.8.130', 'end': '161.194.8.190'}], 'gateway_ip': '161.194.8.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.194.8.130', 'tags': [], 'project_id': '35eaaab8f4354c0aa4fa616045bdebf4'}} 2025-12-01 13:21:59,745 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e05ad349-85d8-47d5-a938-1d83e72a652e', 'name': '', 'tenant_id': '35eaaab8f4354c0aa4fa616045bdebf4', 'network_id': '3ec19391-62f2-4d35-9e23-f8f9f39568bd', 'ip_version': 6, 'cidr': '2852:e94a:665e:396d:f917:a4f9::/96', 'allocation_pools': [{'start': '2852:e94a:665e:396d:f917:a4f9:0:2', 'end': '2852:e94a:665e:396d:f917:a4f9:ffff:fffe'}], 'gateway_ip': '2852:e94a:665e:396d:f917:a4f9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2852:e94a:665e:396d:f917:a4f9:0:2', 'tags': [], 'project_id': '35eaaab8f4354c0aa4fa616045bdebf4'}} 2025-12-01 13:21:59,765 - INFO - Created VN ctest-vn4-20344454 2025-12-01 13:21:59,818 - DEBUG - VN ctest-vn4-20344454 UUID is 3ec19391-62f2-4d35-9e23-f8f9f39568bd 2025-12-01 13:22:00,023 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ec19391-62f2-4d35-9e23-f8f9f39568bd', 'name': 'ctest-vn4-20344454', 'tenant_id': '35eaaab8f4354c0aa4fa616045bdebf4', 'project_id': '35eaaab8f4354c0aa4fa616045bdebf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd74a3f3-87ab-488a-99f7-eb3f8b9adeb0', 'e05ad349-85d8-47d5-a938-1d83e72a652e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16059143', 'ctest-vn4-20344454'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16059143', 'ctest-policy1-84898358']], 'subnet_ipam': [{'subnet_cidr': '161.194.8.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2852:e94a:665e:396d:f917:a4f9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-01 13:22:00,190 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 13:22:00,485 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 13:22:00,521 - DEBUG - Requesting: http://10.0.0.50:8082/domain/becf8fcd-ffe7-4871-97bb-0085eabd7b09 2025-12-01 13:22:00,535 - DEBUG - Requesting: http://10.0.0.50:8082/project/35eaaab8-f435-4c0a-a4fa-616045bdebf4 2025-12-01 13:22:00,607 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec19391-62f2-4d35-9e23-f8f9f39568bd 2025-12-01 13:22:00,618 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec19391-62f2-4d35-9e23-f8f9f39568bd 2025-12-01 13:22:00,628 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a014ede-d040-4fb8-a2ad-c08e724185fe 2025-12-01 13:22:00,635 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a014ede-d040-4fb8-a2ad-c08e724185fe 2025-12-01 13:22:00,642 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2bf884d2-9faa-43f7-83ee-b09aa31de0e4 2025-12-01 13:22:00,648 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 13:22:00,648 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec19391-62f2-4d35-9e23-f8f9f39568bd 2025-12-01 13:22:00,657 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a014ede-d040-4fb8-a2ad-c08e724185fe 2025-12-01 13:22:00,673 - INFO - Verified VN network id 11 for VN 3ec19391-62f2-4d35-9e23-f8f9f39568bd 2025-12-01 13:22:00,673 - INFO - Verifications in API Server for VN ctest-vn4-20344454 passed 2025-12-01 13:22:00,673 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec19391-62f2-4d35-9e23-f8f9f39568bd 2025-12-01 13:22:00,684 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a014ede-d040-4fb8-a2ad-c08e724185fe 2025-12-01 13:22:00,691 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a014ede-d040-4fb8-a2ad-c08e724185fe 2025-12-01 13:22:00,698 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2bf884d2-9faa-43f7-83ee-b09aa31de0e4 2025-12-01 13:22:00,710 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16059143:ctest-vn4-20344454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16059143', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4522057753496276277', 'uuid-lslong': '11395225234594687165'}, 'enable': 'true', 'created': '2025-12-01T13:21:59', 'last-modified': '2025-12-01T13:21:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713149'} 2025-12-01 13:22:00,715 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 13:22:00,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20344454 passed 2025-12-01 13:22:00,716 - DEBUG - ====Verifying policy data for ctest-vn4-20344454 in API_Server ====== 2025-12-01 13:22:00,716 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 13:22:00,721 - DEBUG - Requesting: http://10.0.0.50:8082/domain/becf8fcd-ffe7-4871-97bb-0085eabd7b09 2025-12-01 13:22:00,732 - DEBUG - Requesting: http://10.0.0.50:8082/project/35eaaab8-f435-4c0a-a4fa-616045bdebf4 2025-12-01 13:22:00,804 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ec19391-62f2-4d35-9e23-f8f9f39568bd 2025-12-01 13:22:00,814 - DEBUG - ==>Verifying data for policy with id: 04e12f11-2437-4567-b1ca-de4522d11574, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16059143', 'ctest-policy1-84898358'] 2025-12-01 13:22:00,814 - INFO - VN ctest-vn4-20344454 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-01 13:22:00,814 - DEBUG - Verifying the vn in opserver 2025-12-01 13:22:00,814 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16059143:ctest-vn4-20344454 virtual network link through opserver 10.0.0.50 2025-12-01 13:22:00,814 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-01 13:22:01,112 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-01 13:22:01,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16059143:ctest-vn4-20344454', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16059143:ctest-vn4-20344454?flat'} 2025-12-01 13:22:01,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16059143:ctest-vn4-20344454 is found in opserver 2025-12-01 13:22:01,191 - DEBUG - Do not have enough data to verify VN in agent 2025-12-01 13:22:01,195 - DEBUG - VRF ids for VN ctest-vn4-20344454: {} 2025-12-01 13:22:01,196 - DEBUG - ====Verifying data for ctest-policy1-84898358 in API_Server ====== 2025-12-01 13:22:01,196 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 13:22:01,202 - DEBUG - Requesting: http://10.0.0.50:8082/domain/becf8fcd-ffe7-4871-97bb-0085eabd7b09 2025-12-01 13:22:01,214 - DEBUG - Requesting: http://10.0.0.50:8082/project/35eaaab8-f435-4c0a-a4fa-616045bdebf4 2025-12-01 13:22:01,280 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/04e12f11-2437-4567-b1ca-de4522d11574 2025-12-01 13:22:01,289 - INFO - Verified policy ctest-policy1-84898358 in API Server, Result: True 2025-12-01 13:22:01,289 - INFO - Done with setup and verification, moving onto test .. 2025-12-01 13:22:01,297 - INFO - Deleting VN ctest-vn4-20344454 2025-12-01 13:22:01,408 - DEBUG - Response for deleting network () 2025-12-01 13:22:01,409 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4a014ede-d040-4fb8-a2ad-c08e724185fe 2025-12-01 13:22:01,414 - DEBUG - Response Code: 404 2025-12-01 13:22:01,414 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-01 13:22:01,420 - DEBUG - Requesting: http://10.0.0.50:8082/domain/becf8fcd-ffe7-4871-97bb-0085eabd7b09 2025-12-01 13:22:01,475 - DEBUG - Requesting: http://10.0.0.50:8082/project/35eaaab8-f435-4c0a-a4fa-616045bdebf4 2025-12-01 13:22:01,547 - INFO - Validated that VN ctest-vn4-20344454 is not found in API Server 2025-12-01 13:22:01,557 - DEBUG - VN ctest-vn4-20344454 is not present in Agent 10.0.0.50 2025-12-01 13:22:01,557 - INFO - Validated that VN ctest-vn4-20344454 is not in any agent 2025-12-01 13:22:01,570 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20344454 info 2025-12-01 13:22:01,598 - INFO - Deleted policy ctest-policy1-84898358 2025-12-01 13:22:01,786 - DEBUG - policy ctest-policy1-84898358 is not found in API Server 2025-12-01 13:22:02,043 - DEBUG - No XMPP flaps were noticed during the test 2025-12-01 13:22:02,043 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-01 13:22:02,043 - INFO - -------------------------------------------------------------------------------- 2025-12-01 13:22:02,339 - DEBUG - No XMPP flaps were noticed during the test 2025-12-01 13:22:02,339 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-12-01 13:22:02,339 - INFO - -------------------------------------------------------------------------------- 2025-12-01 13:22:03,055 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-16059143, ID : 35eaaab8-f435-4c0a-a4fa-616045bdebf4