2026-01-28 19:09:01,851 - INFO - Domain Default found not creating 2026-01-28 19:09:02,028 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34438868 not found, creating it 2026-01-28 19:09:02,515 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34438868, ID : d044eb5e-8932-41cf-9fe3-47ca8e21b0b5 2026-01-28 19:09:04,071 - INFO - ================================================================================ 2026-01-28 19:09:04,071 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 19:09:04,324 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with 2026-01-28 19:09:04,324 - INFO - Initial checks done. Running the testcase now 2026-01-28 19:09:04,324 - INFO - 2026-01-28 19:09:04,324 - INFO - ================================================================================ 2026-01-28 19:09:04,324 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 19:09:04,324 - 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-28 19:09:04,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with 2026-01-28 19:09:04,612 - INFO - Initial checks done. Running the testcase now 2026-01-28 19:09:04,612 - INFO - 2026-01-28 19:09:04,979 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34438868:ctest-vn4-42592320, 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-34438868:ctest-vn4-42592320, 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-34438868:ctest-vn4-42592320, 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-34438868:ctest-vn4-42592320, 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-28 19:09:05,522 - DEBUG - Response for create_network : {'network': {'id': 'd09c1b21-ddea-46e5-8f42-e8bcc83f0b5b', 'name': 'ctest-vn4-42592320', 'tenant_id': 'd044eb5e893241cf9fe347ca8e21b0b5', 'project_id': 'd044eb5e893241cf9fe347ca8e21b0b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34438868', 'ctest-vn4-42592320'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 19:09:05,723 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f74b987d-494d-4c22-84e3-69d9303eab27', 'name': '', 'tenant_id': 'd044eb5e893241cf9fe347ca8e21b0b5', 'network_id': 'd09c1b21-ddea-46e5-8f42-e8bcc83f0b5b', 'ip_version': 4, 'cidr': '92.243.17.128/26', 'allocation_pools': [{'start': '92.243.17.130', 'end': '92.243.17.190'}], 'gateway_ip': '92.243.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.243.17.130', 'tags': [], 'project_id': 'd044eb5e893241cf9fe347ca8e21b0b5'}} 2026-01-28 19:09:05,867 - DEBUG - Response for create_subnet : {'subnet': {'id': '756f8d78-cb17-449b-8b86-cff9deb84120', 'name': '', 'tenant_id': 'd044eb5e893241cf9fe347ca8e21b0b5', 'network_id': 'd09c1b21-ddea-46e5-8f42-e8bcc83f0b5b', 'ip_version': 6, 'cidr': '2014:8a48:8fa2:8e9c:2654:b526::/96', 'allocation_pools': [{'start': '2014:8a48:8fa2:8e9c:2654:b526:0:2', 'end': '2014:8a48:8fa2:8e9c:2654:b526:ffff:fffe'}], 'gateway_ip': '2014:8a48:8fa2:8e9c:2654:b526:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2014:8a48:8fa2:8e9c:2654:b526:0:2', 'tags': [], 'project_id': 'd044eb5e893241cf9fe347ca8e21b0b5'}} 2026-01-28 19:09:05,890 - INFO - Created VN ctest-vn4-42592320 2026-01-28 19:09:05,943 - DEBUG - VN ctest-vn4-42592320 UUID is d09c1b21-ddea-46e5-8f42-e8bcc83f0b5b 2026-01-28 19:09:06,170 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd09c1b21-ddea-46e5-8f42-e8bcc83f0b5b', 'name': 'ctest-vn4-42592320', 'tenant_id': 'd044eb5e893241cf9fe347ca8e21b0b5', 'project_id': 'd044eb5e893241cf9fe347ca8e21b0b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f74b987d-494d-4c22-84e3-69d9303eab27', '756f8d78-cb17-449b-8b86-cff9deb84120'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34438868', 'ctest-vn4-42592320'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34438868', 'ctest-policy1-04892074']], 'subnet_ipam': [{'subnet_cidr': '92.243.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2014:8a48:8fa2:8e9c:2654:b526::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 19:09:06,323 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-28 19:09:06,621 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-28 19:09:06,650 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a42f7af0-84fe-44bc-b407-4f8073709127 2026-01-28 19:09:06,663 - DEBUG - Requesting: http://10.0.0.23:8082/project/d044eb5e-8932-41cf-9fe3-47ca8e21b0b5 2026-01-28 19:09:06,733 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d09c1b21-ddea-46e5-8f42-e8bcc83f0b5b 2026-01-28 19:09:06,744 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d09c1b21-ddea-46e5-8f42-e8bcc83f0b5b 2026-01-28 19:09:06,753 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2b0fc713-3905-44e7-82d0-31b55dce03d1 2026-01-28 19:09:06,760 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2b0fc713-3905-44e7-82d0-31b55dce03d1 2026-01-28 19:09:06,766 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d3336b54-2d42-4360-b2b4-5d25a6894290 2026-01-28 19:09:06,772 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 19:09:06,772 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d09c1b21-ddea-46e5-8f42-e8bcc83f0b5b 2026-01-28 19:09:06,780 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2b0fc713-3905-44e7-82d0-31b55dce03d1 2026-01-28 19:09:06,793 - INFO - Verified VN network id 11 for VN d09c1b21-ddea-46e5-8f42-e8bcc83f0b5b 2026-01-28 19:09:06,793 - INFO - Verifications in API Server for VN ctest-vn4-42592320 passed 2026-01-28 19:09:06,793 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d09c1b21-ddea-46e5-8f42-e8bcc83f0b5b 2026-01-28 19:09:06,804 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2b0fc713-3905-44e7-82d0-31b55dce03d1 2026-01-28 19:09:06,813 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2b0fc713-3905-44e7-82d0-31b55dce03d1 2026-01-28 19:09:06,820 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d3336b54-2d42-4360-b2b4-5d25a6894290 2026-01-28 19:09:06,833 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34438868:ctest-vn4-42592320', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34438868', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15031919488526862053', 'uuid-lslong': '10323069193397668699'}, 'enable': 'true', 'created': '2026-01-28T19:09:05', 'last-modified': '2026-01-28T19:09:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696924'} 2026-01-28 19:09:06,838 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 19:09:06,839 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42592320 passed 2026-01-28 19:09:06,839 - DEBUG - ====Verifying policy data for ctest-vn4-42592320 in API_Server ====== 2026-01-28 19:09:06,839 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-28 19:09:06,844 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a42f7af0-84fe-44bc-b407-4f8073709127 2026-01-28 19:09:06,854 - DEBUG - Requesting: http://10.0.0.23:8082/project/d044eb5e-8932-41cf-9fe3-47ca8e21b0b5 2026-01-28 19:09:06,923 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d09c1b21-ddea-46e5-8f42-e8bcc83f0b5b 2026-01-28 19:09:06,932 - DEBUG - ==>Verifying data for policy with id: 421987de-0902-4f6c-8377-74626a3bcfbd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34438868', 'ctest-policy1-04892074'] 2026-01-28 19:09:06,932 - INFO - VN ctest-vn4-42592320 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 19:09:06,932 - DEBUG - Verifying the vn in opserver 2026-01-28 19:09:06,932 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34438868:ctest-vn4-42592320 virtual network link through opserver 10.0.0.23 2026-01-28 19:09:06,933 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-28 19:09:07,225 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-28 19:09:07,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34438868:ctest-vn4-42592320', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34438868:ctest-vn4-42592320?flat'} 2026-01-28 19:09:07,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34438868:ctest-vn4-42592320 is found in opserver 2026-01-28 19:09:07,292 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 19:09:07,296 - DEBUG - VRF ids for VN ctest-vn4-42592320: {} 2026-01-28 19:09:07,297 - DEBUG - ====Verifying data for ctest-policy1-04892074 in API_Server ====== 2026-01-28 19:09:07,297 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-28 19:09:07,303 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a42f7af0-84fe-44bc-b407-4f8073709127 2026-01-28 19:09:07,316 - DEBUG - Requesting: http://10.0.0.23:8082/project/d044eb5e-8932-41cf-9fe3-47ca8e21b0b5 2026-01-28 19:09:07,382 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/421987de-0902-4f6c-8377-74626a3bcfbd 2026-01-28 19:09:07,391 - INFO - Verified policy ctest-policy1-04892074 in API Server, Result: True 2026-01-28 19:09:07,391 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 19:09:07,400 - INFO - Deleting VN ctest-vn4-42592320 2026-01-28 19:09:07,509 - DEBUG - Response for deleting network () 2026-01-28 19:09:07,509 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2b0fc713-3905-44e7-82d0-31b55dce03d1 2026-01-28 19:09:07,514 - DEBUG - Response Code: 404 2026-01-28 19:09:07,514 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-28 19:09:07,519 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a42f7af0-84fe-44bc-b407-4f8073709127 2026-01-28 19:09:07,572 - DEBUG - Requesting: http://10.0.0.23:8082/project/d044eb5e-8932-41cf-9fe3-47ca8e21b0b5 2026-01-28 19:09:07,638 - INFO - Validated that VN ctest-vn4-42592320 is not found in API Server 2026-01-28 19:09:07,648 - DEBUG - VN ctest-vn4-42592320 is not present in Agent 10.0.0.23 2026-01-28 19:09:07,648 - INFO - Validated that VN ctest-vn4-42592320 is not in any agent 2026-01-28 19:09:07,660 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42592320 info 2026-01-28 19:09:07,680 - INFO - Deleted policy ctest-policy1-04892074 2026-01-28 19:09:07,843 - DEBUG - policy ctest-policy1-04892074 is not found in API Server 2026-01-28 19:09:08,096 - DEBUG - No XMPP flaps were noticed during the test 2026-01-28 19:09:08,096 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-28 19:09:08,096 - INFO - -------------------------------------------------------------------------------- 2026-01-28 19:09:08,395 - DEBUG - No XMPP flaps were noticed during the test 2026-01-28 19:09:08,395 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-28 19:09:08,395 - INFO - -------------------------------------------------------------------------------- 2026-01-28 19:09:09,086 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-34438868, ID : d044eb5e-8932-41cf-9fe3-47ca8e21b0b5