2026-01-29 13:30:31,904 - INFO - Domain Default found not creating 2026-01-29 13:30:32,076 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-14858117 not found, creating it 2026-01-29 13:30:32,516 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-14858117, ID : ec08dd5e-d7d0-4e2d-a0be-19af0ff33e41 2026-01-29 13:30:34,016 - INFO - ================================================================================ 2026-01-29 13:30:34,016 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 13:30:34,285 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.129': '0'}} with 2026-01-29 13:30:34,285 - INFO - Initial checks done. Running the testcase now 2026-01-29 13:30:34,285 - INFO - 2026-01-29 13:30:34,285 - INFO - ================================================================================ 2026-01-29 13:30:34,285 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 13:30:34,286 - 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 13:30:34,567 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.129': '0'}} with 2026-01-29 13:30:34,568 - INFO - Initial checks done. Running the testcase now 2026-01-29 13:30:34,568 - INFO - 2026-01-29 13:30:34,914 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14858117:ctest-vn4-05532783, 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-14858117:ctest-vn4-05532783, 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-14858117:ctest-vn4-05532783, 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-14858117:ctest-vn4-05532783, 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 13:30:35,431 - DEBUG - Response for create_network : {'network': {'id': 'dc1e9736-f2bf-4012-89f7-d4b579f1f5c5', 'name': 'ctest-vn4-05532783', 'tenant_id': 'ec08dd5ed7d04e2da0be19af0ff33e41', 'project_id': 'ec08dd5ed7d04e2da0be19af0ff33e41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14858117', 'ctest-vn4-05532783'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 13:30:35,568 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e56a48b3-8774-4300-be14-017a263dab4b', 'name': '', 'tenant_id': 'ec08dd5ed7d04e2da0be19af0ff33e41', 'network_id': 'dc1e9736-f2bf-4012-89f7-d4b579f1f5c5', 'ip_version': 4, 'cidr': '115.57.123.0/26', 'allocation_pools': [{'start': '115.57.123.2', 'end': '115.57.123.62'}], 'gateway_ip': '115.57.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.57.123.2', 'tags': [], 'project_id': 'ec08dd5ed7d04e2da0be19af0ff33e41'}} 2026-01-29 13:30:35,859 - DEBUG - Response for create_subnet : {'subnet': {'id': '41abeed5-d553-4b22-be7e-cc5da0881949', 'name': '', 'tenant_id': 'ec08dd5ed7d04e2da0be19af0ff33e41', 'network_id': 'dc1e9736-f2bf-4012-89f7-d4b579f1f5c5', 'ip_version': 6, 'cidr': '3983:2705:664f:5f2:bc32:bf46::/96', 'allocation_pools': [{'start': '3983:2705:664f:5f2:bc32:bf46:0:2', 'end': '3983:2705:664f:5f2:bc32:bf46:ffff:fffe'}], 'gateway_ip': '3983:2705:664f:5f2:bc32:bf46:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3983:2705:664f:5f2:bc32:bf46:0:2', 'tags': [], 'project_id': 'ec08dd5ed7d04e2da0be19af0ff33e41'}} 2026-01-29 13:30:35,884 - INFO - Created VN ctest-vn4-05532783 2026-01-29 13:30:35,942 - DEBUG - VN ctest-vn4-05532783 UUID is dc1e9736-f2bf-4012-89f7-d4b579f1f5c5 2026-01-29 13:30:36,205 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc1e9736-f2bf-4012-89f7-d4b579f1f5c5', 'name': 'ctest-vn4-05532783', 'tenant_id': 'ec08dd5ed7d04e2da0be19af0ff33e41', 'project_id': 'ec08dd5ed7d04e2da0be19af0ff33e41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e56a48b3-8774-4300-be14-017a263dab4b', '41abeed5-d553-4b22-be7e-cc5da0881949'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14858117', 'ctest-vn4-05532783'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14858117', 'ctest-policy1-77462286']], 'subnet_ipam': [{'subnet_cidr': '115.57.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3983:2705:664f:5f2:bc32:bf46::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 13:30:36,334 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-29 13:30:36,634 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-29 13:30:36,663 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c45e172b-39c0-4f95-bffe-9cdb4c3d6d5b 2026-01-29 13:30:36,673 - DEBUG - Requesting: http://10.0.0.242:8082/project/ec08dd5e-d7d0-4e2d-a0be-19af0ff33e41 2026-01-29 13:30:36,745 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dc1e9736-f2bf-4012-89f7-d4b579f1f5c5 2026-01-29 13:30:36,755 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dc1e9736-f2bf-4012-89f7-d4b579f1f5c5 2026-01-29 13:30:36,763 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/99330295-9960-4ab5-9ff3-142e627623df 2026-01-29 13:30:36,769 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/99330295-9960-4ab5-9ff3-142e627623df 2026-01-29 13:30:36,774 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/708cecdd-6bad-48af-a5bd-e553ac7e87c5 2026-01-29 13:30:36,780 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 13:30:36,780 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dc1e9736-f2bf-4012-89f7-d4b579f1f5c5 2026-01-29 13:30:36,788 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/99330295-9960-4ab5-9ff3-142e627623df 2026-01-29 13:30:36,799 - INFO - Verified VN network id 10 for VN dc1e9736-f2bf-4012-89f7-d4b579f1f5c5 2026-01-29 13:30:36,799 - INFO - Verifications in API Server for VN ctest-vn4-05532783 passed 2026-01-29 13:30:36,799 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dc1e9736-f2bf-4012-89f7-d4b579f1f5c5 2026-01-29 13:30:36,807 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/99330295-9960-4ab5-9ff3-142e627623df 2026-01-29 13:30:36,814 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/99330295-9960-4ab5-9ff3-142e627623df 2026-01-29 13:30:36,820 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/708cecdd-6bad-48af-a5bd-e553ac7e87c5 2026-01-29 13:30:36,831 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14858117:ctest-vn4-05532783', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-14858117', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15861281199902113810', 'uuid-lslong': '9941648578343728581'}, 'enable': 'true', 'created': '2026-01-29T13:30:35', 'last-modified': '2026-01-29T13:30:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.665707'} 2026-01-29 13:30:36,836 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 13:30:36,836 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05532783 passed 2026-01-29 13:30:36,836 - DEBUG - ====Verifying policy data for ctest-vn4-05532783 in API_Server ====== 2026-01-29 13:30:36,836 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-29 13:30:36,842 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c45e172b-39c0-4f95-bffe-9cdb4c3d6d5b 2026-01-29 13:30:36,851 - DEBUG - Requesting: http://10.0.0.242:8082/project/ec08dd5e-d7d0-4e2d-a0be-19af0ff33e41 2026-01-29 13:30:36,919 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/dc1e9736-f2bf-4012-89f7-d4b579f1f5c5 2026-01-29 13:30:36,928 - DEBUG - ==>Verifying data for policy with id: 4a00c1de-a3b4-4896-b009-2c3e8e82d52a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14858117', 'ctest-policy1-77462286'] 2026-01-29 13:30:36,928 - INFO - VN ctest-vn4-05532783 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 13:30:36,928 - DEBUG - Verifying the vn in opserver 2026-01-29 13:30:36,928 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14858117:ctest-vn4-05532783 virtual network link through opserver 10.0.0.242 2026-01-29 13:30:36,928 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-29 13:30:37,225 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-29 13:30:37,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14858117:ctest-vn4-05532783', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14858117:ctest-vn4-05532783?flat'} 2026-01-29 13:30:37,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14858117:ctest-vn4-05532783 is found in opserver 2026-01-29 13:30:37,292 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 13:30:37,296 - DEBUG - VRF ids for VN ctest-vn4-05532783: {} 2026-01-29 13:30:37,296 - DEBUG - ====Verifying data for ctest-policy1-77462286 in API_Server ====== 2026-01-29 13:30:37,296 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-29 13:30:37,301 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c45e172b-39c0-4f95-bffe-9cdb4c3d6d5b 2026-01-29 13:30:37,311 - DEBUG - Requesting: http://10.0.0.242:8082/project/ec08dd5e-d7d0-4e2d-a0be-19af0ff33e41 2026-01-29 13:30:37,387 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/4a00c1de-a3b4-4896-b009-2c3e8e82d52a 2026-01-29 13:30:37,395 - INFO - Verified policy ctest-policy1-77462286 in API Server, Result: True 2026-01-29 13:30:37,395 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 13:30:37,403 - INFO - Deleting VN ctest-vn4-05532783 2026-01-29 13:30:37,518 - DEBUG - Response for deleting network () 2026-01-29 13:30:37,518 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/99330295-9960-4ab5-9ff3-142e627623df 2026-01-29 13:30:37,522 - DEBUG - Response Code: 404 2026-01-29 13:30:37,522 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-29 13:30:37,526 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c45e172b-39c0-4f95-bffe-9cdb4c3d6d5b 2026-01-29 13:30:37,579 - DEBUG - Requesting: http://10.0.0.242:8082/project/ec08dd5e-d7d0-4e2d-a0be-19af0ff33e41 2026-01-29 13:30:37,646 - INFO - Validated that VN ctest-vn4-05532783 is not found in API Server 2026-01-29 13:30:37,655 - DEBUG - VN ctest-vn4-05532783 is not present in Agent 10.0.0.242 2026-01-29 13:30:37,655 - INFO - Validated that VN ctest-vn4-05532783 is not in any agent 2026-01-29 13:30:37,668 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05532783 info 2026-01-29 13:30:37,692 - INFO - Deleted policy ctest-policy1-77462286 2026-01-29 13:30:37,850 - DEBUG - policy ctest-policy1-77462286 is not found in API Server 2026-01-29 13:30:38,103 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 13:30:38,103 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-29 13:30:38,103 - INFO - -------------------------------------------------------------------------------- 2026-01-29 13:30:38,391 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 13:30:38,392 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-29 13:30:38,392 - INFO - -------------------------------------------------------------------------------- 2026-01-29 13:30:39,068 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-14858117, ID : ec08dd5e-d7d0-4e2d-a0be-19af0ff33e41