2025-10-31 00:24:36,580 - INFO - Domain Default found not creating 2025-10-31 00:24:36,705 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79013631 not found, creating it 2025-10-31 00:24:37,129 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79013631, ID : c4eb1100-b5e3-42fd-95c0-3a76732cb506 2025-10-31 00:24:38,558 - INFO - ================================================================================ 2025-10-31 00:24:38,558 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 00:24:38,812 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-31 00:24:38,812 - INFO - Initial checks done. Running the testcase now 2025-10-31 00:24:38,812 - INFO - 2025-10-31 00:24:38,812 - INFO - ================================================================================ 2025-10-31 00:24:38,812 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 00:24:38,812 - 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-10-31 00:24:39,100 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-31 00:24:39,100 - INFO - Initial checks done. Running the testcase now 2025-10-31 00:24:39,100 - INFO - 2025-10-31 00:24:39,442 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79013631:ctest-vn4-88405386, 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-79013631:ctest-vn4-88405386, 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-79013631:ctest-vn4-88405386, 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-79013631:ctest-vn4-88405386, 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-10-31 00:24:39,936 - DEBUG - Response for create_network : {'network': {'id': '4559b6d1-0e99-4017-b003-707ec3a997c0', 'name': 'ctest-vn4-88405386', 'tenant_id': 'c4eb1100b5e342fd95c03a76732cb506', 'project_id': 'c4eb1100b5e342fd95c03a76732cb506', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79013631', 'ctest-vn4-88405386'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 00:24:40,097 - DEBUG - Response for create_subnet : {'subnet': {'id': '301b8d35-ce3c-487c-9572-36119b8f6edb', 'name': '', 'tenant_id': 'c4eb1100b5e342fd95c03a76732cb506', 'network_id': '4559b6d1-0e99-4017-b003-707ec3a997c0', 'ip_version': 4, 'cidr': '125.124.60.192/26', 'allocation_pools': [{'start': '125.124.60.194', 'end': '125.124.60.254'}], 'gateway_ip': '125.124.60.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.124.60.194', 'tags': [], 'project_id': 'c4eb1100b5e342fd95c03a76732cb506'}} 2025-10-31 00:24:40,295 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8885398-1cbb-43f1-bd33-cd600487d90f', 'name': '', 'tenant_id': 'c4eb1100b5e342fd95c03a76732cb506', 'network_id': '4559b6d1-0e99-4017-b003-707ec3a997c0', 'ip_version': 6, 'cidr': '3629:2d03:9f31:6c79:4ec2:f09e::/96', 'allocation_pools': [{'start': '3629:2d03:9f31:6c79:4ec2:f09e:0:2', 'end': '3629:2d03:9f31:6c79:4ec2:f09e:ffff:fffe'}], 'gateway_ip': '3629:2d03:9f31:6c79:4ec2:f09e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3629:2d03:9f31:6c79:4ec2:f09e:0:2', 'tags': [], 'project_id': 'c4eb1100b5e342fd95c03a76732cb506'}} 2025-10-31 00:24:40,314 - INFO - Created VN ctest-vn4-88405386 2025-10-31 00:24:40,367 - DEBUG - VN ctest-vn4-88405386 UUID is 4559b6d1-0e99-4017-b003-707ec3a997c0 2025-10-31 00:24:40,548 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4559b6d1-0e99-4017-b003-707ec3a997c0', 'name': 'ctest-vn4-88405386', 'tenant_id': 'c4eb1100b5e342fd95c03a76732cb506', 'project_id': 'c4eb1100b5e342fd95c03a76732cb506', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['301b8d35-ce3c-487c-9572-36119b8f6edb', 'f8885398-1cbb-43f1-bd33-cd600487d90f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79013631', 'ctest-vn4-88405386'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79013631', 'ctest-policy1-58296531']], 'subnet_ipam': [{'subnet_cidr': '125.124.60.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3629:2d03:9f31:6c79:4ec2:f09e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 00:24:40,707 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 00:24:40,997 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 00:24:41,022 - DEBUG - Requesting: http://10.0.0.254:8082/domain/36d10e8e-7887-487f-a862-c18e43fe7412 2025-10-31 00:24:41,033 - DEBUG - Requesting: http://10.0.0.254:8082/project/c4eb1100-b5e3-42fd-95c0-3a76732cb506 2025-10-31 00:24:41,106 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4559b6d1-0e99-4017-b003-707ec3a997c0 2025-10-31 00:24:41,117 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4559b6d1-0e99-4017-b003-707ec3a997c0 2025-10-31 00:24:41,125 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67f24602-b026-4dd2-bf70-e0ec5f324f5c 2025-10-31 00:24:41,132 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67f24602-b026-4dd2-bf70-e0ec5f324f5c 2025-10-31 00:24:41,138 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/60472579-d387-4f2d-a918-0949a4384f9d 2025-10-31 00:24:41,144 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 00:24:41,144 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4559b6d1-0e99-4017-b003-707ec3a997c0 2025-10-31 00:24:41,152 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67f24602-b026-4dd2-bf70-e0ec5f324f5c 2025-10-31 00:24:41,165 - INFO - Verified VN network id 12 for VN 4559b6d1-0e99-4017-b003-707ec3a997c0 2025-10-31 00:24:41,165 - INFO - Verifications in API Server for VN ctest-vn4-88405386 passed 2025-10-31 00:24:41,165 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4559b6d1-0e99-4017-b003-707ec3a997c0 2025-10-31 00:24:41,173 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67f24602-b026-4dd2-bf70-e0ec5f324f5c 2025-10-31 00:24:41,180 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67f24602-b026-4dd2-bf70-e0ec5f324f5c 2025-10-31 00:24:41,186 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/60472579-d387-4f2d-a918-0949a4384f9d 2025-10-31 00:24:41,196 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79013631:ctest-vn4-88405386', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79013631', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4997226270553620503', 'uuid-lslong': '12683104665356310464'}, 'enable': 'true', 'created': '2025-10-31T00:24:39', 'last-modified': '2025-10-31T00:24:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.671927'} 2025-10-31 00:24:41,203 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 00:24:41,203 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88405386 passed 2025-10-31 00:24:41,204 - DEBUG - ====Verifying policy data for ctest-vn4-88405386 in API_Server ====== 2025-10-31 00:24:41,204 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 00:24:41,209 - DEBUG - Requesting: http://10.0.0.254:8082/domain/36d10e8e-7887-487f-a862-c18e43fe7412 2025-10-31 00:24:41,220 - DEBUG - Requesting: http://10.0.0.254:8082/project/c4eb1100-b5e3-42fd-95c0-3a76732cb506 2025-10-31 00:24:41,293 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4559b6d1-0e99-4017-b003-707ec3a997c0 2025-10-31 00:24:41,302 - DEBUG - ==>Verifying data for policy with id: 90d6bbc5-1357-4135-b8ef-29598955c5fd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79013631', 'ctest-policy1-58296531'] 2025-10-31 00:24:41,302 - INFO - VN ctest-vn4-88405386 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 00:24:41,302 - DEBUG - Verifying the vn in opserver 2025-10-31 00:24:41,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79013631:ctest-vn4-88405386 virtual network link through opserver 10.0.0.254 2025-10-31 00:24:41,302 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 00:24:41,592 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 00:24:41,643 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79013631:ctest-vn4-88405386', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79013631:ctest-vn4-88405386?flat'} 2025-10-31 00:24:41,643 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79013631:ctest-vn4-88405386 is found in opserver 2025-10-31 00:24:41,652 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 00:24:41,655 - DEBUG - VRF ids for VN ctest-vn4-88405386: {} 2025-10-31 00:24:41,656 - DEBUG - ====Verifying data for ctest-policy1-58296531 in API_Server ====== 2025-10-31 00:24:41,656 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 00:24:41,661 - DEBUG - Requesting: http://10.0.0.254:8082/domain/36d10e8e-7887-487f-a862-c18e43fe7412 2025-10-31 00:24:41,669 - DEBUG - Requesting: http://10.0.0.254:8082/project/c4eb1100-b5e3-42fd-95c0-3a76732cb506 2025-10-31 00:24:41,733 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/90d6bbc5-1357-4135-b8ef-29598955c5fd 2025-10-31 00:24:41,742 - INFO - Verified policy ctest-policy1-58296531 in API Server, Result: True 2025-10-31 00:24:41,742 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 00:24:41,748 - INFO - Deleting VN ctest-vn4-88405386 2025-10-31 00:24:41,897 - DEBUG - Response for deleting network () 2025-10-31 00:24:41,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67f24602-b026-4dd2-bf70-e0ec5f324f5c 2025-10-31 00:24:41,901 - DEBUG - Response Code: 404 2025-10-31 00:24:41,901 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 00:24:41,906 - DEBUG - Requesting: http://10.0.0.254:8082/domain/36d10e8e-7887-487f-a862-c18e43fe7412 2025-10-31 00:24:41,915 - DEBUG - Requesting: http://10.0.0.254:8082/project/c4eb1100-b5e3-42fd-95c0-3a76732cb506 2025-10-31 00:24:41,985 - INFO - Validated that VN ctest-vn4-88405386 is not found in API Server 2025-10-31 00:24:41,994 - DEBUG - VN ctest-vn4-88405386 is not present in Agent 10.0.0.254 2025-10-31 00:24:41,994 - INFO - Validated that VN ctest-vn4-88405386 is not in any agent 2025-10-31 00:24:42,006 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88405386 info 2025-10-31 00:24:42,032 - INFO - Deleted policy ctest-policy1-58296531 2025-10-31 00:24:42,203 - DEBUG - policy ctest-policy1-58296531 is not found in API Server 2025-10-31 00:24:42,460 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 00:24:42,460 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-31 00:24:42,460 - INFO - -------------------------------------------------------------------------------- 2025-10-31 00:24:42,748 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 00:24:42,748 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-31 00:24:42,748 - INFO - -------------------------------------------------------------------------------- 2025-10-31 00:24:43,410 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-79013631, ID : c4eb1100-b5e3-42fd-95c0-3a76732cb506