2026-01-12 21:47:54,764 - INFO - Domain Default found not creating 2026-01-12 21:47:54,916 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58855010 not found, creating it 2026-01-12 21:47:55,342 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58855010, ID : 8da28190-8937-4ff0-8447-a9e702ee7e36 2026-01-12 21:47:56,814 - INFO - ================================================================================ 2026-01-12 21:47:56,814 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-12 21:47:57,069 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-12 21:47:57,069 - INFO - Initial checks done. Running the testcase now 2026-01-12 21:47:57,069 - INFO - 2026-01-12 21:47:57,069 - INFO - ================================================================================ 2026-01-12 21:47:57,069 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-12 21:47:57,069 - 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-12 21:47:57,360 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-12 21:47:57,360 - INFO - Initial checks done. Running the testcase now 2026-01-12 21:47:57,360 - INFO - 2026-01-12 21:47:57,709 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58855010:ctest-vn4-34046611, 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-58855010:ctest-vn4-34046611, 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-58855010:ctest-vn4-34046611, 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-58855010:ctest-vn4-34046611, 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-12 21:47:58,224 - DEBUG - Response for create_network : {'network': {'id': 'fa7541bb-45d9-4f9a-8a7c-d22bd07c3735', 'name': 'ctest-vn4-34046611', 'tenant_id': '8da2819089374ff08447a9e702ee7e36', 'project_id': '8da2819089374ff08447a9e702ee7e36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58855010', 'ctest-vn4-34046611'], 'port_security_enabled': True, 'description': ''}} 2026-01-12 21:47:58,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '285f1ec3-a4e9-47a1-a3b3-28dcc232b749', 'name': '', 'tenant_id': '8da2819089374ff08447a9e702ee7e36', 'network_id': 'fa7541bb-45d9-4f9a-8a7c-d22bd07c3735', 'ip_version': 4, 'cidr': '219.168.144.192/26', 'allocation_pools': [{'start': '219.168.144.194', 'end': '219.168.144.254'}], 'gateway_ip': '219.168.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.168.144.194', 'tags': [], 'project_id': '8da2819089374ff08447a9e702ee7e36'}} 2026-01-12 21:47:58,625 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a03c54c-c429-4bfc-9040-c196aab26cb9', 'name': '', 'tenant_id': '8da2819089374ff08447a9e702ee7e36', 'network_id': 'fa7541bb-45d9-4f9a-8a7c-d22bd07c3735', 'ip_version': 6, 'cidr': '20c0:8437:4070:d0f4:4175:4a08::/96', 'allocation_pools': [{'start': '20c0:8437:4070:d0f4:4175:4a08:0:2', 'end': '20c0:8437:4070:d0f4:4175:4a08:ffff:fffe'}], 'gateway_ip': '20c0:8437:4070:d0f4:4175:4a08:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20c0:8437:4070:d0f4:4175:4a08:0:2', 'tags': [], 'project_id': '8da2819089374ff08447a9e702ee7e36'}} 2026-01-12 21:47:58,643 - INFO - Created VN ctest-vn4-34046611 2026-01-12 21:47:58,692 - DEBUG - VN ctest-vn4-34046611 UUID is fa7541bb-45d9-4f9a-8a7c-d22bd07c3735 2026-01-12 21:47:58,884 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa7541bb-45d9-4f9a-8a7c-d22bd07c3735', 'name': 'ctest-vn4-34046611', 'tenant_id': '8da2819089374ff08447a9e702ee7e36', 'project_id': '8da2819089374ff08447a9e702ee7e36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['285f1ec3-a4e9-47a1-a3b3-28dcc232b749', '6a03c54c-c429-4bfc-9040-c196aab26cb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58855010', 'ctest-vn4-34046611'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58855010', 'ctest-policy1-37965091']], 'subnet_ipam': [{'subnet_cidr': '219.168.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20c0:8437:4070:d0f4:4175:4a08::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-12 21:47:59,044 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-12 21:47:59,332 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-12 21:47:59,360 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f22e4bd6-30fd-498d-a646-778d9b935598 2026-01-12 21:47:59,370 - DEBUG - Requesting: http://10.0.0.22:8082/project/8da28190-8937-4ff0-8447-a9e702ee7e36 2026-01-12 21:47:59,440 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa7541bb-45d9-4f9a-8a7c-d22bd07c3735 2026-01-12 21:47:59,450 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa7541bb-45d9-4f9a-8a7c-d22bd07c3735 2026-01-12 21:47:59,459 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/228c0b81-caf1-434a-8360-740f0f0d90b3 2026-01-12 21:47:59,464 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/228c0b81-caf1-434a-8360-740f0f0d90b3 2026-01-12 21:47:59,469 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c0defdaa-3bdf-405d-be88-8743bebdb73e 2026-01-12 21:47:59,474 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-12 21:47:59,474 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa7541bb-45d9-4f9a-8a7c-d22bd07c3735 2026-01-12 21:47:59,482 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/228c0b81-caf1-434a-8360-740f0f0d90b3 2026-01-12 21:47:59,493 - INFO - Verified VN network id 12 for VN fa7541bb-45d9-4f9a-8a7c-d22bd07c3735 2026-01-12 21:47:59,493 - INFO - Verifications in API Server for VN ctest-vn4-34046611 passed 2026-01-12 21:47:59,493 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa7541bb-45d9-4f9a-8a7c-d22bd07c3735 2026-01-12 21:47:59,501 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/228c0b81-caf1-434a-8360-740f0f0d90b3 2026-01-12 21:47:59,507 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/228c0b81-caf1-434a-8360-740f0f0d90b3 2026-01-12 21:47:59,513 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c0defdaa-3bdf-405d-be88-8743bebdb73e 2026-01-12 21:47:59,524 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58855010:ctest-vn4-34046611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58855010', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18047403354343690138', 'uuid-lslong': '9979081959969404725'}, 'enable': 'true', 'created': '2026-01-12T21:47:58', 'last-modified': '2026-01-12T21:47:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667236'} 2026-01-12 21:47:59,529 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-12 21:47:59,529 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34046611 passed 2026-01-12 21:47:59,529 - DEBUG - ====Verifying policy data for ctest-vn4-34046611 in API_Server ====== 2026-01-12 21:47:59,529 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-12 21:47:59,534 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f22e4bd6-30fd-498d-a646-778d9b935598 2026-01-12 21:47:59,543 - DEBUG - Requesting: http://10.0.0.22:8082/project/8da28190-8937-4ff0-8447-a9e702ee7e36 2026-01-12 21:47:59,611 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fa7541bb-45d9-4f9a-8a7c-d22bd07c3735 2026-01-12 21:47:59,620 - DEBUG - ==>Verifying data for policy with id: 0319d028-e3cb-411c-a8ed-89b14a3b601c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58855010', 'ctest-policy1-37965091'] 2026-01-12 21:47:59,620 - INFO - VN ctest-vn4-34046611 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-12 21:47:59,620 - DEBUG - Verifying the vn in opserver 2026-01-12 21:47:59,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58855010:ctest-vn4-34046611 virtual network link through opserver 10.0.0.22 2026-01-12 21:47:59,621 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-12 21:47:59,909 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-12 21:47:59,965 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58855010:ctest-vn4-34046611', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58855010:ctest-vn4-34046611?flat'} 2026-01-12 21:47:59,966 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58855010:ctest-vn4-34046611 is found in opserver 2026-01-12 21:47:59,974 - DEBUG - Do not have enough data to verify VN in agent 2026-01-12 21:47:59,978 - DEBUG - VRF ids for VN ctest-vn4-34046611: {} 2026-01-12 21:47:59,979 - DEBUG - ====Verifying data for ctest-policy1-37965091 in API_Server ====== 2026-01-12 21:47:59,979 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-12 21:47:59,984 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f22e4bd6-30fd-498d-a646-778d9b935598 2026-01-12 21:47:59,993 - DEBUG - Requesting: http://10.0.0.22:8082/project/8da28190-8937-4ff0-8447-a9e702ee7e36 2026-01-12 21:48:00,064 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/0319d028-e3cb-411c-a8ed-89b14a3b601c 2026-01-12 21:48:00,073 - INFO - Verified policy ctest-policy1-37965091 in API Server, Result: True 2026-01-12 21:48:00,073 - INFO - Done with setup and verification, moving onto test .. 2026-01-12 21:48:00,080 - INFO - Deleting VN ctest-vn4-34046611 2026-01-12 21:48:00,205 - DEBUG - Response for deleting network () 2026-01-12 21:48:00,206 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/228c0b81-caf1-434a-8360-740f0f0d90b3 2026-01-12 21:48:00,210 - DEBUG - Response Code: 404 2026-01-12 21:48:00,210 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-12 21:48:00,215 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f22e4bd6-30fd-498d-a646-778d9b935598 2026-01-12 21:48:00,268 - DEBUG - Requesting: http://10.0.0.22:8082/project/8da28190-8937-4ff0-8447-a9e702ee7e36 2026-01-12 21:48:00,337 - INFO - Validated that VN ctest-vn4-34046611 is not found in API Server 2026-01-12 21:48:00,346 - DEBUG - VN ctest-vn4-34046611 is not present in Agent 10.0.0.22 2026-01-12 21:48:00,346 - INFO - Validated that VN ctest-vn4-34046611 is not in any agent 2026-01-12 21:48:00,359 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34046611 info 2026-01-12 21:48:00,384 - INFO - Deleted policy ctest-policy1-37965091 2026-01-12 21:48:00,548 - DEBUG - policy ctest-policy1-37965091 is not found in API Server 2026-01-12 21:48:00,800 - DEBUG - No XMPP flaps were noticed during the test