2025-11-17 16:13:30,751 - INFO - Domain Default found not creating 2025-11-17 16:13:30,938 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20505543 not found, creating it 2025-11-17 16:13:31,445 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20505543, ID : 33c78ebd-bdb7-407b-9d2e-e9a998a53179 2025-11-17 16:13:33,084 - INFO - ================================================================================ 2025-11-17 16:13:33,084 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 16:13:33,348 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-11-17 16:13:33,348 - INFO - Initial checks done. Running the testcase now 2025-11-17 16:13:33,348 - INFO - 2025-11-17 16:13:33,348 - INFO - ================================================================================ 2025-11-17 16:13:33,348 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 16:13:33,349 - 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-17 16:13:33,629 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-11-17 16:13:33,629 - INFO - Initial checks done. Running the testcase now 2025-11-17 16:13:33,629 - INFO - 2025-11-17 16:13:34,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20505543:ctest-vn4-95408324, 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-20505543:ctest-vn4-95408324, 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-20505543:ctest-vn4-95408324, 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-20505543:ctest-vn4-95408324, 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-17 16:13:34,579 - DEBUG - Response for create_network : {'network': {'id': 'd89f9a9b-f75e-42ec-80ba-5fbeaab69212', 'name': 'ctest-vn4-95408324', 'tenant_id': '33c78ebdbdb7407b9d2ee9a998a53179', 'project_id': '33c78ebdbdb7407b9d2ee9a998a53179', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20505543', 'ctest-vn4-95408324'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 16:13:34,730 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb21c333-cd8d-4558-9256-f6c55496e7d8', 'name': '', 'tenant_id': '33c78ebdbdb7407b9d2ee9a998a53179', 'network_id': 'd89f9a9b-f75e-42ec-80ba-5fbeaab69212', 'ip_version': 4, 'cidr': '40.172.143.128/26', 'allocation_pools': [{'start': '40.172.143.130', 'end': '40.172.143.190'}], 'gateway_ip': '40.172.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.172.143.130', 'tags': [], 'project_id': '33c78ebdbdb7407b9d2ee9a998a53179'}} 2025-11-17 16:13:34,941 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ef93f0f-da69-4c39-ad81-3534009f0857', 'name': '', 'tenant_id': '33c78ebdbdb7407b9d2ee9a998a53179', 'network_id': 'd89f9a9b-f75e-42ec-80ba-5fbeaab69212', 'ip_version': 6, 'cidr': '36b8:e8c:8023:a39b:56a0:9817::/96', 'allocation_pools': [{'start': '36b8:e8c:8023:a39b:56a0:9817:0:2', 'end': '36b8:e8c:8023:a39b:56a0:9817:ffff:fffe'}], 'gateway_ip': '36b8:e8c:8023:a39b:56a0:9817:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36b8:e8c:8023:a39b:56a0:9817:0:2', 'tags': [], 'project_id': '33c78ebdbdb7407b9d2ee9a998a53179'}} 2025-11-17 16:13:34,962 - INFO - Created VN ctest-vn4-95408324 2025-11-17 16:13:35,016 - DEBUG - VN ctest-vn4-95408324 UUID is d89f9a9b-f75e-42ec-80ba-5fbeaab69212 2025-11-17 16:13:35,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd89f9a9b-f75e-42ec-80ba-5fbeaab69212', 'name': 'ctest-vn4-95408324', 'tenant_id': '33c78ebdbdb7407b9d2ee9a998a53179', 'project_id': '33c78ebdbdb7407b9d2ee9a998a53179', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb21c333-cd8d-4558-9256-f6c55496e7d8', '6ef93f0f-da69-4c39-ad81-3534009f0857'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20505543', 'ctest-vn4-95408324'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20505543', 'ctest-policy1-40407623']], 'subnet_ipam': [{'subnet_cidr': '40.172.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36b8:e8c:8023:a39b:56a0:9817::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-17 16:13:35,368 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 16:13:35,705 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 16:13:35,737 - DEBUG - Requesting: http://10.0.0.141:8082/domain/191752d0-7efd-4a41-89be-cca21d8fe230 2025-11-17 16:13:35,749 - DEBUG - Requesting: http://10.0.0.141:8082/project/33c78ebd-bdb7-407b-9d2e-e9a998a53179 2025-11-17 16:13:35,820 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d89f9a9b-f75e-42ec-80ba-5fbeaab69212 2025-11-17 16:13:35,832 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d89f9a9b-f75e-42ec-80ba-5fbeaab69212 2025-11-17 16:13:35,841 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/eb29a65a-0167-4d64-a0ae-8adf136cf25a 2025-11-17 16:13:35,848 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/eb29a65a-0167-4d64-a0ae-8adf136cf25a 2025-11-17 16:13:35,854 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4d527561-fa6a-4e5f-a8db-1170e73bc6f5 2025-11-17 16:13:35,860 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 16:13:35,860 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d89f9a9b-f75e-42ec-80ba-5fbeaab69212 2025-11-17 16:13:35,869 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/eb29a65a-0167-4d64-a0ae-8adf136cf25a 2025-11-17 16:13:35,884 - INFO - Verified VN network id 11 for VN d89f9a9b-f75e-42ec-80ba-5fbeaab69212 2025-11-17 16:13:35,884 - INFO - Verifications in API Server for VN ctest-vn4-95408324 passed 2025-11-17 16:13:35,884 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d89f9a9b-f75e-42ec-80ba-5fbeaab69212 2025-11-17 16:13:35,894 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/eb29a65a-0167-4d64-a0ae-8adf136cf25a 2025-11-17 16:13:35,900 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/eb29a65a-0167-4d64-a0ae-8adf136cf25a 2025-11-17 16:13:35,906 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4d527561-fa6a-4e5f-a8db-1170e73bc6f5 2025-11-17 16:13:35,919 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20505543:ctest-vn4-95408324', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20505543', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15609364828150186732', 'uuid-lslong': '9275831655035474450'}, 'enable': 'true', 'created': '2025-11-17T16:13:34', 'last-modified': '2025-11-17T16:13:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733054'} 2025-11-17 16:13:35,926 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 16:13:35,926 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95408324 passed 2025-11-17 16:13:35,926 - DEBUG - ====Verifying policy data for ctest-vn4-95408324 in API_Server ====== 2025-11-17 16:13:35,926 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 16:13:35,931 - DEBUG - Requesting: http://10.0.0.141:8082/domain/191752d0-7efd-4a41-89be-cca21d8fe230 2025-11-17 16:13:35,941 - DEBUG - Requesting: http://10.0.0.141:8082/project/33c78ebd-bdb7-407b-9d2e-e9a998a53179 2025-11-17 16:13:36,012 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d89f9a9b-f75e-42ec-80ba-5fbeaab69212 2025-11-17 16:13:36,021 - DEBUG - ==>Verifying data for policy with id: fce976a4-3ea7-45a1-b2e6-13f33995f854, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20505543', 'ctest-policy1-40407623'] 2025-11-17 16:13:36,021 - INFO - VN ctest-vn4-95408324 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-17 16:13:36,021 - DEBUG - Verifying the vn in opserver 2025-11-17 16:13:36,021 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20505543:ctest-vn4-95408324 virtual network link through opserver 10.0.0.141 2025-11-17 16:13:36,021 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-17 16:13:36,355 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-17 16:13:36,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20505543:ctest-vn4-95408324', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20505543:ctest-vn4-95408324?flat'} 2025-11-17 16:13:36,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20505543:ctest-vn4-95408324 is found in opserver 2025-11-17 16:13:36,423 - DEBUG - Do not have enough data to verify VN in agent 2025-11-17 16:13:36,428 - DEBUG - VRF ids for VN ctest-vn4-95408324: {} 2025-11-17 16:13:36,428 - DEBUG - ====Verifying data for ctest-policy1-40407623 in API_Server ====== 2025-11-17 16:13:36,428 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 16:13:36,434 - DEBUG - Requesting: http://10.0.0.141:8082/domain/191752d0-7efd-4a41-89be-cca21d8fe230 2025-11-17 16:13:36,444 - DEBUG - Requesting: http://10.0.0.141:8082/project/33c78ebd-bdb7-407b-9d2e-e9a998a53179 2025-11-17 16:13:36,519 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/fce976a4-3ea7-45a1-b2e6-13f33995f854 2025-11-17 16:13:36,530 - INFO - Verified policy ctest-policy1-40407623 in API Server, Result: True 2025-11-17 16:13:36,530 - INFO - Done with setup and verification, moving onto test .. 2025-11-17 16:13:36,538 - INFO - Deleting VN ctest-vn4-95408324 2025-11-17 16:13:36,651 - DEBUG - Response for deleting network () 2025-11-17 16:13:36,652 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/eb29a65a-0167-4d64-a0ae-8adf136cf25a 2025-11-17 16:13:36,657 - DEBUG - Response Code: 404 2025-11-17 16:13:36,657 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-17 16:13:36,663 - DEBUG - Requesting: http://10.0.0.141:8082/domain/191752d0-7efd-4a41-89be-cca21d8fe230 2025-11-17 16:13:36,716 - DEBUG - Requesting: http://10.0.0.141:8082/project/33c78ebd-bdb7-407b-9d2e-e9a998a53179 2025-11-17 16:13:36,789 - INFO - Validated that VN ctest-vn4-95408324 is not found in API Server 2025-11-17 16:13:36,801 - DEBUG - VN ctest-vn4-95408324 is not present in Agent 10.0.0.141 2025-11-17 16:13:36,801 - INFO - Validated that VN ctest-vn4-95408324 is not in any agent 2025-11-17 16:13:36,817 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95408324 info 2025-11-17 16:13:36,841 - INFO - Deleted policy ctest-policy1-40407623 2025-11-17 16:13:37,003 - DEBUG - policy ctest-policy1-40407623 is not found in API Server 2025-11-17 16:13:37,256 - DEBUG - No XMPP flaps were noticed during the test