2025-11-13 18:25:20,764 - INFO - Domain Default found not creating 2025-11-13 18:25:20,964 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23604957 not found, creating it 2025-11-13 18:25:21,521 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23604957, ID : 6423b642-28b1-417e-8b15-df7f1d1260da 2025-11-13 18:25:23,396 - INFO - ================================================================================ 2025-11-13 18:25:23,396 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 18:25:23,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-11-13 18:25:23,697 - INFO - Initial checks done. Running the testcase now 2025-11-13 18:25:23,697 - INFO - 2025-11-13 18:25:23,697 - INFO - ================================================================================ 2025-11-13 18:25:23,698 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 18:25:23,698 - 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-13 18:25:24,042 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-11-13 18:25:24,042 - INFO - Initial checks done. Running the testcase now 2025-11-13 18:25:24,042 - INFO - 2025-11-13 18:25:24,475 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23604957:ctest-vn4-24760051, 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-23604957:ctest-vn4-24760051, 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-23604957:ctest-vn4-24760051, 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-23604957:ctest-vn4-24760051, 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-13 18:25:25,136 - DEBUG - Response for create_network : {'network': {'id': '540e933b-544f-44f3-a8a6-87235e0e5370', 'name': 'ctest-vn4-24760051', 'tenant_id': '6423b64228b1417e8b15df7f1d1260da', 'project_id': '6423b64228b1417e8b15df7f1d1260da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23604957', 'ctest-vn4-24760051'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 18:25:25,331 - DEBUG - Response for create_subnet : {'subnet': {'id': '9169d501-6967-4077-aa72-c3983ddf63ad', 'name': '', 'tenant_id': '6423b64228b1417e8b15df7f1d1260da', 'network_id': '540e933b-544f-44f3-a8a6-87235e0e5370', 'ip_version': 4, 'cidr': '196.82.159.128/26', 'allocation_pools': [{'start': '196.82.159.130', 'end': '196.82.159.190'}], 'gateway_ip': '196.82.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.82.159.130', 'tags': [], 'project_id': '6423b64228b1417e8b15df7f1d1260da'}} 2025-11-13 18:25:25,539 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8fc6e4a-1231-4870-9629-cfd2e60fdab6', 'name': '', 'tenant_id': '6423b64228b1417e8b15df7f1d1260da', 'network_id': '540e933b-544f-44f3-a8a6-87235e0e5370', 'ip_version': 6, 'cidr': '3766:3f3d:5481:b648:855:2f55::/96', 'allocation_pools': [{'start': '3766:3f3d:5481:b648:855:2f55:0:2', 'end': '3766:3f3d:5481:b648:855:2f55:ffff:fffe'}], 'gateway_ip': '3766:3f3d:5481:b648:855:2f55:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3766:3f3d:5481:b648:855:2f55:0:2', 'tags': [], 'project_id': '6423b64228b1417e8b15df7f1d1260da'}} 2025-11-13 18:25:25,561 - INFO - Created VN ctest-vn4-24760051 2025-11-13 18:25:25,629 - DEBUG - VN ctest-vn4-24760051 UUID is 540e933b-544f-44f3-a8a6-87235e0e5370 2025-11-13 18:25:25,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '540e933b-544f-44f3-a8a6-87235e0e5370', 'name': 'ctest-vn4-24760051', 'tenant_id': '6423b64228b1417e8b15df7f1d1260da', 'project_id': '6423b64228b1417e8b15df7f1d1260da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9169d501-6967-4077-aa72-c3983ddf63ad', 'b8fc6e4a-1231-4870-9629-cfd2e60fdab6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23604957', 'ctest-vn4-24760051'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23604957', 'ctest-policy1-54071334']], 'subnet_ipam': [{'subnet_cidr': '196.82.159.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3766:3f3d:5481:b648:855:2f55::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 18:25:26,149 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 18:25:26,528 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 18:25:26,575 - DEBUG - Requesting: http://10.0.0.50:8082/domain/61df48a7-c740-49da-8068-99db5a679ca7 2025-11-13 18:25:26,614 - DEBUG - Requesting: http://10.0.0.50:8082/project/6423b642-28b1-417e-8b15-df7f1d1260da 2025-11-13 18:25:26,736 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/540e933b-544f-44f3-a8a6-87235e0e5370 2025-11-13 18:25:26,751 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/540e933b-544f-44f3-a8a6-87235e0e5370 2025-11-13 18:25:26,766 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55fa1540-01d7-4d08-944f-6db633ae15c4 2025-11-13 18:25:26,777 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55fa1540-01d7-4d08-944f-6db633ae15c4 2025-11-13 18:25:26,786 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/01016e87-0463-46ff-9e89-cdea1a07cd09 2025-11-13 18:25:26,795 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 18:25:26,795 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/540e933b-544f-44f3-a8a6-87235e0e5370 2025-11-13 18:25:26,807 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55fa1540-01d7-4d08-944f-6db633ae15c4 2025-11-13 18:25:26,829 - INFO - Verified VN network id 11 for VN 540e933b-544f-44f3-a8a6-87235e0e5370 2025-11-13 18:25:26,829 - INFO - Verifications in API Server for VN ctest-vn4-24760051 passed 2025-11-13 18:25:26,830 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/540e933b-544f-44f3-a8a6-87235e0e5370 2025-11-13 18:25:26,845 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55fa1540-01d7-4d08-944f-6db633ae15c4 2025-11-13 18:25:26,855 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55fa1540-01d7-4d08-944f-6db633ae15c4 2025-11-13 18:25:26,864 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/01016e87-0463-46ff-9e89-cdea1a07cd09 2025-11-13 18:25:26,882 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23604957:ctest-vn4-24760051', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23604957', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6056940431886730483', 'uuid-lslong': '12152549230477464432'}, 'enable': 'true', 'created': '2025-11-13T18:25:25', 'last-modified': '2025-11-13T18:25:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966624'} 2025-11-13 18:25:26,893 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 18:25:26,893 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24760051 passed 2025-11-13 18:25:26,893 - DEBUG - ====Verifying policy data for ctest-vn4-24760051 in API_Server ====== 2025-11-13 18:25:26,893 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 18:25:26,901 - DEBUG - Requesting: http://10.0.0.50:8082/domain/61df48a7-c740-49da-8068-99db5a679ca7 2025-11-13 18:25:26,921 - DEBUG - Requesting: http://10.0.0.50:8082/project/6423b642-28b1-417e-8b15-df7f1d1260da 2025-11-13 18:25:27,015 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/540e933b-544f-44f3-a8a6-87235e0e5370 2025-11-13 18:25:27,033 - DEBUG - ==>Verifying data for policy with id: e5dfcdf1-9670-4014-9d80-98c905f97666, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23604957', 'ctest-policy1-54071334'] 2025-11-13 18:25:27,033 - INFO - VN ctest-vn4-24760051 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 18:25:27,033 - DEBUG - Verifying the vn in opserver 2025-11-13 18:25:27,033 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23604957:ctest-vn4-24760051 virtual network link through opserver 10.0.0.50 2025-11-13 18:25:27,034 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-13 18:25:27,392 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-13 18:25:27,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23604957:ctest-vn4-24760051', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23604957:ctest-vn4-24760051?flat'} 2025-11-13 18:25:27,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23604957:ctest-vn4-24760051 is found in opserver 2025-11-13 18:25:27,550 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 18:25:27,563 - DEBUG - VRF ids for VN ctest-vn4-24760051: {} 2025-11-13 18:25:27,565 - DEBUG - ====Verifying data for ctest-policy1-54071334 in API_Server ====== 2025-11-13 18:25:27,565 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 18:25:27,578 - DEBUG - Requesting: http://10.0.0.50:8082/domain/61df48a7-c740-49da-8068-99db5a679ca7 2025-11-13 18:25:27,610 - DEBUG - Requesting: http://10.0.0.50:8082/project/6423b642-28b1-417e-8b15-df7f1d1260da 2025-11-13 18:25:27,702 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/e5dfcdf1-9670-4014-9d80-98c905f97666 2025-11-13 18:25:27,715 - INFO - Verified policy ctest-policy1-54071334 in API Server, Result: True 2025-11-13 18:25:27,716 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 18:25:27,728 - INFO - Deleting VN ctest-vn4-24760051 2025-11-13 18:25:27,914 - DEBUG - Response for deleting network () 2025-11-13 18:25:27,914 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55fa1540-01d7-4d08-944f-6db633ae15c4 2025-11-13 18:25:27,921 - DEBUG - Response Code: 404 2025-11-13 18:25:27,921 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 18:25:27,930 - DEBUG - Requesting: http://10.0.0.50:8082/domain/61df48a7-c740-49da-8068-99db5a679ca7 2025-11-13 18:25:27,992 - DEBUG - Requesting: http://10.0.0.50:8082/project/6423b642-28b1-417e-8b15-df7f1d1260da 2025-11-13 18:25:28,111 - INFO - Validated that VN ctest-vn4-24760051 is not found in API Server 2025-11-13 18:25:28,137 - DEBUG - VN ctest-vn4-24760051 is not present in Agent 10.0.0.50 2025-11-13 18:25:28,138 - INFO - Validated that VN ctest-vn4-24760051 is not in any agent 2025-11-13 18:25:28,174 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24760051 info 2025-11-13 18:25:28,239 - INFO - Deleted policy ctest-policy1-54071334 2025-11-13 18:25:28,456 - DEBUG - policy ctest-policy1-54071334 is not found in API Server 2025-11-13 18:25:28,787 - DEBUG - No XMPP flaps were noticed during the test