2026-01-02 19:11:25,039 - INFO - Domain Default found not creating 2026-01-02 19:11:25,227 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59168002 not found, creating it 2026-01-02 19:11:25,675 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59168002, ID : 341572ff-7fe2-4fde-a4f0-8a1f9085e8d4 2026-01-02 19:11:27,293 - INFO - ================================================================================ 2026-01-02 19:11:27,293 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-02 19:11:27,549 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-01-02 19:11:27,549 - INFO - Initial checks done. Running the testcase now 2026-01-02 19:11:27,549 - INFO - 2026-01-02 19:11:27,549 - INFO - ================================================================================ 2026-01-02 19:11:27,549 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-02 19:11:27,549 - 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-02 19:11:27,840 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-01-02 19:11:27,840 - INFO - Initial checks done. Running the testcase now 2026-01-02 19:11:27,840 - INFO - 2026-01-02 19:11:28,216 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59168002:ctest-vn4-15614748, 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-59168002:ctest-vn4-15614748, 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-59168002:ctest-vn4-15614748, 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-59168002:ctest-vn4-15614748, 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-02 19:11:28,731 - DEBUG - Response for create_network : {'network': {'id': 'f8ca703f-f816-4dab-9127-7eb93617f649', 'name': 'ctest-vn4-15614748', 'tenant_id': '341572ff7fe24fdea4f08a1f9085e8d4', 'project_id': '341572ff7fe24fdea4f08a1f9085e8d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59168002', 'ctest-vn4-15614748'], 'port_security_enabled': True, 'description': ''}} 2026-01-02 19:11:28,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '8498bbfc-dc57-4ef2-abba-0758d21d1783', 'name': '', 'tenant_id': '341572ff7fe24fdea4f08a1f9085e8d4', 'network_id': 'f8ca703f-f816-4dab-9127-7eb93617f649', 'ip_version': 4, 'cidr': '186.240.65.192/26', 'allocation_pools': [{'start': '186.240.65.194', 'end': '186.240.65.254'}], 'gateway_ip': '186.240.65.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.240.65.194', 'tags': [], 'project_id': '341572ff7fe24fdea4f08a1f9085e8d4'}} 2026-01-02 19:11:29,078 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9c1f901-4b35-485d-b4a8-ecd3e1c8c1ba', 'name': '', 'tenant_id': '341572ff7fe24fdea4f08a1f9085e8d4', 'network_id': 'f8ca703f-f816-4dab-9127-7eb93617f649', 'ip_version': 6, 'cidr': '38e1:815c:9370:704:e2d4:ca7a::/96', 'allocation_pools': [{'start': '38e1:815c:9370:704:e2d4:ca7a:0:2', 'end': '38e1:815c:9370:704:e2d4:ca7a:ffff:fffe'}], 'gateway_ip': '38e1:815c:9370:704:e2d4:ca7a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38e1:815c:9370:704:e2d4:ca7a:0:2', 'tags': [], 'project_id': '341572ff7fe24fdea4f08a1f9085e8d4'}} 2026-01-02 19:11:29,102 - INFO - Created VN ctest-vn4-15614748 2026-01-02 19:11:29,155 - DEBUG - VN ctest-vn4-15614748 UUID is f8ca703f-f816-4dab-9127-7eb93617f649 2026-01-02 19:11:29,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8ca703f-f816-4dab-9127-7eb93617f649', 'name': 'ctest-vn4-15614748', 'tenant_id': '341572ff7fe24fdea4f08a1f9085e8d4', 'project_id': '341572ff7fe24fdea4f08a1f9085e8d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8498bbfc-dc57-4ef2-abba-0758d21d1783', 'e9c1f901-4b35-485d-b4a8-ecd3e1c8c1ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59168002', 'ctest-vn4-15614748'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59168002', 'ctest-policy1-38848489']], 'subnet_ipam': [{'subnet_cidr': '186.240.65.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38e1:815c:9370:704:e2d4:ca7a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-02 19:11:29,499 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 19:11:29,791 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 19:11:29,818 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ce6651c1-f3ff-4d52-aecb-e9c96e07744b 2026-01-02 19:11:29,828 - DEBUG - Requesting: http://10.0.0.249:8082/project/341572ff-7fe2-4fde-a4f0-8a1f9085e8d4 2026-01-02 19:11:29,895 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f8ca703f-f816-4dab-9127-7eb93617f649 2026-01-02 19:11:29,906 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f8ca703f-f816-4dab-9127-7eb93617f649 2026-01-02 19:11:29,914 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0a21fe7f-9b25-402b-9345-2aeb4c694a31 2026-01-02 19:11:29,920 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0a21fe7f-9b25-402b-9345-2aeb4c694a31 2026-01-02 19:11:29,926 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/962ef2c7-9e37-462a-b73c-4d16de56ba28 2026-01-02 19:11:29,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-02 19:11:29,930 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f8ca703f-f816-4dab-9127-7eb93617f649 2026-01-02 19:11:29,937 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0a21fe7f-9b25-402b-9345-2aeb4c694a31 2026-01-02 19:11:29,949 - INFO - Verified VN network id 10 for VN f8ca703f-f816-4dab-9127-7eb93617f649 2026-01-02 19:11:29,949 - INFO - Verifications in API Server for VN ctest-vn4-15614748 passed 2026-01-02 19:11:29,949 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f8ca703f-f816-4dab-9127-7eb93617f649 2026-01-02 19:11:29,959 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0a21fe7f-9b25-402b-9345-2aeb4c694a31 2026-01-02 19:11:29,965 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0a21fe7f-9b25-402b-9345-2aeb4c694a31 2026-01-02 19:11:29,970 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/962ef2c7-9e37-462a-b73c-4d16de56ba28 2026-01-02 19:11:29,980 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59168002:ctest-vn4-15614748', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59168002', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17927264686749142443', 'uuid-lslong': '10459467993532855881'}, 'enable': 'true', 'created': '2026-01-02T19:11:28', 'last-modified': '2026-01-02T19:11:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.662090'} 2026-01-02 19:11:29,985 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-02 19:11:29,985 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15614748 passed 2026-01-02 19:11:29,986 - DEBUG - ====Verifying policy data for ctest-vn4-15614748 in API_Server ====== 2026-01-02 19:11:29,986 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 19:11:29,991 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ce6651c1-f3ff-4d52-aecb-e9c96e07744b 2026-01-02 19:11:30,001 - DEBUG - Requesting: http://10.0.0.249:8082/project/341572ff-7fe2-4fde-a4f0-8a1f9085e8d4 2026-01-02 19:11:30,070 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f8ca703f-f816-4dab-9127-7eb93617f649 2026-01-02 19:11:30,079 - DEBUG - ==>Verifying data for policy with id: 9b4d9ad0-cd60-4c1a-896b-376d4ef1d0b1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59168002', 'ctest-policy1-38848489'] 2026-01-02 19:11:30,079 - INFO - VN ctest-vn4-15614748 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-02 19:11:30,079 - DEBUG - Verifying the vn in opserver 2026-01-02 19:11:30,079 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59168002:ctest-vn4-15614748 virtual network link through opserver 10.0.0.249 2026-01-02 19:11:30,079 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-02 19:11:30,377 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-02 19:11:30,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59168002:ctest-vn4-15614748', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59168002:ctest-vn4-15614748?flat'} 2026-01-02 19:11:30,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59168002:ctest-vn4-15614748 is found in opserver 2026-01-02 19:11:30,444 - DEBUG - Do not have enough data to verify VN in agent 2026-01-02 19:11:30,448 - DEBUG - VRF ids for VN ctest-vn4-15614748: {} 2026-01-02 19:11:30,448 - DEBUG - ====Verifying data for ctest-policy1-38848489 in API_Server ====== 2026-01-02 19:11:30,448 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 19:11:30,453 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ce6651c1-f3ff-4d52-aecb-e9c96e07744b 2026-01-02 19:11:30,462 - DEBUG - Requesting: http://10.0.0.249:8082/project/341572ff-7fe2-4fde-a4f0-8a1f9085e8d4 2026-01-02 19:11:30,531 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/9b4d9ad0-cd60-4c1a-896b-376d4ef1d0b1 2026-01-02 19:11:30,539 - INFO - Verified policy ctest-policy1-38848489 in API Server, Result: True 2026-01-02 19:11:30,539 - INFO - Done with setup and verification, moving onto test .. 2026-01-02 19:11:30,546 - INFO - Deleting VN ctest-vn4-15614748 2026-01-02 19:11:30,641 - DEBUG - Response for deleting network () 2026-01-02 19:11:30,641 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0a21fe7f-9b25-402b-9345-2aeb4c694a31 2026-01-02 19:11:30,645 - DEBUG - Response Code: 404 2026-01-02 19:11:30,645 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 19:11:30,649 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ce6651c1-f3ff-4d52-aecb-e9c96e07744b 2026-01-02 19:11:30,704 - DEBUG - Requesting: http://10.0.0.249:8082/project/341572ff-7fe2-4fde-a4f0-8a1f9085e8d4 2026-01-02 19:11:30,770 - INFO - Validated that VN ctest-vn4-15614748 is not found in API Server 2026-01-02 19:11:30,779 - DEBUG - VN ctest-vn4-15614748 is not present in Agent 10.0.0.249 2026-01-02 19:11:30,779 - INFO - Validated that VN ctest-vn4-15614748 is not in any agent 2026-01-02 19:11:30,792 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15614748 info 2026-01-02 19:11:30,813 - INFO - Deleted policy ctest-policy1-38848489 2026-01-02 19:11:30,975 - DEBUG - policy ctest-policy1-38848489 is not found in API Server 2026-01-02 19:11:31,228 - DEBUG - No XMPP flaps were noticed during the test