2025-11-10 18:51:46,409 - INFO - Domain Default found not creating 2025-11-10 18:51:46,549 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87820500 not found, creating it 2025-11-10 18:51:46,972 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87820500, ID : 6918ed57-9329-4878-a6dc-52c124c9ce45 2025-11-10 18:51:48,324 - INFO - ================================================================================ 2025-11-10 18:51:48,325 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 18:51:48,583 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.25': '0'}} with 2025-11-10 18:51:48,583 - INFO - Initial checks done. Running the testcase now 2025-11-10 18:51:48,583 - INFO - 2025-11-10 18:51:48,583 - INFO - ================================================================================ 2025-11-10 18:51:48,583 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 18:51:48,583 - 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-11-10 18:51:48,871 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.25': '0'}} with 2025-11-10 18:51:48,871 - INFO - Initial checks done. Running the testcase now 2025-11-10 18:51:48,871 - INFO - 2025-11-10 18:51:49,219 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87820500:ctest-vn4-09987456, 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-87820500:ctest-vn4-09987456, 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-87820500:ctest-vn4-09987456, 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-87820500:ctest-vn4-09987456, 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-11-10 18:51:49,709 - DEBUG - Response for create_network : {'network': {'id': 'f29c33cc-2404-415c-b3bb-886b21d2ad94', 'name': 'ctest-vn4-09987456', 'tenant_id': '6918ed5793294878a6dc52c124c9ce45', 'project_id': '6918ed5793294878a6dc52c124c9ce45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87820500', 'ctest-vn4-09987456'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 18:51:49,912 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf7332be-ccd6-41df-a7f6-fff9d8226862', 'name': '', 'tenant_id': '6918ed5793294878a6dc52c124c9ce45', 'network_id': 'f29c33cc-2404-415c-b3bb-886b21d2ad94', 'ip_version': 4, 'cidr': '219.51.15.192/26', 'allocation_pools': [{'start': '219.51.15.194', 'end': '219.51.15.254'}], 'gateway_ip': '219.51.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.51.15.194', 'tags': [], 'project_id': '6918ed5793294878a6dc52c124c9ce45'}} 2025-11-10 18:51:50,058 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f6bf4c7-d5cf-446d-944f-d2550548ab2a', 'name': '', 'tenant_id': '6918ed5793294878a6dc52c124c9ce45', 'network_id': 'f29c33cc-2404-415c-b3bb-886b21d2ad94', 'ip_version': 6, 'cidr': '24bb:a5d7:3eed:46d1:7754:33d4::/96', 'allocation_pools': [{'start': '24bb:a5d7:3eed:46d1:7754:33d4:0:2', 'end': '24bb:a5d7:3eed:46d1:7754:33d4:ffff:fffe'}], 'gateway_ip': '24bb:a5d7:3eed:46d1:7754:33d4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24bb:a5d7:3eed:46d1:7754:33d4:0:2', 'tags': [], 'project_id': '6918ed5793294878a6dc52c124c9ce45'}} 2025-11-10 18:51:50,077 - INFO - Created VN ctest-vn4-09987456 2025-11-10 18:51:50,130 - DEBUG - VN ctest-vn4-09987456 UUID is f29c33cc-2404-415c-b3bb-886b21d2ad94 2025-11-10 18:51:50,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f29c33cc-2404-415c-b3bb-886b21d2ad94', 'name': 'ctest-vn4-09987456', 'tenant_id': '6918ed5793294878a6dc52c124c9ce45', 'project_id': '6918ed5793294878a6dc52c124c9ce45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf7332be-ccd6-41df-a7f6-fff9d8226862', '6f6bf4c7-d5cf-446d-944f-d2550548ab2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87820500', 'ctest-vn4-09987456'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87820500', 'ctest-policy1-89626842']], 'subnet_ipam': [{'subnet_cidr': '219.51.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24bb:a5d7:3eed:46d1:7754:33d4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 18:51:50,502 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-10 18:51:50,799 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-10 18:51:50,825 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a00c2223-e74d-4340-8cbb-7add8c3ed3a1 2025-11-10 18:51:50,838 - DEBUG - Requesting: http://10.0.0.23:8082/project/6918ed57-9329-4878-a6dc-52c124c9ce45 2025-11-10 18:51:50,907 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f29c33cc-2404-415c-b3bb-886b21d2ad94 2025-11-10 18:51:50,918 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f29c33cc-2404-415c-b3bb-886b21d2ad94 2025-11-10 18:51:50,927 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/95cd318b-fe57-4271-b12c-59b53597ed92 2025-11-10 18:51:50,933 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/95cd318b-fe57-4271-b12c-59b53597ed92 2025-11-10 18:51:50,940 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/305e5fd3-fc11-4185-8fab-ca9d838555cb 2025-11-10 18:51:50,947 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 18:51:50,947 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f29c33cc-2404-415c-b3bb-886b21d2ad94 2025-11-10 18:51:50,957 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/95cd318b-fe57-4271-b12c-59b53597ed92 2025-11-10 18:51:50,970 - INFO - Verified VN network id 11 for VN f29c33cc-2404-415c-b3bb-886b21d2ad94 2025-11-10 18:51:50,970 - INFO - Verifications in API Server for VN ctest-vn4-09987456 passed 2025-11-10 18:51:50,970 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f29c33cc-2404-415c-b3bb-886b21d2ad94 2025-11-10 18:51:50,979 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/95cd318b-fe57-4271-b12c-59b53597ed92 2025-11-10 18:51:50,986 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/95cd318b-fe57-4271-b12c-59b53597ed92 2025-11-10 18:51:50,992 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/305e5fd3-fc11-4185-8fab-ca9d838555cb 2025-11-10 18:51:51,005 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87820500:ctest-vn4-09987456', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87820500', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17481904805416026460', 'uuid-lslong': '12951095147144326548'}, 'enable': 'true', 'created': '2025-11-10T18:51:49', 'last-modified': '2025-11-10T18:51:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700735'} 2025-11-10 18:51:51,011 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 18:51:51,011 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09987456 passed 2025-11-10 18:51:51,011 - DEBUG - ====Verifying policy data for ctest-vn4-09987456 in API_Server ====== 2025-11-10 18:51:51,011 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-10 18:51:51,017 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a00c2223-e74d-4340-8cbb-7add8c3ed3a1 2025-11-10 18:51:51,026 - DEBUG - Requesting: http://10.0.0.23:8082/project/6918ed57-9329-4878-a6dc-52c124c9ce45 2025-11-10 18:51:51,093 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f29c33cc-2404-415c-b3bb-886b21d2ad94 2025-11-10 18:51:51,103 - DEBUG - ==>Verifying data for policy with id: 191d77f2-e3db-4c90-bbc7-ce7a27d72947, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87820500', 'ctest-policy1-89626842'] 2025-11-10 18:51:51,103 - INFO - VN ctest-vn4-09987456 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 18:51:51,103 - DEBUG - Verifying the vn in opserver 2025-11-10 18:51:51,103 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87820500:ctest-vn4-09987456 virtual network link through opserver 10.0.0.23 2025-11-10 18:51:51,103 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-10 18:51:51,394 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-10 18:51:51,448 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87820500:ctest-vn4-09987456', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87820500:ctest-vn4-09987456?flat'} 2025-11-10 18:51:51,448 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87820500:ctest-vn4-09987456 is found in opserver 2025-11-10 18:51:51,459 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 18:51:51,463 - DEBUG - VRF ids for VN ctest-vn4-09987456: {} 2025-11-10 18:51:51,463 - DEBUG - ====Verifying data for ctest-policy1-89626842 in API_Server ====== 2025-11-10 18:51:51,464 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-10 18:51:51,471 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a00c2223-e74d-4340-8cbb-7add8c3ed3a1 2025-11-10 18:51:51,482 - DEBUG - Requesting: http://10.0.0.23:8082/project/6918ed57-9329-4878-a6dc-52c124c9ce45 2025-11-10 18:51:51,549 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/191d77f2-e3db-4c90-bbc7-ce7a27d72947 2025-11-10 18:51:51,558 - INFO - Verified policy ctest-policy1-89626842 in API Server, Result: True 2025-11-10 18:51:51,558 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 18:51:51,564 - INFO - Deleting VN ctest-vn4-09987456 2025-11-10 18:51:51,677 - DEBUG - Response for deleting network () 2025-11-10 18:51:51,677 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/95cd318b-fe57-4271-b12c-59b53597ed92 2025-11-10 18:51:51,681 - DEBUG - Response Code: 404 2025-11-10 18:51:51,681 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-11-10 18:51:51,686 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a00c2223-e74d-4340-8cbb-7add8c3ed3a1 2025-11-10 18:51:51,738 - DEBUG - Requesting: http://10.0.0.23:8082/project/6918ed57-9329-4878-a6dc-52c124c9ce45 2025-11-10 18:51:51,804 - INFO - Validated that VN ctest-vn4-09987456 is not found in API Server 2025-11-10 18:51:51,813 - DEBUG - VN ctest-vn4-09987456 is not present in Agent 10.0.0.23 2025-11-10 18:51:51,813 - INFO - Validated that VN ctest-vn4-09987456 is not in any agent 2025-11-10 18:51:51,827 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09987456 info 2025-11-10 18:51:51,847 - INFO - Deleted policy ctest-policy1-89626842 2025-11-10 18:51:52,006 - DEBUG - policy ctest-policy1-89626842 is not found in API Server 2025-11-10 18:51:52,264 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 18:51:52,264 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-10 18:51:52,264 - INFO - -------------------------------------------------------------------------------- 2025-11-10 18:51:52,550 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 18:51:52,551 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-10 18:51:52,551 - INFO - -------------------------------------------------------------------------------- 2025-11-10 18:51:53,208 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87820500, ID : 6918ed57-9329-4878-a6dc-52c124c9ce45