2025-09-25 01:48:52,090 - INFO - Domain Default found not creating 2025-09-25 01:48:52,245 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95265061 not found, creating it 2025-09-25 01:48:52,734 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95265061, ID : 12c323f6-9d8e-4405-8083-c0d38a916020 2025-09-25 01:48:54,116 - INFO - ================================================================================ 2025-09-25 01:48:54,116 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-25 01:48:54,371 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.129': '0'}} with 2025-09-25 01:48:54,371 - INFO - Initial checks done. Running the testcase now 2025-09-25 01:48:54,371 - INFO - 2025-09-25 01:48:54,371 - INFO - ================================================================================ 2025-09-25 01:48:54,371 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-25 01:48:54,371 - 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-25 01:48:54,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.129': '0'}} with 2025-09-25 01:48:54,663 - INFO - Initial checks done. Running the testcase now 2025-09-25 01:48:54,663 - INFO - 2025-09-25 01:48:55,024 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95265061:ctest-vn4-37610054, 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-95265061:ctest-vn4-37610054, 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-95265061:ctest-vn4-37610054, 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-95265061:ctest-vn4-37610054, 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-25 01:48:55,506 - DEBUG - Response for create_network : {'network': {'id': '239af9e1-daf6-440d-b852-9ca83f2be800', 'name': 'ctest-vn4-37610054', 'tenant_id': '12c323f69d8e44058083c0d38a916020', 'project_id': '12c323f69d8e44058083c0d38a916020', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95265061', 'ctest-vn4-37610054'], 'port_security_enabled': True, 'description': ''}} 2025-09-25 01:48:55,667 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e08b4885-77ee-44dc-90ff-4cf646c9f91a', 'name': '', 'tenant_id': '12c323f69d8e44058083c0d38a916020', 'network_id': '239af9e1-daf6-440d-b852-9ca83f2be800', 'ip_version': 4, 'cidr': '12.136.91.0/26', 'allocation_pools': [{'start': '12.136.91.2', 'end': '12.136.91.62'}], 'gateway_ip': '12.136.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.136.91.2', 'tags': [], 'project_id': '12c323f69d8e44058083c0d38a916020'}} 2025-09-25 01:48:55,803 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b754a7fe-6a39-4dab-add4-a9d0a1c0d05a', 'name': '', 'tenant_id': '12c323f69d8e44058083c0d38a916020', 'network_id': '239af9e1-daf6-440d-b852-9ca83f2be800', 'ip_version': 6, 'cidr': '2b43:896d:3cc9:ee5c:aaa2:787a::/96', 'allocation_pools': [{'start': '2b43:896d:3cc9:ee5c:aaa2:787a:0:2', 'end': '2b43:896d:3cc9:ee5c:aaa2:787a:ffff:fffe'}], 'gateway_ip': '2b43:896d:3cc9:ee5c:aaa2:787a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b43:896d:3cc9:ee5c:aaa2:787a:0:2', 'tags': [], 'project_id': '12c323f69d8e44058083c0d38a916020'}} 2025-09-25 01:48:55,821 - INFO - Created VN ctest-vn4-37610054 2025-09-25 01:48:55,870 - DEBUG - VN ctest-vn4-37610054 UUID is 239af9e1-daf6-440d-b852-9ca83f2be800 2025-09-25 01:48:56,050 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '239af9e1-daf6-440d-b852-9ca83f2be800', 'name': 'ctest-vn4-37610054', 'tenant_id': '12c323f69d8e44058083c0d38a916020', 'project_id': '12c323f69d8e44058083c0d38a916020', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e08b4885-77ee-44dc-90ff-4cf646c9f91a', 'b754a7fe-6a39-4dab-add4-a9d0a1c0d05a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95265061', 'ctest-vn4-37610054'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95265061', 'ctest-policy1-12139621']], 'subnet_ipam': [{'subnet_cidr': '12.136.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b43:896d:3cc9:ee5c:aaa2:787a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-25 01:48:56,202 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-25 01:48:56,491 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-25 01:48:56,517 - DEBUG - Requesting: http://10.0.0.249:8082/domain/42f4896f-8c65-4111-8d4d-af73f91f8c3c 2025-09-25 01:48:56,530 - DEBUG - Requesting: http://10.0.0.249:8082/project/12c323f6-9d8e-4405-8083-c0d38a916020 2025-09-25 01:48:56,602 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/239af9e1-daf6-440d-b852-9ca83f2be800 2025-09-25 01:48:56,615 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/239af9e1-daf6-440d-b852-9ca83f2be800 2025-09-25 01:48:56,625 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/44b3d4d2-c260-49c1-bc3c-7e9383d8c9a1 2025-09-25 01:48:56,632 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/44b3d4d2-c260-49c1-bc3c-7e9383d8c9a1 2025-09-25 01:48:56,638 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/338e627b-0370-4de3-8c1a-7e73e55cb9a6 2025-09-25 01:48:56,643 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 01:48:56,643 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/239af9e1-daf6-440d-b852-9ca83f2be800 2025-09-25 01:48:56,652 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/44b3d4d2-c260-49c1-bc3c-7e9383d8c9a1 2025-09-25 01:48:56,664 - INFO - Verified VN network id 12 for VN 239af9e1-daf6-440d-b852-9ca83f2be800 2025-09-25 01:48:56,664 - INFO - Verifications in API Server for VN ctest-vn4-37610054 passed 2025-09-25 01:48:56,664 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/239af9e1-daf6-440d-b852-9ca83f2be800 2025-09-25 01:48:56,673 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/44b3d4d2-c260-49c1-bc3c-7e9383d8c9a1 2025-09-25 01:48:56,678 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/44b3d4d2-c260-49c1-bc3c-7e9383d8c9a1 2025-09-25 01:48:56,684 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/338e627b-0370-4de3-8c1a-7e73e55cb9a6 2025-09-25 01:48:56,694 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95265061:ctest-vn4-37610054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95265061', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2565637686177448973', 'uuid-lslong': '13281850497497294848'}, 'enable': 'true', 'created': '2025-09-25T01:48:55', 'last-modified': '2025-09-25T01:48:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.668396'} 2025-09-25 01:48:56,700 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 01:48:56,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37610054 passed 2025-09-25 01:48:56,701 - DEBUG - ====Verifying policy data for ctest-vn4-37610054 in API_Server ====== 2025-09-25 01:48:56,701 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-25 01:48:56,706 - DEBUG - Requesting: http://10.0.0.249:8082/domain/42f4896f-8c65-4111-8d4d-af73f91f8c3c 2025-09-25 01:48:56,719 - DEBUG - Requesting: http://10.0.0.249:8082/project/12c323f6-9d8e-4405-8083-c0d38a916020 2025-09-25 01:48:56,794 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/239af9e1-daf6-440d-b852-9ca83f2be800 2025-09-25 01:48:56,805 - DEBUG - ==>Verifying data for policy with id: 6f0bf64d-d07a-45cd-9450-379d5615ae59, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95265061', 'ctest-policy1-12139621'] 2025-09-25 01:48:56,805 - INFO - VN ctest-vn4-37610054 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-25 01:48:56,805 - DEBUG - Verifying the vn in opserver 2025-09-25 01:48:56,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95265061:ctest-vn4-37610054 virtual network link through opserver 10.0.0.249 2025-09-25 01:48:56,805 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-25 01:48:57,097 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-25 01:48:57,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95265061:ctest-vn4-37610054', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95265061:ctest-vn4-37610054?flat'} 2025-09-25 01:48:57,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95265061:ctest-vn4-37610054 is found in opserver 2025-09-25 01:48:57,163 - DEBUG - Do not have enough data to verify VN in agent 2025-09-25 01:48:57,168 - DEBUG - VRF ids for VN ctest-vn4-37610054: {} 2025-09-25 01:48:57,169 - DEBUG - ====Verifying data for ctest-policy1-12139621 in API_Server ====== 2025-09-25 01:48:57,169 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-25 01:48:57,173 - DEBUG - Requesting: http://10.0.0.249:8082/domain/42f4896f-8c65-4111-8d4d-af73f91f8c3c 2025-09-25 01:48:57,182 - DEBUG - Requesting: http://10.0.0.249:8082/project/12c323f6-9d8e-4405-8083-c0d38a916020 2025-09-25 01:48:57,253 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/6f0bf64d-d07a-45cd-9450-379d5615ae59 2025-09-25 01:48:57,263 - INFO - Verified policy ctest-policy1-12139621 in API Server, Result: True 2025-09-25 01:48:57,263 - INFO - Done with setup and verification, moving onto test .. 2025-09-25 01:48:57,271 - INFO - Deleting VN ctest-vn4-37610054 2025-09-25 01:48:57,400 - DEBUG - Response for deleting network () 2025-09-25 01:48:57,400 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/44b3d4d2-c260-49c1-bc3c-7e9383d8c9a1 2025-09-25 01:48:57,405 - DEBUG - Response Code: 404 2025-09-25 01:48:57,405 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-25 01:48:57,409 - DEBUG - Requesting: http://10.0.0.249:8082/domain/42f4896f-8c65-4111-8d4d-af73f91f8c3c 2025-09-25 01:48:57,463 - DEBUG - Requesting: http://10.0.0.249:8082/project/12c323f6-9d8e-4405-8083-c0d38a916020 2025-09-25 01:48:57,527 - INFO - Validated that VN ctest-vn4-37610054 is not found in API Server 2025-09-25 01:48:57,536 - DEBUG - VN ctest-vn4-37610054 is not present in Agent 10.0.0.249 2025-09-25 01:48:57,537 - INFO - Validated that VN ctest-vn4-37610054 is not in any agent 2025-09-25 01:48:57,548 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37610054 info 2025-09-25 01:48:57,568 - INFO - Deleted policy ctest-policy1-12139621 2025-09-25 01:48:57,726 - DEBUG - policy ctest-policy1-12139621 is not found in API Server 2025-09-25 01:48:57,980 - DEBUG - No XMPP flaps were noticed during the test 2025-09-25 01:48:57,980 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-25 01:48:57,980 - INFO - -------------------------------------------------------------------------------- 2025-09-25 01:48:58,271 - DEBUG - No XMPP flaps were noticed during the test 2025-09-25 01:48:58,271 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-25 01:48:58,271 - INFO - -------------------------------------------------------------------------------- 2025-09-25 01:48:58,940 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95265061, ID : 12c323f6-9d8e-4405-8083-c0d38a916020