2025-10-31 05:41:03,901 - INFO - Domain Default found not creating 2025-10-31 05:41:04,055 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57695437 not found, creating it 2025-10-31 05:41:04,503 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57695437, ID : c13a4c1a-8fef-4aa3-9a0d-e9776b1fac39 2025-10-31 05:41:06,090 - INFO - ================================================================================ 2025-10-31 05:41:06,090 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 05:41:06,347 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with 2025-10-31 05:41:06,347 - INFO - Initial checks done. Running the testcase now 2025-10-31 05:41:06,347 - INFO - 2025-10-31 05:41:06,347 - INFO - ================================================================================ 2025-10-31 05:41:06,347 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 05:41:06,347 - 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 05:41:06,644 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with 2025-10-31 05:41:06,644 - INFO - Initial checks done. Running the testcase now 2025-10-31 05:41:06,644 - INFO - 2025-10-31 05:41:07,031 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57695437:ctest-vn4-40627885, 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-57695437:ctest-vn4-40627885, 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-57695437:ctest-vn4-40627885, 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-57695437:ctest-vn4-40627885, 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 05:41:07,555 - DEBUG - Response for create_network : {'network': {'id': 'b1874b3d-5edc-4fa3-a34c-bca53d56df1e', 'name': 'ctest-vn4-40627885', 'tenant_id': 'c13a4c1a8fef4aa39a0de9776b1fac39', 'project_id': 'c13a4c1a8fef4aa39a0de9776b1fac39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57695437', 'ctest-vn4-40627885'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 05:41:07,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '052f1908-dc0d-4a21-b82a-1b7ea18ef3c6', 'name': '', 'tenant_id': 'c13a4c1a8fef4aa39a0de9776b1fac39', 'network_id': 'b1874b3d-5edc-4fa3-a34c-bca53d56df1e', 'ip_version': 4, 'cidr': '57.97.144.192/26', 'allocation_pools': [{'start': '57.97.144.194', 'end': '57.97.144.254'}], 'gateway_ip': '57.97.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.97.144.194', 'tags': [], 'project_id': 'c13a4c1a8fef4aa39a0de9776b1fac39'}} 2025-10-31 05:41:07,939 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a3c9cde-9ebb-469a-ba29-05bef6431204', 'name': '', 'tenant_id': 'c13a4c1a8fef4aa39a0de9776b1fac39', 'network_id': 'b1874b3d-5edc-4fa3-a34c-bca53d56df1e', 'ip_version': 6, 'cidr': '3059:8452:d5a4:dee2:a448:d024::/96', 'allocation_pools': [{'start': '3059:8452:d5a4:dee2:a448:d024:0:2', 'end': '3059:8452:d5a4:dee2:a448:d024:ffff:fffe'}], 'gateway_ip': '3059:8452:d5a4:dee2:a448:d024:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3059:8452:d5a4:dee2:a448:d024:0:2', 'tags': [], 'project_id': 'c13a4c1a8fef4aa39a0de9776b1fac39'}} 2025-10-31 05:41:07,960 - INFO - Created VN ctest-vn4-40627885 2025-10-31 05:41:08,013 - DEBUG - VN ctest-vn4-40627885 UUID is b1874b3d-5edc-4fa3-a34c-bca53d56df1e 2025-10-31 05:41:08,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1874b3d-5edc-4fa3-a34c-bca53d56df1e', 'name': 'ctest-vn4-40627885', 'tenant_id': 'c13a4c1a8fef4aa39a0de9776b1fac39', 'project_id': 'c13a4c1a8fef4aa39a0de9776b1fac39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['052f1908-dc0d-4a21-b82a-1b7ea18ef3c6', '7a3c9cde-9ebb-469a-ba29-05bef6431204'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57695437', 'ctest-vn4-40627885'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57695437', 'ctest-policy1-37952498']], 'subnet_ipam': [{'subnet_cidr': '57.97.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3059:8452:d5a4:dee2:a448:d024::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 05:41:08,361 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:08,703 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:08,730 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:08,742 - DEBUG - Requesting: http://10.0.0.137:8082/project/c13a4c1a-8fef-4aa3-9a0d-e9776b1fac39 2025-10-31 05:41:08,813 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b1874b3d-5edc-4fa3-a34c-bca53d56df1e 2025-10-31 05:41:08,826 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b1874b3d-5edc-4fa3-a34c-bca53d56df1e 2025-10-31 05:41:08,839 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b111fe3e-d4b4-46ae-b371-68165fec935a 2025-10-31 05:41:08,847 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b111fe3e-d4b4-46ae-b371-68165fec935a 2025-10-31 05:41:08,853 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/4b2fed18-863a-4e13-9e96-d637e457fd08 2025-10-31 05:41:08,859 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 05:41:08,859 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b1874b3d-5edc-4fa3-a34c-bca53d56df1e 2025-10-31 05:41:08,868 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b111fe3e-d4b4-46ae-b371-68165fec935a 2025-10-31 05:41:08,881 - INFO - Verified VN network id 11 for VN b1874b3d-5edc-4fa3-a34c-bca53d56df1e 2025-10-31 05:41:08,881 - INFO - Verifications in API Server for VN ctest-vn4-40627885 passed 2025-10-31 05:41:08,881 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b1874b3d-5edc-4fa3-a34c-bca53d56df1e 2025-10-31 05:41:08,890 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b111fe3e-d4b4-46ae-b371-68165fec935a 2025-10-31 05:41:08,896 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b111fe3e-d4b4-46ae-b371-68165fec935a 2025-10-31 05:41:08,902 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/4b2fed18-863a-4e13-9e96-d637e457fd08 2025-10-31 05:41:08,913 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57695437:ctest-vn4-40627885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57695437', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12792275993525768099', 'uuid-lslong': '11766987344296992542'}, 'enable': 'true', 'created': '2025-10-31T05:41:07', 'last-modified': '2025-10-31T05:41:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729705'} 2025-10-31 05:41:08,919 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 05:41:08,920 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40627885 passed 2025-10-31 05:41:08,920 - DEBUG - ====Verifying policy data for ctest-vn4-40627885 in API_Server ====== 2025-10-31 05:41:08,920 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:08,925 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:08,934 - DEBUG - Requesting: http://10.0.0.137:8082/project/c13a4c1a-8fef-4aa3-9a0d-e9776b1fac39 2025-10-31 05:41:09,010 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/b1874b3d-5edc-4fa3-a34c-bca53d56df1e 2025-10-31 05:41:09,020 - DEBUG - ==>Verifying data for policy with id: 5f5f9b41-0442-4967-9689-339da73952ca, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57695437', 'ctest-policy1-37952498'] 2025-10-31 05:41:09,020 - INFO - VN ctest-vn4-40627885 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 05:41:09,020 - DEBUG - Verifying the vn in opserver 2025-10-31 05:41:09,020 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57695437:ctest-vn4-40627885 virtual network link through opserver 10.0.0.137 2025-10-31 05:41:09,020 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 05:41:09,350 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 05:41:09,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57695437:ctest-vn4-40627885', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57695437:ctest-vn4-40627885?flat'} 2025-10-31 05:41:09,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57695437:ctest-vn4-40627885 is found in opserver 2025-10-31 05:41:09,414 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 05:41:09,418 - DEBUG - VRF ids for VN ctest-vn4-40627885: {} 2025-10-31 05:41:09,418 - DEBUG - ====Verifying data for ctest-policy1-37952498 in API_Server ====== 2025-10-31 05:41:09,418 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:09,423 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:09,433 - DEBUG - Requesting: http://10.0.0.137:8082/project/c13a4c1a-8fef-4aa3-9a0d-e9776b1fac39 2025-10-31 05:41:09,506 - DEBUG - Requesting: http://10.0.0.137:8082/network-policy/5f5f9b41-0442-4967-9689-339da73952ca 2025-10-31 05:41:09,518 - INFO - Verified policy ctest-policy1-37952498 in API Server, Result: True 2025-10-31 05:41:09,518 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 05:41:09,526 - INFO - Deleting VN ctest-vn4-40627885 2025-10-31 05:41:09,638 - DEBUG - Response for deleting network () 2025-10-31 05:41:09,638 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b111fe3e-d4b4-46ae-b371-68165fec935a 2025-10-31 05:41:09,642 - DEBUG - Response Code: 404 2025-10-31 05:41:09,642 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 05:41:09,647 - DEBUG - Requesting: http://10.0.0.137:8082/domain/2436afe5-e42d-4f5d-b09a-80ab24975b2d 2025-10-31 05:41:09,697 - DEBUG - Requesting: http://10.0.0.137:8082/project/c13a4c1a-8fef-4aa3-9a0d-e9776b1fac39 2025-10-31 05:41:09,763 - INFO - Validated that VN ctest-vn4-40627885 is not found in API Server 2025-10-31 05:41:09,772 - DEBUG - VN ctest-vn4-40627885 is not present in Agent 10.0.0.137 2025-10-31 05:41:09,772 - INFO - Validated that VN ctest-vn4-40627885 is not in any agent 2025-10-31 05:41:09,784 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40627885 info 2025-10-31 05:41:09,806 - INFO - Deleted policy ctest-policy1-37952498 2025-10-31 05:41:09,969 - DEBUG - policy ctest-policy1-37952498 is not found in API Server 2025-10-31 05:41:10,222 - DEBUG - No XMPP flaps were noticed during the test