2025-09-08 02:12:15,018 - INFO - Domain Default found not creating 2025-09-08 02:12:15,171 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40233707 not found, creating it 2025-09-08 02:12:15,632 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40233707, ID : 59a9ad30-f975-418d-b674-e3a721f8ec04 2025-09-08 02:12:17,013 - INFO - ================================================================================ 2025-09-08 02:12:17,013 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-08 02:12:17,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.193': '0'}} with 2025-09-08 02:12:17,269 - INFO - Initial checks done. Running the testcase now 2025-09-08 02:12:17,269 - INFO - 2025-09-08 02:12:17,269 - INFO - ================================================================================ 2025-09-08 02:12:17,269 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-08 02:12:17,269 - 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-09-08 02:12:17,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.193': '0'}} with 2025-09-08 02:12:17,559 - INFO - Initial checks done. Running the testcase now 2025-09-08 02:12:17,559 - INFO - 2025-09-08 02:12:17,954 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40233707:ctest-vn4-47386530, 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-40233707:ctest-vn4-47386530, 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-40233707:ctest-vn4-47386530, 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-40233707:ctest-vn4-47386530, 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-09-08 02:12:18,466 - DEBUG - Response for create_network : {'network': {'id': 'cec3cf24-ba07-40f5-94e8-fb7180493905', 'name': 'ctest-vn4-47386530', 'tenant_id': '59a9ad30f975418db674e3a721f8ec04', 'project_id': '59a9ad30f975418db674e3a721f8ec04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40233707', 'ctest-vn4-47386530'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:12:18,655 - DEBUG - Response for create_subnet : {'subnet': {'id': '00a5df94-7493-478e-b4c0-e23d5a04751d', 'name': '', 'tenant_id': '59a9ad30f975418db674e3a721f8ec04', 'network_id': 'cec3cf24-ba07-40f5-94e8-fb7180493905', 'ip_version': 4, 'cidr': '130.0.67.64/26', 'allocation_pools': [{'start': '130.0.67.66', 'end': '130.0.67.126'}], 'gateway_ip': '130.0.67.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.0.67.66', 'tags': [], 'project_id': '59a9ad30f975418db674e3a721f8ec04'}} 2025-09-08 02:12:18,821 - DEBUG - Response for create_subnet : {'subnet': {'id': '352f90d0-8ca3-4f1c-80be-5fcec3d79601', 'name': '', 'tenant_id': '59a9ad30f975418db674e3a721f8ec04', 'network_id': 'cec3cf24-ba07-40f5-94e8-fb7180493905', 'ip_version': 6, 'cidr': '2928:185b:2fb0:e43b:2369:103b::/96', 'allocation_pools': [{'start': '2928:185b:2fb0:e43b:2369:103b:0:2', 'end': '2928:185b:2fb0:e43b:2369:103b:ffff:fffe'}], 'gateway_ip': '2928:185b:2fb0:e43b:2369:103b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2928:185b:2fb0:e43b:2369:103b:0:2', 'tags': [], 'project_id': '59a9ad30f975418db674e3a721f8ec04'}} 2025-09-08 02:12:18,840 - INFO - Created VN ctest-vn4-47386530 2025-09-08 02:12:18,890 - DEBUG - VN ctest-vn4-47386530 UUID is cec3cf24-ba07-40f5-94e8-fb7180493905 2025-09-08 02:12:19,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cec3cf24-ba07-40f5-94e8-fb7180493905', 'name': 'ctest-vn4-47386530', 'tenant_id': '59a9ad30f975418db674e3a721f8ec04', 'project_id': '59a9ad30f975418db674e3a721f8ec04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00a5df94-7493-478e-b4c0-e23d5a04751d', '352f90d0-8ca3-4f1c-80be-5fcec3d79601'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40233707', 'ctest-vn4-47386530'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40233707', 'ctest-policy1-31053941']], 'subnet_ipam': [{'subnet_cidr': '130.0.67.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2928:185b:2fb0:e43b:2369:103b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:12:19,302 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-08 02:12:19,601 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-08 02:12:19,627 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f6d224dc-7d6f-4398-979e-05f8884e665b 2025-09-08 02:12:19,639 - DEBUG - Requesting: http://10.0.0.254:8082/project/59a9ad30-f975-418d-b674-e3a721f8ec04 2025-09-08 02:12:19,708 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cec3cf24-ba07-40f5-94e8-fb7180493905 2025-09-08 02:12:19,719 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cec3cf24-ba07-40f5-94e8-fb7180493905 2025-09-08 02:12:19,729 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a87dd14-61d8-4fc5-b259-5dff465fb6e3 2025-09-08 02:12:19,735 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a87dd14-61d8-4fc5-b259-5dff465fb6e3 2025-09-08 02:12:19,743 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a50910da-2bc3-4e78-aea9-8329a325c63c 2025-09-08 02:12:19,750 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:12:19,750 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cec3cf24-ba07-40f5-94e8-fb7180493905 2025-09-08 02:12:19,759 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a87dd14-61d8-4fc5-b259-5dff465fb6e3 2025-09-08 02:12:19,773 - INFO - Verified VN network id 12 for VN cec3cf24-ba07-40f5-94e8-fb7180493905 2025-09-08 02:12:19,773 - INFO - Verifications in API Server for VN ctest-vn4-47386530 passed 2025-09-08 02:12:19,773 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cec3cf24-ba07-40f5-94e8-fb7180493905 2025-09-08 02:12:19,782 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a87dd14-61d8-4fc5-b259-5dff465fb6e3 2025-09-08 02:12:19,789 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a87dd14-61d8-4fc5-b259-5dff465fb6e3 2025-09-08 02:12:19,795 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a50910da-2bc3-4e78-aea9-8329a325c63c 2025-09-08 02:12:19,808 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40233707:ctest-vn4-47386530', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40233707', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14898979748918542581', 'uuid-lslong': '10730102577112365317'}, 'enable': 'true', 'created': '2025-09-08T02:12:18', 'last-modified': '2025-09-08T02:12:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752918'} 2025-09-08 02:12:19,815 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:12:19,816 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47386530 passed 2025-09-08 02:12:19,816 - DEBUG - ====Verifying policy data for ctest-vn4-47386530 in API_Server ====== 2025-09-08 02:12:19,816 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-08 02:12:19,822 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f6d224dc-7d6f-4398-979e-05f8884e665b 2025-09-08 02:12:19,833 - DEBUG - Requesting: http://10.0.0.254:8082/project/59a9ad30-f975-418d-b674-e3a721f8ec04 2025-09-08 02:12:19,906 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cec3cf24-ba07-40f5-94e8-fb7180493905 2025-09-08 02:12:19,914 - DEBUG - ==>Verifying data for policy with id: 976acf64-761c-431e-bcda-d9dc7f833a88, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40233707', 'ctest-policy1-31053941'] 2025-09-08 02:12:19,914 - INFO - VN ctest-vn4-47386530 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-08 02:12:19,914 - DEBUG - Verifying the vn in opserver 2025-09-08 02:12:19,914 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40233707:ctest-vn4-47386530 virtual network link through opserver 10.0.0.254 2025-09-08 02:12:19,915 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-08 02:12:20,209 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-08 02:12:20,269 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40233707:ctest-vn4-47386530', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40233707:ctest-vn4-47386530?flat'} 2025-09-08 02:12:20,269 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40233707:ctest-vn4-47386530 is found in opserver 2025-09-08 02:12:20,279 - DEBUG - Do not have enough data to verify VN in agent 2025-09-08 02:12:20,283 - DEBUG - VRF ids for VN ctest-vn4-47386530: {} 2025-09-08 02:12:20,283 - DEBUG - ====Verifying data for ctest-policy1-31053941 in API_Server ====== 2025-09-08 02:12:20,283 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-08 02:12:20,288 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f6d224dc-7d6f-4398-979e-05f8884e665b 2025-09-08 02:12:20,299 - DEBUG - Requesting: http://10.0.0.254:8082/project/59a9ad30-f975-418d-b674-e3a721f8ec04 2025-09-08 02:12:20,369 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/976acf64-761c-431e-bcda-d9dc7f833a88 2025-09-08 02:12:20,378 - INFO - Verified policy ctest-policy1-31053941 in API Server, Result: True 2025-09-08 02:12:20,378 - INFO - Done with setup and verification, moving onto test .. 2025-09-08 02:12:20,385 - INFO - Deleting VN ctest-vn4-47386530 2025-09-08 02:12:20,509 - DEBUG - Response for deleting network () 2025-09-08 02:12:20,509 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8a87dd14-61d8-4fc5-b259-5dff465fb6e3 2025-09-08 02:12:20,513 - DEBUG - Response Code: 404 2025-09-08 02:12:20,513 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-08 02:12:20,518 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f6d224dc-7d6f-4398-979e-05f8884e665b 2025-09-08 02:12:20,571 - DEBUG - Requesting: http://10.0.0.254:8082/project/59a9ad30-f975-418d-b674-e3a721f8ec04 2025-09-08 02:12:20,641 - INFO - Validated that VN ctest-vn4-47386530 is not found in API Server 2025-09-08 02:12:20,651 - DEBUG - VN ctest-vn4-47386530 is not present in Agent 10.0.0.254 2025-09-08 02:12:20,651 - INFO - Validated that VN ctest-vn4-47386530 is not in any agent 2025-09-08 02:12:20,664 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47386530 info 2025-09-08 02:12:20,692 - INFO - Deleted policy ctest-policy1-31053941 2025-09-08 02:12:20,858 - DEBUG - policy ctest-policy1-31053941 is not found in API Server 2025-09-08 02:12:21,111 - DEBUG - No XMPP flaps were noticed during the test