2025-08-06 07:25:11,617 - INFO - Domain Default found not creating 2025-08-06 07:25:11,779 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40452685 not found, creating it 2025-08-06 07:25:12,247 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40452685, ID : 69d6bb84-3f4f-4e0d-870a-425e94d29c5f 2025-08-06 07:25:13,731 - INFO - ================================================================================ 2025-08-06 07:25:13,731 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-06 07:25:13,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-06 07:25:13,991 - INFO - Initial checks done. Running the testcase now 2025-08-06 07:25:13,991 - INFO - 2025-08-06 07:25:13,991 - INFO - ================================================================================ 2025-08-06 07:25:13,991 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-06 07:25:13,991 - 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-08-06 07:25:14,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-06 07:25:14,283 - INFO - Initial checks done. Running the testcase now 2025-08-06 07:25:14,283 - INFO - 2025-08-06 07:25:14,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40452685:ctest-vn4-03953244, 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-40452685:ctest-vn4-03953244, 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-40452685:ctest-vn4-03953244, 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-40452685:ctest-vn4-03953244, 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-08-06 07:25:15,274 - DEBUG - Response for create_network : {'network': {'id': '09a9b9de-af06-4297-9d49-a03c0d41abca', 'name': 'ctest-vn4-03953244', 'tenant_id': '69d6bb843f4f4e0d870a425e94d29c5f', 'project_id': '69d6bb843f4f4e0d870a425e94d29c5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40452685', 'ctest-vn4-03953244'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 07:25:15,461 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bfbb678-8184-416e-962e-3c17a7eb8ca7', 'name': '', 'tenant_id': '69d6bb843f4f4e0d870a425e94d29c5f', 'network_id': '09a9b9de-af06-4297-9d49-a03c0d41abca', 'ip_version': 4, 'cidr': '103.86.183.64/26', 'allocation_pools': [{'start': '103.86.183.66', 'end': '103.86.183.126'}], 'gateway_ip': '103.86.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.86.183.66', 'tags': [], 'project_id': '69d6bb843f4f4e0d870a425e94d29c5f'}} 2025-08-06 07:25:15,613 - DEBUG - Response for create_subnet : {'subnet': {'id': '60b40729-2e17-42ee-b2d6-0deab0a6b47e', 'name': '', 'tenant_id': '69d6bb843f4f4e0d870a425e94d29c5f', 'network_id': '09a9b9de-af06-4297-9d49-a03c0d41abca', 'ip_version': 6, 'cidr': '375b:35ca:4a01:55c3:4a48:9f4f::/96', 'allocation_pools': [{'start': '375b:35ca:4a01:55c3:4a48:9f4f:0:2', 'end': '375b:35ca:4a01:55c3:4a48:9f4f:ffff:fffe'}], 'gateway_ip': '375b:35ca:4a01:55c3:4a48:9f4f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '375b:35ca:4a01:55c3:4a48:9f4f:0:2', 'tags': [], 'project_id': '69d6bb843f4f4e0d870a425e94d29c5f'}} 2025-08-06 07:25:15,635 - INFO - Created VN ctest-vn4-03953244 2025-08-06 07:25:15,689 - DEBUG - VN ctest-vn4-03953244 UUID is 09a9b9de-af06-4297-9d49-a03c0d41abca 2025-08-06 07:25:15,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09a9b9de-af06-4297-9d49-a03c0d41abca', 'name': 'ctest-vn4-03953244', 'tenant_id': '69d6bb843f4f4e0d870a425e94d29c5f', 'project_id': '69d6bb843f4f4e0d870a425e94d29c5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bfbb678-8184-416e-962e-3c17a7eb8ca7', '60b40729-2e17-42ee-b2d6-0deab0a6b47e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40452685', 'ctest-vn4-03953244'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40452685', 'ctest-policy1-65909360']], 'subnet_ipam': [{'subnet_cidr': '103.86.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '375b:35ca:4a01:55c3:4a48:9f4f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-06 07:25:16,085 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 07:25:16,378 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 07:25:16,409 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2a737637-7d29-4639-922a-91f5300d9f2c 2025-08-06 07:25:16,424 - DEBUG - Requesting: http://10.0.0.50:8082/project/69d6bb84-3f4f-4e0d-870a-425e94d29c5f 2025-08-06 07:25:16,497 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09a9b9de-af06-4297-9d49-a03c0d41abca 2025-08-06 07:25:16,511 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09a9b9de-af06-4297-9d49-a03c0d41abca 2025-08-06 07:25:16,526 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3441d75-40ba-4463-848a-6c81e01bd3fd 2025-08-06 07:25:16,535 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3441d75-40ba-4463-848a-6c81e01bd3fd 2025-08-06 07:25:16,545 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d3cccdb3-60c5-4aa6-84eb-545fdf1b10f3 2025-08-06 07:25:16,552 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 07:25:16,552 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09a9b9de-af06-4297-9d49-a03c0d41abca 2025-08-06 07:25:16,564 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3441d75-40ba-4463-848a-6c81e01bd3fd 2025-08-06 07:25:16,579 - INFO - Verified VN network id 10 for VN 09a9b9de-af06-4297-9d49-a03c0d41abca 2025-08-06 07:25:16,580 - INFO - Verifications in API Server for VN ctest-vn4-03953244 passed 2025-08-06 07:25:16,580 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09a9b9de-af06-4297-9d49-a03c0d41abca 2025-08-06 07:25:16,591 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3441d75-40ba-4463-848a-6c81e01bd3fd 2025-08-06 07:25:16,599 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3441d75-40ba-4463-848a-6c81e01bd3fd 2025-08-06 07:25:16,607 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d3cccdb3-60c5-4aa6-84eb-545fdf1b10f3 2025-08-06 07:25:16,621 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40452685:ctest-vn4-03953244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40452685', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '696291983475753623', 'uuid-lslong': '11333766117035453386'}, 'enable': 'true', 'created': '2025-08-06T07:25:15', 'last-modified': '2025-08-06T07:25:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735210'} 2025-08-06 07:25:16,628 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 07:25:16,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03953244 passed 2025-08-06 07:25:16,629 - DEBUG - ====Verifying policy data for ctest-vn4-03953244 in API_Server ====== 2025-08-06 07:25:16,629 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 07:25:16,635 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2a737637-7d29-4639-922a-91f5300d9f2c 2025-08-06 07:25:16,651 - DEBUG - Requesting: http://10.0.0.50:8082/project/69d6bb84-3f4f-4e0d-870a-425e94d29c5f 2025-08-06 07:25:16,725 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09a9b9de-af06-4297-9d49-a03c0d41abca 2025-08-06 07:25:16,736 - DEBUG - ==>Verifying data for policy with id: 98814f87-1a7c-42db-aa9e-d364fbeb7332, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40452685', 'ctest-policy1-65909360'] 2025-08-06 07:25:16,736 - INFO - VN ctest-vn4-03953244 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-06 07:25:16,736 - DEBUG - Verifying the vn in opserver 2025-08-06 07:25:16,736 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40452685:ctest-vn4-03953244 virtual network link through opserver 10.0.0.50 2025-08-06 07:25:16,737 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-06 07:25:17,028 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-06 07:25:17,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40452685:ctest-vn4-03953244', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40452685:ctest-vn4-03953244?flat'} 2025-08-06 07:25:17,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40452685:ctest-vn4-03953244 is found in opserver 2025-08-06 07:25:17,097 - DEBUG - Do not have enough data to verify VN in agent 2025-08-06 07:25:17,104 - DEBUG - VRF ids for VN ctest-vn4-03953244: {} 2025-08-06 07:25:17,104 - DEBUG - ====Verifying data for ctest-policy1-65909360 in API_Server ====== 2025-08-06 07:25:17,104 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 07:25:17,111 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2a737637-7d29-4639-922a-91f5300d9f2c 2025-08-06 07:25:17,125 - DEBUG - Requesting: http://10.0.0.50:8082/project/69d6bb84-3f4f-4e0d-870a-425e94d29c5f 2025-08-06 07:25:17,201 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/98814f87-1a7c-42db-aa9e-d364fbeb7332 2025-08-06 07:25:17,213 - INFO - Verified policy ctest-policy1-65909360 in API Server, Result: True 2025-08-06 07:25:17,213 - INFO - Done with setup and verification, moving onto test .. 2025-08-06 07:25:17,221 - INFO - Deleting VN ctest-vn4-03953244 2025-08-06 07:25:17,353 - DEBUG - Response for deleting network () 2025-08-06 07:25:17,353 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f3441d75-40ba-4463-848a-6c81e01bd3fd 2025-08-06 07:25:17,359 - DEBUG - Response Code: 404 2025-08-06 07:25:17,359 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-06 07:25:17,367 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2a737637-7d29-4639-922a-91f5300d9f2c 2025-08-06 07:25:17,423 - DEBUG - Requesting: http://10.0.0.50:8082/project/69d6bb84-3f4f-4e0d-870a-425e94d29c5f 2025-08-06 07:25:17,501 - INFO - Validated that VN ctest-vn4-03953244 is not found in API Server 2025-08-06 07:25:17,513 - DEBUG - VN ctest-vn4-03953244 is not present in Agent 10.0.0.50 2025-08-06 07:25:17,513 - INFO - Validated that VN ctest-vn4-03953244 is not in any agent 2025-08-06 07:25:17,529 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03953244 info 2025-08-06 07:25:17,560 - INFO - Deleted policy ctest-policy1-65909360 2025-08-06 07:25:17,729 - DEBUG - policy ctest-policy1-65909360 is not found in API Server 2025-08-06 07:25:17,984 - DEBUG - No XMPP flaps were noticed during the test
2025-08-06 07:25:17,984 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-06 07:25:17,984 - INFO - -------------------------------------------------------------------------------- 2025-08-06 07:25:18,271 - DEBUG - No XMPP flaps were noticed during the test
2025-08-06 07:25:18,271 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-06 07:25:18,272 - INFO - -------------------------------------------------------------------------------- 2025-08-06 07:25:19,511 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40452685, ID : 69d6bb84-3f4f-4e0d-870a-425e94d29c5f