2026-01-29 04:52:39,236 - INFO - Domain Default found not creating 2026-01-29 04:52:39,393 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64646366 not found, creating it 2026-01-29 04:52:39,852 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64646366, ID : 89f14a03-4fa4-4dbc-91b3-0b9254d76c67 2026-01-29 04:52:41,244 - INFO - ================================================================================ 2026-01-29 04:52:41,244 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 04:52:41,501 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with 2026-01-29 04:52:41,501 - INFO - Initial checks done. Running the testcase now 2026-01-29 04:52:41,502 - INFO - 2026-01-29 04:52:41,502 - INFO - ================================================================================ 2026-01-29 04:52:41,502 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 04:52:41,502 - 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. 2026-01-29 04:52:41,796 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with 2026-01-29 04:52:41,797 - INFO - Initial checks done. Running the testcase now 2026-01-29 04:52:41,797 - INFO - 2026-01-29 04:52:42,147 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64646366:ctest-vn4-97544307, 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-64646366:ctest-vn4-97544307, 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-64646366:ctest-vn4-97544307, 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-64646366:ctest-vn4-97544307, 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] 2026-01-29 04:52:42,632 - DEBUG - Response for create_network : {'network': {'id': '252f8f5a-1e05-4bb7-9cde-50686519575d', 'name': 'ctest-vn4-97544307', 'tenant_id': '89f14a034fa44dbc91b30b9254d76c67', 'project_id': '89f14a034fa44dbc91b30b9254d76c67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64646366', 'ctest-vn4-97544307'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 04:52:42,838 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da246985-2499-4bac-a45e-5f37edf16e5b', 'name': '', 'tenant_id': '89f14a034fa44dbc91b30b9254d76c67', 'network_id': '252f8f5a-1e05-4bb7-9cde-50686519575d', 'ip_version': 4, 'cidr': '163.139.54.64/26', 'allocation_pools': [{'start': '163.139.54.66', 'end': '163.139.54.126'}], 'gateway_ip': '163.139.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.139.54.66', 'tags': [], 'project_id': '89f14a034fa44dbc91b30b9254d76c67'}} 2026-01-29 04:52:43,002 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af8c786e-65a5-4b82-981c-96b19250f193', 'name': '', 'tenant_id': '89f14a034fa44dbc91b30b9254d76c67', 'network_id': '252f8f5a-1e05-4bb7-9cde-50686519575d', 'ip_version': 6, 'cidr': '344f:5ffe:a462:4d79:afa:aaac::/96', 'allocation_pools': [{'start': '344f:5ffe:a462:4d79:afa:aaac:0:2', 'end': '344f:5ffe:a462:4d79:afa:aaac:ffff:fffe'}], 'gateway_ip': '344f:5ffe:a462:4d79:afa:aaac:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '344f:5ffe:a462:4d79:afa:aaac:0:2', 'tags': [], 'project_id': '89f14a034fa44dbc91b30b9254d76c67'}} 2026-01-29 04:52:43,082 - INFO - Created VN ctest-vn4-97544307 2026-01-29 04:52:43,133 - DEBUG - VN ctest-vn4-97544307 UUID is 252f8f5a-1e05-4bb7-9cde-50686519575d 2026-01-29 04:52:43,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '252f8f5a-1e05-4bb7-9cde-50686519575d', 'name': 'ctest-vn4-97544307', 'tenant_id': '89f14a034fa44dbc91b30b9254d76c67', 'project_id': '89f14a034fa44dbc91b30b9254d76c67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da246985-2499-4bac-a45e-5f37edf16e5b', 'af8c786e-65a5-4b82-981c-96b19250f193'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64646366', 'ctest-vn4-97544307'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64646366', 'ctest-policy1-06344501']], 'subnet_ipam': [{'subnet_cidr': '163.139.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '344f:5ffe:a462:4d79:afa:aaac::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 04:52:43,469 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 04:52:43,761 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 04:52:43,790 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9df274e-ab93-425c-a20d-7bf30e43133a 2026-01-29 04:52:43,800 - DEBUG - Requesting: http://10.0.0.22:8082/project/89f14a03-4fa4-4dbc-91b3-0b9254d76c67 2026-01-29 04:52:43,889 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/252f8f5a-1e05-4bb7-9cde-50686519575d 2026-01-29 04:52:43,902 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/252f8f5a-1e05-4bb7-9cde-50686519575d 2026-01-29 04:52:43,911 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d06a0101-26c5-4386-ab39-bb5416973258 2026-01-29 04:52:43,917 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d06a0101-26c5-4386-ab39-bb5416973258 2026-01-29 04:52:43,923 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c94a3c37-eb14-430d-b787-85503fd143bc 2026-01-29 04:52:43,928 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 04:52:43,928 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/252f8f5a-1e05-4bb7-9cde-50686519575d 2026-01-29 04:52:43,936 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d06a0101-26c5-4386-ab39-bb5416973258 2026-01-29 04:52:43,947 - INFO - Verified VN network id 12 for VN 252f8f5a-1e05-4bb7-9cde-50686519575d 2026-01-29 04:52:43,947 - INFO - Verifications in API Server for VN ctest-vn4-97544307 passed 2026-01-29 04:52:43,947 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/252f8f5a-1e05-4bb7-9cde-50686519575d 2026-01-29 04:52:43,955 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d06a0101-26c5-4386-ab39-bb5416973258 2026-01-29 04:52:43,961 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d06a0101-26c5-4386-ab39-bb5416973258 2026-01-29 04:52:43,966 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c94a3c37-eb14-430d-b787-85503fd143bc 2026-01-29 04:52:43,975 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64646366:ctest-vn4-97544307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64646366', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2679517920522226615', 'uuid-lslong': '11303560524049504093'}, 'enable': 'true', 'created': '2026-01-29T04:52:42', 'last-modified': '2026-01-29T04:52:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687488'} 2026-01-29 04:52:43,980 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 04:52:43,980 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97544307 passed 2026-01-29 04:52:43,981 - DEBUG - ====Verifying policy data for ctest-vn4-97544307 in API_Server ====== 2026-01-29 04:52:43,981 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 04:52:43,985 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9df274e-ab93-425c-a20d-7bf30e43133a 2026-01-29 04:52:43,993 - DEBUG - Requesting: http://10.0.0.22:8082/project/89f14a03-4fa4-4dbc-91b3-0b9254d76c67 2026-01-29 04:52:44,059 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/252f8f5a-1e05-4bb7-9cde-50686519575d 2026-01-29 04:52:44,067 - DEBUG - ==>Verifying data for policy with id: f483ee89-4565-466a-956e-e7801866cbdd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64646366', 'ctest-policy1-06344501'] 2026-01-29 04:52:44,068 - INFO - VN ctest-vn4-97544307 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 04:52:44,068 - DEBUG - Verifying the vn in opserver 2026-01-29 04:52:44,068 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64646366:ctest-vn4-97544307 virtual network link through opserver 10.0.0.22 2026-01-29 04:52:44,068 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-29 04:52:44,356 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-29 04:52:44,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64646366:ctest-vn4-97544307', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64646366:ctest-vn4-97544307?flat'} 2026-01-29 04:52:44,410 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64646366:ctest-vn4-97544307 is found in opserver 2026-01-29 04:52:44,419 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 04:52:44,423 - DEBUG - VRF ids for VN ctest-vn4-97544307: {} 2026-01-29 04:52:44,423 - DEBUG - ====Verifying data for ctest-policy1-06344501 in API_Server ====== 2026-01-29 04:52:44,423 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 04:52:44,428 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9df274e-ab93-425c-a20d-7bf30e43133a 2026-01-29 04:52:44,437 - DEBUG - Requesting: http://10.0.0.22:8082/project/89f14a03-4fa4-4dbc-91b3-0b9254d76c67 2026-01-29 04:52:44,505 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/f483ee89-4565-466a-956e-e7801866cbdd 2026-01-29 04:52:44,513 - INFO - Verified policy ctest-policy1-06344501 in API Server, Result: True 2026-01-29 04:52:44,513 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 04:52:44,518 - INFO - Deleting VN ctest-vn4-97544307 2026-01-29 04:52:44,620 - DEBUG - Response for deleting network () 2026-01-29 04:52:44,620 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d06a0101-26c5-4386-ab39-bb5416973258 2026-01-29 04:52:44,625 - DEBUG - Response Code: 404 2026-01-29 04:52:44,625 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 04:52:44,635 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9df274e-ab93-425c-a20d-7bf30e43133a 2026-01-29 04:52:44,690 - DEBUG - Requesting: http://10.0.0.22:8082/project/89f14a03-4fa4-4dbc-91b3-0b9254d76c67 2026-01-29 04:52:44,760 - INFO - Validated that VN ctest-vn4-97544307 is not found in API Server 2026-01-29 04:52:44,769 - DEBUG - VN ctest-vn4-97544307 is not present in Agent 10.0.0.22 2026-01-29 04:52:44,769 - INFO - Validated that VN ctest-vn4-97544307 is not in any agent 2026-01-29 04:52:44,782 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97544307 info 2026-01-29 04:52:44,806 - INFO - Deleted policy ctest-policy1-06344501 2026-01-29 04:52:44,964 - DEBUG - policy ctest-policy1-06344501 is not found in API Server 2026-01-29 04:52:45,216 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 04:52:45,216 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-29 04:52:45,216 - INFO - -------------------------------------------------------------------------------- 2026-01-29 04:52:45,507 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 04:52:45,507 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-29 04:52:45,507 - INFO - -------------------------------------------------------------------------------- 2026-01-29 04:52:46,189 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64646366, ID : 89f14a03-4fa4-4dbc-91b3-0b9254d76c67